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

Unified Diff: ash/wm/workspace/workspace.cc

Issue 11830008: ash/immersive mode: Hide the launcher when entering immersive mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: window property Created 7 years, 11 months 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.cc
diff --git a/ash/wm/workspace/workspace.cc b/ash/wm/workspace/workspace.cc
index 8c4a3b9aa262b5ca9ef231864f4dfb2b2603f270..7cc86f703247001d9c7e6c7da9b99d2b45237c1c 100644
--- a/ash/wm/workspace/workspace.cc
+++ b/ash/wm/workspace/workspace.cc
@@ -91,5 +91,14 @@ int Workspace::GetNumMaximizedWindows() const {
return count;
}
+bool Workspace::IsImmersiveMode() const {
James Cook 2013/01/10 18:38:28 Does this seem OK here? It could also live in Wor
sky 2013/01/10 19:02:05 It doesn't look like the workspace code cares abou
+ for (size_t i = 0; i < window_->children().size(); ++i) {
+ aura::Window* child = window_->children()[i];
+ if (child->GetProperty(kImmersiveModeKey))
sky 2013/01/10 19:02:05 Shouldn't you check if the child is visible?
+ return true;
+ }
+ return false;
+}
+
} // namespace internal
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698