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

Unified Diff: chrome/browser/ui/panels/native_panel.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 | « 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
===================================================================
--- chrome/browser/ui/panels/native_panel.h (revision 88351)
+++ chrome/browser/ui/panels/native_panel.h (working copy)
@@ -6,6 +6,10 @@
#define CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
#pragma once
+#include "ui/gfx/native_widget_types.h"
+
+class Panel;
+
namespace gfx {
class Rect;
} // namespace gfx
@@ -21,19 +25,25 @@
// still use the BrowserWindow interface as part of their implementation so we
// use Panel in all the method names to avoid collisions.
class NativePanel {
- public:
+ friend class Panel;
+
+ protected:
+ virtual ~NativePanel() {}
+
virtual void ShowPanel() = 0;
virtual void SetPanelBounds(const gfx::Rect& bounds) = 0;
virtual void MinimizePanel() = 0;
virtual void RestorePanel() = 0;
virtual void ClosePanel() = 0;
virtual void ActivatePanel() = 0;
- virtual void DeactivePanel() = 0;
- virtual bool IsActivePanel() const = 0;
+ virtual void DeactivatePanel() = 0;
+ virtual bool IsPanelActive() const = 0;
+ virtual gfx::NativeWindow GetNativePanelHandle() = 0;
+ virtual void UpdatePanelTitleBar() = 0;
+ virtual void ShowTaskManagerForPanel() = 0;
+ virtual void NotifyPanelOnUserChangedTheme() = 0;
virtual void FlashPanelFrame() = 0;
-
- protected:
- virtual ~NativePanel() {}
+ virtual void DestroyPanelBrowser() = 0;
};
#endif // CHROME_BROWSER_UI_PANELS_NATIVE_PANEL_H_
« 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