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" |
11 #include "views/widget/widget.h" | 11 #include "ui/views/widget/widget.h" |
12 | 12 |
13 namespace aura_shell { | 13 namespace aura_shell { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 ui::Layer* GetLayer(views::Widget* widget) { | 18 ui::Layer* GetLayer(views::Widget* widget) { |
19 return widget->GetNativeView()->layer(); | 19 return widget->GetNativeView()->layer(); |
20 } | 20 } |
21 | 21 |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 animating_ = false; | 109 animating_ = false; |
110 visible_ = !visible_; | 110 visible_ = !visible_; |
111 TargetBounds target_bounds; | 111 TargetBounds target_bounds; |
112 CalculateTargetBounds(visible_, &target_bounds); | 112 CalculateTargetBounds(visible_, &target_bounds); |
113 aura::Desktop::GetInstance()->screen()->set_work_area_insets( | 113 aura::Desktop::GetInstance()->screen()->set_work_area_insets( |
114 target_bounds.work_area_insets); | 114 target_bounds.work_area_insets); |
115 } | 115 } |
116 | 116 |
117 } // internal | 117 } // internal |
118 } // aura_shell | 118 } // aura_shell |
OLD | NEW |