OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
6 #define ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 6 #define ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 // Overridden from WindowTreeHostManager::Observer | 112 // Overridden from WindowTreeHostManager::Observer |
113 void OnDisplayConfigurationChanged() override; | 113 void OnDisplayConfigurationChanged() override; |
114 | 114 |
115 // Overridden from WmShelfObserver | 115 // Overridden from WmShelfObserver |
116 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; | 116 void WillChangeVisibilityState(ShelfVisibilityState new_state) override; |
117 void OnShelfIconPositionsChanged() override; | 117 void OnShelfIconPositionsChanged() override; |
118 | 118 |
119 private: | 119 private: |
120 friend class PanelLayoutManagerTest; | 120 friend class PanelLayoutManagerTest; |
121 friend class PanelWindowResizerTest; | 121 friend class PanelWindowResizerTest; |
122 friend class DockedWindowResizerTest; | |
123 friend class DockedWindowLayoutManagerTest; | |
124 friend class WorkspaceControllerTest; | 122 friend class WorkspaceControllerTest; |
125 friend class AcceleratorControllerTest; | 123 friend class AcceleratorControllerTest; |
126 | 124 |
127 views::Widget* CreateCalloutWidget(); | 125 views::Widget* CreateCalloutWidget(); |
128 | 126 |
129 struct ASH_EXPORT PanelInfo { | 127 struct ASH_EXPORT PanelInfo { |
130 PanelInfo() : window(NULL), callout_widget(NULL), slide_in(false) {} | 128 PanelInfo() : window(NULL), callout_widget(NULL), slide_in(false) {} |
131 | 129 |
132 bool operator==(const WmWindow* other_window) const { | 130 bool operator==(const WmWindow* other_window) const { |
133 return window == other_window; | 131 return window == other_window; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // are currently focused. | 194 // are currently focused. |
197 WmWindow* last_active_panel_; | 195 WmWindow* last_active_panel_; |
198 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 196 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
199 | 197 |
200 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 198 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
201 }; | 199 }; |
202 | 200 |
203 } // namespace ash | 201 } // namespace ash |
204 | 202 |
205 #endif // ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 203 #endif // ASH_COMMON_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
OLD | NEW |