OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ui/aura_shell/shelf_layout_controller.h" | 5 #include "ui/aura_shell/shelf_layout_controller.h" |
6 | 6 |
7 #include "ui/aura/desktop.h" | 7 #include "ui/aura/desktop.h" |
8 #include "ui/aura/screen_aura.h" | 8 #include "ui/aura/screen_aura.h" |
9 #include "ui/gfx/compositor/layer.h" | 9 #include "ui/gfx/compositor/layer.h" |
10 #include "ui/gfx/compositor/layer_animator.h" | 10 #include "ui/gfx/compositor/layer_animator.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 animating_ = false; | 110 animating_ = false; |
111 visible_ = !visible_; | 111 visible_ = !visible_; |
112 TargetBounds target_bounds; | 112 TargetBounds target_bounds; |
113 CalculateTargetBounds(visible_, &target_bounds); | 113 CalculateTargetBounds(visible_, &target_bounds); |
114 aura::Desktop::GetInstance()->screen()->set_work_area_insets( | 114 aura::Desktop::GetInstance()->screen()->set_work_area_insets( |
115 target_bounds.work_area_insets); | 115 target_bounds.work_area_insets); |
116 } | 116 } |
117 | 117 |
118 } // internal | 118 } // internal |
119 } // aura_shell | 119 } // aura_shell |
OLD | NEW |