Add Chrome flag for Exo gamepad vibration
Exo gamepad vibration is disabled by default. We add a toggle in
chrome://flags that allows gamepad vibration to be enabled for Exo
clients that support it.
BUG=b:158673179
TEST=manual. Enable flag, and ensure exo client can vibrate gamepad.
Change-Id: I4b64b8eb49bba8c7620af80cdaf2ac17ceb3b6cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2402110
Auto-Submit: Prabir Pradhan <[email protected]>
Reviewed-by: Mitsuru Oshima (Slow: gardener) <[email protected]>
Reviewed-by: Tetsui Ohkubo <[email protected]>
Commit-Queue: Prabir Pradhan <[email protected]>
Cr-Commit-Position: refs/heads/master@{#806251}
diff --git a/chrome/browser/about_flags.cc b/chrome/browser/about_flags.cc
index dc046e57a..0443d42 100644
--- a/chrome/browser/about_flags.cc
+++ b/chrome/browser/about_flags.cc
@@ -5779,12 +5779,12 @@
#endif
#if defined(OS_CHROMEOS)
+ {"exo-gamepad-vibration", flag_descriptions::kExoGamepadVibrationName,
+ flag_descriptions::kExoGamepadVibrationDescription, kOsCrOS,
+ FEATURE_VALUE_TYPE(chromeos::features::kGamepadVibration)},
{"exo-ordinal-motion", flag_descriptions::kExoOrdinalMotionName,
flag_descriptions::kExoOrdinalMotionDescription, kOsCrOS,
FEATURE_VALUE_TYPE(chromeos::features::kExoOrdinalMotion)},
-#endif // defined(OS_CHROMEOS)
-
-#if defined(OS_CHROMEOS)
{"exo-pointer-lock", flag_descriptions::kExoPointerLockName,
flag_descriptions::kExoPointerLockDescription, kOsCrOS,
FEATURE_VALUE_TYPE(chromeos::features::kExoPointerLock)},