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

Unified Diff: chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm

Issue 1172483003: [MacViews] Update AppWindow when the native window changes fullscreen state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views
Patch Set: Don't remove ChromeNativeAppWindowViews::is_fullscreen_ Created 5 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/apps/chrome_native_app_window_views_mac.mm
diff --git a/chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm b/chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
index d99a1c910dda9fd8f1e3c323e7cbad612ca73b7c..ebe066b6e40b2d297d4d7456902e4114484a74f5 100644
--- a/chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
+++ b/chrome/browser/ui/views/apps/chrome_native_app_window_views_mac.mm
@@ -59,6 +59,12 @@ void ChromeNativeAppWindowViewsMac::FlashFrame(bool flash) {
: apps::APP_SHIM_ATTENTION_CANCEL);
}
+void ChromeNativeAppWindowViewsMac::OnWidgetBoundsChanged(
+ views::Widget* widget,
+ const gfx::Rect& new_bounds) {
+ app_window()->UpdateOSFullscreenState(IsFullscreen());
+}
+
void ChromeNativeAppWindowViewsMac::ShowWithApp() {
is_hidden_with_app_ = false;
if (!app_window()->is_hidden())

Powered by Google App Engine
This is Rietveld 408576698