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

Unified Diff: ui/gfx/android/view_configuration.h

Issue 1216933013: [Android] Expose native ViewConfiguration constants as DIPs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment and add assert Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/events/gesture_detection/gesture_configuration_android.cc ('k') | ui/gfx/android/view_configuration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/android/view_configuration.h
diff --git a/ui/gfx/android/view_configuration.h b/ui/gfx/android/view_configuration.h
index 4595071c4f1c7176d1009eb02c4e9fef0b972f65..1c490c9a5037956007c49b987a0d4dc71120611c 100644
--- a/ui/gfx/android/view_configuration.h
+++ b/ui/gfx/android/view_configuration.h
@@ -22,14 +22,14 @@ class GFX_EXPORT ViewConfiguration {
// Dimensionless coefficient of friction.
static float GetScrollFriction();
- static int GetMaximumFlingVelocityInPixelsPerSecond();
- static int GetMinimumFlingVelocityInPixelsPerSecond();
+ static int GetMaximumFlingVelocityInDipsPerSecond();
+ static int GetMinimumFlingVelocityInDipsPerSecond();
- static int GetTouchSlopInPixels();
- static int GetDoubleTapSlopInPixels();
+ static int GetTouchSlopInDips();
+ static int GetDoubleTapSlopInDips();
- static int GetMinScalingSpanInPixels();
- static int GetMinScalingTouchMajorInPixels();
+ static int GetMinScalingSpanInDips();
+ static int GetMinScalingTouchMajorInDips();
// Registers methods with JNI and returns true if succeeded.
static bool RegisterViewConfiguration(JNIEnv* env);
« no previous file with comments | « ui/events/gesture_detection/gesture_configuration_android.cc ('k') | ui/gfx/android/view_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698