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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // 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 |
58 // get changed. | 58 // get changed. |
59 void OnWindowAutoResized(Panel* panel, | 59 void OnWindowAutoResized(Panel* panel, |
60 const gfx::Size& preferred_window_size); | 60 const gfx::Size& preferred_window_size); |
61 | 61 |
62 // Resizes the panel. Explicitly setting the panel size is not allowed | 62 // Resizes the panel. Explicitly setting the panel size is not allowed |
63 // for panels that are auto-sized. | 63 // for panels that are auto-sized. |
64 void ResizePanel(Panel* panel, const gfx::Size& new_size); | 64 void ResizePanel(Panel* panel, const gfx::Size& new_size); |
65 | 65 |
66 // Moves the |panel| to a different type of panel strip. | 66 // Moves the |panel| to a different type of panel strip. |
67 void MovePanelToStrip(Panel* panel, PanelStrip::Type new_layout); | 67 void MovePanelToStrip(Panel* panel, |
| 68 PanelStrip::Type new_layout, |
| 69 PanelStrip::PositioningMask positioning_mask); |
68 | 70 |
69 // Move all panels up to, and including, the |last_panel_to_move| to overflow. | 71 // Move all panels up to, and including, the |last_panel_to_move| to overflow. |
70 void MovePanelsToOverflow(Panel* last_panel_to_move); | 72 void MovePanelsToOverflow(Panel* last_panel_to_move); |
71 | 73 |
72 // Moves as many panels out of overflow as space allows. | 74 // Moves as many panels out of overflow as space allows. |
73 void MovePanelsOutOfOverflowIfCanFit(); | 75 void MovePanelsOutOfOverflowIfCanFit(); |
74 | 76 |
75 // Returns true if we should bring up the titlebars, given the current mouse | 77 // Returns true if we should bring up the titlebars, given the current mouse |
76 // point. | 78 // point. |
77 bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const; | 79 bool ShouldBringUpTitlebars(int mouse_x, int mouse_y) const; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 bool is_full_screen_; | 217 bool is_full_screen_; |
216 | 218 |
217 // True only while moving panels to overflow. Used to prevent moving panels | 219 // True only while moving panels to overflow. Used to prevent moving panels |
218 // out of overflow while in the process of moving panels to overflow. | 220 // out of overflow while in the process of moving panels to overflow. |
219 bool is_processing_overflow_; | 221 bool is_processing_overflow_; |
220 | 222 |
221 DISALLOW_COPY_AND_ASSIGN(PanelManager); | 223 DISALLOW_COPY_AND_ASSIGN(PanelManager); |
222 }; | 224 }; |
223 | 225 |
224 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ | 226 #endif // CHROME_BROWSER_UI_PANELS_PANEL_MANAGER_H_ |
OLD | NEW |