summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/fullscreen_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/fullscreen_controller.cc')
-rw-r--r--chrome/browser/ui/fullscreen_controller.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/ui/fullscreen_controller.cc b/chrome/browser/ui/fullscreen_controller.cc
index 72c3ec2..b875328 100644
--- a/chrome/browser/ui/fullscreen_controller.cc
+++ b/chrome/browser/ui/fullscreen_controller.cc
@@ -58,6 +58,12 @@ bool FullscreenController::IsFullscreenForTabOrPending(
return true;
}
+#if defined(OS_WIN)
+bool FullscreenController::IsInMetroSnapMode() {
+ return window_->IsInMetroSnapMode();
+}
+#endif
+
bool FullscreenController::IsMouseLockRequested() const {
return mouse_lock_state_ == MOUSELOCK_REQUESTED;
}
@@ -170,6 +176,12 @@ void FullscreenController::ToggleFullscreenModeForTab(WebContents* web_contents,
}
}
+#if defined(OS_WIN)
+void FullscreenController::SetMetroSnapMode(bool enable) {
+ window_->SetMetroSnapMode(enable);
+}
+#endif
+
#if defined(OS_MACOSX)
void FullscreenController::TogglePresentationMode() {
TogglePresentationModeInternal(false);