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

Unified Diff: sky/engine/core/frame/LocalDOMWindow.cpp

Issue 866283003: Remove TouchDisambiguation and WindowFocusAllowedIndicator (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/core.gni ('k') | sky/engine/core/page/TouchDisambiguation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/LocalDOMWindow.cpp
diff --git a/sky/engine/core/frame/LocalDOMWindow.cpp b/sky/engine/core/frame/LocalDOMWindow.cpp
index 28f7afdd6992a0e86df7232c7fa3ffbf00724203..d765b0e7541368a05c2b183dbf63bafe0e41efa2 100644
--- a/sky/engine/core/frame/LocalDOMWindow.cpp
+++ b/sky/engine/core/frame/LocalDOMWindow.cpp
@@ -73,7 +73,6 @@
#include "sky/engine/core/page/ChromeClient.h"
#include "sky/engine/core/page/EventHandler.h"
#include "sky/engine/core/page/Page.h"
-#include "sky/engine/core/page/WindowFocusAllowedIndicator.h"
#include "sky/engine/core/rendering/style/RenderStyle.h"
#include "sky/engine/platform/EventDispatchForbiddenScope.h"
#include "sky/engine/platform/PlatformScreen.h"
@@ -474,11 +473,7 @@ void LocalDOMWindow::focus(ExecutionContext* context)
if (!host)
return;
- bool allowFocus = WindowFocusAllowedIndicator::windowFocusAllowed();
-
- // If we're a top level window, bring the window to the front.
- if (allowFocus)
- host->chrome().focus();
+ host->chrome().focus();
if (!m_frame)
return;
« no previous file with comments | « sky/engine/core/core.gni ('k') | sky/engine/core/page/TouchDisambiguation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698