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_OVERFLOW_PANEL_STRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_ |
6 #define CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_ | 6 #define CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 #include "chrome/browser/ui/panels/panel.h" | 10 #include "chrome/browser/ui/panels/panel.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 virtual void AddPanel(Panel* panel) OVERRIDE; | 35 virtual void AddPanel(Panel* panel) OVERRIDE; |
36 virtual bool RemovePanel(Panel* panel) OVERRIDE; | 36 virtual bool RemovePanel(Panel* panel) OVERRIDE; |
37 virtual void CloseAll() OVERRIDE; | 37 virtual void CloseAll() OVERRIDE; |
38 virtual void ResizePanelWindow( | 38 virtual void ResizePanelWindow( |
39 Panel* panel, | 39 Panel* panel, |
40 const gfx::Size& preferred_window_size) OVERRIDE; | 40 const gfx::Size& preferred_window_size) OVERRIDE; |
41 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; | 41 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; |
42 virtual void ActivatePanel(Panel* panel) OVERRIDE; | 42 virtual void ActivatePanel(Panel* panel) OVERRIDE; |
43 virtual void MinimizePanel(Panel* panel) OVERRIDE; | 43 virtual void MinimizePanel(Panel* panel) OVERRIDE; |
44 virtual void RestorePanel(Panel* panel) OVERRIDE; | 44 virtual void RestorePanel(Panel* panel) OVERRIDE; |
| 45 virtual bool CanDragPanel(const Panel* panel) const OVERRIDE; |
| 46 virtual void StartDraggingPanel(Panel* panel) OVERRIDE; |
| 47 virtual void DragPanel(Panel* panel, int delta_x, int delta_y) OVERRIDE; |
| 48 virtual void EndDraggingPanel(Panel* panel, bool cancelled) OVERRIDE; |
45 | 49 |
46 void OnFullScreenModeChanged(bool is_full_screen); | 50 void OnFullScreenModeChanged(bool is_full_screen); |
47 | 51 |
48 int num_panels() const { return static_cast<int>(panels_.size()); } | 52 int num_panels() const { return static_cast<int>(panels_.size()); } |
49 Panel* first_panel() const { | 53 Panel* first_panel() const { |
50 return panels_.empty() ? NULL : panels_.front(); | 54 return panels_.empty() ? NULL : panels_.front(); |
51 } | 55 } |
52 const Panels& panels() const { return panels_; } | 56 const Panels& panels() const { return panels_; } |
53 | 57 |
54 #ifdef UNIT_TEST | 58 #ifdef UNIT_TEST |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 int overflow_hover_animator_start_width_; | 140 int overflow_hover_animator_start_width_; |
137 int overflow_hover_animator_end_width_; | 141 int overflow_hover_animator_end_width_; |
138 | 142 |
139 // Invalid panel index. | 143 // Invalid panel index. |
140 static const size_t kInvalidPanelIndex = static_cast<size_t>(-1); | 144 static const size_t kInvalidPanelIndex = static_cast<size_t>(-1); |
141 | 145 |
142 DISALLOW_COPY_AND_ASSIGN(OverflowPanelStrip); | 146 DISALLOW_COPY_AND_ASSIGN(OverflowPanelStrip); |
143 }; | 147 }; |
144 | 148 |
145 #endif // CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_ | 149 #endif // CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_ |
OLD | NEW |