| 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_PANEL_COLLECTION_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_COLLECTION_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_COLLECTION_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_COLLECTION_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/panels/panel_constants.h" | 8 #include "chrome/browser/ui/panels/panel_constants.h" |
| 9 #include "ui/gfx/point.h" | 9 #include "ui/gfx/geometry/point.h" |
| 10 #include "ui/gfx/rect.h" | 10 #include "ui/gfx/rect.h" |
| 11 | 11 |
| 12 class Panel; | 12 class Panel; |
| 13 | 13 |
| 14 // Common base class for a collection of panels. Subclasses manage | 14 // Common base class for a collection of panels. Subclasses manage |
| 15 // various layouts for displaying panels in the collection. | 15 // various layouts for displaying panels in the collection. |
| 16 class PanelCollection { | 16 class PanelCollection { |
| 17 public: | 17 public: |
| 18 // Types of layout for the panel collections. | 18 // Types of layout for the panel collections. |
| 19 enum Type { | 19 enum Type { |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 const gfx::Rect& requested_bounds) const = 0; | 149 const gfx::Rect& requested_bounds) const = 0; |
| 150 | 150 |
| 151 protected: | 151 protected: |
| 152 explicit PanelCollection(Type type); | 152 explicit PanelCollection(Type type); |
| 153 virtual ~PanelCollection(); | 153 virtual ~PanelCollection(); |
| 154 | 154 |
| 155 const Type type_; // Type of this panel collection. | 155 const Type type_; // Type of this panel collection. |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 #endif // CHROME_BROWSER_UI_PANELS_PANEL_COLLECTION_H_ | 158 #endif // CHROME_BROWSER_UI_PANELS_PANEL_COLLECTION_H_ |
| OLD | NEW |