Index: chrome/browser/ui/panels/panel.h |
diff --git a/chrome/browser/ui/panels/panel.h b/chrome/browser/ui/panels/panel.h |
index 6a78d4d2cbfae750d31a7b1c9065c32bfb183f5d..2f89aa111e26db487931868aa6d765c2037401b4 100644 |
--- a/chrome/browser/ui/panels/panel.h |
+++ b/chrome/browser/ui/panels/panel.h |
@@ -32,16 +32,23 @@ class Panel : public BrowserWindow, |
public TabStripModelObserver, |
public content::NotificationObserver { |
public: |
+ enum LayoutState { |
+ // The panel is docked to the bottom of the screen. |
+ DOCKED, |
+ // The panel can appear anywhere on the screen. |
+ DETACHED, |
+ // The panel is put into the overflow area due to insufficient space in the |
+ // docked display area. |
+ IN_OVERFLOW |
+ }; |
+ |
enum ExpansionState { |
- // The panel is fully expanded with both title-bar and the client-area. |
- EXPANDED, |
- // The panel is shown with the title-bar only. |
- TITLE_ONLY, |
- // The panel is shown with 3-pixel line. |
- MINIMIZED, |
- // The panel is put into the overflow area due to no space available in the |
- // normal display area. |
- IN_OVERFLOW |
+ // The panel is fully expanded with both title-bar and the client-area. |
+ EXPANDED, |
+ // The panel is shown with the title-bar only. |
+ TITLE_ONLY, |
+ // The panel is shown with 3-pixel line. |
+ MINIMIZED |
}; |
// The panel can be minimized to 4-pixel lines. |
@@ -56,6 +63,7 @@ class Panel : public BrowserWindow, |
// Returns NULL if it cannot be found. |
const Extension* GetExtension() const; |
+ void SetLayoutState(LayoutState new_layout_state); |
void SetExpansionState(ExpansionState new_expansion_state); |
bool IsDrawingAttention() const; |
@@ -218,8 +226,8 @@ class Panel : public BrowserWindow, |
NativePanel* native_panel() { return native_panel_; } |
Browser* browser() const { return browser_; } |
+ LayoutState layout_state() const { return layout_state_; } |
ExpansionState expansion_state() const { return expansion_state_; } |
- ExpansionState old_expansion_state() const { return old_expansion_state_; } |
const gfx::Size& min_size() const { return min_size_; } |
const gfx::Size& max_size() const { return max_size_; } |
bool auto_resizable() const { return auto_resizable_; } |
@@ -310,8 +318,8 @@ class Panel : public BrowserWindow, |
// PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. |
NativePanel* native_panel_; // Weak, owns us. |
+ LayoutState layout_state_; |
ExpansionState expansion_state_; |
- ExpansionState old_expansion_state_; |
// Indicates whether the panel app icon is visible in the taskbar. |
bool app_icon_visible_; |