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

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

Issue 9129013: Panel Overflow on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cr feedback Created 8 years, 10 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
diff --git a/chrome/browser/ui/panels/panel.h b/chrome/browser/ui/panels/panel.h
index 26714f15daaa0ebff05728b7abad1eb44f089218..637ce47057dbfdd1fed9774bfc20aa0786d1ef1d 100644
--- a/chrome/browser/ui/panels/panel.h
+++ b/chrome/browser/ui/panels/panel.h
@@ -18,6 +18,14 @@
class NativePanel;
class PanelManager;
+// Type of the panel strip which currently manages the panel location,
+// visual state and size.
+// TODO(jianli): When we have PanelStrip base class, move it into PanelStrip.
+enum PanelStripType {
+ DOCKED_STRIP,
+ OVERFLOW_STRIP
+};
+
// A platform independent implementation of BrowserWindow for Panels. This
// class would get the first crack at all the BrowserWindow calls for Panels and
// do one or more of the following:
@@ -71,6 +79,10 @@ class Panel : public BrowserWindow,
// top-most windows.
void EnsureFullyVisible();
+ // TODO(jianli): When we can use Panel::currentStrip()->type(), the
+ // 'newPanelStrip' parameter can be removed.
+ void ApplyVisualStyleForStrip(PanelStripType newPanelStrip);
+
int TitleOnlyHeight() const;
// Returns the size of the panel when it is iconified, as shown on the

Powered by Google App Engine
This is Rietveld 408576698