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

Unified Diff: chrome/browser/ui/views/frame/native_browser_frame.h

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
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;
};
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698