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

Side by Side Diff: ui/gfx/android/view_configuration.h

Issue 2349043002: android: Remove unused GetScrollFriction (Closed)
Patch Set: Created 4 years, 3 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 unified diff | Download patch
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 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 // Note: All methods may be safely called from any thread. 15 // Note: All methods may be safely called from any thread.
16 class GFX_EXPORT ViewConfiguration { 16 class GFX_EXPORT ViewConfiguration {
17 public: 17 public:
18 static int GetDoubleTapTimeoutInMs(); 18 static int GetDoubleTapTimeoutInMs();
19 static int GetLongPressTimeoutInMs(); 19 static int GetLongPressTimeoutInMs();
20 static int GetTapTimeoutInMs(); 20 static int GetTapTimeoutInMs();
21 21
22 // Dimensionless coefficient of friction.
23 static float GetScrollFriction();
24
25 static int GetMaximumFlingVelocityInDipsPerSecond(); 22 static int GetMaximumFlingVelocityInDipsPerSecond();
26 static int GetMinimumFlingVelocityInDipsPerSecond(); 23 static int GetMinimumFlingVelocityInDipsPerSecond();
27 24
28 static int GetTouchSlopInDips(); 25 static int GetTouchSlopInDips();
29 static int GetDoubleTapSlopInDips(); 26 static int GetDoubleTapSlopInDips();
30 27
31 static int GetMinScalingSpanInDips(); 28 static int GetMinScalingSpanInDips();
32 static int GetMinScalingTouchMajorInDips();
33 29
34 // Registers methods with JNI and returns true if succeeded. 30 // Registers methods with JNI and returns true if succeeded.
35 static bool RegisterViewConfiguration(JNIEnv* env); 31 static bool RegisterViewConfiguration(JNIEnv* env);
36 }; 32 };
37 33
38 } // namespace gfx 34 } // namespace gfx
39 35
40 #endif // UI_GFX_ANDROID_VIEW_CONFIGURATION_H_ 36 #endif // UI_GFX_ANDROID_VIEW_CONFIGURATION_H_
OLDNEW
« no previous file with comments | « ui/android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java ('k') | ui/gfx/android/view_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698