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 CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 static bool ShouldUsePanels(const std::string& extension_id); | 30 static bool ShouldUsePanels(const std::string& extension_id); |
31 | 31 |
32 // Called when the display is changed, i.e. work area is updated. | 32 // Called when the display is changed, i.e. work area is updated. |
33 void OnDisplayChanged(); | 33 void OnDisplayChanged(); |
34 | 34 |
35 // Creates a panel and returns it. The panel might be queued for display | 35 // Creates a panel and returns it. The panel might be queued for display |
36 // later. | 36 // later. |
37 Panel* CreatePanel(Browser* browser); | 37 Panel* CreatePanel(Browser* browser); |
38 | 38 |
39 void Remove(Panel* panel); | 39 void Remove(Panel* panel); |
40 void RemoveAll(); | 40 |
| 41 // Close all panels (asynchronous). Panels will be removed after closing. |
| 42 void CloseAll(); |
41 | 43 |
42 // Asynchronous confirmation of panel having been removed. | 44 // Asynchronous confirmation of panel having been removed. |
43 void OnPanelRemoved(Panel* panel); | 45 void OnPanelRemoved(Panel* panel); |
44 | 46 |
45 // Drags the given panel. | 47 // Drags the given panel. |
46 void StartDragging(Panel* panel); | 48 void StartDragging(Panel* panel); |
47 void Drag(int delta_x); | 49 void Drag(int delta_x); |
48 void EndDragging(bool cancelled); | 50 void EndDragging(bool cancelled); |
49 | 51 |
50 // Invoked when a panel's expansion state changes. | 52 // Invoked when a panel's expansion state changes. |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // Timer used to track if the current active app is in full screen mode. | 192 // Timer used to track if the current active app is in full screen mode. |
191 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; | 193 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; |
192 | 194 |
193 // True if current active app is in full screen mode. | 195 // True if current active app is in full screen mode. |
194 bool is_full_screen_; | 196 bool is_full_screen_; |
195 | 197 |
196 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 198 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
197 }; | 199 }; |
198 | 200 |
199 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 201 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
OLD | NEW |