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

Side by Side Diff: ui/aura_shell/shelf_layout_manager.h

Issue 8911010: Aura: Fix linux component build (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « ui/aura_shell/activation_controller.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ui/aura_shell/activation_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698