| 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 27 matching lines...) Expand all Loading... |
| 38 // later. | 38 // later. |
| 39 Panel* CreatePanel(Browser* browser); | 39 Panel* CreatePanel(Browser* browser); |
| 40 | 40 |
| 41 // Close all panels (asynchronous). Panels will be removed after closing. | 41 // Close all panels (asynchronous). Panels will be removed after closing. |
| 42 void CloseAll(); | 42 void CloseAll(); |
| 43 | 43 |
| 44 // Asynchronous confirmation of panel having been closed. | 44 // Asynchronous confirmation of panel having been closed. |
| 45 void OnPanelClosed(Panel* panel); | 45 void OnPanelClosed(Panel* panel); |
| 46 | 46 |
| 47 // Drags the given panel. | 47 // Drags the given panel. |
| 48 void StartDragging(Panel* panel); | 48 // |mouse_location| is in screen coordinate system. |
| 49 void Drag(int delta_x, int delta_y); | 49 void StartDragging(Panel* panel, const gfx::Point& mouse_location); |
| 50 void Drag(const gfx::Point& mouse_location); |
| 50 void EndDragging(bool cancelled); | 51 void EndDragging(bool cancelled); |
| 51 | 52 |
| 52 // Invoked when a panel's expansion state changes. | 53 // Invoked when a panel's expansion state changes. |
| 53 void OnPanelExpansionStateChanged(Panel* panel); | 54 void OnPanelExpansionStateChanged(Panel* panel); |
| 54 | 55 |
| 55 // Invoked when the preferred window size of the given panel might need to | 56 // Invoked when the preferred window size of the given panel might need to |
| 56 // get changed. | 57 // get changed. |
| 57 void OnPreferredWindowSizeChanged( | 58 void OnPreferredWindowSizeChanged( |
| 58 Panel* panel, const gfx::Size& preferred_window_size); | 59 Panel* panel, const gfx::Size& preferred_window_size); |
| 59 | 60 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // Timer used to track if the current active app is in full screen mode. | 204 // Timer used to track if the current active app is in full screen mode. |
| 204 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; | 205 base::RepeatingTimer<PanelManager> full_screen_mode_timer_; |
| 205 | 206 |
| 206 // True if current active app is in full screen mode. | 207 // True if current active app is in full screen mode. |
| 207 bool is_full_screen_; | 208 bool is_full_screen_; |
| 208 | 209 |
| 209 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 210 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
| 210 }; | 211 }; |
| 211 | 212 |
| 212 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 213 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
| OLD | NEW |