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 UI_GFX_ANDROID_VIEW_CONFIGURATION_H_ | 5 #ifndef UI_GFX_ANDROID_VIEW_CONFIGURATION_H_ |
6 #define UI_GFX_ANDROID_VIEW_CONFIGURATION_H_ | 6 #define UI_GFX_ANDROID_VIEW_CONFIGURATION_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "ui/gfx/gfx_export.h" | 10 #include "ui/gfx/gfx_export.h" |
11 | 11 |
12 namespace gfx { | 12 namespace gfx { |
13 | 13 |
14 // Provides access to Android's ViewConfiguration for gesture-related constants. | 14 // Provides access to Android's ViewConfiguration for gesture-related constants. |
15 class GFX_EXPORT ViewConfiguration { | 15 class GFX_EXPORT ViewConfiguration { |
16 public: | 16 public: |
17 static int GetDoubleTapTimeoutInMs(); | 17 static int GetDoubleTapTimeoutInMs(); |
18 static int GetLongPressTimeoutInMs(); | 18 static int GetLongPressTimeoutInMs(); |
19 static int GetTapTimeoutInMs(); | 19 static int GetTapTimeoutInMs(); |
20 | 20 |
21 static int GetMaximumFlingVelocityInPixelsPerSecond(); | 21 static int GetMaximumFlingVelocityInPixelsPerSecond(); |
22 static int GetMinimumFlingVelocityInPixelsPerSecond(); | 22 static int GetMinimumFlingVelocityInPixelsPerSecond(); |
23 | 23 |
24 static int GetTouchSlopInPixels(); | 24 static int GetTouchSlopInPixels(); |
| 25 static int GetDoubleTapSlopInPixels(); |
| 26 |
| 27 static int GetMinScalingSpanInPixels(); |
| 28 static int GetMinScalingTouchMajorInPixels(); |
25 | 29 |
26 // Registers methods with JNI and returns true if succeeded. | 30 // Registers methods with JNI and returns true if succeeded. |
27 static bool RegisterViewConfiguration(JNIEnv* env); | 31 static bool RegisterViewConfiguration(JNIEnv* env); |
28 }; | 32 }; |
29 | 33 |
30 } // namespace gfx | 34 } // namespace gfx |
31 | 35 |
32 #endif // UI_GFX_ANDROID_VIEW_CONFIGURATION_H_ | 36 #endif // UI_GFX_ANDROID_VIEW_CONFIGURATION_H_ |
OLD | NEW |