| 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_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ |
| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual void OnEndSession(BOOL ending, UINT logoff); | 56 virtual void OnEndSession(BOOL ending, UINT logoff); |
| 57 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); | 57 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); |
| 58 virtual LRESULT OnMouseActivate(HWND window, | 58 virtual LRESULT OnMouseActivate(HWND window, |
| 59 UINT hittest_code, | 59 UINT hittest_code, |
| 60 UINT message); | 60 UINT message); |
| 61 virtual void OnMove(const CPoint& point); | 61 virtual void OnMove(const CPoint& point); |
| 62 virtual void OnMoving(UINT param, const RECT* new_bounds); | 62 virtual void OnMoving(UINT param, const RECT* new_bounds); |
| 63 virtual LRESULT OnNCActivate(BOOL active); | 63 virtual LRESULT OnNCActivate(BOOL active); |
| 64 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); | 64 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); |
| 65 virtual LRESULT OnNCHitTest(const CPoint& pt); | 65 virtual LRESULT OnNCHitTest(const CPoint& pt); |
| 66 virtual void OnWindowPosChanged(WINDOWPOS* window_pos); |
| 66 | 67 |
| 67 // Overridden from views::Window: | 68 // Overridden from views::Window: |
| 68 virtual int GetShowState() const; | 69 virtual int GetShowState() const; |
| 69 virtual bool IsAppWindow() const { return true; } | 70 virtual bool IsAppWindow() const { return true; } |
| 70 virtual views::NonClientFrameView* CreateFrameViewForWindow(); | 71 virtual views::NonClientFrameView* CreateFrameViewForWindow(); |
| 71 virtual void UpdateFrameAfterFrameChange(); | 72 virtual void UpdateFrameAfterFrameChange(); |
| 72 virtual views::RootView* CreateRootView(); | 73 virtual views::RootView* CreateRootView(); |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 // Updates the DWM with the frame bounds. | 76 // Updates the DWM with the frame bounds. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 87 BrowserRootView* root_view_; | 88 BrowserRootView* root_view_; |
| 88 | 89 |
| 89 bool frame_initialized_; | 90 bool frame_initialized_; |
| 90 | 91 |
| 91 Profile* profile_; | 92 Profile* profile_; |
| 92 | 93 |
| 93 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); | 94 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ | 97 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_WIN_ |
| OLD | NEW |