| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "chrome/browser/views/frame/browser_frame.h" | 9 #include "chrome/browser/views/frame/browser_frame.h" |
| 10 #include "views/window/window_win.h" | 10 #include "views/window/window_win.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual views::Window* GetWindow(); | 40 virtual views::Window* GetWindow(); |
| 41 virtual void TabStripCreated(TabStripWrapper* tabstrip); | 41 virtual void TabStripCreated(TabStripWrapper* tabstrip); |
| 42 virtual int GetMinimizeButtonOffset() const; | 42 virtual int GetMinimizeButtonOffset() const; |
| 43 virtual gfx::Rect GetBoundsForTabStrip(TabStripWrapper* tabstrip) const; | 43 virtual gfx::Rect GetBoundsForTabStrip(TabStripWrapper* tabstrip) const; |
| 44 virtual void UpdateThrobber(bool running); | 44 virtual void UpdateThrobber(bool running); |
| 45 virtual void ContinueDraggingDetachedTab(); | 45 virtual void ContinueDraggingDetachedTab(); |
| 46 virtual ThemeProvider* GetThemeProviderForFrame() const; | 46 virtual ThemeProvider* GetThemeProviderForFrame() const; |
| 47 virtual bool AlwaysUseNativeFrame() const; | 47 virtual bool AlwaysUseNativeFrame() const; |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 // Overridden from views::WidgetWin: | 50 // Overridden from views::WindowWin: |
| 51 virtual gfx::Insets GetClientAreaInsets() const; |
| 51 virtual bool GetAccelerator(int cmd_id, views::Accelerator* accelerator); | 52 virtual bool GetAccelerator(int cmd_id, views::Accelerator* accelerator); |
| 52 virtual void OnEndSession(BOOL ending, UINT logoff); | 53 virtual void OnEndSession(BOOL ending, UINT logoff); |
| 53 virtual void OnEnterSizeMove(); | 54 virtual void OnEnterSizeMove(); |
| 54 virtual void OnExitSizeMove(); | 55 virtual void OnExitSizeMove(); |
| 55 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); | 56 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); |
| 56 virtual LRESULT OnMouseActivate(HWND window, | 57 virtual LRESULT OnMouseActivate(HWND window, |
| 57 UINT hittest_code, | 58 UINT hittest_code, |
| 58 UINT message); | 59 UINT message); |
| 59 virtual void OnMove(const CPoint& point); | 60 virtual void OnMove(const CPoint& point); |
| 60 virtual void OnMoving(UINT param, LPRECT new_bounds); | 61 virtual void OnMoving(UINT param, LPRECT new_bounds); |
| 61 virtual LRESULT OnNCActivate(BOOL active); | 62 virtual LRESULT OnNCActivate(BOOL active); |
| 62 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); | |
| 63 virtual LRESULT OnNCHitTest(const CPoint& pt); | 63 virtual LRESULT OnNCHitTest(const CPoint& pt); |
| 64 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); | 64 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); |
| 65 virtual ThemeProvider* GetThemeProvider() const; | 65 virtual ThemeProvider* GetThemeProvider() const; |
| 66 virtual ThemeProvider* GetDefaultThemeProvider() const; | 66 virtual ThemeProvider* GetDefaultThemeProvider() const; |
| 67 virtual bool SizeRootViewToWindowRect() const; | |
| 68 | 67 |
| 69 // Overridden from views::Window: | 68 // Overridden from views::Window: |
| 70 virtual int GetShowState() const; | 69 virtual int GetShowState() const; |
| 71 virtual bool IsAppWindow() const { return true; } | 70 virtual bool IsAppWindow() const { return true; } |
| 72 virtual views::NonClientFrameView* CreateFrameViewForWindow(); | 71 virtual views::NonClientFrameView* CreateFrameViewForWindow(); |
| 73 virtual void UpdateFrameAfterFrameChange(); | 72 virtual void UpdateFrameAfterFrameChange(); |
| 74 virtual views::RootView* CreateRootView(); | 73 virtual views::RootView* CreateRootView(); |
| 75 | 74 |
| 76 private: | 75 private: |
| 77 // Updates the DWM with the frame bounds. | 76 // Updates the DWM with the frame bounds. |
| (...skipping 28 matching lines...) Expand all Loading... |
| 106 | 105 |
| 107 // When this frame represents a detached tab being dragged, this is a TabStrip | 106 // When this frame represents a detached tab being dragged, this is a TabStrip |
| 108 // in another window that the tab being dragged would be docked to if the | 107 // in another window that the tab being dragged would be docked to if the |
| 109 // mouse were released, or NULL if there is no suitable TabStrip. | 108 // mouse were released, or NULL if there is no suitable TabStrip. |
| 110 BrowserTabStrip* drop_tabstrip_; | 109 BrowserTabStrip* drop_tabstrip_; |
| 111 | 110 |
| 112 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); | 111 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); |
| 113 }; | 112 }; |
| 114 | 113 |
| 115 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ | 114 #endif // CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ |
| OLD | NEW |