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

Unified Diff: ui/views/touchui/touch_selection_controller_impl.cc

Issue 258483002: Revert of MacViews: Better layering for the touch selection controller (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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/touchui/touch_selection_controller_impl.cc
diff --git a/ui/views/touchui/touch_selection_controller_impl.cc b/ui/views/touchui/touch_selection_controller_impl.cc
index 763096fc90c9feddab66ea1c32c95b9dfce06b0e..1e8c2f524cf79d4fe65bbb6b50db5811446fa95a 100644
--- a/ui/views/touchui/touch_selection_controller_impl.cc
+++ b/ui/views/touchui/touch_selection_controller_impl.cc
@@ -8,6 +8,7 @@
#include "grit/ui_resources.h"
#include "grit/ui_strings.h"
#include "ui/base/resource/resource_bundle.h"
+#include "ui/base/ui_base_switches_util.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/path.h"
@@ -608,4 +609,14 @@
return cursor_handle_->IsWidgetVisible();
}
+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/touchui/touch_selection_controller_impl.h ('k') | ui/views/touchui/touch_selection_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698