| 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 TreatAllPanelsAsMinimized() const OVERRIDE; |
| 55 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; | 56 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; |
| 56 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; | 57 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; |
| 57 virtual void StartDraggingPanel(Panel* panel) OVERRIDE; | 58 virtual void StartDraggingPanel(Panel* panel) OVERRIDE; |
| 58 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE; | 59 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE; |
| 59 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE; | 60 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE; |
| 60 | 61 |
| 61 // Invoked when a panel's expansion state changes. | 62 // Invoked when a panel's expansion state changes. |
| 62 void OnPanelExpansionStateChanged(Panel* panel); | 63 void OnPanelExpansionStateChanged(Panel* panel); |
| 63 | 64 |
| 64 // Returns true if we should bring up the titlebars, given the current mouse | 65 // 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... |
| 170 // Absolute minimum width and height for panels, including non-client area. | 171 // Absolute minimum width and height for panels, including non-client area. |
| 171 // Should only be big enough to accomodate a close button on the reasonably | 172 // Should only be big enough to accomodate a close button on the reasonably |
| 172 // recognisable titlebar. | 173 // recognisable titlebar. |
| 173 static const int kPanelMinWidth; | 174 static const int kPanelMinWidth; |
| 174 static const int kPanelMinHeight; | 175 static const int kPanelMinHeight; |
| 175 | 176 |
| 176 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); | 177 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 180 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
| OLD | NEW |