Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |