Chromium Code Reviews| Index: ui/events/gesture_detection/gesture_configuration_default.cc |
| diff --git a/ui/events/gesture_detection/gesture_config_helper.cc b/ui/events/gesture_detection/gesture_configuration_default.cc |
| similarity index 70% |
| rename from ui/events/gesture_detection/gesture_config_helper.cc |
| rename to ui/events/gesture_detection/gesture_configuration_default.cc |
| index 0039e2c1f931f834b0bbfadf76a18991af82e141..b23b947e57bae729cbd473a263917d80276660c6 100644 |
| --- a/ui/events/gesture_detection/gesture_config_helper.cc |
| +++ b/ui/events/gesture_detection/gesture_configuration_default.cc |
| @@ -2,12 +2,16 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#include "ui/events/gesture_detection/gesture_config_helper.h" |
| +#include "ui/events/gesture_detection/gesture_configuration.h" |
| #include "ui/gfx/screen.h" |
| namespace ui { |
| +GestureConfiguration* GestureConfiguration::GetInstance() { |
|
tdresser
2014/10/21 15:21:58
Why do we need a default which is different from b
jdduke (slow)
2014/10/21 16:02:06
This is used on Mac (devtools touch emulation).
jdduke (slow)
2014/10/21 16:15:12
Absolutely. There's a TODO in touch_emulator.cc to
|
| + return Singleton<GestureConfiguration>::get(); |
| +} |
| + |
| GestureProvider::Config DefaultGestureProviderConfig() { |
| GestureProvider::Config config; |
| config.display = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay(); |