diff options
Diffstat (limited to 'chrome/browser/views/frame/browser_frame_win.h')
-rw-r--r-- | chrome/browser/views/frame/browser_frame_win.h | 94 |
1 files changed, 3 insertions, 91 deletions
diff --git a/chrome/browser/views/frame/browser_frame_win.h b/chrome/browser/views/frame/browser_frame_win.h index 1dbc4dd..b755e21 100644 --- a/chrome/browser/views/frame/browser_frame_win.h +++ b/chrome/browser/views/frame/browser_frame_win.h @@ -6,96 +6,8 @@ #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ #pragma once -#include "base/basictypes.h" -#include "chrome/browser/views/frame/browser_frame.h" -#include "views/window/window_win.h" - -class AeroGlassNonClientView; -class BrowserNonClientFrameView; -class BrowserRootView; -class BrowserView; -class NonClientFrameView; -class Profile; - -/////////////////////////////////////////////////////////////////////////////// -// BrowserFrameWin -// -// BrowserFrame is a WindowWin subclass that provides the window frame for the -// Chrome browser window. -// -class BrowserFrameWin : public BrowserFrame, public views::WindowWin { - 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); - virtual ~BrowserFrameWin(); - - // This initialization function must be called after construction, it is - // separate to avoid recursive calling of the frame from its constructor. - void Init(); - - BrowserView* browser_view() const { return browser_view_; } - - // BrowserFrame implementation. - virtual views::Window* GetWindow(); - virtual int GetMinimizeButtonOffset() const; - virtual gfx::Rect GetBoundsForTabStrip(BaseTabStrip* tabstrip) const; - virtual int GetHorizontalTabStripVerticalOffset(bool restored) const; - virtual void UpdateThrobber(bool running); - virtual void ContinueDraggingDetachedTab(); - virtual ThemeProvider* GetThemeProviderForFrame() const; - virtual bool AlwaysUseNativeFrame() const; - virtual views::View* GetFrameView() const; - virtual void TabStripDisplayModeChanged(); - - protected: - // Overridden from views::WindowWin: - virtual gfx::Insets GetClientAreaInsets() const; - virtual bool GetAccelerator(int cmd_id, menus::Accelerator* accelerator); - virtual void OnEndSession(BOOL ending, UINT logoff); - virtual void OnEnterSizeMove(); - virtual void OnExitSizeMove(); - virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); - virtual LRESULT OnMouseActivate(HWND window, - UINT hittest_code, - UINT message); - virtual void OnMove(const CPoint& point); - virtual void OnMoving(UINT param, LPRECT new_bounds); - virtual LRESULT OnNCActivate(BOOL active); - virtual LRESULT OnNCHitTest(const CPoint& pt); - virtual void OnWindowPosChanged(WINDOWPOS* window_pos); - virtual ThemeProvider* GetThemeProvider() const; - virtual ThemeProvider* GetDefaultThemeProvider() const; - virtual void OnScreenReaderDetected(); - - // Overridden from views::Window: - virtual int GetShowState() const; - virtual void Activate(); - virtual bool IsAppWindow() const { return true; } - virtual views::NonClientFrameView* CreateFrameViewForWindow(); - virtual void UpdateFrameAfterFrameChange(); - virtual views::RootView* CreateRootView(); - - private: - // Updates the DWM with the frame bounds. - void UpdateDWMFrame(); - - // The BrowserView is our ClientView. This is a pointer to it. - BrowserView* browser_view_; - - // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. - BrowserNonClientFrameView* browser_frame_view_; - - // An unowning reference to the root view associated with the window. We save - // a copy as a BrowserRootView to avoid evil casting later, when we need to - // call functions that only exist on BrowserRootView (versus RootView). - BrowserRootView* root_view_; - - bool frame_initialized_; - - Profile* profile_; - - DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); -}; +#include "chrome/browser/ui/views/frame/browser_frame_win.h" +// TODO(beng): remove this file once all includes have been updated. #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ + |