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

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

Issue 220063002: [Android] Use DIP coordinates with MotionEventAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 6 years, 8 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_config_helper.cc
diff --git a/ui/events/gesture_detection/gesture_config_helper.cc b/ui/events/gesture_detection/gesture_config_helper.cc
index 86ad6c7f7b006c69861c6c8db918095fdb7cbff8..0039e2c1f931f834b0bbfadf76a18991af82e141 100644
--- a/ui/events/gesture_detection/gesture_config_helper.cc
+++ b/ui/events/gesture_detection/gesture_config_helper.cc
@@ -4,22 +4,14 @@
#include "ui/events/gesture_detection/gesture_config_helper.h"
-namespace ui {
-
-GestureDetector::Config DefaultGestureDetectorConfig() {
- return GestureDetector::Config();
-}
+#include "ui/gfx/screen.h"
-ScaleGestureDetector::Config DefaultScaleGestureDetectorConfig() {
- return ScaleGestureDetector::Config();
-}
-
-SnapScrollController::Config DefaultSnapScrollControllerConfig() {
- return SnapScrollController::Config();
-}
+namespace ui {
GestureProvider::Config DefaultGestureProviderConfig() {
- return GestureProvider::Config();
+ GestureProvider::Config config;
+ config.display = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay();
+ return config;
}
} // namespace ui
« no previous file with comments | « ui/events/gesture_detection/gesture_config_helper.h ('k') | ui/events/gesture_detection/gesture_config_helper_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698