mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Introducing a will-enter-full-screen event that's cancellable
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user