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 29 matching lines...) Expand all Loading... |
40 void RemoveAll(); | 40 void RemoveAll(); |
41 | 41 |
42 // Asynchronous confirmation of panel having been removed. | 42 // Asynchronous confirmation of panel having been removed. |
43 void OnPanelRemoved(Panel* panel); | 43 void OnPanelRemoved(Panel* panel); |
44 | 44 |
45 // Drags the given panel. | 45 // Drags the given panel. |
46 void StartDragging(Panel* panel); | 46 void StartDragging(Panel* panel); |
47 void Drag(int delta_x); | 47 void Drag(int delta_x); |
48 void EndDragging(bool cancelled); | 48 void EndDragging(bool cancelled); |
49 | 49 |
| 50 // Invoked when a panel's layout state changes. |
| 51 void OnPanelLayoutStateChanged(Panel* panel, Panel::LayoutState old_state); |
| 52 |
50 // Invoked when a panel's expansion state changes. | 53 // Invoked when a panel's expansion state changes. |
51 void OnPanelExpansionStateChanged(Panel* panel); | 54 void OnPanelExpansionStateChanged(Panel* panel, |
| 55 Panel::ExpansionState old_state); |
52 | 56 |
53 // Invoked when a panel is starting/stopping drawing an attention. | 57 // Invoked when a panel is starting/stopping drawing an attention. |
54 void OnPanelAttentionStateChanged(Panel* panel); | 58 void OnPanelAttentionStateChanged(Panel* panel); |
55 | 59 |
56 // Invoked when the preferred window size of the given panel might need to | 60 // Invoked when the preferred window size of the given panel might need to |
57 // get changed. | 61 // get changed. |
58 void OnPreferredWindowSizeChanged( | 62 void OnPreferredWindowSizeChanged( |
59 Panel* panel, const gfx::Size& preferred_window_size); | 63 Panel* panel, const gfx::Size& preferred_window_size); |
60 | 64 |
61 // Resizes the panel. Explicitly setting the panel size is not allowed | 65 // Resizes the panel. Explicitly setting the panel size is not allowed |
(...skipping 128 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. | 194 // Timer used to track if the current active app is in full screen mode. |
191 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; | 195 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; |
192 | 196 |
193 // True if current active app is in full screen mode. | 197 // True if current active app is in full screen mode. |
194 bool is_full_screen_; | 198 bool is_full_screen_; |
195 | 199 |
196 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 200 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
197 }; | 201 }; |
198 | 202 |
199 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 203 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
OLD | NEW |