Index: chrome/browser/ui/panels/native_panel.h |
diff --git a/chrome/browser/ui/panels/native_panel.h b/chrome/browser/ui/panels/native_panel.h |
index 4d1581d81b2273b86d9e09523001176f5c693616..8a0a26b61db06e80c8c32690a171ea47978c9fb9 100644 |
--- a/chrome/browser/ui/panels/native_panel.h |
+++ b/chrome/browser/ui/panels/native_panel.h |
@@ -32,6 +32,11 @@ class NativePanel { |
friend class PanelBrowserTest; |
protected: |
+ enum PanelIconState { |
+ SHOW_ICON_IN_DESKTOP_BAR, |
+ HIDE_ICON_IN_DESKTOP_BAR |
+ }; |
+ |
virtual ~NativePanel() {} |
virtual void ShowPanel() = 0; |
@@ -70,6 +75,17 @@ class NativePanel { |
const gfx::Size& window_size) const = 0; |
virtual int TitleOnlyHeight() const = 0; |
+ |
+ // Returns the size of the iconified panel. This is the size we use to draw |
+ // the panel put in the overflow area. |
+ virtual gfx::Size GetIconifiedPanelSize() const = 0; |
jennb
2011/11/24 01:16:28
Is this the size when not hovering on the overflow
jianli
2011/11/24 01:47:10
This method only intends to return platform-specif
|
+ |
+ // Brings the panel to the top of the z-order without activating it. This |
+ // will make sure that the panel is not obscured by other top-most windows. |
+ virtual void EnsurePanelFullyVisible() = 0; |
+ |
+ // Controls if the panel icon should appear in the taskbar or the dock. |
jennb
2011/11/24 01:16:28
Does this concept apply to Mac? If not, then just
jianli
2011/11/24 01:47:10
Yes.
|
+ virtual void UpdatePanelIconInDesktopBar(PanelIconState state) = 0; |
}; |
// A NativePanel utility interface used for accessing elements of the |