From 14cf5a1b944168746ee0e409f947bd64c21da8b9 Mon Sep 17 00:00:00 2001 From: "scheib@chromium.org" Date: Fri, 20 Sep 2013 23:03:17 +0000 Subject: [PATCH] Update the App restored window frame upon move and resize on Mac. Previous change https://src.chromium.org/viewvc/chrome?revision=219648&view=revision added support for non resiazable windows to become fullscreen. That change no longer reports the current window's frame dimensions for it's GetRestoredBounds(), but instead returns a cached state which is updated with UpdateRestoredBounds(). This update method needs to be called when the window is moved or resized as well. BUG=294938 Review URL: https://chromiumcodereview.appspot.com/24237008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224512 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm index 751112a8deb5..43107fe03f8e 100644 --- a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm +++ b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm @@ -851,10 +851,12 @@ void NativeAppWindowCocoa::WindowDidResize() { else if (NSEqualPoints(frame.origin, screen.origin)) is_maximized_ = true; + UpdateRestoredBounds(); shell_window_->OnNativeWindowChanged(); } void NativeAppWindowCocoa::WindowDidMove() { + UpdateRestoredBounds(); shell_window_->OnNativeWindowChanged(); } -- 2.11.4.GIT