Introducing a will-enter-full-screen event that's cancellable
This commit is contained in:
parent
d5bdb17144
commit
a8ae14e94f
7 changed files with 36 additions and 8 deletions
|
@ -445,6 +445,13 @@ void NativeWindow::NotifyWindowMoved() {
|
|||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_, OnWindowMoved());
|
||||
}
|
||||
|
||||
bool NativeWindow::RequestEnterFullScreen() {
|
||||
bool prevent_default = false;
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_,
|
||||
OnWindowWillEnterFullScreen(&prevent_default));
|
||||
return prevent_default;
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowEnterFullScreen() {
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver, observers_,
|
||||
OnWindowEnterFullScreen());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue