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

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

Issue 14439009: Revert 196446 "Make touch drag drop and touch editing flags tri-..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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
« no previous file with comments | « trunk/src/ui/views/controls/textfield/native_textfield_views.cc ('k') | trunk/src/ui/views/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/views/touchui/touch_selection_controller_impl.cc
===================================================================
--- trunk/src/ui/views/touchui/touch_selection_controller_impl.cc (revision 196476)
+++ trunk/src/ui/views/touchui/touch_selection_controller_impl.cc (working copy)
@@ -4,9 +4,10 @@
#include "ui/views/touchui/touch_selection_controller_impl.h"
+#include "base/command_line.h"
#include "base/time.h"
#include "grit/ui_strings.h"
-#include "ui/base/ui_base_switches_util.h"
+#include "ui/base/ui_base_switches.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/rect.h"
#include "ui/gfx/screen.h"
@@ -419,8 +420,11 @@
ui::TouchSelectionController* ViewsTouchSelectionControllerFactory::create(
ui::TouchEditable* client_view) {
- if (switches::IsTouchEditingEnabled())
+#if defined(OS_CHROMEOS)
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableTouchEditing))
return new views::TouchSelectionControllerImpl(client_view);
+#endif
return NULL;
}
« no previous file with comments | « trunk/src/ui/views/controls/textfield/native_textfield_views.cc ('k') | trunk/src/ui/views/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698