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_DOCKED_PANEL_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 // Adds a panel to the strip. The panel may be a newly created panel or one | 44 // Adds a panel to the strip. The panel may be a newly created panel or one |
45 // that is transitioning from another grouping of panels. | 45 // that is transitioning from another grouping of panels. |
46 virtual void AddPanel(Panel* panel, | 46 virtual void AddPanel(Panel* panel, |
47 PositioningMask positioning_mask) OVERRIDE; | 47 PositioningMask positioning_mask) OVERRIDE; |
48 virtual void RemovePanel(Panel* panel) OVERRIDE; | 48 virtual void RemovePanel(Panel* panel) OVERRIDE; |
49 virtual void CloseAll() OVERRIDE; | 49 virtual void CloseAll() OVERRIDE; |
50 virtual void ResizePanelWindow( | 50 virtual void ResizePanelWindow( |
51 Panel* panel, | 51 Panel* panel, |
52 const gfx::Size& preferred_window_size) OVERRIDE; | 52 const gfx::Size& preferred_window_size) OVERRIDE; |
53 virtual bool CanResizePanel(const Panel* panel) const OVERRIDE; | 53 virtual panel::Resizability GetPanelResizability( |
| 54 const Panel* panel) const OVERRIDE; |
54 virtual void OnPanelResizedByMouse(Panel* panel, | 55 virtual void OnPanelResizedByMouse(Panel* panel, |
55 const gfx::Rect& new_bounds) OVERRIDE; | 56 const gfx::Rect& new_bounds) OVERRIDE; |
56 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; | 57 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; |
57 virtual void OnPanelTitlebarClicked(Panel* panel, | 58 virtual void OnPanelTitlebarClicked(Panel* panel, |
58 panel::ClickModifier modifier) OVERRIDE; | 59 panel::ClickModifier modifier) OVERRIDE; |
59 virtual void ActivatePanel(Panel* panel) OVERRIDE; | 60 virtual void ActivatePanel(Panel* panel) OVERRIDE; |
60 virtual void MinimizePanel(Panel* panel) OVERRIDE; | 61 virtual void MinimizePanel(Panel* panel) OVERRIDE; |
61 virtual void RestorePanel(Panel* panel) OVERRIDE; | 62 virtual void RestorePanel(Panel* panel) OVERRIDE; |
62 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; | 63 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; |
63 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; | 64 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // Absolute minimum width and height for panels, including non-client area. | 213 // Absolute minimum width and height for panels, including non-client area. |
213 // Should only be big enough to accomodate a close button on the reasonably | 214 // Should only be big enough to accomodate a close button on the reasonably |
214 // recognisable titlebar. | 215 // recognisable titlebar. |
215 static const int kPanelMinWidth; | 216 static const int kPanelMinWidth; |
216 static const int kPanelMinHeight; | 217 static const int kPanelMinHeight; |
217 | 218 |
218 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); | 219 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); |
219 }; | 220 }; |
220 | 221 |
221 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 222 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
OLD | NEW |