Add 'disable-auto-hide-cursor' option
This commit is contained in:
parent
3a50c9e48c
commit
c6cf91d11f
3 changed files with 10 additions and 0 deletions
|
@ -152,6 +152,7 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
|
|||
bool enable_larger_than_screen_;
|
||||
}
|
||||
@property BOOL acceptsFirstMouse;
|
||||
@property BOOL disableAutoHideCursor;
|
||||
- (void)setShell:(atom::NativeWindowMac*)shell;
|
||||
- (void)setEnableLargerThanScreen:(bool)enable;
|
||||
@end
|
||||
|
@ -347,6 +348,11 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
|
|||
options.Get(switches::kAcceptFirstMouse, &acceptsFirstMouse);
|
||||
[window_ setAcceptsFirstMouse:acceptsFirstMouse];
|
||||
|
||||
// Disable auto-hiding cursor.
|
||||
bool disableAutoHideCursor = false;
|
||||
options.Get(switches::kDisableAutoHideCursor, &disableAutoHideCursor);
|
||||
[window_ setDisableAutoHideCursor:disableAutoHideCursor];
|
||||
|
||||
// Disable fullscreen button when 'fullscreen' is specified to false.
|
||||
bool fullscreen;
|
||||
if (!(options.Get(switches::kFullscreen, &fullscreen) &&
|
||||
|
|
|
@ -75,6 +75,9 @@ const char kTransparent[] = "transparent";
|
|||
// Window type hint.
|
||||
const char kType[] = "type";
|
||||
|
||||
// Disable auto-hiding cursor.
|
||||
const char kDisableAutoHideCursor[] = "disable-auto-hide-cursor";
|
||||
|
||||
// Web runtime features.
|
||||
const char kExperimentalFeatures[] = "experimental-features";
|
||||
const char kExperimentalCanvasFeatures[] = "experimental-canvas-features";
|
||||
|
|
|
@ -41,6 +41,7 @@ extern const char kGuestInstanceID[];
|
|||
extern const char kPreloadScript[];
|
||||
extern const char kTransparent[];
|
||||
extern const char kType[];
|
||||
extern const char kDisableAutoHideCursor[];
|
||||
|
||||
extern const char kExperimentalFeatures[];
|
||||
extern const char kExperimentalCanvasFeatures[];
|
||||
|
|
Loading…
Reference in a new issue