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

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

Issue 8681025: Add methods needed for overflow panels to NativePanel interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698