OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
10 | 10 |
(...skipping 24 matching lines...) Expand all Loading... |
35 public: | 35 public: |
36 enum ExpansionState { | 36 enum ExpansionState { |
37 // The panel is fully expanded with both title-bar and the client-area. | 37 // The panel is fully expanded with both title-bar and the client-area. |
38 EXPANDED, | 38 EXPANDED, |
39 // The panel is shown with the title-bar only. | 39 // The panel is shown with the title-bar only. |
40 TITLE_ONLY, | 40 TITLE_ONLY, |
41 // The panel is shown with 3-pixel line. | 41 // The panel is shown with 3-pixel line. |
42 MINIMIZED | 42 MINIMIZED |
43 }; | 43 }; |
44 | 44 |
45 // The panel can be minimized to 3-pixel lines. | 45 // The panel can be minimized to 4-pixel lines. |
46 static const int kMinimizedPanelHeight = 3; | 46 static const int kMinimizedPanelHeight = 4; |
47 | 47 |
48 virtual ~Panel(); | 48 virtual ~Panel(); |
49 | 49 |
50 // Returns the PanelManager associated with this panel. | 50 // Returns the PanelManager associated with this panel. |
51 PanelManager* manager() const; | 51 PanelManager* manager() const; |
52 | 52 |
53 // Gets the extension that a panel is created from. | 53 // Gets the extension that a panel is created from. |
54 // Returns NULL if it cannot be found. | 54 // Returns NULL if it cannot be found. |
55 const Extension* GetExtension() const; | 55 const Extension* GetExtension() const; |
56 | 56 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 // Stores the full height of the panel so we can restore it after it's | 267 // Stores the full height of the panel so we can restore it after it's |
268 // been minimized. | 268 // been minimized. |
269 int restored_height_; | 269 int restored_height_; |
270 | 270 |
271 content::NotificationRegistrar registrar_; | 271 content::NotificationRegistrar registrar_; |
272 | 272 |
273 DISALLOW_COPY_AND_ASSIGN(Panel); | 273 DISALLOW_COPY_AND_ASSIGN(Panel); |
274 }; | 274 }; |
275 | 275 |
276 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 276 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |