Commit 9185e586 authored by Will Cassella's avatar Will Cassella Committed by Commit Bot

Remove WebXrGamepadModule feature flag

The WebXrGamepadModule has been stable for quite some time, so the
feature flag has been removed.

Change-Id: Icf57f11a357c299480e7e08c50260b2949aeafa3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1980891Reviewed-by: default avatarNico Weber <thakis@chromium.org>
Reviewed-by: default avatarJohn Abd-El-Malek <jam@chromium.org>
Commit-Queue: Will Cassella <cassew@google.com>
Cr-Commit-Position: refs/heads/master@{#727315}
parent 5f05b199
...@@ -100,7 +100,7 @@ public class WebXrVrInputTest { ...@@ -100,7 +100,7 @@ public class WebXrVrInputTest {
.Build(message = "Flaky on K/L crbug.com/762126", .Build(message = "Flaky on K/L crbug.com/762126",
sdk_is_less_than = Build.VERSION_CODES.M) sdk_is_less_than = Build.VERSION_CODES.M)
@Restriction(RESTRICTION_TYPE_SVR) @Restriction(RESTRICTION_TYPE_SVR)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void public void
testScreenTapsNotRegistered_WebXr() throws InterruptedException { testScreenTapsNotRegistered_WebXr() throws InterruptedException {
...@@ -139,7 +139,7 @@ public class WebXrVrInputTest { ...@@ -139,7 +139,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void testControllerClicksRegisteredOnDaydream_WebXr() { public void testControllerClicksRegisteredOnDaydream_WebXr() {
EmulatedVrController controller = new EmulatedVrController(mTestRule.getActivity()); EmulatedVrController controller = new EmulatedVrController(mTestRule.getActivity());
...@@ -173,7 +173,7 @@ public class WebXrVrInputTest { ...@@ -173,7 +173,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void testControllerExposedAsGamepadOnDaydream_WebXr() { public void testControllerExposedAsGamepadOnDaydream_WebXr() {
EmulatedVrController controller = new EmulatedVrController(mTestRule.getActivity()); EmulatedVrController controller = new EmulatedVrController(mTestRule.getActivity());
...@@ -289,7 +289,7 @@ public class WebXrVrInputTest { ...@@ -289,7 +289,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_NON_DAYDREAM) @Restriction(RESTRICTION_TYPE_VIEWER_NON_DAYDREAM)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void testScreenTapsRegisteredOnCardboard_WebXr() { public void testScreenTapsRegisteredOnCardboard_WebXr() {
mWebXrVrTestFramework.loadUrlAndAwaitInitialization( mWebXrVrTestFramework.loadUrlAndAwaitInitialization(
...@@ -325,7 +325,7 @@ public class WebXrVrInputTest { ...@@ -325,7 +325,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_NON_DAYDREAM) @Restriction(RESTRICTION_TYPE_VIEWER_NON_DAYDREAM)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void testTransientScreenTapsRegisteredOnCardboard_WebXr() { public void testTransientScreenTapsRegisteredOnCardboard_WebXr() {
mWebXrVrTestFramework.loadUrlAndAwaitInitialization( mWebXrVrTestFramework.loadUrlAndAwaitInitialization(
...@@ -356,7 +356,7 @@ public class WebXrVrInputTest { ...@@ -356,7 +356,7 @@ public class WebXrVrInputTest {
*/ */
@Test @Test
@MediumTest @MediumTest
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void testPresentationLocksFocus_WebXr() { public void testPresentationLocksFocus_WebXr() {
presentationLocksFocusImpl(WebXrVrTestFramework.getFileUrlForHtmlTestFile( presentationLocksFocusImpl(WebXrVrTestFramework.getFileUrlForHtmlTestFile(
...@@ -387,7 +387,7 @@ public class WebXrVrInputTest { ...@@ -387,7 +387,7 @@ public class WebXrVrInputTest {
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM)
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
public void testAppButtonNoopsWhenBrowsingDisabled_WebXr() throws ExecutionException { public void testAppButtonNoopsWhenBrowsingDisabled_WebXr() throws ExecutionException {
appButtonNoopsTestImpl(WebXrVrTestFramework.getFileUrlForHtmlTestFile("generic_webxr_page"), appButtonNoopsTestImpl(WebXrVrTestFramework.getFileUrlForHtmlTestFile("generic_webxr_page"),
mWebXrVrTestFramework); mWebXrVrTestFramework);
...@@ -402,7 +402,7 @@ public class WebXrVrInputTest { ...@@ -402,7 +402,7 @@ public class WebXrVrInputTest {
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM)
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.WAA, @XrActivityRestriction({XrActivityRestriction.SupportedActivity.WAA,
XrActivityRestriction.SupportedActivity.CCT}) XrActivityRestriction.SupportedActivity.CCT})
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
public void public void
testAppButtonNoopsWhenBrowsingNotSupported_WebXr() throws ExecutionException { testAppButtonNoopsWhenBrowsingNotSupported_WebXr() throws ExecutionException {
appButtonNoopsTestImpl(WebXrVrTestFramework.getFileUrlForHtmlTestFile("generic_webxr_page"), appButtonNoopsTestImpl(WebXrVrTestFramework.getFileUrlForHtmlTestFile("generic_webxr_page"),
...@@ -439,7 +439,7 @@ public class WebXrVrInputTest { ...@@ -439,7 +439,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
public void testAppButtonAfterPageStopsSubmitting_WebXr() { public void testAppButtonAfterPageStopsSubmitting_WebXr() {
appButtonAfterPageStopsSubmittingImpl( appButtonAfterPageStopsSubmittingImpl(
WebXrVrTestFramework.getFileUrlForHtmlTestFile("webxr_page_submits_once"), WebXrVrTestFramework.getFileUrlForHtmlTestFile("webxr_page_submits_once"),
...@@ -464,7 +464,7 @@ public class WebXrVrInputTest { ...@@ -464,7 +464,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void testWebXrInputSourceHasGamepad() { public void testWebXrInputSourceHasGamepad() {
webxrGamepadSupportImpl(true /* daydream */); webxrGamepadSupportImpl(true /* daydream */);
...@@ -478,7 +478,7 @@ public class WebXrVrInputTest { ...@@ -478,7 +478,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_NON_DAYDREAM) @Restriction(RESTRICTION_TYPE_VIEWER_NON_DAYDREAM)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void testWebXrInputSourceWithoutGamepad_Cardboard() { public void testWebXrInputSourceWithoutGamepad_Cardboard() {
webxrGamepadSupportImpl(false /* daydream */); webxrGamepadSupportImpl(false /* daydream */);
...@@ -525,7 +525,7 @@ public class WebXrVrInputTest { ...@@ -525,7 +525,7 @@ public class WebXrVrInputTest {
@Test @Test
@LargeTest @LargeTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.ALL})
public void testAppButtonLongPressDisplaysPermissions() throws InterruptedException { public void testAppButtonLongPressDisplaysPermissions() throws InterruptedException {
testAppButtonLongPressDisplaysPermissionsImpl(); testAppButtonLongPressDisplaysPermissionsImpl();
...@@ -538,10 +538,9 @@ public class WebXrVrInputTest { ...@@ -538,10 +538,9 @@ public class WebXrVrInputTest {
@Test @Test
@LargeTest @LargeTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.CTA}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.CTA})
public void testAppButtonLongPressDisplaysPermissionsIncognito() public void testAppButtonLongPressDisplaysPermissionsIncognito() throws InterruptedException {
throws InterruptedException {
mWebXrVrTestFramework.openIncognitoTab("about:blank"); mWebXrVrTestFramework.openIncognitoTab("about:blank");
testAppButtonLongPressDisplaysPermissionsImpl(); testAppButtonLongPressDisplaysPermissionsImpl();
} }
...@@ -610,7 +609,7 @@ public class WebXrVrInputTest { ...@@ -610,7 +609,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
// TODO(https://crbug.com/901494): Make this run everywhere when permissions are // TODO(https://crbug.com/901494): Make this run everywhere when permissions are
// unbroken. // unbroken.
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.CTA}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.CTA})
...@@ -621,7 +620,7 @@ public class WebXrVrInputTest { ...@@ -621,7 +620,7 @@ public class WebXrVrInputTest {
@Test @Test
@MediumTest @MediumTest
@Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE) @Restriction(RESTRICTION_TYPE_VIEWER_DAYDREAM_OR_STANDALONE)
@CommandLineFlags.Add({"enable-features=WebXR,WebXrGamepadModule"}) @CommandLineFlags.Add({"enable-features=WebXR"})
@XrActivityRestriction({XrActivityRestriction.SupportedActivity.CTA}) @XrActivityRestriction({XrActivityRestriction.SupportedActivity.CTA})
public void testInSessionPermissionRequestsIncognito() { public void testInSessionPermissionRequestsIncognito() {
mWebXrVrTestFramework.openIncognitoTab("about:blank"); mWebXrVrTestFramework.openIncognitoTab("about:blank");
......
...@@ -16,7 +16,6 @@ namespace vr { ...@@ -16,7 +16,6 @@ namespace vr {
WebXrVrBrowserTestBase::WebXrVrBrowserTestBase() { WebXrVrBrowserTestBase::WebXrVrBrowserTestBase() {
enable_features_.push_back(features::kWebXr); enable_features_.push_back(features::kWebXr);
enable_features_.push_back(features::kWebXrGamepadModule);
} }
WebXrVrBrowserTestBase::~WebXrVrBrowserTestBase() = default; WebXrVrBrowserTestBase::~WebXrVrBrowserTestBase() = default;
......
...@@ -189,8 +189,6 @@ void SetRuntimeFeaturesFromChromiumFeatures() { ...@@ -189,8 +189,6 @@ void SetRuntimeFeaturesFromChromiumFeatures() {
{wf::EnableWebXRAnchors, features::kWebXrAnchors, kEnableOnly}, {wf::EnableWebXRAnchors, features::kWebXrAnchors, kEnableOnly},
{wf::EnableWebXRPlaneDetection, features::kWebXrPlaneDetection, {wf::EnableWebXRPlaneDetection, features::kWebXrPlaneDetection,
kEnableOnly}, kEnableOnly},
{wf::EnableWebXrGamepadModule, features::kWebXrGamepadModule,
kUseFeatureState},
{wf::EnableFetchMetadata, network::features::kFetchMetadata, {wf::EnableFetchMetadata, network::features::kFetchMetadata,
kUseFeatureState}, kUseFeatureState},
{wf::EnableFetchMetadataDestination, {wf::EnableFetchMetadataDestination,
......
...@@ -719,10 +719,6 @@ const base::Feature kWebXrArModule{"WebXRARModule", ...@@ -719,10 +719,6 @@ const base::Feature kWebXrArModule{"WebXRARModule",
const base::Feature kWebXrAnchors{"WebXRAnchors", const base::Feature kWebXrAnchors{"WebXRAnchors",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
// Enables access to the WebXR Device API gamepad module.
const base::Feature kWebXrGamepadModule{"WebXrGamepadModule",
base::FEATURE_ENABLED_BY_DEFAULT};
// Enables access to raycasting against estimated XR scene geometry. // Enables access to raycasting against estimated XR scene geometry.
const base::Feature kWebXrHitTest{"WebXRHitTest", const base::Feature kWebXrHitTest{"WebXRHitTest",
base::FEATURE_DISABLED_BY_DEFAULT}; base::FEATURE_DISABLED_BY_DEFAULT};
......
...@@ -150,7 +150,6 @@ CONTENT_EXPORT extern const base::Feature kWebXr; ...@@ -150,7 +150,6 @@ CONTENT_EXPORT extern const base::Feature kWebXr;
CONTENT_EXPORT extern const base::Feature kWebXrArModule; CONTENT_EXPORT extern const base::Feature kWebXrArModule;
CONTENT_EXPORT extern const base::Feature kWebXrAnchors; CONTENT_EXPORT extern const base::Feature kWebXrAnchors;
CONTENT_EXPORT extern const base::Feature kWebXrArDOMOverlay; CONTENT_EXPORT extern const base::Feature kWebXrArDOMOverlay;
CONTENT_EXPORT extern const base::Feature kWebXrGamepadModule;
CONTENT_EXPORT extern const base::Feature kWebXrHitTest; CONTENT_EXPORT extern const base::Feature kWebXrHitTest;
CONTENT_EXPORT extern const base::Feature kWebXrPlaneDetection; CONTENT_EXPORT extern const base::Feature kWebXrPlaneDetection;
CONTENT_EXPORT extern const base::Feature kScriptStreamingOnPreload; CONTENT_EXPORT extern const base::Feature kScriptStreamingOnPreload;
......
...@@ -195,7 +195,6 @@ class WebRuntimeFeatures { ...@@ -195,7 +195,6 @@ class WebRuntimeFeatures {
BLINK_PLATFORM_EXPORT static void EnableWebXRARModule(bool); BLINK_PLATFORM_EXPORT static void EnableWebXRARModule(bool);
BLINK_PLATFORM_EXPORT static void EnableWebXRARDOMOverlay(bool); BLINK_PLATFORM_EXPORT static void EnableWebXRARDOMOverlay(bool);
BLINK_PLATFORM_EXPORT static void EnableWebXRAnchors(bool); BLINK_PLATFORM_EXPORT static void EnableWebXRAnchors(bool);
BLINK_PLATFORM_EXPORT static void EnableWebXrGamepadModule(bool);
BLINK_PLATFORM_EXPORT static void EnableWebXRHitTest(bool); BLINK_PLATFORM_EXPORT static void EnableWebXRHitTest(bool);
BLINK_PLATFORM_EXPORT static void EnableWebXRPlaneDetection(bool); BLINK_PLATFORM_EXPORT static void EnableWebXRPlaneDetection(bool);
BLINK_PLATFORM_EXPORT static void EnableXSLT(bool); BLINK_PLATFORM_EXPORT static void EnableXSLT(bool);
......
...@@ -23,6 +23,6 @@ enum XRTargetRayMode { ...@@ -23,6 +23,6 @@ enum XRTargetRayMode {
readonly attribute XRTargetRayMode targetRayMode; readonly attribute XRTargetRayMode targetRayMode;
[SameObject] readonly attribute XRSpace targetRaySpace; [SameObject] readonly attribute XRSpace targetRaySpace;
[SameObject] readonly attribute XRSpace? gripSpace; [SameObject] readonly attribute XRSpace? gripSpace;
[SameObject, Measure, RuntimeEnabled=WebXrGamepadModule] readonly attribute Gamepad? gamepad; [SameObject, Measure] readonly attribute Gamepad? gamepad;
[SameObject, SaveSameObject] readonly attribute FrozenArray<DOMString> profiles; [SameObject, SaveSameObject] readonly attribute FrozenArray<DOMString> profiles;
}; };
...@@ -484,10 +484,6 @@ void WebRuntimeFeatures::EnableWebXRAnchors(bool enable) { ...@@ -484,10 +484,6 @@ void WebRuntimeFeatures::EnableWebXRAnchors(bool enable) {
RuntimeEnabledFeatures::SetWebXRAnchorsEnabled(enable); RuntimeEnabledFeatures::SetWebXRAnchorsEnabled(enable);
} }
void WebRuntimeFeatures::EnableWebXrGamepadModule(bool enable) {
RuntimeEnabledFeatures::SetWebXrGamepadModuleEnabled(enable);
}
void WebRuntimeFeatures::EnableWebXRHitTest(bool enable) { void WebRuntimeFeatures::EnableWebXRHitTest(bool enable) {
RuntimeEnabledFeatures::SetWebXRHitTestEnabled(enable); RuntimeEnabledFeatures::SetWebXRHitTestEnabled(enable);
} }
......
...@@ -1884,11 +1884,6 @@ ...@@ -1884,11 +1884,6 @@
depends_on: ["WebXR"], depends_on: ["WebXR"],
status: "experimental", status: "experimental",
}, },
{
name: "WebXrGamepadModule",
// depends_on: ["WebXR"], // TODO(https://crbug.com/954679): uncomment once bug is fixed
status: "stable",
},
{ {
name: "WebXRHitTest", name: "WebXRHitTest",
// depends_on: ["WebXRARModule"], // TODO(https://crbug.com/954679): uncomment once bug is fixed // depends_on: ["WebXRARModule"], // TODO(https://crbug.com/954679): uncomment once bug is fixed
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment