OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/base/ui_base_switches_util.h" | 5 #include "ui/base/ui_base_switches_util.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "ui/base/ui_base_switches.h" | 8 #include "ui/base/ui_base_switches.h" |
9 | 9 |
| 10 using base::CommandLine; |
| 11 |
10 namespace switches { | 12 namespace switches { |
11 | 13 |
12 bool IsTextInputFocusManagerEnabled() { | 14 bool IsTextInputFocusManagerEnabled() { |
13 return CommandLine::ForCurrentProcess()->HasSwitch( | 15 return CommandLine::ForCurrentProcess()->HasSwitch( |
14 switches::kEnableTextInputFocusManager); | 16 switches::kEnableTextInputFocusManager); |
15 } | 17 } |
16 | 18 |
17 bool IsTouchDragDropEnabled() { | 19 bool IsTouchDragDropEnabled() { |
18 #if defined(OS_CHROMEOS) | 20 #if defined(OS_CHROMEOS) |
19 return !CommandLine::ForCurrentProcess()->HasSwitch( | 21 return !CommandLine::ForCurrentProcess()->HasSwitch( |
(...skipping 14 matching lines...) Expand all Loading... |
34 #endif | 36 #endif |
35 } | 37 } |
36 | 38 |
37 bool IsTouchFeedbackEnabled() { | 39 bool IsTouchFeedbackEnabled() { |
38 static bool touch_feedback_enabled = CommandLine::ForCurrentProcess()-> | 40 static bool touch_feedback_enabled = CommandLine::ForCurrentProcess()-> |
39 HasSwitch(switches::kEnableTouchFeedback); | 41 HasSwitch(switches::kEnableTouchFeedback); |
40 return touch_feedback_enabled; | 42 return touch_feedback_enabled; |
41 } | 43 } |
42 | 44 |
43 } // namespace switches | 45 } // namespace switches |
OLD | NEW |