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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura.cc

Issue 100683002: Ensure that a fullscreen RenderWidgetHostViewAura instance does not restore itself on Windows when … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_aura.cc
===================================================================
--- content/browser/renderer_host/render_widget_host_view_aura.cc (revision 238186)
+++ content/browser/renderer_host/render_widget_host_view_aura.cc (working copy)
@@ -2976,6 +2976,17 @@
(screen->GetDisplayNearestWindow(window_).id() !=
screen->GetDisplayNearestWindow(gained_focus).id());
if (is_fullscreen_ && !in_shutdown_ && !focusing_other_display) {
+#if defined(OS_WIN)
+ // On Windows, if we are switching to a non Aura Window on a different
+ // screen we should not close the fullscreen window.
+ if (!gained_focus) {
+ POINT point = {0};
+ ::GetCursorPos(&point);
+ if (screen->GetDisplayNearestWindow(window_).id() !=
+ screen->GetDisplayNearestPoint(gfx::Point(point)).id())
+ return;
+ }
+#endif
in_shutdown_ = true;
host_->Shutdown();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698