summaryrefslogtreecommitdiffstats
path: root/chromium/ui/views/views_touch_selection_controller_factory_aura.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/views/views_touch_selection_controller_factory_aura.cc')
-rw-r--r--chromium/ui/views/views_touch_selection_controller_factory_aura.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/chromium/ui/views/views_touch_selection_controller_factory_aura.cc b/chromium/ui/views/views_touch_selection_controller_factory_aura.cc
new file mode 100644
index 00000000000..a28da03a2e4
--- /dev/null
+++ b/chromium/ui/views/views_touch_selection_controller_factory_aura.cc
@@ -0,0 +1,22 @@
+// Copyright 2014 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/views/views_touch_selection_controller_factory.h"
+
+#include "ui/base/ui_base_switches_util.h"
+#include "ui/views/touchui/touch_selection_controller_impl.h"
+
+namespace views {
+
+ViewsTouchSelectionControllerFactory::ViewsTouchSelectionControllerFactory() {
+}
+
+ui::TouchSelectionController* ViewsTouchSelectionControllerFactory::create(
+ ui::TouchEditable* client_view) {
+ if (switches::IsTouchEditingEnabled())
+ return new views::TouchSelectionControllerImpl(client_view);
+ return NULL;
+}
+
+} // namespace views