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 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <vector> | 9 #include <vector> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 // Drags the given panel. | 92 // Drags the given panel. |
93 // |mouse_location| is in screen coordinate system. | 93 // |mouse_location| is in screen coordinate system. |
94 void StartDragging(Panel* panel, const gfx::Point& mouse_location); | 94 void StartDragging(Panel* panel, const gfx::Point& mouse_location); |
95 void Drag(const gfx::Point& mouse_location); | 95 void Drag(const gfx::Point& mouse_location); |
96 void EndDragging(bool cancelled); | 96 void EndDragging(bool cancelled); |
97 | 97 |
98 // Resizes the given panel. | 98 // Resizes the given panel. |
99 // |mouse_location| is in screen coordinate system. | 99 // |mouse_location| is in screen coordinate system. |
100 void StartResizingByMouse(Panel* panel, const gfx::Point& mouse_location, | 100 void StartResizingByMouse(Panel* panel, const gfx::Point& mouse_location, |
101 panel::ResizingSides sides); | 101 int component); |
102 void ResizeByMouse(const gfx::Point& mouse_location); | 102 void ResizeByMouse(const gfx::Point& mouse_location); |
103 void EndResizingByMouse(bool cancelled); | 103 void EndResizingByMouse(bool cancelled); |
104 | 104 |
105 // Invoked when a panel's expansion state changes. | 105 // Invoked when a panel's expansion state changes. |
106 void OnPanelExpansionStateChanged(Panel* panel); | 106 void OnPanelExpansionStateChanged(Panel* panel); |
107 | 107 |
108 // Moves the |panel| to a different collection. | 108 // Moves the |panel| to a different collection. |
109 void MovePanelToCollection(Panel* panel, | 109 void MovePanelToCollection(Panel* panel, |
110 PanelCollection* target_collection, | 110 PanelCollection* target_collection, |
111 PanelCollection::PositioningMask positioning_mask); | 111 PanelCollection::PositioningMask positioning_mask); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 234 |
235 // Whether or not bounds will be updated when the preferred content size is | 235 // Whether or not bounds will be updated when the preferred content size is |
236 // changed. The testing code could set this flag to false so that other tests | 236 // changed. The testing code could set this flag to false so that other tests |
237 // will not be affected. | 237 // will not be affected. |
238 bool auto_sizing_enabled_; | 238 bool auto_sizing_enabled_; |
239 | 239 |
240 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 240 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
241 }; | 241 }; |
242 | 242 |
243 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 243 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
OLD | NEW |