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

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

Issue 9817026: Changes how we detect whether the launcher should be shown when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comment Created 8 years, 9 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
« no previous file with comments | « ash/wm/shelf_layout_manager_unittest.cc ('k') | ui/gfx/compositor/layer_animator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/workspace_manager.cc
diff --git a/ash/wm/workspace/workspace_manager.cc b/ash/wm/workspace/workspace_manager.cc
index 249d569f0668bde5f2024101484de1c9ae9e0a6e..c6c9dd62bce72aab90afd39257f86e90c2b1368b 100644
--- a/ash/wm/workspace/workspace_manager.cc
+++ b/ash/wm/workspace/workspace_manager.cc
@@ -159,8 +159,7 @@ gfx::Rect WorkspaceManager::AlignBoundsToGrid(const gfx::Rect& bounds) {
void WorkspaceManager::UpdateShelfVisibility() {
if (!shelf_ || !active_workspace_) {
- shelf_->SetState(ShelfLayoutManager::VISIBLE,
- ShelfLayoutManager::AUTO_HIDE_SHOWN);
+ shelf_->SetState(ShelfLayoutManager::VISIBLE);
shelf_->SetWindowOverlapsShelf(false);
return;
}
@@ -193,14 +192,11 @@ void WorkspaceManager::UpdateShelfVisibility() {
ShelfLayoutManager::VisibilityState visibility_state =
ShelfLayoutManager::VISIBLE;
- ShelfLayoutManager::AutoHideState auto_hide_state =
- shelf_->auto_hide_state();
- if (has_full_screen_window) {
+ if (has_full_screen_window)
visibility_state = ShelfLayoutManager::HIDDEN;
- } else if (has_max_window) {
+ else if (has_max_window)
visibility_state = ShelfLayoutManager::AUTO_HIDE;
- }
- shelf_->SetState(visibility_state, auto_hide_state);
+ shelf_->SetState(visibility_state);
shelf_->SetWindowOverlapsShelf(window_overlaps_launcher);
}
« no previous file with comments | « ash/wm/shelf_layout_manager_unittest.cc ('k') | ui/gfx/compositor/layer_animator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698