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_DETACHED_PANEL_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ |
6 #define CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ | 6 #define CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // PanelStrip OVERRIDES: | 27 // PanelStrip OVERRIDES: |
28 virtual void SetDisplayArea(const gfx::Rect& display_area) OVERRIDE; | 28 virtual void SetDisplayArea(const gfx::Rect& display_area) OVERRIDE; |
29 virtual void RefreshLayout() OVERRIDE; | 29 virtual void RefreshLayout() OVERRIDE; |
30 virtual void AddPanel(Panel* panel, | 30 virtual void AddPanel(Panel* panel, |
31 PositioningMask positioning_mask) OVERRIDE; | 31 PositioningMask positioning_mask) OVERRIDE; |
32 virtual void RemovePanel(Panel* panel) OVERRIDE; | 32 virtual void RemovePanel(Panel* panel) OVERRIDE; |
33 virtual void CloseAll() OVERRIDE; | 33 virtual void CloseAll() OVERRIDE; |
34 virtual void ResizePanelWindow( | 34 virtual void ResizePanelWindow( |
35 Panel* panel, | 35 Panel* panel, |
36 const gfx::Size& preferred_window_size) OVERRIDE; | 36 const gfx::Size& preferred_window_size) OVERRIDE; |
37 virtual bool CanResizePanel(const Panel* panel) const OVERRIDE; | 37 virtual panel::Resizability GetPanelResizability( |
| 38 const Panel* panel) const OVERRIDE; |
38 virtual void OnPanelResizedByMouse(Panel* panel, | 39 virtual void OnPanelResizedByMouse(Panel* panel, |
39 const gfx::Rect& new_bounds) OVERRIDE; | 40 const gfx::Rect& new_bounds) OVERRIDE; |
40 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; | 41 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; |
41 virtual void OnPanelTitlebarClicked(Panel* panel, | 42 virtual void OnPanelTitlebarClicked(Panel* panel, |
42 panel::ClickModifier modifier) OVERRIDE; | 43 panel::ClickModifier modifier) OVERRIDE; |
43 virtual void ActivatePanel(Panel* panel) OVERRIDE; | 44 virtual void ActivatePanel(Panel* panel) OVERRIDE; |
44 virtual void MinimizePanel(Panel* panel) OVERRIDE; | 45 virtual void MinimizePanel(Panel* panel) OVERRIDE; |
45 virtual void RestorePanel(Panel* panel) OVERRIDE; | 46 virtual void RestorePanel(Panel* panel) OVERRIDE; |
46 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; | 47 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; |
47 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; | 48 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 // Collection of all panels. | 80 // Collection of all panels. |
80 Panels panels_; | 81 Panels panels_; |
81 | 82 |
82 // Used to save the placement information for a panel. | 83 // Used to save the placement information for a panel. |
83 PanelPlacement saved_panel_placement_; | 84 PanelPlacement saved_panel_placement_; |
84 | 85 |
85 DISALLOW_COPY_AND_ASSIGN(DetachedPanelStrip); | 86 DISALLOW_COPY_AND_ASSIGN(DetachedPanelStrip); |
86 }; | 87 }; |
87 | 88 |
88 #endif // CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ | 89 #endif // CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ |
OLD | NEW |