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

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

Issue 10596005: On Windows 8 when a metro application is snapped running desktop application windows are resized as (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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
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);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame_win.cc » ('j') | chrome/browser/ui/views/frame/browser_frame_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698