Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(707)

Unified Diff: chrome/browser/ui/panels/panel.h

Issue 7242017: Support minimizing the panel into 3-pixel line on Windows. Also support bringing up/down the titl... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
};

Powered by Google App Engine
This is Rietveld 408576698