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

Unified Diff: chrome/browser/ui/views/frame/browser_frame_win.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/browser_frame_win.h
===================================================================
--- chrome/browser/ui/views/frame/browser_frame_win.h (revision 85284)
+++ chrome/browser/ui/views/frame/browser_frame_win.h (working copy)
@@ -12,7 +12,6 @@
#include "views/window/window_win.h"
class BrowserView;
-class Profile;
///////////////////////////////////////////////////////////////////////////////
// BrowserFrameWin
@@ -20,13 +19,10 @@
// BrowserFrame is a WindowWin subclass that provides the window frame for the
// Chrome browser window.
//
-class BrowserFrameWin : public BrowserFrame,
- public views::WindowWin,
+class BrowserFrameWin : public views::WindowWin,
public NativeBrowserFrame {
public:
- // Normally you will create this class by calling BrowserFrame::Create.
- // Init must be called before using this class, which Create will do for you.
- BrowserFrameWin(BrowserView* browser_view, Profile* profile);
+ BrowserFrameWin(BrowserFrame* browser_frame, BrowserView* browser_view);
virtual ~BrowserFrameWin();
BrowserView* browser_view() const { return browser_view_; }
@@ -40,41 +36,29 @@
// Overridden from views::WindowWin:
virtual int GetShowState() const OVERRIDE;
virtual gfx::Insets GetClientAreaInsets() const OVERRIDE;
- virtual bool GetAccelerator(int cmd_id,
- ui::Accelerator* accelerator) OVERRIDE;
+ virtual void UpdateFrameAfterFrameChange() OVERRIDE;
virtual void OnEndSession(BOOL ending, UINT logoff) OVERRIDE;
virtual void OnInitMenuPopup(HMENU menu,
UINT position,
BOOL is_system_menu) OVERRIDE;
virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE;
- virtual ui::ThemeProvider* GetThemeProvider() const OVERRIDE;
virtual void OnScreenReaderDetected() OVERRIDE;
- // Overridden from views::Window:
- virtual void Activate() OVERRIDE;
- virtual bool IsAppWindow() const OVERRIDE { return true; }
- virtual void UpdateFrameAfterFrameChange() OVERRIDE;
- virtual views::RootView* CreateRootView() OVERRIDE;
- virtual views::NonClientFrameView* CreateFrameViewForWindow() OVERRIDE;
-
// Overridden from NativeBrowserFrame:
virtual views::NativeWindow* AsNativeWindow() OVERRIDE;
virtual const views::NativeWindow* AsNativeWindow() const OVERRIDE;
- virtual BrowserNonClientFrameView* CreateBrowserNonClientFrameView() OVERRIDE;
virtual int GetMinimizeButtonOffset() const OVERRIDE;
- virtual ui::ThemeProvider* GetThemeProviderForFrame() const OVERRIDE;
- virtual bool AlwaysUseNativeFrame() const OVERRIDE;
virtual void TabStripDisplayModeChanged() OVERRIDE;
private:
// Updates the DWM with the frame bounds.
void UpdateDWMFrame();
- NativeBrowserFrameDelegate* delegate_;
-
// The BrowserView is our ClientView. This is a pointer to it.
BrowserView* browser_view_;
+ BrowserFrame* browser_frame_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin);
};
« no previous file with comments | « chrome/browser/ui/views/frame/browser_frame_gtk.cc ('k') | chrome/browser/ui/views/frame/browser_frame_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698