Chromium Code Reviews| Index: chrome/browser/ui/panels/panel_browser_view.h |
| diff --git a/chrome/browser/ui/panels/panel_browser_view.h b/chrome/browser/ui/panels/panel_browser_view.h |
| index 58892c80d4680a62a833566ab4cd261893795186..d3e2bddaf37eba9eeb56dff34eb246a553a4cd47 100644 |
| --- a/chrome/browser/ui/panels/panel_browser_view.h |
| +++ b/chrome/browser/ui/panels/panel_browser_view.h |
| @@ -19,6 +19,10 @@ class NativePanelTestingWin; |
| class Panel; |
| class PanelBoundsAnimation; |
| class PanelBrowserFrameView; |
| +class TaskbarWindowThumbnailerWin; |
| +namespace ui { |
| +class HWNDSubclass; |
| +} |
| // A browser view that implements Panel specific behavior. |
| class PanelBrowserView : public BrowserView, |
| @@ -32,6 +36,9 @@ class PanelBrowserView : public BrowserView, |
| Panel* panel() const { return panel_.get(); } |
| bool closed() const { return closed_; } |
| bool focused() const { return focused_; } |
| + bool force_to_paint_as_inactive() const { |
| + return force_to_paint_as_inactive_; |
| + } |
| PanelBrowserFrameView* GetFrameView() const; |
| @@ -125,6 +132,9 @@ class PanelBrowserView : public BrowserView, |
| virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; |
| virtual void EnableResizeByMouse(bool enable) OVERRIDE; |
| virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; |
| + virtual void PanelExpansionStateChanging( |
| + Panel::ExpansionState old_state, |
| + Panel::ExpansionState new_state) OVERRIDE; |
| // Overridden from AnimationDelegate: |
| virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; |
| @@ -175,12 +185,21 @@ class PanelBrowserView : public BrowserView, |
| // Is the panel in highlighted state to draw people's attention? |
| bool is_drawing_attention_; |
| + // Should we force to paint the panel as inactive? This is needed when we need |
| + // to capture the screenshot before an active panel goes minimized. |
| + bool force_to_paint_as_inactive_; |
| + |
| // The last view that had focus in the panel. This is saved so that focus can |
| // be restored properly when a drag ends. |
| views::View* old_focused_view_; |
| content::NotificationRegistrar registrar_; |
| +#if defined(OS_WIN) && !defined(USE_AURA) |
|
Ben Goodger (Google)
2012/05/22 23:05:48
USE_ASH, methinks.
jianli
2012/05/22 23:34:04
Done.
|
| + // Used to provide custom taskbar thumbnail for Windows 7 and later. |
| + scoped_ptr<ui::HWNDSubclass> thumbnail_subclass_; |
| +#endif |
| + |
| DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| }; |