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

Unified Diff: ash/wm/workspace/workspace_layout_manager.h

Issue 100903002: Ignore fullscreen windows which are behind other windows for fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add test that WorkspaceLayoutManager correctly notifies on fullscreen changes. Created 7 years 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/workspace/workspace_layout_manager.h
diff --git a/ash/wm/workspace/workspace_layout_manager.h b/ash/wm/workspace/workspace_layout_manager.h
index e1781b849c71d63baa30ff332177d752f27dad0c..e813c3f567668e5b311bc430b47f212a2efec528 100644
--- a/ash/wm/workspace/workspace_layout_manager.h
+++ b/ash/wm/workspace/workspace_layout_manager.h
@@ -55,6 +55,7 @@ class ASH_EXPORT WorkspaceLayoutManager : public BaseLayoutManager {
virtual void OnWindowPropertyChanged(aura::Window* window,
const void* key,
intptr_t old) OVERRIDE;
+ virtual void OnWindowStackingChanged(aura::Window* window) OVERRIDE;
// ash::WindowSettings::Observer overrides:
virtual void OnTrackedByWorkspaceChanged(wm::WindowState* window_state,
@@ -77,6 +78,7 @@ class ASH_EXPORT WorkspaceLayoutManager : public BaseLayoutManager {
void AdjustWindowBoundsWhenAdded(wm::WindowState* window_state);
void UpdateDesktopVisibility();
+ void UpdateFullscreenState();
// Updates the bounds of the window for a show state change from
// |last_show_state|.
@@ -101,6 +103,9 @@ class ASH_EXPORT WorkspaceLayoutManager : public BaseLayoutManager {
// workspace switch.
gfx::Rect work_area_in_parent_;
+ // True if this workspace is currently in fullscreen mode.
+ bool is_fullscreen_;
+
DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
};

Powered by Google App Engine
This is Rietveld 408576698