OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 | 62 |
63 // Brings up or down the titlebars for all minimized panels. | 63 // Brings up or down the titlebars for all minimized panels. |
64 void BringUpOrDownTitlebars(bool bring_up); | 64 void BringUpOrDownTitlebars(bool bring_up); |
65 | 65 |
66 // Returns the bottom position for the panel per its expansion state. If auto- | 66 // Returns the bottom position for the panel per its expansion state. If auto- |
67 // hide bottom bar is present, we want to move the minimized panel to the | 67 // hide bottom bar is present, we want to move the minimized panel to the |
68 // bottom of the screen, not the bottom of the work area. | 68 // bottom of the screen, not the bottom of the work area. |
69 int GetBottomPositionForExpansionState( | 69 int GetBottomPositionForExpansionState( |
70 Panel::ExpansionState expansion_state) const; | 70 Panel::ExpansionState expansion_state) const; |
71 | 71 |
72 // Returns the next browser window which could be either panel window or | |
73 // tabbed window, to switch to if the given panel is going to be deactivated. | |
74 // Returns NULL if such window cannot be found. | |
75 BrowserWindow* GetNextPanelToActivate(Panel* panel) const; | |
Dmitry Titov
2011/10/07 20:29:15
Naming suggestion: if it may return not only a Pan
jianli
2011/10/07 22:01:54
Renamed to GetNextBrowserWindowToActivate.
| |
76 | |
72 int num_panels() const { return panels_.size(); } | 77 int num_panels() const { return panels_.size(); } |
73 bool is_dragging_panel() const; | 78 bool is_dragging_panel() const; |
74 | 79 |
75 // Overridden from PanelMouseWatcher::Observer: | 80 // Overridden from PanelMouseWatcher::Observer: |
76 virtual void OnMouseMove(const gfx::Point& mouse_position) OVERRIDE; | 81 virtual void OnMouseMove(const gfx::Point& mouse_position) OVERRIDE; |
77 | 82 |
78 #ifdef UNIT_TEST | 83 #ifdef UNIT_TEST |
79 const Panels& panels() const { return panels_; } | 84 const Panels& panels() const { return panels_; } |
80 static int horizontal_spacing() { return kPanelsHorizontalSpacing; } | 85 static int horizontal_spacing() { return kPanelsHorizontalSpacing; } |
81 | 86 |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 // Minimum width and height of a panel. | 225 // Minimum width and height of a panel. |
221 // Note: The minimum size of a widget (see widget.cc) is fixed to 100x100. | 226 // Note: The minimum size of a widget (see widget.cc) is fixed to 100x100. |
222 // TODO(jianli): Need to fix this to support smaller panel. | 227 // TODO(jianli): Need to fix this to support smaller panel. |
223 static const int kPanelMinWidth = 100; | 228 static const int kPanelMinWidth = 100; |
224 static const int kPanelMinHeight = 100; | 229 static const int kPanelMinHeight = 100; |
225 | 230 |
226 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 231 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
227 }; | 232 }; |
228 | 233 |
229 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 234 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
OLD | NEW |