Commit 5c87a0a4 authored by Bill Orr's avatar Bill Orr Committed by Commit Bot

Remove the WebVR Origin Trial.

As previously announced (https://groups.google.com/a/chromium.org/d/msg/blink-dev/-s4pWwshKhI/M78h2_scBwAJ), the WebVR Origin Trial is ending after M68 as WebVR is replaced by the WebXR Device API and Origin Trial.

WebVR can still be manually enabled through chrome://flags.

BUG=758265

Cq-Include-Trybots: luci.chromium.try:win_optional_gpu_tests_rel
Change-Id: I752ac8d61c8436abd80a511cc66d4aad502d0245
Reviewed-on: https://chromium-review.googlesource.com/1144278Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Reviewed-by: default avatarBrandon Jones <bajones@chromium.org>
Reviewed-by: default avatarDavid Dorwin <ddorwin@chromium.org>
Commit-Queue: Bill Orr <billorr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576732}
parent 4d94de87
......@@ -43,7 +43,7 @@ interface Gamepad {
// https://github.com/w3c/gamepad/pull/68
[RuntimeEnabled=GamepadVibration, MeasureAs=GamepadVibrationActuator] readonly attribute GamepadHapticActuator? vibrationActuator;
[OriginTrialEnabled=GamepadExtensions, MeasureAs=GamepadPose] readonly attribute GamepadPose? pose;
[RuntimeEnabled=GamepadExtensions, MeasureAs=GamepadPose] readonly attribute GamepadPose? pose;
[OriginTrialEnabled=WebXRGamepadSupport, MeasureAs=GamepadHand] readonly attribute GamepadHand hand;
// https://w3c.github.io/webvr/#interface-gamepad
......
......@@ -4,7 +4,7 @@
// https://w3c.github.io/gamepad/extensions.html#gamepadpose-interface
[
OriginTrialEnabled=GamepadExtensions
RuntimeEnabled=GamepadExtensions
] interface GamepadPose {
[MeasureAs=GamepadPoseHasOrientation] readonly attribute boolean hasOrientation;
[MeasureAs=GamepadPoseHasPosition] readonly attribute boolean hasPosition;
......
......@@ -146,7 +146,7 @@ static void SampleGamepads(ListType* into,
bool webxr_enabled =
(context && OriginTrials::WebXRGamepadSupportEnabled(context) &&
OriginTrials::WebXREnabled(context));
bool webvr_enabled = (context && OriginTrials::WebVREnabled(context));
bool webvr_enabled = (context && RuntimeEnabledFeatures::WebVREnabled());
if (!webxr_enabled && !webvr_enabled) {
// If neither WebXR nor WebVR are enabled, we should not expose XR-
......
......@@ -239,7 +239,7 @@ void ModulesInitializer::OnClearWindowObjectInMainWorld(
NavigatorGamepad::From(document);
NavigatorServiceWorker::From(document);
DOMWindowStorageController::From(document);
if (OriginTrials::WebVREnabled(document.GetExecutionContext()))
if (RuntimeEnabledFeatures::WebVREnabled())
NavigatorVR::From(document);
if (RuntimeEnabledFeatures::PresentationEnabled() &&
settings.GetPresentationReceiver()) {
......
......@@ -10,5 +10,5 @@
[SecureContext, OriginTrialEnabled=WebXR, MeasureAs=NavigatorXR] readonly attribute XR xr;
// Legacy API
[OriginTrialEnabled=WebVR, CallWith=ScriptState] Promise getVRDisplays();
[RuntimeEnabled=WebVR, CallWith=ScriptState] Promise getVRDisplays();
};
......@@ -10,7 +10,7 @@ enum VREye {
// https://w3c.github.io/webvr/#interface-vrdisplay
[
ActiveScriptWrappable,
OriginTrialEnabled=WebVR
RuntimeEnabled=WebVR
] interface VRDisplay : EventTarget {
// An identifier for this device unique across VRDisplays.
readonly attribute unsigned long displayId;
......
......@@ -4,7 +4,7 @@
// https://w3c.github.io/webvr/#interface-vrdisplaycapabilities
[
OriginTrialEnabled=WebVR
RuntimeEnabled=WebVR
] interface VRDisplayCapabilities {
// Whether or not the VR display is capable of reporting user position.
// If false position may still be reported using simulated values like
......
......@@ -12,7 +12,7 @@ enum VRDisplayEventReason {
// https://w3c.github.io/webvr/#interface-vrdisplayevent
[
OriginTrialEnabled=WebVR,
RuntimeEnabled=WebVR,
Constructor(DOMString type, optional VRDisplayEventInit eventInitDict)
] interface VRDisplayEvent : Event {
readonly attribute VRDisplay display;
......
......@@ -4,7 +4,7 @@
// https://w3c.github.io/webvr/#interface-vreyeparameters
[
OriginTrialEnabled=WebVR
RuntimeEnabled=WebVR
] interface VREyeParameters {
/* These values will vary after a FOV has been set */
[DeprecateAs=VREyeParametersOffset] readonly attribute Float32Array offset;
......
......@@ -4,7 +4,7 @@
// https://w3c.github.io/webvr/#interface-vrframedata
[
OriginTrialEnabled=WebVR,
RuntimeEnabled=WebVR,
Constructor
] interface VRFrameData {
readonly attribute Float32Array leftProjectionMatrix;
......
......@@ -4,7 +4,7 @@
// https://w3c.github.io/webvr/#interface-vrpose
[
OriginTrialEnabled=WebVR
RuntimeEnabled=WebVR
] interface VRPose {
readonly attribute Float32Array? position;
[MeasureAs=VRPoseLinearVelocity] readonly attribute Float32Array? linearVelocity;
......
......@@ -4,7 +4,7 @@
// https://w3c.github.io/webvr/#interface-vrstageparameters
[
OriginTrialEnabled=WebVR
RuntimeEnabled=WebVR
] interface VRStageParameters {
// A 16 element array containing the components of a 4x4 transform
// matrix. This matrix transforms the sitting space position
......
......@@ -552,7 +552,6 @@
},
{
name: "GamepadExtensions",
origin_trial_feature_name: "WebVR1.1M62",
status: "experimental",
},
{
......@@ -1394,7 +1393,6 @@
},
{
name: "WebVR",
origin_trial_feature_name: "WebVR1.1M62",
status: "experimental",
},
{
......
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