| OLD | NEW |
| 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 GetTouchSlopInDips(); |
| 26 static int GetTouchSlopInPixels(); |
| 27 |
| 25 // Registers methods with JNI and returns true if succeeded. | 28 // Registers methods with JNI and returns true if succeeded. |
| 26 static bool RegisterViewConfiguration(JNIEnv* env); | 29 static bool RegisterViewConfiguration(JNIEnv* env); |
| 27 }; | 30 }; |
| 28 | 31 |
| 29 } // namespace content | 32 } // namespace content |
| 30 | 33 |
| 31 #endif // CONTENT_COMMON_ANDROID_VIEW_CONFIGURATION_H_ | 34 #endif // CONTENT_COMMON_ANDROID_VIEW_CONFIGURATION_H_ |
| OLD | NEW |