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

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

Issue 1922783002: Move gfx::Display/Screen to display::Display/Screen in aura/events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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_configuration.h" 5 #include "ui/events/gesture_detection/gesture_configuration.h"
6 6
7 #include "base/android/build_info.h" 7 #include "base/android/build_info.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "ui/display/screen.h"
10 #include "ui/gfx/android/view_configuration.h" 11 #include "ui/gfx/android/view_configuration.h"
11 #include "ui/gfx/screen.h"
12 12
13 using gfx::ViewConfiguration; 13 using gfx::ViewConfiguration;
14 14
15 namespace ui { 15 namespace ui {
16 namespace { 16 namespace {
17 17
18 // Touch radii on Android can be both noisy and inaccurate. The old Java 18 // Touch radii on Android can be both noisy and inaccurate. The old Java
19 // gesture detection pipeline used a fixed value of 24 as the gesture bounds. 19 // gesture detection pipeline used a fixed value of 24 as the gesture bounds.
20 // We relax that value somewhat, but not by much; there's a fairly small window 20 // We relax that value somewhat, but not by much; there's a fairly small window
21 // within which gesture bounds are useful for features like touch adjustment. 21 // within which gesture bounds are useful for features like touch adjustment.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 }; 72 };
73 73
74 } // namespace 74 } // namespace
75 75
76 // Create a GestureConfigurationAura singleton instance when using Android. 76 // Create a GestureConfigurationAura singleton instance when using Android.
77 GestureConfiguration* GestureConfiguration::GetPlatformSpecificInstance() { 77 GestureConfiguration* GestureConfiguration::GetPlatformSpecificInstance() {
78 return GestureConfigurationAndroid::GetInstance(); 78 return GestureConfigurationAndroid::GetInstance();
79 } 79 }
80 80
81 } // namespace ui 81 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698