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

Unified Diff: ui/events/gesture_detection/gesture_configuration_default.cc

Issue 613373004: Adopt ui::GestureConfiguration on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
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() {
+ return Singleton<GestureConfiguration>::get();
+}
+
GestureProvider::Config DefaultGestureProviderConfig() {
GestureProvider::Config config;
config.display = gfx::Screen::GetNativeScreen()->GetPrimaryDisplay();

Powered by Google App Engine
This is Rietveld 408576698