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

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

Issue 181833003: [Android] Out with the Android GR, in with the new unified C++ GR (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 9 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
« no previous file with comments | « ui/events/events.gyp ('k') | ui/events/gesture_detection/gesture_event_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/events/gestures/gesture_configuration.h" 7 #include "ui/events/gestures/gesture_configuration.h"
8 #include "ui/gfx/screen.h" 8 #include "ui/gfx/screen.h"
9 9
10 namespace ui { 10 namespace ui {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 const gfx::Display& display = 47 const gfx::Display& display =
48 gfx::Screen::GetNativeScreen()->GetPrimaryDisplay(); 48 gfx::Screen::GetNativeScreen()->GetPrimaryDisplay();
49 49
50 config.screen_width_pixels = display.GetSizeInPixel().width(); 50 config.screen_width_pixels = display.GetSizeInPixel().width();
51 config.screen_height_pixels = display.GetSizeInPixel().height(); 51 config.screen_height_pixels = display.GetSizeInPixel().height();
52 config.device_scale_factor = display.device_scale_factor(); 52 config.device_scale_factor = display.device_scale_factor();
53 53
54 return config; 54 return config;
55 } 55 }
56 56
57 GestureProvider::Config DefaultGestureHandlerConfig() { 57 GestureProvider::Config DefaultGestureProviderConfig() {
58 GestureProvider::Config config; 58 GestureProvider::Config config;
59 config.gesture_detector_config = DefaultGestureDetectorConfig(); 59 config.gesture_detector_config = DefaultGestureDetectorConfig();
60 config.scale_gesture_detector_config = DefaultScaleGestureDetectorConfig(); 60 config.scale_gesture_detector_config = DefaultScaleGestureDetectorConfig();
61 config.snap_scroll_controller_config = DefaultSnapScrollControllerConfig(); 61 config.snap_scroll_controller_config = DefaultSnapScrollControllerConfig();
62 return config; 62 return config;
63 } 63 }
64 64
65 } // namespace ui 65 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/events.gyp ('k') | ui/events/gesture_detection/gesture_event_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698