Index: ash/wm/window_state.h |
diff --git a/ash/wm/window_state.h b/ash/wm/window_state.h |
index 8c68e2466b5116aa0bb965c1e2d9d99d9040ab3f..452b99b43a122ab23e1a37759736b43d722bf17f 100644 |
--- a/ash/wm/window_state.h |
+++ b/ash/wm/window_state.h |
@@ -58,6 +58,10 @@ class ASH_EXPORT WindowState : public aura::WindowObserver { |
bool IsMinimized() const; |
bool IsMaximized() const; |
bool IsFullscreen() const; |
+ // True if the window's show state is SHOW_STATE_FULLSCREEN and the fullscreen |
+ // type allows the top-of-window views to be revealed when the mouse is |
+ // hovered at the top of the screen. |
+ bool IsImmersiveFullscreen() const; |
bool IsMaximizedOrFullscreen() const; |
// True if the window's show state is SHOW_STATE_NORMAL or |
// SHOW_STATE_DEFAULT. |
@@ -110,6 +114,14 @@ class ASH_EXPORT WindowState : public aura::WindowObserver { |
// Deletes and clears the restore bounds property on the window. |
void ClearRestoreBounds(); |
+ // Sets the type of fullscreen to use when in fullscreen. The fullscreen type |
+ // can be set at any time but observers are only notified of the change in |
+ // fullscreen type if the window is in fullscreen. |
+ FullscreenType fullscreen_type() const { |
+ return fullscreen_type_; |
+ } |
+ void SetFullscreenType(FullscreenType type); |
+ |
// Sets whether the window should always be restored to the restore bounds |
// (sometimes the workspace layout manager restores the window to its original |
// bounds instead of the restore bounds. Setting this key overrides that |
@@ -209,6 +221,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver { |
// The owner of this window settings. |
aura::Window* window_; |
+ FullscreenType fullscreen_type_; |
bool tracked_by_workspace_; |
bool window_position_managed_; |
bool bounds_changed_by_user_; |