Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(570)

Unified Diff: ash/wm/window_state_delegate.h

Issue 59043013: Add flag to enable immersive fullscreen for v2 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/wm/window_state_delegate.h
diff --git a/ash/wm/window_state_delegate.h b/ash/wm/window_state_delegate.h
index 7b9a8baa3d2cdd8341fc576fe14aef2efb2c90fe..987b1a1a4bc47e4dc0a127d9788c79a3999efc89 100644
--- a/ash/wm/window_state_delegate.h
+++ b/ash/wm/window_state_delegate.h
@@ -17,10 +17,17 @@ class ASH_EXPORT WindowStateDelegate {
WindowStateDelegate();
virtual ~WindowStateDelegate();
- // Invoked when the user uses Shift+F4/F4 to toggle the window
- // fullscreen state. The caller (ash::wm::WindowState) falls backs
- // to the default implementation if this returns false.
- virtual bool ToggleFullscreen(WindowState* window_state);
+ // Enters immersive fullscreen or regular fullscreen depending on whether
+ // immersive fullscreen is supported by the window. This is a no-op if the
+ // window is already in non-immersive fullscreen. The caller
+ // (ash::wm::WindowState) falls back to the default implementation if this
+ // returns false.
+ virtual bool EnterImmersiveFullscreen(WindowState* window_state);
oshima 2013/11/07 18:56:13 I still think we should call EnterFullscreen becau
pkotwicz 2013/11/07 22:21:48 The reason that I want to call this EnterImmersive
oshima 2013/11/08 00:26:29 But it doesn't enter ImmersiveFullscreen when not
pkotwicz 2013/11/08 01:16:57 I can split EnterImmersiveFullscreen() into two me
+
+ // Exits fullscreen and retores the window's state before it was fullscreen.
+ // The caller (ash::wm::WindowState) falls back to the default implementation
+ // if this returns false.
+ virtual bool ExitFullscreen(WindowState* window_state);
oshima 2013/11/07 18:56:13 Thanks, I'll look into restoring from fullscreen s
private:
DISALLOW_COPY_AND_ASSIGN(WindowStateDelegate);

Powered by Google App Engine
This is Rietveld 408576698