mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 09:37:34 +00:00
LibWeb: Introduce the concept of "Enumerated" values
This does _NOT_ correspond to anything in the IDL or ECMAScript spec, but is a custom extended attribute. We use it to define the "enumerated" values of an attribute
This commit is contained in:
parent
19bf42a7e6
commit
d767f14df8
5 changed files with 22 additions and 4 deletions
|
@ -3,6 +3,7 @@
|
|||
#import <HTML/MediaError.idl>
|
||||
#import <HTML/TimeRanges.idl>
|
||||
#import <HTML/VideoTrackList.idl>
|
||||
#import <HTML/Scripting/Fetching.idl>
|
||||
|
||||
enum CanPlayTypeResult {
|
||||
"",
|
||||
|
@ -21,7 +22,7 @@ interface HTMLMediaElement : HTMLElement {
|
|||
[Reflect, CEReactions] attribute DOMString src;
|
||||
// FIXME: attribute MediaProvider? srcObject;
|
||||
readonly attribute USVString currentSrc;
|
||||
[Reflect=crossorigin, CEReactions] attribute DOMString? crossOrigin;
|
||||
[Reflect=crossorigin, CEReactions, Enumerated=CORSSettingsAttribute] attribute DOMString? crossOrigin;
|
||||
const unsigned short NETWORK_EMPTY = 0;
|
||||
const unsigned short NETWORK_IDLE = 1;
|
||||
const unsigned short NETWORK_LOADING = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue