summaryrefslogtreecommitdiff
path: root/chromium/ui/base/pointer/touch_editing_controller.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/base/pointer/touch_editing_controller.cc')
-rw-r--r--chromium/ui/base/pointer/touch_editing_controller.cc26
1 files changed, 26 insertions, 0 deletions
diff --git a/chromium/ui/base/pointer/touch_editing_controller.cc b/chromium/ui/base/pointer/touch_editing_controller.cc
new file mode 100644
index 00000000000..08c842f0d7e
--- /dev/null
+++ b/chromium/ui/base/pointer/touch_editing_controller.cc
@@ -0,0 +1,26 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/base/pointer/touch_editing_controller.h"
+
+namespace ui {
+
+namespace {
+TouchEditingControllerFactory* g_shared_instance = NULL;
+} // namespace
+
+TouchEditingControllerDeprecated* TouchEditingControllerDeprecated::Create(
+ TouchEditable* client_view) {
+ if (g_shared_instance)
+ return g_shared_instance->Create(client_view);
+ return NULL;
+}
+
+// static
+void TouchEditingControllerFactory::SetInstance(
+ TouchEditingControllerFactory* instance) {
+ g_shared_instance = instance;
+}
+
+} // namespace ui