| 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_ | 5 #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_ |
| 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_ | 6 #define CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_ |
| 7 | 7 |
| 8 #include "chrome/views/window/window_win.h" | 8 #include "chrome/views/window/window_win.h" |
| 9 | 9 |
| 10 class AeroGlassNonClientView; | 10 class AeroGlassNonClientView; |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual void OnEndSession(BOOL ending, UINT logoff); | 61 virtual void OnEndSession(BOOL ending, UINT logoff); |
| 62 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); | 62 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); |
| 63 virtual LRESULT OnMouseActivate(HWND window, | 63 virtual LRESULT OnMouseActivate(HWND window, |
| 64 UINT hittest_code, | 64 UINT hittest_code, |
| 65 UINT message); | 65 UINT message); |
| 66 virtual void OnMove(const CPoint& point); | 66 virtual void OnMove(const CPoint& point); |
| 67 virtual void OnMoving(UINT param, const RECT* new_bounds); | 67 virtual void OnMoving(UINT param, const RECT* new_bounds); |
| 68 virtual LRESULT OnNCActivate(BOOL active); | 68 virtual LRESULT OnNCActivate(BOOL active); |
| 69 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); | 69 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); |
| 70 virtual LRESULT OnNCHitTest(const CPoint& pt); | 70 virtual LRESULT OnNCHitTest(const CPoint& pt); |
| 71 virtual void OnNCMButtonUp(UINT ht_component, const CPoint& point); |
| 71 | 72 |
| 72 // Overridden from views::Window: | 73 // Overridden from views::Window: |
| 73 virtual int GetShowState() const; | 74 virtual int GetShowState() const; |
| 74 virtual bool IsAppWindow() const { return true; } | 75 virtual bool IsAppWindow() const { return true; } |
| 75 virtual views::NonClientFrameView* CreateFrameViewForWindow(); | 76 virtual views::NonClientFrameView* CreateFrameViewForWindow(); |
| 76 virtual void UpdateFrameAfterFrameChange(); | 77 virtual void UpdateFrameAfterFrameChange(); |
| 77 virtual views::RootView* CreateRootView(); | 78 virtual views::RootView* CreateRootView(); |
| 78 | 79 |
| 79 private: | 80 private: |
| 80 // Updates the DWM with the frame bounds. | 81 // Updates the DWM with the frame bounds. |
| 81 void UpdateDWMFrame(); | 82 void UpdateDWMFrame(); |
| 82 | 83 |
| 83 // The BrowserView is our ClientView. This is a pointer to it. | 84 // The BrowserView is our ClientView. This is a pointer to it. |
| 84 BrowserView* browser_view_; | 85 BrowserView* browser_view_; |
| 85 | 86 |
| 86 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 87 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
| 87 BrowserNonClientFrameView* browser_frame_view_; | 88 BrowserNonClientFrameView* browser_frame_view_; |
| 88 | 89 |
| 89 bool frame_initialized_; | 90 bool frame_initialized_; |
| 90 | 91 |
| 91 DISALLOW_EVIL_CONSTRUCTORS(BrowserFrame); | 92 DISALLOW_EVIL_CONSTRUCTORS(BrowserFrame); |
| 92 }; | 93 }; |
| 93 | 94 |
| 94 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_ | 95 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_ |
| OLD | NEW |