Supress proguard warnings for GooglePlayServicesUtil.
[chromium-blink-merge.git] / ui / base / ui_base_switches_util.cc
blobe529a7c8d9e371cb5a34ea77a62afec28c0815f8
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"
10 namespace switches {
12 bool IsLinkDisambiguationPopupEnabled() {
13 #if defined(OS_ANDROID)
14 return true;
15 #else
16 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
17 switches::kEnableLinkDisambiguationPopup)) {
18 return true;
20 return false;
21 #endif
24 bool IsTouchDragDropEnabled() {
25 #if defined(OS_CHROMEOS)
26 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
27 switches::kDisableTouchDragDrop);
28 #else
29 return base::CommandLine::ForCurrentProcess()->HasSwitch(
30 switches::kEnableTouchDragDrop);
31 #endif
34 bool IsTouchEditingEnabled() {
35 #if defined(USE_AURA)
36 return !base::CommandLine::ForCurrentProcess()->HasSwitch(
37 switches::kDisableTouchEditing);
38 #else
39 return base::CommandLine::ForCurrentProcess()->HasSwitch(
40 switches::kEnableTouchEditing);
41 #endif
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