| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Rearranges the positions of the panels in the strip. | 37 // Rearranges the positions of the panels in the strip. |
| 38 // Handles moving panels to/from overflow area as needed. | 38 // Handles moving panels to/from overflow area as needed. |
| 39 // This is called when the display space has been changed, i.e. working | 39 // This is called when the display space has been changed, i.e. working |
| 40 // area being changed or a panel being closed. | 40 // area being changed or a panel being closed. |
| 41 virtual void RefreshLayout() OVERRIDE; | 41 virtual void RefreshLayout() OVERRIDE; |
| 42 | 42 |
| 43 // Adds a panel to the strip. The panel may be a newly created panel or one | 43 // Adds a panel to the strip. The panel may be a newly created panel or one |
| 44 // that is transitioning from another grouping of panels. | 44 // that is transitioning from another grouping of panels. |
| 45 virtual void AddPanel(Panel* panel) OVERRIDE; | 45 virtual void AddPanel(Panel* panel) OVERRIDE; |
| 46 virtual bool RemovePanel(Panel* panel) OVERRIDE; | 46 virtual void 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 CanShowPanelAsActive(const Panel* panel) const OVERRIDE; | 55 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; |
| 56 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; | 56 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 // Absolute minimum width and height for panels, including non-client area. | 170 // 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 | 171 // Should only be big enough to accomodate a close button on the reasonably |
| 172 // recognisable titlebar. | 172 // recognisable titlebar. |
| 173 static const int kPanelMinWidth; | 173 static const int kPanelMinWidth; |
| 174 static const int kPanelMinHeight; | 174 static const int kPanelMinHeight; |
| 175 | 175 |
| 176 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); | 176 DISALLOW_COPY_AND_ASSIGN(DockedPanelStrip); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ | 179 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_STRIP_H_ |
| OLD | NEW |