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

Side by Side Diff: content/common/android/view_configuration.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_ANDROID_VIEW_CONFIGURATION_H_ 5 #ifndef CONTENT_COMMON_ANDROID_VIEW_CONFIGURATION_H_
6 #define CONTENT_COMMON_ANDROID_VIEW_CONFIGURATION_H_ 6 #define CONTENT_COMMON_ANDROID_VIEW_CONFIGURATION_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 namespace content { 10 namespace content {
11 11
12 // Provides access to Android's ViewConfiguration for gesture-related constants. 12 // Provides access to Android's ViewConfiguration for gesture-related constants.
13 class ViewConfiguration { 13 class ViewConfiguration {
14 public: 14 public:
15 static int GetDoubleTapTimeoutInMs(); 15 static int GetDoubleTapTimeoutInMs();
16 static int GetLongPressTimeoutInMs(); 16 static int GetLongPressTimeoutInMs();
17 static int GetTapTimeoutInMs(); 17 static int GetTapTimeoutInMs();
18 18
19 static int GetMaximumFlingVelocityInDipsPerSecond(); 19 static int GetMaximumFlingVelocityInDipsPerSecond();
20 static int GetMinimumFlingVelocityInDipsPerSecond(); 20 static int GetMinimumFlingVelocityInDipsPerSecond();
21 21
22 static int GetMaximumFlingVelocityInPixelsPerSecond(); 22 static int GetMaximumFlingVelocityInPixelsPerSecond();
23 static int GetMinimumFlingVelocityInPixelsPerSecond(); 23 static int GetMinimumFlingVelocityInPixelsPerSecond();
24 24
25 static int GetTouchSlopInPixels();
26
25 // Registers methods with JNI and returns true if succeeded. 27 // Registers methods with JNI and returns true if succeeded.
26 static bool RegisterViewConfiguration(JNIEnv* env); 28 static bool RegisterViewConfiguration(JNIEnv* env);
27 }; 29 };
28 30
29 } // namespace content 31 } // namespace content
30 32
31 #endif // CONTENT_COMMON_ANDROID_VIEW_CONFIGURATION_H_ 33 #endif // CONTENT_COMMON_ANDROID_VIEW_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc ('k') | content/common/android/view_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698