| 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.h" | 8 #include "chrome/views/window.h" |
| 9 | 9 |
| 10 class AeroGlassNonClientView; | 10 class AeroGlassNonClientView; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // left edge of the window. Used in our Non-Client View's Layout. | 44 // left edge of the window. Used in our Non-Client View's Layout. |
| 45 int GetMinimizeButtonOffset() const; | 45 int GetMinimizeButtonOffset() const; |
| 46 | 46 |
| 47 // Retrieves the bounds, in non-client view coordinates for the specified | 47 // Retrieves the bounds, in non-client view coordinates for the specified |
| 48 // TabStrip. | 48 // TabStrip. |
| 49 gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const; | 49 gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const; |
| 50 | 50 |
| 51 // Tells the frame to update the throbber. | 51 // Tells the frame to update the throbber. |
| 52 void UpdateThrobber(bool running); | 52 void UpdateThrobber(bool running); |
| 53 | 53 |
| 54 BrowserView* browser_view() const { return browser_view_; } |
| 55 |
| 54 protected: | 56 protected: |
| 55 // Overridden from views::WidgetWin: | 57 // Overridden from views::WidgetWin: |
| 56 virtual bool AcceleratorPressed(views::Accelerator* accelerator); | 58 virtual bool AcceleratorPressed(views::Accelerator* accelerator); |
| 57 virtual bool GetAccelerator(int cmd_id, views::Accelerator* accelerator); | 59 virtual bool GetAccelerator(int cmd_id, views::Accelerator* accelerator); |
| 58 virtual void OnEnterSizeMove(); | 60 virtual void OnEnterSizeMove(); |
| 59 virtual void OnEndSession(BOOL ending, UINT logoff); | 61 virtual void OnEndSession(BOOL ending, UINT logoff); |
| 60 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); | 62 virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu); |
| 61 virtual LRESULT OnMouseActivate(HWND window, | 63 virtual LRESULT OnMouseActivate(HWND window, |
| 62 UINT hittest_code, | 64 UINT hittest_code, |
| 63 UINT message); | 65 UINT message); |
| 64 virtual void OnMove(const CPoint& point); | 66 virtual void OnMove(const CPoint& point); |
| 65 virtual void OnMoving(UINT param, const RECT* new_bounds); | 67 virtual void OnMoving(UINT param, const RECT* new_bounds); |
| 66 virtual LRESULT OnNCActivate(BOOL active); | 68 virtual LRESULT OnNCActivate(BOOL active); |
| 67 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); | 69 virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param); |
| 68 virtual LRESULT OnNCHitTest(const CPoint& pt); | 70 virtual LRESULT OnNCHitTest(const CPoint& pt); |
| 69 | 71 |
| 70 // Overridden from views::Window: | 72 // Overridden from views::Window: |
| 71 virtual int GetShowState() const; | 73 virtual int GetShowState() const; |
| 72 virtual bool IsAppWindow() const { return true; } | 74 virtual bool IsAppWindow() const { return true; } |
| 73 virtual views::NonClientFrameView* CreateFrameViewForWindow(); | 75 virtual views::NonClientFrameView* CreateFrameViewForWindow(); |
| 74 virtual void UpdateFrameAfterFrameChange(); | 76 virtual void UpdateFrameAfterFrameChange(); |
| 77 virtual views::RootView* CreateRootView(); |
| 75 | 78 |
| 76 private: | 79 private: |
| 77 // Updates the DWM with the frame bounds. | 80 // Updates the DWM with the frame bounds. |
| 78 void UpdateDWMFrame(); | 81 void UpdateDWMFrame(); |
| 79 | 82 |
| 80 // The BrowserView is our ClientView. This is a pointer to it. | 83 // The BrowserView is our ClientView. This is a pointer to it. |
| 81 BrowserView* browser_view_; | 84 BrowserView* browser_view_; |
| 82 | 85 |
| 83 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. | 86 // A pointer to our NonClientFrameView as a BrowserNonClientFrameView. |
| 84 BrowserNonClientFrameView* browser_frame_view_; | 87 BrowserNonClientFrameView* browser_frame_view_; |
| 85 | 88 |
| 86 bool frame_initialized_; | 89 bool frame_initialized_; |
| 87 | 90 |
| 88 DISALLOW_EVIL_CONSTRUCTORS(BrowserFrame); | 91 DISALLOW_EVIL_CONSTRUCTORS(BrowserFrame); |
| 89 }; | 92 }; |
| 90 | 93 |
| 91 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_ | 94 #endif // #ifndef CHROME_BROWSER_VIEWS_FRAME_BROWSER_FRAME_ |
| OLD | NEW |