| OLD | NEW |
| (Empty) |
| 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. | |
| 4 | |
| 5 #include "ui/base/ui_base_switches_util.h" | |
| 6 | |
| 7 #include "base/command_line.h" | |
| 8 #include "ui/base/ui_base_switches.h" | |
| 9 | |
| 10 using base::CommandLine; | |
| 11 | |
| 12 namespace switches { | |
| 13 | |
| 14 bool IsTextInputFocusManagerEnabled() { | |
| 15 return CommandLine::ForCurrentProcess()->HasSwitch( | |
| 16 switches::kEnableTextInputFocusManager); | |
| 17 } | |
| 18 | |
| 19 bool IsTouchDragDropEnabled() { | |
| 20 #if defined(OS_CHROMEOS) | |
| 21 return !CommandLine::ForCurrentProcess()->HasSwitch( | |
| 22 switches::kDisableTouchDragDrop); | |
| 23 #else | |
| 24 return CommandLine::ForCurrentProcess()->HasSwitch( | |
| 25 switches::kEnableTouchDragDrop); | |
| 26 #endif | |
| 27 } | |
| 28 | |
| 29 bool IsTouchEditingEnabled() { | |
| 30 return CommandLine::ForCurrentProcess()->HasSwitch( | |
| 31 switches::kEnableTouchEditing); | |
| 32 } | |
| 33 | |
| 34 bool IsTouchFeedbackEnabled() { | |
| 35 static bool touch_feedback_enabled = CommandLine::ForCurrentProcess()-> | |
| 36 HasSwitch(switches::kEnableTouchFeedback); | |
| 37 return touch_feedback_enabled; | |
| 38 } | |
| 39 | |
| 40 } // namespace switches | |
| OLD | NEW |