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

Unified Diff: content/renderer/render_view_impl.cc

Issue 23453011: [Android WebView] Disable disambiguation popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add TODO Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 6b3ca9f94632320567558f8e753ca78850a35652..bd9ec43ba35df3462fef2dc90169d24ec05979d0 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -6400,6 +6400,12 @@ bool RenderViewImpl::didTapMultipleTargets(
if (accessibility_mode_ == AccessibilityModeComplete)
return false;
+ // Disable disambiguation popups in Android WebView.
jamesr 2013/08/27 22:45:54 Not only is this abuse, it just looks wrong. We a
+ // TODO(boliu): Add a setting to control this explicitly instead of abusing
+ // UsingSynchronousRendererCompositor. Tracked in crbug.com/280301.
+ if (UsingSynchronousRendererCompositor())
+ return false;
+
gfx::Rect finger_rect(
event.x - event.data.tap.width / 2, event.y - event.data.tap.height / 2,
event.data.tap.width, event.data.tap.height);
« 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