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

Unified Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.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: Address comments. 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
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
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 080cfce9defe6b13704eeb85e69290724e7c235f..a8130c75a5a6a8be6a69cabb1843e7a434b0eb14 100644
--- a/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm
@@ -763,10 +763,7 @@ void NativeAppWindowCocoa::WindowDidDeminiaturize() {
}
void NativeAppWindowCocoa::WindowDidEnterFullscreen() {
- if (!is_fullscreen_) {
- is_fullscreen_ = true;
- app_window_->OSFullscreen();
- }
+ is_fullscreen_ = true;
app_window_->OnNativeWindowChanged();
}
@@ -775,7 +772,6 @@ void NativeAppWindowCocoa::WindowDidExitFullscreen() {
if (!shows_fullscreen_controls_)
gfx::SetNSWindowCanFullscreen(window(), false);
- app_window_->Restore();
app_window_->OnNativeWindowChanged();
}
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698