Chromium Code Reviews| Index: chrome/browser/ui/panels/panel.h |
| =================================================================== |
| --- chrome/browser/ui/panels/panel.h (revision 90982) |
| +++ chrome/browser/ui/panels/panel.h (working copy) |
| @@ -26,14 +26,24 @@ |
| // other Panels. For example deleting a panel would rearrange other panels. |
| class Panel : public BrowserWindow { |
| public: |
| + enum ExpansionState { |
| + // The panel is in fully expanded with both title-bar and the client-area. |
|
jennb
2011/06/30 17:33:31
s/is in/is
jianli
2011/06/30 18:22:36
Done.
|
| + EXPANDED, |
| + // The panel is shown with the title-bar only. |
| + TITLE_ONLY, |
| + // The panel is shown with 3-pxiel line. |
| + MINIMIZED |
| + }; |
| + |
| virtual ~Panel(); |
| // Returns the PanelManager associated with this panel. |
| PanelManager* manager() const; |
| - void Minimize(); |
| - void Restore(); |
| + void SetExpansionState(ExpansionState expansion_state); |
| + bool ShouldBringUpTitleBar(int mouse_x, int mouse_y) const; |
| + |
| // BrowserWindow overrides. |
| virtual void Show() OVERRIDE; |
| virtual void ShowInactive() OVERRIDE; |
| @@ -144,6 +154,8 @@ |
| NativePanel* native_panel() { return native_panel_; } |
| #endif |
| + ExpansionState expansion_state() const { return expansion_state_; } |
| + |
| protected: |
| virtual void DestroyBrowser() OVERRIDE; |
| @@ -163,6 +175,8 @@ |
| // PanelBrowserWindowGtk/PanelBrowserView/PanelBrowserWindowCocoa. |
| NativePanel* native_panel_; // Weak, owns us. |
| + ExpansionState expansion_state_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(Panel); |
| }; |