Chromium Code Reviews| 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 { |
|
jennb
2011/11/28 19:02:01
Would it violate coding style to move this enum ri
|
| + SHOW_ICON_IN_DESKTOP_BAR, |
| + HIDE_ICON_IN_DESKTOP_BAR |
| + }; |
|
prasadt
2011/11/24 03:37:19
This doesn't apply to Linux as panels don't have p
|
| + |
| 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; |
|
prasadt
2011/11/24 03:37:19
When I see iconfiy, minimizing to task bar is what
jennb
2011/11/28 19:02:01
Consider determining the size based on what you ne
Dmitry Titov
2011/11/30 23:27:01
It seems we need this method for the same reason a
|
| + |
| + // 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; |
|
Dmitry Titov
2011/11/24 02:21:48
BringToTopWithoutActivation?
|
| + |
| + // Controls if the panel icon should appear in the taskbar or the dock. |
|
Dmitry Titov
2011/11/24 02:21:48
I wonder how we would implement this... Is it poss
Dmitry Titov
2011/11/30 23:27:01
I have an idea about it - you seem to need this me
|
| + virtual void UpdatePanelIconInDesktopBar(PanelIconState state) = 0; |
|
prasadt
2011/11/24 03:37:19
Same comment as for PanelIconState.
Appearance/di
|
| }; |
| // A NativePanel utility interface used for accessing elements of the |