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 ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_STATUS_AREA_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 | 12 |
13 namespace aura_shell { | 13 namespace ash { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 class ShelfLayoutManager; | 16 class ShelfLayoutManager; |
17 | 17 |
18 // StatusAreaLayoutManager is a layout manager responsible for the status area. | 18 // StatusAreaLayoutManager is a layout manager responsible for the status area. |
19 // In any case when status area needs relayout it redirects this call to | 19 // In any case when status area needs relayout it redirects this call to |
20 // ShelfLayoutManager. | 20 // ShelfLayoutManager. |
21 class StatusAreaLayoutManager : public aura::LayoutManager { | 21 class StatusAreaLayoutManager : public aura::LayoutManager { |
22 public: | 22 public: |
23 explicit StatusAreaLayoutManager(ShelfLayoutManager* shelf); | 23 explicit StatusAreaLayoutManager(ShelfLayoutManager* shelf); |
(...skipping 16 matching lines...) Expand all Loading... |
40 // True when inside LayoutStatusArea method. | 40 // True when inside LayoutStatusArea method. |
41 // Used to prevent calling itself again from SetChildBounds(). | 41 // Used to prevent calling itself again from SetChildBounds(). |
42 bool in_layout_; | 42 bool in_layout_; |
43 | 43 |
44 ShelfLayoutManager* shelf_; | 44 ShelfLayoutManager* shelf_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(StatusAreaLayoutManager); | 46 DISALLOW_COPY_AND_ASSIGN(StatusAreaLayoutManager); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace internal | 49 } // namespace internal |
50 } // namespace aura_shell | 50 } // namespace ash |
51 | 51 |
52 #endif // ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_ | 52 #endif // ASH_WM_STATUS_AREA_LAYOUT_MANAGER_H_ |
OLD | NEW |