| Index: ui/base/touch/touch_enabled.cc
|
| diff --git a/ui/base/touch/touch_enabled.cc b/ui/base/touch/touch_enabled.cc
|
| index 4992f2ff627240df11f05657f6d53968f0871572..963f9182ca18cb28a4599c3f73cf282a00bac857 100644
|
| --- a/ui/base/touch/touch_enabled.cc
|
| +++ b/ui/base/touch/touch_enabled.cc
|
| @@ -21,7 +21,7 @@ enum class TouchEventsStatus {
|
| ENABLED,
|
| };
|
|
|
| -TouchEventsStatus ComputeTouchFlagStatus() {
|
| +TouchEventsStatus ComputeTouchAPIFlagStatus() {
|
| auto* command_line = base::CommandLine::ForCurrentProcess();
|
| const std::string touch_enabled_switch =
|
| command_line->HasSwitch(switches::kTouchEvents) ?
|
| @@ -43,8 +43,8 @@ TouchEventsStatus ComputeTouchFlagStatus() {
|
|
|
| } // namespace
|
|
|
| -bool AreTouchEventsEnabled() {
|
| - static TouchEventsStatus touch_flag_status = ComputeTouchFlagStatus();
|
| +bool IsTouchAPIEnabled() {
|
| + static TouchEventsStatus touch_flag_status = ComputeTouchAPIFlagStatus();
|
|
|
| // The #touch-events flag is used to force and simulate the presence or
|
| // absence of touch devices. Only if the flag is set to AUTO, we need to check
|
| @@ -56,4 +56,3 @@ bool AreTouchEventsEnabled() {
|
| }
|
|
|
| } // namespace ui
|
| -
|
|
|