Add BrowserWindow.setAutoHideCursor for macOS

The `disableAutoHideCursor` BrowserWindow option can be used to control
auto-hiding behavior when the window is created. This new API is needed
to dynamically change the behavior after the fact.
This commit is contained in:
Birunthan Mohanathas 2016-11-28 11:38:40 -08:00
parent fb74f5576d
commit 18c49285a8
8 changed files with 45 additions and 0 deletions

View file

@ -161,6 +161,8 @@ class NativeWindow : public base::SupportsUserData,
virtual void SetVisibleOnAllWorkspaces(bool visible) = 0;
virtual bool IsVisibleOnAllWorkspaces() = 0;
virtual void SetAutoHideCursor(bool auto_hide);
// Vibrancy API
virtual void SetVibrancy(const std::string& type);