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 IsTextInputFocusManagerEnabled() {
13 return CommandLine::ForCurrentProcess()->HasSwitch(
14 switches::kEnableTextInputFocusManager
);
17 bool IsTouchDragDropEnabled() {
18 #if defined(OS_CHROMEOS)
19 return !CommandLine::ForCurrentProcess()->HasSwitch(
20 switches::kDisableTouchDragDrop
);
22 return CommandLine::ForCurrentProcess()->HasSwitch(
23 switches::kEnableTouchDragDrop
);
27 bool IsTouchEditingEnabled() {
29 return !CommandLine::ForCurrentProcess()->HasSwitch(
30 switches::kDisableTouchEditing
);
32 return CommandLine::ForCurrentProcess()->HasSwitch(
33 switches::kEnableTouchEditing
);
37 } // namespace switches