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 14 matching lines...) Expand all Loading... |
25 virtual ~DetachedPanelStrip(); | 25 virtual ~DetachedPanelStrip(); |
26 | 26 |
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) OVERRIDE; | 30 virtual void AddPanel(Panel* panel) OVERRIDE; |
31 virtual bool RemovePanel(Panel* panel) OVERRIDE; | 31 virtual bool RemovePanel(Panel* panel) OVERRIDE; |
32 virtual void CloseAll() OVERRIDE; | 32 virtual void CloseAll() OVERRIDE; |
33 virtual void ResizePanelWindow( | 33 virtual void ResizePanelWindow( |
34 Panel* panel, | 34 Panel* panel, |
35 const gfx::Size& preferred_window_size) OVERRIDE; | 35 const gfx::Size& preferred_window_size, |
| 36 AutoResizeState auto_resize_state) OVERRIDE; |
36 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; | 37 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; |
37 virtual void ActivatePanel(Panel* panel) OVERRIDE; | 38 virtual void ActivatePanel(Panel* panel) OVERRIDE; |
38 virtual void MinimizePanel(Panel* panel) OVERRIDE; | 39 virtual void MinimizePanel(Panel* panel) OVERRIDE; |
39 virtual void RestorePanel(Panel* panel) OVERRIDE; | 40 virtual void RestorePanel(Panel* panel) OVERRIDE; |
40 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; | 41 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; |
41 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; | 42 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; |
42 virtual void StartDraggingPanel(Panel* panel) OVERRIDE; | 43 virtual void StartDraggingPanel(Panel* panel) OVERRIDE; |
43 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE; | 44 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE; |
44 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE; | 45 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE; |
45 | 46 |
46 int num_panels() const { return panels_.size(); } | 47 int num_panels() const { return panels_.size(); } |
47 const Panels& panels() const { return panels_; } | 48 const Panels& panels() const { return panels_; } |
48 | 49 |
49 private: | 50 private: |
50 PanelManager* panel_manager_; // Weak, owns us. | 51 PanelManager* panel_manager_; // Weak, owns us. |
51 | 52 |
52 // All panels in the panel strip must fit within this area. | 53 // All panels in the panel strip must fit within this area. |
53 gfx::Rect display_area_; | 54 gfx::Rect display_area_; |
54 | 55 |
55 // Collection of all panels. | 56 // Collection of all panels. |
56 Panels panels_; | 57 Panels panels_; |
57 | 58 |
58 DISALLOW_COPY_AND_ASSIGN(DetachedPanelStrip); | 59 DISALLOW_COPY_AND_ASSIGN(DetachedPanelStrip); |
59 }; | 60 }; |
60 | 61 |
61 #endif // CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ | 62 #endif // CHROME_BROWSER_UI_PANELS_DETACHED_PANEL_STRIP_H_ |
OLD | NEW |