Commit 1fe29595 authored by Matt Reynolds's avatar Matt Reynolds Committed by Chromium LUCI CQ

Reland "webhid: Mark the API stable"

This reverts commit dde5f982.

Reason for revert: Updated not-webview-exposed.txt.

Original change's description:
> Revert "webhid: Mark the API stable"
>
> This reverts commit e05911e4.
>
> Reason for revert: https://crbug.com1164259
WebViewLayoutTest#testWebViewIncludedStableInterfaces is failing because the new API doesn't set up whether it should be exposed in WebView. Interfaces which are intentionally not exposed in WebView need to be added to not-webview-exposed.txt
>
> Original change's description:
> > webhid: Mark the API stable
> >
> > Updates runtime_enabled_features.json5 and the stable webexposed tests
> > to mark the WebHID API stable on desktop platforms.
> >
> > Intent to Ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/rL1csFYD1Ms
> >
> > Bug: 890096
> > Change-Id: I36a6b62475dd9de01a4dbf013b2be00e8901359e
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2610995
> > Commit-Queue: Chris Harrelson <chrishtr@chromium.org>
> > Auto-Submit: Matt Reynolds <mattreynolds@chromium.org>
> > Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
> > Cr-Commit-Position: refs/heads/master@{#841185}
>
> TBR=chrishtr@chromium.org,mattreynolds@chromium.org,chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
>
> Change-Id: I16463f8d4b8e9e4893217f5349d2a8a9f7aa76f7
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Bug: 890096
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2616200
> Reviewed-by: Arthur Sonzogni <arthursonzogni@chromium.org>
> Commit-Queue: Arthur Sonzogni <arthursonzogni@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#841413}

Bug: 890096
Bug: 1164259
Change-Id: I501d3679d3103746e116d2dbc3de02cf37900d97
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2617571Reviewed-by: default avatarTim Volodine <timvolodine@chromium.org>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Commit-Queue: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#843161}
parent 1bcd257e
...@@ -63,8 +63,10 @@ interface HTMLMediaElement : HTMLElement ...@@ -63,8 +63,10 @@ interface HTMLMediaElement : HTMLElement
# permissions API (crbug.com/490120), presentation API (crbug.com/521319), # permissions API (crbug.com/490120), presentation API (crbug.com/521319),
# share API (crbug.com/765923), custom scheme handlers (crbug.com/589502), # share API (crbug.com/765923), custom scheme handlers (crbug.com/589502),
# media session API (crbug.com/925997), Web Serial API (crbug.com/1164036), # media session API (crbug.com/925997), Web Serial API (crbug.com/1164036),
# and WebXr API (crbug.com/1012899) are not supported in webview. # WebXr API (crbug.com/1012899), and WebHID API (crbug.com/1164125) are not
# supported in webview.
interface Navigator interface Navigator
getter hid # crbug.com/1164125
getter mediaSession # crbug.com/925997 getter mediaSession # crbug.com/925997
getter permissions # crbug.com/490120 getter permissions # crbug.com/490120
getter presentation # crbug.com/521319 getter presentation # crbug.com/521319
...@@ -73,7 +75,7 @@ interface Navigator ...@@ -73,7 +75,7 @@ interface Navigator
method registerProtocolHandler # crbug.com/589502 method registerProtocolHandler # crbug.com/589502
method unregisterProtocolHandler # crbug.com/589502 method unregisterProtocolHandler # crbug.com/589502
method share # crbug.com/765923 method share # crbug.com/765923
method getInstalledRelatedApps method getInstalledRelatedApps
# Media Session API is not enabled in Android WebView (crbug.com/925997) # Media Session API is not enabled in Android WebView (crbug.com/925997)
interface MediaMetadata interface MediaMetadata
...@@ -178,6 +180,12 @@ interface XRAnchorSet ...@@ -178,6 +180,12 @@ interface XRAnchorSet
interface Serial : EventTarget interface Serial : EventTarget
interface SerialPort : EventTarget interface SerialPort : EventTarget
# WebHID API is not implemented on Android. crbug.com/1164125
interface HIDDevice : EventTarget
interface HIDInputReportEvent : Event
interface HIDConnectionEvent : Event
interface HID : EventTarget
[GLOBAL OBJECT] [GLOBAL OBJECT]
method openDatabase method openDatabase
attribute eventSender # test only attribute eventSender # test only
......
...@@ -2178,8 +2178,7 @@ ...@@ -2178,8 +2178,7 @@
}, },
{ {
name: "WebHID", name: "WebHID",
origin_trial_feature_name: "WebHID", status: {"Android": "", "default": "stable"},
status: {"Android": "", "default": "experimental"},
}, },
{ {
name: "WebID", name: "WebID",
......
...@@ -35,6 +35,8 @@ PASS window.cached_navigator.vendorSub is '' ...@@ -35,6 +35,8 @@ PASS window.cached_navigator.vendorSub is ''
PASS window.cached_navigator.webdriver is false PASS window.cached_navigator.webdriver is false
PASS window.cached_navigator_connection.onchange is null PASS window.cached_navigator_connection.onchange is null
PASS window.cached_navigator_connection.saveData is false PASS window.cached_navigator_connection.saveData is false
PASS window.cached_navigator_hid.onconnect is null
PASS window.cached_navigator_hid.ondisconnect is null
PASS window.cached_navigator_mediaDevices.ondevicechange is null PASS window.cached_navigator_mediaDevices.ondevicechange is null
PASS window.cached_navigator_mediaSession.metadata is null PASS window.cached_navigator_mediaSession.metadata is null
PASS window.cached_navigator_mediaSession.playbackState is 'none' PASS window.cached_navigator_mediaSession.playbackState is 'none'
......
...@@ -35,6 +35,8 @@ PASS window.cached_navigator.vendorSub is '' ...@@ -35,6 +35,8 @@ PASS window.cached_navigator.vendorSub is ''
PASS window.cached_navigator.webdriver is false PASS window.cached_navigator.webdriver is false
PASS window.cached_navigator_connection.onchange is null PASS window.cached_navigator_connection.onchange is null
PASS window.cached_navigator_connection.saveData is false PASS window.cached_navigator_connection.saveData is false
PASS window.cached_navigator_hid.onconnect is null
PASS window.cached_navigator_hid.ondisconnect is null
PASS window.cached_navigator_mediaDevices.ondevicechange is null PASS window.cached_navigator_mediaDevices.ondevicechange is null
PASS window.cached_navigator_mediaSession.metadata is null PASS window.cached_navigator_mediaSession.metadata is null
PASS window.cached_navigator_mediaSession.playbackState is 'none' PASS window.cached_navigator_mediaSession.playbackState is 'none'
......
...@@ -35,6 +35,8 @@ PASS window.cached_navigator.vendorSub is '' ...@@ -35,6 +35,8 @@ PASS window.cached_navigator.vendorSub is ''
PASS window.cached_navigator.webdriver is false PASS window.cached_navigator.webdriver is false
PASS window.cached_navigator_connection.onchange is null PASS window.cached_navigator_connection.onchange is null
PASS window.cached_navigator_connection.saveData is false PASS window.cached_navigator_connection.saveData is false
PASS window.cached_navigator_hid.onconnect is null
PASS window.cached_navigator_hid.ondisconnect is null
PASS window.cached_navigator_mediaDevices.ondevicechange is null PASS window.cached_navigator_mediaDevices.ondevicechange is null
PASS window.cached_navigator_mediaSession.metadata is null PASS window.cached_navigator_mediaSession.metadata is null
PASS window.cached_navigator_mediaSession.playbackState is 'none' PASS window.cached_navigator_mediaSession.playbackState is 'none'
......
...@@ -35,6 +35,8 @@ PASS oldChildWindow.navigator.cookieEnabled is newChildWindow.navigator.cookieEn ...@@ -35,6 +35,8 @@ PASS oldChildWindow.navigator.cookieEnabled is newChildWindow.navigator.cookieEn
PASS oldChildWindow.navigator.deviceMemory is newChildWindow.navigator.deviceMemory PASS oldChildWindow.navigator.deviceMemory is newChildWindow.navigator.deviceMemory
PASS oldChildWindow.navigator.doNotTrack is newChildWindow.navigator.doNotTrack PASS oldChildWindow.navigator.doNotTrack is newChildWindow.navigator.doNotTrack
PASS oldChildWindow.navigator.hardwareConcurrency is newChildWindow.navigator.hardwareConcurrency PASS oldChildWindow.navigator.hardwareConcurrency is newChildWindow.navigator.hardwareConcurrency
PASS oldChildWindow.navigator.hid.onconnect is newChildWindow.navigator.hid.onconnect
PASS oldChildWindow.navigator.hid.ondisconnect is newChildWindow.navigator.hid.ondisconnect
PASS oldChildWindow.navigator.language is newChildWindow.navigator.language PASS oldChildWindow.navigator.language is newChildWindow.navigator.language
PASS oldChildWindow.navigator.maxTouchPoints is newChildWindow.navigator.maxTouchPoints PASS oldChildWindow.navigator.maxTouchPoints is newChildWindow.navigator.maxTouchPoints
PASS oldChildWindow.navigator.mediaDevices.ondevicechange is newChildWindow.navigator.mediaDevices.ondevicechange PASS oldChildWindow.navigator.mediaDevices.ondevicechange is newChildWindow.navigator.mediaDevices.ondevicechange
......
...@@ -27,6 +27,7 @@ encrypted-media ...@@ -27,6 +27,7 @@ encrypted-media
fullscreen fullscreen
geolocation geolocation
gyroscope gyroscope
hid
magnetometer magnetometer
microphone microphone
midi midi
......
...@@ -2183,6 +2183,40 @@ interface Gyroscope : Sensor ...@@ -2183,6 +2183,40 @@ interface Gyroscope : Sensor
getter y getter y
getter z getter z
method constructor method constructor
interface HID : EventTarget
attribute @@toStringTag
getter onconnect
getter ondisconnect
method constructor
method getDevices
method requestDevice
setter onconnect
setter ondisconnect
interface HIDConnectionEvent : Event
attribute @@toStringTag
getter device
method constructor
interface HIDDevice : EventTarget
attribute @@toStringTag
getter collections
getter oninputreport
getter opened
getter productId
getter productName
getter vendorId
method close
method constructor
method open
method receiveFeatureReport
method sendFeatureReport
method sendReport
setter oninputreport
interface HIDInputReportEvent : Event
attribute @@toStringTag
getter data
getter device
getter reportId
method constructor
interface HTMLAllCollection interface HTMLAllCollection
attribute @@toStringTag attribute @@toStringTag
getter length getter length
...@@ -4548,6 +4582,7 @@ interface Navigator ...@@ -4548,6 +4582,7 @@ interface Navigator
getter doNotTrack getter doNotTrack
getter geolocation getter geolocation
getter hardwareConcurrency getter hardwareConcurrency
getter hid
getter keyboard getter keyboard
getter language getter language
getter languages getter languages
......
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