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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 NativePanel* native_panel_; // Weak, owns us. | 275 NativePanel* native_panel_; // Weak, owns us. |
276 | 276 |
277 ExpansionState expansion_state_; | 277 ExpansionState expansion_state_; |
278 | 278 |
279 content::NotificationRegistrar registrar_; | 279 content::NotificationRegistrar registrar_; |
280 | 280 |
281 DISALLOW_COPY_AND_ASSIGN(Panel); | 281 DISALLOW_COPY_AND_ASSIGN(Panel); |
282 }; | 282 }; |
283 | 283 |
284 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 284 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |