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
|
@ -219,6 +219,10 @@ void Window::OnWindowMoved() {
|
|||
Emit("moved");
|
||||
}
|
||||
|
||||
void Window::OnWindowWillEnterFullScreen(bool* prevent_default) {
|
||||
*prevent_default = Emit("will-enter-full-screen");
|
||||
}
|
||||
|
||||
void Window::OnWindowEnterFullScreen() {
|
||||
Emit("enter-full-screen");
|
||||
}
|
||||
|
|
|
@ -67,6 +67,7 @@ class Window : public mate::TrackableObject<Window>,
|
|||
void OnWindowMoved() override;
|
||||
void OnWindowScrollTouchBegin() override;
|
||||
void OnWindowScrollTouchEnd() override;
|
||||
void OnWindowWillEnterFullScreen(bool* prevent_default) override;
|
||||
void OnWindowEnterFullScreen() override;
|
||||
void OnWindowLeaveFullScreen() override;
|
||||
void OnWindowEnterHtmlFullScreen() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue