| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |