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

Unified Diff: ui/views/views_touch_selection_controller_factory_aura.cc

Issue 248763003: MacViews: Better layering for the touch selection controller (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix derp Created 6 years, 8 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/views/views_touch_selection_controller_factory_aura.cc
diff --git a/ui/views/views_touch_selection_controller_factory_aura.cc b/ui/views/views_touch_selection_controller_factory_aura.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a28da03a2e4ce6d81d2ab2f8bea165f2e1421ee3
--- /dev/null
+++ b/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
« no previous file with comments | « ui/views/views_touch_selection_controller_factory.h ('k') | ui/views/views_touch_selection_controller_factory_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698