feat: 'will-move' event for windows. (#14283)
* feat: 'will-resize' window event (Windows only) * documentation for 'will-move' event * comment and line break fix in docs
This commit is contained in:
parent
f1fe485768
commit
afdb6c5f90
7 changed files with 37 additions and 1 deletions
|
@ -468,6 +468,12 @@ void NativeWindow::NotifyWindowWillResize(const gfx::Rect& new_bounds,
|
|||
observer.OnWindowWillResize(new_bounds, prevent_default);
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowWillMove(const gfx::Rect& new_bounds,
|
||||
bool* prevent_default) {
|
||||
for (NativeWindowObserver& observer : observers_)
|
||||
observer.OnWindowWillMove(new_bounds, prevent_default);
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowResize() {
|
||||
for (NativeWindowObserver& observer : observers_)
|
||||
observer.OnWindowResize();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue