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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "ui/events/gesture_detection/gesture_config_helper.h" 5 #include "ui/events/gesture_detection/gesture_config_helper.h"
6 6
7 #include "ui/gfx/screen.h"
8
7 namespace ui { 9 namespace ui {
8 10
9 GestureDetector::Config DefaultGestureDetectorConfig() {
10 return GestureDetector::Config();
11 }
12
13 ScaleGestureDetector::Config DefaultScaleGestureDetectorConfig() {
14 return ScaleGestureDetector::Config();
15 }
16
17 SnapScrollController::Config DefaultSnapScrollControllerConfig() {
18 return SnapScrollController::Config();
19 }
20
21 GestureProvider::Config DefaultGestureProviderConfig() { 11 GestureProvider::Config DefaultGestureProviderConfig() {
22 return GestureProvider::Config(); 12 GestureProvider::Config config;
13 config.display = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay();
14 return config;
23 } 15 }
24 16
25 } // namespace ui 17 } // namespace ui
OLDNEW
« 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