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

Side by Side Diff: ash/wm/shelf_layout_manager.cc

Issue 9515003: Fix the full screen switching browser window dipping below launcher bar issue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/wm/shelf_layout_manager.h" 5 #include "ash/wm/shelf_layout_manager.h"
6 6
7 #include "ash/launcher/launcher.h" 7 #include "ash/launcher/launcher.h"
8 #include "ash/shell.h" 8 #include "ash/shell.h"
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "ui/aura/root_window.h" 10 #include "ui/aura/root_window.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 launcher_bounds.height()); 144 launcher_bounds.height());
145 if (visible) 145 if (visible)
146 target_bounds->work_area_insets = gfx::Insets(0, 0, max_height_, 0); 146 target_bounds->work_area_insets = gfx::Insets(0, 0, max_height_, 0);
147 } 147 }
148 148
149 void ShelfLayoutManager::OnImplicitAnimationsCompleted() { 149 void ShelfLayoutManager::OnImplicitAnimationsCompleted() {
150 TargetBounds target_bounds; 150 TargetBounds target_bounds;
151 CalculateTargetBounds(visible_, &target_bounds); 151 CalculateTargetBounds(visible_, &target_bounds);
152 Shell::GetRootWindow()->screen()->set_work_area_insets( 152 Shell::GetRootWindow()->screen()->set_work_area_insets(
153 target_bounds.work_area_insets); 153 target_bounds.work_area_insets);
154 // Notify the RootWindow about work_area_insets change after the animation
155 // completes.
156 Shell::GetRootWindow()->OnScreenWorkAreaInsetsChanged();
sky 2012/02/28 20:49:26 Forcing callers to invoke a method when the insets
jennyz 2012/03/01 00:56:13 Done.
154 } 157 }
155 158
156 } // namespace internal 159 } // namespace internal
157 } // namespace ash 160 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698