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 21 matching lines...) Expand all Loading... |
32 class Panel : public BrowserWindow, | 32 class Panel : public BrowserWindow, |
33 public TabStripModelObserver, | 33 public TabStripModelObserver, |
34 public content::NotificationObserver { | 34 public content::NotificationObserver { |
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 // The panel is put into the overflow area due to no space available in the |
| 44 // normal display area. |
| 45 IN_OVERFLOW |
43 }; | 46 }; |
44 | 47 |
45 // The panel can be minimized to 4-pixel lines. | 48 // The panel can be minimized to 4-pixel lines. |
46 static const int kMinimizedPanelHeight = 4; | 49 static const int kMinimizedPanelHeight = 4; |
47 | 50 |
48 virtual ~Panel(); | 51 virtual ~Panel(); |
49 | 52 |
50 // Returns the PanelManager associated with this panel. | 53 // Returns the PanelManager associated with this panel. |
51 PanelManager* manager() const; | 54 PanelManager* manager() const; |
52 | 55 |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 NativePanel* native_panel_; // Weak, owns us. | 278 NativePanel* native_panel_; // Weak, owns us. |
276 | 279 |
277 ExpansionState expansion_state_; | 280 ExpansionState expansion_state_; |
278 | 281 |
279 content::NotificationRegistrar registrar_; | 282 content::NotificationRegistrar registrar_; |
280 | 283 |
281 DISALLOW_COPY_AND_ASSIGN(Panel); | 284 DISALLOW_COPY_AND_ASSIGN(Panel); |
282 }; | 285 }; |
283 | 286 |
284 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 287 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |