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 #ifndef UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ | 5 #ifndef UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ |
6 #define UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ | 6 #define UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "ui/aura/layout_manager.h" | 11 #include "ui/aura/layout_manager.h" |
| 12 #include "ui/aura_shell/aura_shell_export.h" |
12 #include "ui/gfx/compositor/layer_animation_observer.h" | 13 #include "ui/gfx/compositor/layer_animation_observer.h" |
13 #include "ui/gfx/insets.h" | 14 #include "ui/gfx/insets.h" |
14 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
15 | 16 |
16 namespace views { | 17 namespace views { |
17 class Widget; | 18 class Widget; |
18 } | 19 } |
19 | 20 |
20 namespace aura_shell { | 21 namespace aura_shell { |
21 namespace internal { | 22 namespace internal { |
22 | 23 |
23 // ShelfLayoutManager is a layout manager responsible for the launcher. | 24 // ShelfLayoutManager is a layout manager responsible for the launcher. |
24 // Also supports showing and hiding the launcher/status area | 25 // Also supports showing and hiding the launcher/status area |
25 // as well as positioning them. | 26 // as well as positioning them. |
26 class ShelfLayoutManager : public aura::LayoutManager, | 27 // Exported for unit tests. |
27 public ui::LayerAnimationObserver { | 28 class AURA_SHELL_EXPORT ShelfLayoutManager : public aura::LayoutManager, |
| 29 public ui::LayerAnimationObserver { |
28 public: | 30 public: |
29 ShelfLayoutManager(views::Widget* launcher, views::Widget* status); | 31 ShelfLayoutManager(views::Widget* launcher, views::Widget* status); |
30 virtual ~ShelfLayoutManager(); | 32 virtual ~ShelfLayoutManager(); |
31 | 33 |
32 bool in_layout() const { return in_layout_; } | 34 bool in_layout() const { return in_layout_; } |
33 | 35 |
34 // Stops any animations and sets the bounds of the launcher and status | 36 // Stops any animations and sets the bounds of the launcher and status |
35 // widgets. | 37 // widgets. |
36 void LayoutShelf(); | 38 void LayoutShelf(); |
37 | 39 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 views::Widget* launcher_; | 100 views::Widget* launcher_; |
99 views::Widget* status_; | 101 views::Widget* status_; |
100 | 102 |
101 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 103 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
102 }; | 104 }; |
103 | 105 |
104 } // namespace internal | 106 } // namespace internal |
105 } // namespace aura_shell | 107 } // namespace aura_shell |
106 | 108 |
107 #endif // UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ | 109 #endif // UI_AURA_SHELL_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |