Chromium Code Reviews| Index: chrome/browser/ui/views/frame/browser_frame_win.h |
| =================================================================== |
| --- chrome/browser/ui/views/frame/browser_frame_win.h (revision 142824) |
| +++ chrome/browser/ui/views/frame/browser_frame_win.h (working copy) |
| @@ -60,6 +60,7 @@ |
| const gfx::Rect& restored_bounds) OVERRIDE; |
| virtual void ShowWithWindowState(ui::WindowShowState show_state) OVERRIDE; |
| virtual void Close() OVERRIDE; |
| + virtual void OnActivate(UINT action, BOOL minimized, HWND window) OVERRIDE; |
| // Overridden from NativeBrowserFrame: |
| virtual views::NativeWidget* AsNativeWidget() OVERRIDE; |
| @@ -101,6 +102,11 @@ |
| // Called when the frame is closed. Only applies to Windows 8 metro mode. |
| void CloseImmersiveFrame(); |
| + // Calculates and caches the minimize button delta, i.e. the offset to be |
| + // applied to the left/right coordinates of the client rectangle in case |
| + // we fail to retrieve the offset of the minimize button. |
| + void CacheMinimizeButtonDelta(); |
| + |
| // The BrowserView is our ClientView. This is a pointer to it. |
| BrowserView* browser_view_; |
| @@ -113,6 +119,9 @@ |
| scoped_ptr<EncodingMenuModel> encoding_menu_contents_; |
| // The wrapped system menu itself. |
| scoped_ptr<views::NativeMenuWin> system_menu_; |
| + // Enables us to calculate the offset of the minimize button given the client |
|
sky
2012/06/21 16:38:40
Newline before comment, and have the comment descr
ananta
2012/06/21 17:39:40
Done.
|
| + // width. |
| + int cached_minimize_button_x_delta_; |
| DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); |
| }; |