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_COLLECTION_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ |
6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ | 6 #define CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <set> | 9 #include <set> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 // num_panels() and panels() only includes panels in the collection that | 99 // num_panels() and panels() only includes panels in the collection that |
100 // do NOT have a temporary layout. | 100 // do NOT have a temporary layout. |
101 int num_panels() const { return panels_.size(); } | 101 int num_panels() const { return panels_.size(); } |
102 const Panels& panels() const { return panels_; } | 102 const Panels& panels() const { return panels_; } |
103 Panel* last_panel() const { return panels_.empty() ? NULL : panels_.back(); } | 103 Panel* last_panel() const { return panels_.empty() ? NULL : panels_.back(); } |
104 | 104 |
105 gfx::Rect work_area() const { return work_area_; } | 105 gfx::Rect work_area() const { return work_area_; } |
106 | 106 |
107 int StartingRightPosition() const; | 107 int StartingRightPosition() const; |
108 | 108 |
109 void OnFullScreenModeChanged(bool is_full_screen); | |
110 | |
111 #ifdef UNIT_TEST | 109 #ifdef UNIT_TEST |
112 int minimized_panel_count() const {return minimized_panel_count_; } | 110 int minimized_panel_count() const {return minimized_panel_count_; } |
113 #endif | 111 #endif |
114 | 112 |
115 private: | 113 private: |
116 friend class DockedPanelDragHandler; | 114 friend class DockedPanelDragHandler; |
117 | 115 |
118 enum TitlebarAction { | 116 enum TitlebarAction { |
119 NO_ACTION, | 117 NO_ACTION, |
120 BRING_UP, | 118 BRING_UP, |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 187 |
190 // Used to save the placement information for a panel. | 188 // Used to save the placement information for a panel. |
191 PanelPlacement saved_panel_placement_; | 189 PanelPlacement saved_panel_placement_; |
192 | 190 |
193 static const int kPanelsHorizontalSpacing = 4; | 191 static const int kPanelsHorizontalSpacing = 4; |
194 | 192 |
195 DISALLOW_COPY_AND_ASSIGN(DockedPanelCollection); | 193 DISALLOW_COPY_AND_ASSIGN(DockedPanelCollection); |
196 }; | 194 }; |
197 | 195 |
198 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ | 196 #endif // CHROME_BROWSER_UI_PANELS_DOCKED_PANEL_COLLECTION_H_ |
OLD | NEW |