1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/base/ui_base_switches_util.h"
7 #include "base/command_line.h"
8 #include "ui/base/ui_base_switches.h"
12 bool IsLinkDisambiguationPopupEnabled() {
13 #if defined(OS_ANDROID)
16 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
17 switches::kEnableLinkDisambiguationPopup
)) {
24 bool IsTouchDragDropEnabled() {
25 #if defined(OS_CHROMEOS)
26 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
27 switches::kDisableTouchDragDrop
);
29 return base::CommandLine::ForCurrentProcess()->HasSwitch(
30 switches::kEnableTouchDragDrop
);
34 bool IsTouchEditingEnabled() {
36 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
37 switches::kDisableTouchEditing
);
39 return base::CommandLine::ForCurrentProcess()->HasSwitch(
40 switches::kEnableTouchEditing
);
44 bool IsTouchFeedbackEnabled() {
45 static bool touch_feedback_enabled
=
46 !base::CommandLine::ForCurrentProcess()->HasSwitch(
47 switches::kDisableTouchFeedback
);
48 return touch_feedback_enabled
;
51 } // namespace switches