Chromium Code Reviews| Index: chrome/browser/ui/panels/panel_browser_window_gtk.h |
| diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.h b/chrome/browser/ui/panels/panel_browser_window_gtk.h |
| index 99bd907bb9d9d59e24bad2dc09487080a9593e41..79c1ce4da3a8b3f7503faa307f6c2b6e392df135 100644 |
| --- a/chrome/browser/ui/panels/panel_browser_window_gtk.h |
| +++ b/chrome/browser/ui/panels/panel_browser_window_gtk.h |
| @@ -13,29 +13,42 @@ |
| class Panel; |
| class PanelBoundsAnimation; |
| +class PanelBrowserTitlebarGtk; |
| class PanelDragGtk; |
| class NativePanelTestingGtk; |
| +namespace gfx { |
| +class Image; |
| +} |
| + |
| class PanelBrowserWindowGtk : public BrowserWindowGtk, |
| public NativePanel, |
| public ui::AnimationDelegate { |
| public: |
| + enum PaintState { |
| + PAINT_AS_INACTIVE, |
| + PAINT_AS_ACTIVE, |
|
jennb
2012/04/27 20:37:24
nit: alpha order?
jianli
2012/04/27 20:44:24
Done.
|
| + PAINT_FOR_ATTENTION |
| + }; |
| + |
| PanelBrowserWindowGtk(Browser* browser, Panel* panel, |
| const gfx::Rect& bounds); |
| virtual ~PanelBrowserWindowGtk(); |
| // BrowserWindowGtk override |
| virtual void Init() OVERRIDE; |
| + virtual bool ShouldDrawContentDropShadow() const; |
| // BrowserWindow overrides |
| virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; |
| - virtual TitleDecoration GetWindowTitle(std::string* title) const OVERRIDE; |
| // Overrides BrowserWindowGtk::NotificationObserver::Observe |
| virtual void Observe(int type, |
| const content::NotificationSource& source, |
| const content::NotificationDetails& details) OVERRIDE; |
| + PaintState GetPaintState() const; |
| + |
| Panel* panel() const { return panel_.get(); } |
| protected: |
| @@ -52,7 +65,8 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk, |
| GdkEventButton* event) OVERRIDE; |
| virtual void SaveWindowPosition() OVERRIDE; |
| virtual void SetGeometryHints() OVERRIDE; |
| - virtual bool UseCustomFrame() OVERRIDE; |
| + virtual bool UseCustomFrame() const OVERRIDE; |
| + virtual bool UsingCustomPopupFrame() const OVERRIDE; |
| virtual void OnSizeChanged(int width, int height) OVERRIDE; |
| virtual void DrawCustomFrame(cairo_t* cr, GtkWidget* widget, |
| GdkEventExpose* event) OVERRIDE; |
| @@ -96,7 +110,6 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk, |
| virtual gfx::Size ContentSizeFromWindowSize( |
| const gfx::Size& window_size) const OVERRIDE; |
| virtual int TitleOnlyHeight() const OVERRIDE; |
| - virtual gfx::Size IconOnlySize() const OVERRIDE; |
| virtual void EnsurePanelFullyVisible() OVERRIDE; |
| virtual void SetPanelAppIconVisibility(bool visible) OVERRIDE; |
| virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
| @@ -118,9 +131,9 @@ class PanelBrowserWindowGtk : public BrowserWindowGtk, |
| void SetBoundsInternal(const gfx::Rect& bounds, bool animate); |
| - void DrawAttentionFrame(cairo_t* cr, GtkWidget* widget, |
| - GdkEventExpose* event); |
| - GdkRectangle GetTitlebarRectForDrawAttention() const; |
| + PanelBrowserTitlebarGtk* GetPanelTitlebar() const; |
| + |
| + const gfx::Image* GetFrameTheme() const; |
| CHROMEGTK_CALLBACK_1(PanelBrowserWindowGtk, gboolean, |
| OnTitlebarButtonReleaseEvent, GdkEventButton*); |