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

Unified Diff: android_webview/native/aw_contents.cc

Issue 1262403005: Use ui::GestureConfiguration to disable tap suppression in Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « android_webview/native/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index d92640407a20a6f15e71cc9ae7029ef0c4c8b494..ac0357e2f8cfeec42c0137ced7cf791101f664c2 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -67,6 +67,7 @@
#include "net/base/auth.h"
#include "net/cert/x509_certificate.h"
#include "third_party/skia/include/core/SkPicture.h"
+#include "ui/events/gesture_detection/gesture_configuration.h"
#include "ui/gfx/android/java_bitmap.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gfx/geometry/size.h"
@@ -305,6 +306,8 @@ void AwContents::Destroy(JNIEnv* env, jobject obj) {
}
static jlong Init(JNIEnv* env, jclass, jobject browser_context) {
+ ui::GestureConfiguration::GetInstance()
jdduke (slow) 2015/07/31 21:10:31 What about doing it in AwMainDelegate::BasicStartu
hush (inactive) 2015/07/31 21:48:24 ah yes. That works too. I don't have strong prefer
+ ->set_fling_touchscreen_tap_suppression_enabled(false);
// TODO(joth): Use |browser_context| to get the native BrowserContext, rather
// than hard-code the default instance lookup here.
scoped_ptr<WebContents> web_contents(content::WebContents::Create(
« no previous file with comments | « android_webview/native/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698