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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual void AddPanel(Panel* panel) OVERRIDE; | 45 virtual void AddPanel(Panel* panel) OVERRIDE; |
46 virtual bool RemovePanel(Panel* panel) OVERRIDE; | 46 virtual bool RemovePanel(Panel* panel) OVERRIDE; |
47 virtual void CloseAll() OVERRIDE; | 47 virtual void CloseAll() OVERRIDE; |
48 virtual void ResizePanelWindow( | 48 virtual void ResizePanelWindow( |
49 Panel* panel, | 49 Panel* panel, |
50 const gfx::Size& preferred_window_size) OVERRIDE; | 50 const gfx::Size& preferred_window_size) OVERRIDE; |
51 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; | 51 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; |
52 virtual void ActivatePanel(Panel* panel) OVERRIDE; | 52 virtual void ActivatePanel(Panel* panel) OVERRIDE; |
53 virtual void MinimizePanel(Panel* panel) OVERRIDE; | 53 virtual void MinimizePanel(Panel* panel) OVERRIDE; |
54 virtual void RestorePanel(Panel* panel) OVERRIDE; | 54 virtual void RestorePanel(Panel* panel) OVERRIDE; |
55 virtual bool IsPanelMinimized(Panel* panel) const OVERRIDE; | |
56 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; | 55 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; |
57 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; | 56 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; |
58 virtual void StartDraggingPanel(Panel* panel) OVERRIDE; | 57 virtual void StartDraggingPanel(Panel* panel) OVERRIDE; |
59 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE; | 58 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE; |
60 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE; | 59 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE; |
61 | 60 |
62 // Invoked when a panel's expansion state changes. | 61 // Invoked when a panel's expansion state changes. |
63 void OnPanelExpansionStateChanged(Panel* panel); | 62 void OnPanelExpansionStateChanged(Panel* panel); |
64 | 63 |
65 // Returns true if we should bring up the titlebars, given the current mouse | 64 // Returns true if we should bring up the titlebars, given the current mouse |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Absolute minimum width and height for panels, including non-client area. | 170 // Absolute minimum width and height for panels, including non-client area. |
172 // Should only be big enough to accomodate a close button on the reasonably | 171 // Should only be big enough to accomodate a close button on the reasonably |
173 // recognisable titlebar. | 172 // recognisable titlebar. |
174 static const int kPanelMinWidth; | 173 static const int kPanelMinWidth; |
175 static const int kPanelMinHeight; | 174 static const int kPanelMinHeight; |
176 | 175 |
177 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); | 176 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); |
178 }; | 177 }; |
179 | 178 |
180 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 179 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
OLD | NEW |