Index: chrome/browser/ui/views/frame/native_browser_frame.h |
=================================================================== |
--- chrome/browser/ui/views/frame/native_browser_frame.h (revision 85284) |
+++ chrome/browser/ui/views/frame/native_browser_frame.h (working copy) |
@@ -6,38 +6,27 @@ |
#define CHROME_BROWSER_UI_VIEWS_FRAME_NATIVE_BROWSER_FRAME_H_ |
#pragma once |
-class BrowserNonClientFrameView; |
+class BrowserView; |
-namespace gfx { |
-class Rect; |
-} |
- |
-namespace ui { |
-class ThemeProvider; |
-} |
- |
-namespace views { |
-class NativeWindow; |
-class View; |
-} |
- |
class NativeBrowserFrame { |
public: |
virtual ~NativeBrowserFrame() {} |
+ // Construct a platform-specific implementation of this interface. |
+ static NativeBrowserFrame* CreateNativeBrowserFrame( |
+ BrowserFrame* browser_frame, |
+ BrowserView* browser_view); |
+ |
virtual views::NativeWindow* AsNativeWindow() = 0; |
virtual const views::NativeWindow* AsNativeWindow() const = 0; |
protected: |
friend class BrowserFrame; |
- virtual BrowserNonClientFrameView* CreateBrowserNonClientFrameView() = 0; |
- |
// BrowserFrame pass-thrus --------------------------------------------------- |
// See browser_frame.h for documentation: |
virtual int GetMinimizeButtonOffset() const = 0; |
- virtual ui::ThemeProvider* GetThemeProviderForFrame() const = 0; |
- virtual bool AlwaysUseNativeFrame() const = 0; |
+ // TODO(beng): replace with some kind of "framechanged" signal to Window. |
virtual void TabStripDisplayModeChanged() = 0; |
}; |