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

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: Merge with master. 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
« no previous file with comments | « ash/wm/overview/window_selector_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 07868cb410245536e5f4c9fbd389e1011861c461..ab4876c5b2e3f2ceebe24386377a22618cbfecb3 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;
// WindowStateObserver overrides:
virtual void OnWindowShowTypeChanged(wm::WindowState* window_state,
@@ -72,7 +73,12 @@ class ASH_EXPORT WorkspaceLayoutManager : public BaseLayoutManager {
void AdjustWindowBoundsWhenAdded(wm::WindowState* window_state);
- void UpdateDesktopVisibility();
+ // Updates the visibility state of the shelf.
+ void UpdateShelfVisibility();
+
+ // Updates the fullscreen state of the workspace and notifies Shell if it
+ // has changed.
+ void UpdateFullscreenState();
// Updates the bounds of the window for a show state change from
// |last_show_state|.
@@ -97,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);
};
« no previous file with comments | « ash/wm/overview/window_selector_unittest.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698