| 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 28 matching lines...) Expand all Loading... |
| 39 // later. | 39 // later. |
| 40 Panel* CreatePanel(Browser* browser); | 40 Panel* CreatePanel(Browser* browser); |
| 41 | 41 |
| 42 // Close all panels (asynchronous). Panels will be removed after closing. | 42 // Close all panels (asynchronous). Panels will be removed after closing. |
| 43 void CloseAll(); | 43 void CloseAll(); |
| 44 | 44 |
| 45 // Asynchronous confirmation of panel having been closed. | 45 // Asynchronous confirmation of panel having been closed. |
| 46 void OnPanelClosed(Panel* panel); | 46 void OnPanelClosed(Panel* panel); |
| 47 | 47 |
| 48 // Drags the given panel. | 48 // Drags the given panel. |
| 49 void StartDragging(Panel* panel); | 49 // |mouse_location| is in screen coordinate system. |
| 50 void Drag(int delta_x, int delta_y); | 50 void StartDragging(Panel* panel, const gfx::Point& mouse_location); |
| 51 void Drag(const gfx::Point& mouse_location); |
| 51 void EndDragging(bool cancelled); | 52 void EndDragging(bool cancelled); |
| 52 | 53 |
| 53 // Invoked when a panel's expansion state changes. | 54 // Invoked when a panel's expansion state changes. |
| 54 void OnPanelExpansionStateChanged(Panel* panel); | 55 void OnPanelExpansionStateChanged(Panel* panel); |
| 55 | 56 |
| 56 // Invoked when the preferred window size of the given panel might need to | 57 // Invoked when the preferred window size of the given panel might need to |
| 57 // get changed. | 58 // get changed. |
| 58 void OnWindowAutoResized(Panel* panel, | 59 void OnWindowAutoResized(Panel* panel, |
| 59 const gfx::Size& preferred_window_size); | 60 const gfx::Size& preferred_window_size); |
| 60 | 61 |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 bool is_full_screen_; | 223 bool is_full_screen_; |
| 223 | 224 |
| 224 // True only while moving panels to overflow. Used to prevent moving panels | 225 // True only while moving panels to overflow. Used to prevent moving panels |
| 225 // out of overflow while in the process of moving panels to overflow. | 226 // out of overflow while in the process of moving panels to overflow. |
| 226 bool is_processing_overflow_; | 227 bool is_processing_overflow_; |
| 227 | 228 |
| 228 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 229 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
| 229 }; | 230 }; |
| 230 | 231 |
| 231 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 232 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
| OLD | NEW |