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_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 PanelCalloutWidget* callout_widget; | 148 PanelCalloutWidget* callout_widget; |
149 | 149 |
150 // True on new and restored panel windows until the panel has been | 150 // True on new and restored panel windows until the panel has been |
151 // positioned. The first time Relayout is called the panel will be shown, | 151 // positioned. The first time Relayout is called the panel will be shown, |
152 // and slide into position and this will be set to false. | 152 // and slide into position and this will be set to false. |
153 bool slide_in; | 153 bool slide_in; |
154 }; | 154 }; |
155 | 155 |
156 typedef std::list<PanelInfo> PanelList; | 156 typedef std::list<PanelInfo> PanelList; |
157 | 157 |
158 void MinimizePanel(WmWindow* panel); | 158 void MinimizePanel(aura::Window* panel); |
159 void RestorePanel(WmWindow* panel); | 159 void RestorePanel(aura::Window* panel); |
160 | 160 |
161 // Called whenever the panel layout might change. | 161 // Called whenever the panel layout might change. |
162 void Relayout(); | 162 void Relayout(); |
163 | 163 |
164 // Called whenever the panel stacking order needs to be updated (e.g. focus | 164 // Called whenever the panel stacking order needs to be updated (e.g. focus |
165 // changes or a panel is moved). | 165 // changes or a panel is moved). |
166 void UpdateStacking(WmWindow* active_panel); | 166 void UpdateStacking(WmWindow* active_panel); |
167 | 167 |
168 // Update the callout arrows for all managed panels. | 168 // Update the callout arrows for all managed panels. |
169 void UpdateCallouts(); | 169 void UpdateCallouts(); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 keyboard_observer_; | 204 keyboard_observer_; |
205 | 205 |
206 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; | 206 base::WeakPtrFactory<PanelLayoutManager> weak_factory_; |
207 | 207 |
208 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); | 208 DISALLOW_COPY_AND_ASSIGN(PanelLayoutManager); |
209 }; | 209 }; |
210 | 210 |
211 } // namespace ash | 211 } // namespace ash |
212 | 212 |
213 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ | 213 #endif // ASH_WM_PANELS_PANEL_LAYOUT_MANAGER_H_ |
OLD | NEW |