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_COMPACT_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_COMPACT_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_COMPACT_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_COMPACT_LAYOUT_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "ui/aura/layout_manager.h" | 13 #include "ui/aura/layout_manager.h" |
14 #include "ui/aura/window_observer.h" | 14 #include "ui/aura/window_observer.h" |
15 #include "ash/ash_export.h" | 15 #include "ash/ash_export.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class Widget; | 18 class Widget; |
19 } | 19 } |
20 | 20 |
21 namespace aura_shell { | 21 namespace ash { |
22 namespace internal { | 22 namespace internal { |
23 | 23 |
24 // CompactLayoutManager is an alternate LayoutManager for the container that | 24 // CompactLayoutManager is an alternate LayoutManager for the container that |
25 // hosts what the shell considers to be top-level windows. It is used for low | 25 // hosts what the shell considers to be top-level windows. It is used for low |
26 // resolution screens and keeps the main browser window maximized. | 26 // resolution screens and keeps the main browser window maximized. |
27 // It listens for changes to kShowStateKey and resizes the window appropriately. | 27 // It listens for changes to kShowStateKey and resizes the window appropriately. |
28 class ASH_EXPORT CompactLayoutManager : public aura::LayoutManager, | 28 class ASH_EXPORT CompactLayoutManager : public aura::LayoutManager, |
29 public aura::WindowObserver { | 29 public aura::WindowObserver { |
30 public: | 30 public: |
31 explicit CompactLayoutManager(views::Widget* status_area_widget); | 31 explicit CompactLayoutManager(views::Widget* status_area_widget); |
(...skipping 21 matching lines...) Expand all Loading... |
53 | 53 |
54 // Set of windows we're listening to. | 54 // Set of windows we're listening to. |
55 Windows windows_; | 55 Windows windows_; |
56 | 56 |
57 // Weak pointer to status area with clock, network, battery, etc. icons. | 57 // Weak pointer to status area with clock, network, battery, etc. icons. |
58 views::Widget* status_area_widget_; | 58 views::Widget* status_area_widget_; |
59 | 59 |
60 DISALLOW_COPY_AND_ASSIGN(CompactLayoutManager); | 60 DISALLOW_COPY_AND_ASSIGN(CompactLayoutManager); |
61 }; | 61 }; |
62 | 62 |
63 } // namespace aura_shell | 63 } // namespace ash |
64 } // namespace internal | 64 } // namespace internal |
65 | 65 |
66 #endif // ASH_WM_COMPACT_LAYOUT_MANAGER_H_ | 66 #endif // ASH_WM_COMPACT_LAYOUT_MANAGER_H_ |
OLD | NEW |