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 namespace switches { | 10 namespace switches { |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 #endif | 46 #endif |
47 } | 47 } |
48 | 48 |
49 bool IsTouchFeedbackEnabled() { | 49 bool IsTouchFeedbackEnabled() { |
50 static bool touch_feedback_enabled = | 50 static bool touch_feedback_enabled = |
51 !base::CommandLine::ForCurrentProcess()->HasSwitch( | 51 !base::CommandLine::ForCurrentProcess()->HasSwitch( |
52 switches::kDisableTouchFeedback); | 52 switches::kDisableTouchFeedback); |
53 return touch_feedback_enabled; | 53 return touch_feedback_enabled; |
54 } | 54 } |
55 | 55 |
| 56 #if defined(OS_ANDROID) |
| 57 bool IsCursorAnchorInfoEnabled() { |
| 58 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 59 switches::kEnableCursorAnchorInfo); |
| 60 } |
| 61 #endif |
| 62 |
56 } // namespace switches | 63 } // namespace switches |
OLD | NEW |