feat: add 'resized' event to BrowserWindow (#26216)

Also adds 'moved' event to BrowserWindow on Windows.
This commit is contained in:
Samuel Maddock 2020-11-11 19:27:24 -05:00 committed by GitHub
parent bb3fb548d8
commit 83d30c5c2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 59 additions and 3 deletions

View file

@ -283,6 +283,12 @@ class NativeWindowViews : public NativeWindow,
// Whether we want to set window placement without side effect.
bool is_setting_window_placement_ = false;
// Whether the window is currently being resized.
bool is_resizing_ = false;
// Whether the window is currently being moved.
bool is_moving_ = false;
#endif
// Handles unhandled keyboard messages coming back from the renderer process.