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 |