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

Side by Side Diff: ui/events/gesture_detection/gesture_config_helper_android.cc

Issue 223673006: Support GestureBegin and GestureEnd in ui::GestureProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address jdduke's comments. 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 | Annotate | Revision Log
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/android/view_configuration.h" 7 #include "ui/gfx/android/view_configuration.h"
8 #include "ui/gfx/screen.h" 8 #include "ui/gfx/screen.h"
9 9
10 using gfx::ViewConfiguration; 10 using gfx::ViewConfiguration;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 config.device_scale_factor = display.device_scale_factor(); 56 config.device_scale_factor = display.device_scale_factor();
57 57
58 return config; 58 return config;
59 } 59 }
60 60
61 GestureProvider::Config DefaultGestureProviderConfig() { 61 GestureProvider::Config DefaultGestureProviderConfig() {
62 GestureProvider::Config config; 62 GestureProvider::Config config;
63 config.gesture_detector_config = DefaultGestureDetectorConfig(); 63 config.gesture_detector_config = DefaultGestureDetectorConfig();
64 config.scale_gesture_detector_config = DefaultScaleGestureDetectorConfig(); 64 config.scale_gesture_detector_config = DefaultScaleGestureDetectorConfig();
65 config.snap_scroll_controller_config = DefaultSnapScrollControllerConfig(); 65 config.snap_scroll_controller_config = DefaultSnapScrollControllerConfig();
66 config.gesture_begin_end_types_enabled = false;
66 return config; 67 return config;
67 } 68 }
68 69
69 } // namespace ui 70 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698