linux: Implement win.disable/enable/isEnabled() API
This commit is contained in:
parent
074903ca33
commit
9aa7291627
5 changed files with 77 additions and 2 deletions
|
@ -32,6 +32,8 @@ class WindowStateWatcher;
|
|||
|
||||
#if defined(OS_WIN)
|
||||
class AtomDesktopWindowTreeHostWin;
|
||||
#elif defined(USE_X11)
|
||||
class EventDisabler;
|
||||
#endif
|
||||
|
||||
class NativeWindowViews : public NativeWindow,
|
||||
|
@ -193,6 +195,9 @@ class NativeWindowViews : public NativeWindow,
|
|||
// Handles window state events.
|
||||
std::unique_ptr<WindowStateWatcher> window_state_watcher_;
|
||||
|
||||
// To disable the mouse events.
|
||||
std::unique_ptr<EventDisabler> event_disabler_;
|
||||
|
||||
// The "resizable" flag on Linux is implemented by setting size constraints,
|
||||
// we need to make sure size constraints are restored when window becomes
|
||||
// resizable again.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue