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

Unified Diff: ui/events/gesture_detection/gesture_configuration_android.cc

Issue 1405773004: Aura on Android: Making events work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@auraclank_upstream_idle
Patch Set: Created 5 years, 2 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
« ui/events/BUILD.gn ('K') | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/gesture_detection/gesture_configuration_android.cc
diff --git a/ui/events/gesture_detection/gesture_configuration_android.cc b/ui/events/gesture_detection/gesture_configuration_android.cc
index 73c0cf2f4014317ac8dc36c3ad1345d01befa3f3..382889c46ef186bc34e60664aecdd69532aa7327 100644
--- a/ui/events/gesture_detection/gesture_configuration_android.cc
+++ b/ui/events/gesture_detection/gesture_configuration_android.cc
@@ -37,7 +37,11 @@ class GestureConfigurationAndroid : public GestureConfiguration {
// TODO(jdduke): Enable this on Android M after the implicit conflict with
// stylus selection is resolved.
set_stylus_scale_enabled(false);
+#if defined(USE_AURA)
+ set_gesture_begin_end_types_enabled(true);
+#else
set_gesture_begin_end_types_enabled(false);
+#endif
sadrul 2015/10/15 19:54:22 Or would it make sense to actually use GestureConf
mfomitchev 2015/10/15 20:06:29 The Android implementation gets a bunch of setting
jdduke (slow) 2015/10/15 20:50:51 Sorry for the drive-by, but yeah, when we fashione
mfomitchev 2015/10/15 21:42:05 We could, sure. Isn't it preferable though to have
set_long_press_time_in_ms(ViewConfiguration::GetLongPressTimeoutInMs());
set_max_distance_between_taps_for_double_tap(
ViewConfiguration::GetDoubleTapSlopInDips());
« ui/events/BUILD.gn ('K') | « ui/events/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698