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

Unified Diff: content/common/android/view_configuration.cc

Issue 95153002: Make touch-based synthetic gesture take touch slop into account. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused variable. 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 | « content/common/android/view_configuration.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/android/view_configuration.cc
diff --git a/content/common/android/view_configuration.cc b/content/common/android/view_configuration.cc
index 9363ebbd99e40136fa2fa010ef1155c232a66e6c..291d40e05693bb5ad84682c23b2d5bd8f066d61b 100644
--- a/content/common/android/view_configuration.cc
+++ b/content/common/android/view_configuration.cc
@@ -52,6 +52,13 @@ int ViewConfiguration::GetMinimumFlingVelocityInPixelsPerSecond() {
return Java_ViewConfiguration_getScaledMinimumFlingVelocity(env, view.obj());
}
+int ViewConfiguration::GetTouchSlopInPixels() {
+ JNIEnv* env = AttachCurrentThread();
+ ScopedJavaLocalRef<jobject> view =
+ Java_ViewConfiguration_get(env, GetApplicationContext());
+ return Java_ViewConfiguration_getScaledTouchSlop(env, view.obj());
+}
+
bool ViewConfiguration::RegisterViewConfiguration(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « content/common/android/view_configuration.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698