Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Unified Diff: chrome/browser/ui/views/frame/browser_frame_win.h

Issue 10638016: Merge 143447 - On Windows 8 when a metro application is snapped running desktop application windows… (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1180/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_frame_win.h
===================================================================
--- chrome/browser/ui/views/frame/browser_frame_win.h (revision 143635)
+++ 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_;
@@ -114,6 +120,9 @@
// The wrapped system menu itself.
scoped_ptr<views::NativeMenuWin> system_menu_;
+ // See CacheMinimizeButtonDelta() for details about this member.
+ int cached_minimize_button_x_delta_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698