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

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

Issue 7104067: Make PanelBrowserView derive from NativePanel. Also add some more methods to NativePanel. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months 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 | « chrome/browser/ui/panels/native_panel.h ('k') | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/panel_browser_view.h
===================================================================
--- chrome/browser/ui/panels/panel_browser_view.h (revision 88351)
+++ chrome/browser/ui/panels/panel_browser_view.h (working copy)
@@ -8,6 +8,7 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/ui/panels/native_panel.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "ui/base/animation/animation_delegate.h"
@@ -19,7 +20,8 @@
}
// A browser view that implements Panel specific behavior.
-class PanelBrowserView : public ::BrowserView,
+class PanelBrowserView : public BrowserView,
+ public NativePanel,
public ui::AnimationDelegate {
public:
PanelBrowserView(Browser* browser, Panel* panel);
@@ -56,6 +58,22 @@
virtual void OnWorkAreaChanged() OVERRIDE;
virtual bool WillProcessWorkAreaChange() const OVERRIDE;
+ // Overridden from NativePanel:
+ virtual void ShowPanel() OVERRIDE;
+ virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE;
+ virtual void MinimizePanel() OVERRIDE;
+ virtual void RestorePanel() OVERRIDE;
+ virtual void ClosePanel() OVERRIDE;
+ virtual void ActivatePanel() OVERRIDE;
+ virtual void DeactivatePanel() OVERRIDE;
+ virtual bool IsPanelActive() const OVERRIDE;
+ virtual gfx::NativeWindow GetNativePanelHandle() OVERRIDE;
+ virtual void UpdatePanelTitleBar() OVERRIDE;
+ virtual void ShowTaskManagerForPanel() OVERRIDE;
+ virtual void NotifyPanelOnUserChangedTheme() OVERRIDE;
+ virtual void FlashPanelFrame() OVERRIDE;
+ virtual void DestroyPanelBrowser() OVERRIDE;
+
// Overridden from AnimationDelegate:
virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
« no previous file with comments | « chrome/browser/ui/panels/native_panel.h ('k') | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698