Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Unified Diff: ui/base/touch/touch_enabled.cc

Issue 2467913002: Touch event flag should control only DOM event firing. (Closed)
Patch Set: Change the string in "about://flags" Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
-

Powered by Google App Engine
This is Rietveld 408576698