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

Unified Diff: ui/base/ui_base_switches_util.cc

Issue 14286004: Make touch drag drop and touch editing flags tri-state and turn them on by (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch 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 | « ui/base/ui_base_switches_util.h ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ui_base_switches_util.cc
diff --git a/ui/base/ui_base_switches_util.cc b/ui/base/ui_base_switches_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3089607af86617537edc617cf670492488a10453
--- /dev/null
+++ b/ui/base/ui_base_switches_util.cc
@@ -0,0 +1,32 @@
+// Copyright (c) 2013 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/base/ui_base_switches_util.h"
+
+#include "base/command_line.h"
+#include "ui/base/ui_base_switches.h"
+
+namespace switches {
+
+bool IsTouchDragDropEnabled() {
+#if defined(OS_CHROMEOS)
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableTouchDragDrop);
+#else
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableTouchDragDrop);
+#endif
+}
+
+bool IsTouchEditingEnabled() {
+#if defined(OS_CHROMEOS)
+ return !CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableTouchEditing);
+#else
+ return CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableTouchEditing);
+#endif
+}
+
+} // namespace switches
« no previous file with comments | « ui/base/ui_base_switches_util.h ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698