remove usage of FullSizeContentView

This commit is contained in:
Cheng Zhao 2018-05-02 20:43:45 +09:00
parent a9709a635c
commit 28fc58067b
3 changed files with 58 additions and 31 deletions

View file

@ -36,8 +36,9 @@ class ScopedDisableResize {
@property BOOL disableAutoHideCursor;
@property BOOL disableKeyOrMainWindow;
@property NSPoint windowButtonsOffset;
@property (nonatomic, retain) NSView* vibrantView;
@property(nonatomic, retain) NSView* vibrantView;
- (void)setShell:(atom::NativeWindowMac*)shell;
- (atom::NativeWindowMac*)shell;
- (void)enableWindowButtonsOffset;
- (void)toggleFullScreenMode:(id)sender;
@end

View file

@ -27,6 +27,10 @@ bool ScopedDisableResize::disable_resize_ = false;
shell_ = shell;
}
- (atom::NativeWindowMac*)shell {
return shell_;
}
- (NSTouchBar*)makeTouchBar API_AVAILABLE(macosx(10.12.2)) {
if (shell_->touch_bar())
return [shell_->touch_bar() makeTouchBar];