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

Unified Diff: ui/events/gesture_detection/gesture_provider_config_helper.h

Issue 679633005: Expose native, desktop and mobile gesture detection defaults (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use explicit result Created 6 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
Index: ui/events/gesture_detection/gesture_provider_config_helper.h
diff --git a/ui/events/gesture_detection/gesture_provider_config_helper.h b/ui/events/gesture_detection/gesture_provider_config_helper.h
index 8e5a4f2372cc23c91768346ffaa4a0659f853002..bfbe2182234391bed4d1d21f04326d57d0990ec0 100644
--- a/ui/events/gesture_detection/gesture_provider_config_helper.h
+++ b/ui/events/gesture_detection/gesture_provider_config_helper.h
@@ -12,7 +12,14 @@
namespace ui {
-GESTURE_DETECTION_EXPORT GestureProvider::Config DefaultGestureProviderConfig();
+enum class GestureProviderConfigType {
+ CURRENT_PLATFORM, // Parameters tailored for the current platform.
+ GENERIC_DESKTOP, // Parameters typical for a desktop machine.
+ GENERIC_MOBILE // Parameters typical for a mobile device (phone/tablet).
+};
+
+GESTURE_DETECTION_EXPORT GestureProvider::Config GetGestureProviderConfig(
+ GestureProviderConfigType);
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698