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

Unified Diff: android_webview/native/aw_contents.cc

Issue 23453011: [Android WebView] Disable disambiguation popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add NONE tap_multiple_targets_strategy 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
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index e6cf84111a1b4098d9374cb2ab6d15a93cc37173..d6aa95892e8b352dcc0dada029ef56e71830ce58 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -43,6 +43,7 @@
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/render_view_host.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/common/renderer_preferences.h"
#include "content/public/common/ssl_status.h"
#include "jni/AwContents_jni.h"
#include "net/cert/x509_certificate.h"
@@ -145,6 +146,9 @@ AwContents::AwContents(scoped_ptr<WebContents> web_contents)
AwAutofillManagerDelegate::FromWebContents(web_contents_.get());
if (autofill_manager_delegate)
InitAutofillIfNecessary(autofill_manager_delegate->GetSaveFormData());
+
+ web_contents_->GetMutableRendererPrefs()->tap_multiple_targets_strategy =
+ content::TAP_MULTIPLE_TARGETS_STRATEGY_NONE;
}
void AwContents::SetJavaPeers(JNIEnv* env,
« no previous file with comments | « no previous file | content/public/common/renderer_preferences.h » ('j') | content/public/common/renderer_preferences.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698