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

Unified Diff: extensions/browser/app_window/app_window.cc

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: extensions/browser/app_window/app_window.cc
diff --git a/extensions/browser/app_window/app_window.cc b/extensions/browser/app_window/app_window.cc
index c1959a98c82541c665e543ff7fba235de8b74b5f..c23fda7313c42390e747eb90af64d8926e56e2fc 100644
--- a/extensions/browser/app_window/app_window.cc
+++ b/extensions/browser/app_window/app_window.cc
@@ -603,6 +603,17 @@ void AppWindow::OSFullscreen() {
SetFullscreen(FULLSCREEN_TYPE_OS, true);
}
+void AppWindow::UpdateOSFullscreenState(bool is_fullscreen) {
+ if (is_fullscreen) {
+ fullscreen_types_ |= FULLSCREEN_TYPE_OS;
tapted 2015/06/09 06:04:01 why not just `=`? i.e. shouldn't this override any
jackhou1 2015/06/10 05:06:03 Yes, but the way it works now in patch set 5 means
+ } else {
+ fullscreen_types_ = FULLSCREEN_TYPE_NONE;
+ SetNativeWindowFullscreen();
tapted 2015/06/09 06:04:01 Is this still needed?
jackhou1 2015/06/10 05:06:03 It's needed to set the always-on-top state. But th
+ }
+
+ OnNativeWindowChanged();
tapted 2015/06/09 06:04:01 What about just rolling the fullscreen check into
jackhou1 2015/06/10 05:06:03 Done.
+}
+
void AppWindow::ForcedFullscreen() {
SetFullscreen(FULLSCREEN_TYPE_FORCED, true);
}
« extensions/browser/app_window/app_window.h ('K') | « extensions/browser/app_window/app_window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698