mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed
This commit is contained in:
parent
4997ec26c2
commit
a5af9a106a
192 changed files with 3943 additions and 1927 deletions
|
@ -18,7 +18,7 @@ partial interface ServiceWorkerRegistration {
|
|||
interface BackgroundFetchManager {
|
||||
Promise<BackgroundFetchRegistration> fetch(DOMString id, (RequestInfo or sequence<RequestInfo>) requests, optional BackgroundFetchOptions options);
|
||||
Promise<BackgroundFetchRegistration?> get(DOMString id);
|
||||
Promise<FrozenArray<DOMString>> getIds();
|
||||
Promise<sequence<DOMString>> getIds();
|
||||
// TODO: in future this should become an async iterator for BackgroundFetchRegistration objects
|
||||
};
|
||||
|
||||
|
@ -50,15 +50,11 @@ interface BackgroundFetchRegistration : EventTarget {
|
|||
Promise<boolean> abort();
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface BackgroundFetchFetch {
|
||||
readonly attribute Request request;
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface BackgroundFetchActiveFetches {
|
||||
Promise<BackgroundFetchActiveFetch> match(RequestInfo request);
|
||||
Promise<FrozenArray<BackgroundFetchActiveFetch>> values();
|
||||
Promise<BackgroundFetchActiveFetch> match(RequestInfo request, optional CacheQueryOptions options);
|
||||
Promise<sequence<BackgroundFetchActiveFetch>> matchAll(RequestInfo request, optional CacheQueryOptions options);
|
||||
Promise<sequence<BackgroundFetchActiveFetch>> values();
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
|
@ -67,6 +63,11 @@ interface BackgroundFetchActiveFetch : BackgroundFetchFetch {
|
|||
// In future this will include a fetch observer
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface BackgroundFetchFetch {
|
||||
readonly attribute Request request;
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, BackgroundFetchEventInit init), Exposed=ServiceWorker]
|
||||
interface BackgroundFetchEvent : ExtendableEvent {
|
||||
readonly attribute DOMString id;
|
||||
|
@ -87,8 +88,9 @@ dictionary BackgroundFetchSettledEventInit : BackgroundFetchEventInit {
|
|||
|
||||
[Exposed=ServiceWorker]
|
||||
interface BackgroundFetchSettledFetches {
|
||||
Promise<BackgroundFetchSettledFetch> match(RequestInfo request);
|
||||
Promise<FrozenArray<BackgroundFetchSettledFetch>> values();
|
||||
Promise<BackgroundFetchSettledFetch> match(RequestInfo request, optional CacheQueryOptions options);
|
||||
Promise<sequence<BackgroundFetchSettledFetch>> matchAll(RequestInfo request, optional CacheQueryOptions options);
|
||||
Promise<sequence<BackgroundFetchSettledFetch>> values();
|
||||
};
|
||||
|
||||
[Exposed=ServiceWorker]
|
||||
|
|
19
tests/wpt/web-platform-tests/interfaces/battery-status.idl
Normal file
19
tests/wpt/web-platform-tests/interfaces/battery-status.idl
Normal file
|
@ -0,0 +1,19 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "Battery Status API" spec.
|
||||
// See: https://w3c.github.io/battery/
|
||||
|
||||
partial interface Navigator {
|
||||
Promise<BatteryManager> getBattery();
|
||||
};
|
||||
[Exposed=Window]
|
||||
interface BatteryManager : EventTarget {
|
||||
readonly attribute boolean charging;
|
||||
readonly attribute unrestricted double chargingTime;
|
||||
readonly attribute unrestricted double dischargingTime;
|
||||
readonly attribute double level;
|
||||
attribute EventHandler onchargingchange;
|
||||
attribute EventHandler onchargingtimechange;
|
||||
attribute EventHandler ondischargingtimechange;
|
||||
attribute EventHandler onlevelchange;
|
||||
};
|
|
@ -1,19 +0,0 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the Battery Status API spec.
|
||||
// See https://w3c.github.io/battery/
|
||||
|
||||
partial interface Navigator {
|
||||
Promise<BatteryManager> getBattery();
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface BatteryManager : EventTarget {
|
||||
readonly attribute boolean charging;
|
||||
readonly attribute unrestricted double chargingTime;
|
||||
readonly attribute unrestricted double dischargingTime;
|
||||
readonly attribute double level;
|
||||
attribute EventHandler onchargingchange;
|
||||
attribute EventHandler onchargingtimechange;
|
||||
attribute EventHandler ondischargingtimechange;
|
||||
attribute EventHandler onlevelchange;
|
||||
};
|
|
@ -0,0 +1,23 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "CSS Counter Styles Level 3" spec.
|
||||
// See: https://drafts.csswg.org/css-counter-styles/
|
||||
|
||||
partial interface CSSRule {
|
||||
const unsigned short COUNTER_STYLE_RULE = 11;
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface CSSCounterStyleRule : CSSRule {
|
||||
attribute CSSOMString name;
|
||||
attribute CSSOMString system;
|
||||
attribute CSSOMString symbols;
|
||||
attribute CSSOMString additiveSymbols;
|
||||
attribute CSSOMString negative;
|
||||
attribute CSSOMString prefix;
|
||||
attribute CSSOMString suffix;
|
||||
attribute CSSOMString range;
|
||||
attribute CSSOMString pad;
|
||||
attribute CSSOMString speakAs;
|
||||
attribute CSSOMString fallback;
|
||||
};
|
35
tests/wpt/web-platform-tests/interfaces/css-regions.idl
Normal file
35
tests/wpt/web-platform-tests/interfaces/css-regions.idl
Normal file
|
@ -0,0 +1,35 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "CSS Regions Module Level 1" spec.
|
||||
// See: https://drafts.csswg.org/css-regions/
|
||||
|
||||
partial interface Document {
|
||||
readonly attribute NamedFlowMap namedFlows;
|
||||
};
|
||||
|
||||
[Exposed=Window,
|
||||
MapClass=(CSSOMString, NamedFlow)] interface NamedFlowMap {
|
||||
NamedFlow? get(CSSOMString flowName);
|
||||
boolean has(CSSOMString flowName);
|
||||
NamedFlowMap set(CSSOMString flowName, NamedFlow flowValue);
|
||||
boolean delete(CSSOMString flowName);
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface NamedFlow : EventTarget {
|
||||
readonly attribute CSSOMString name;
|
||||
readonly attribute boolean overset;
|
||||
sequence<Region> getRegions();
|
||||
readonly attribute short firstEmptyRegionIndex;
|
||||
sequence<Node> getContent();
|
||||
sequence<Region> getRegionsByContent(Node node);
|
||||
};
|
||||
|
||||
[Exposed=Window,
|
||||
NoInterfaceObject]
|
||||
interface Region {
|
||||
readonly attribute CSSOMString regionOverset;
|
||||
sequence<Range>? getRegionFlowRanges();
|
||||
};
|
||||
|
||||
Element implements Region;
|
|
@ -7,9 +7,9 @@ partial interface Navigator {
|
|||
readonly attribute Geolocation geolocation;
|
||||
};
|
||||
|
||||
|
||||
[NoInterfaceObject]
|
||||
[NoInterfaceObject]
|
||||
interface Geolocation {
|
||||
|
||||
void getCurrentPosition(PositionCallback successCallback,
|
||||
optional PositionErrorCallback errorCallback,
|
||||
optional PositionOptions options);
|
||||
|
@ -25,20 +25,19 @@ partial interface Navigator {
|
|||
|
||||
callback PositionErrorCallback = void (PositionError positionError);
|
||||
|
||||
dictionary PositionOptions {
|
||||
dictionary PositionOptions {
|
||||
boolean enableHighAccuracy = false;
|
||||
[Clamp] unsigned long timeout = 0xFFFFFFFF;
|
||||
[Clamp] unsigned long maximumAge = 0;
|
||||
};
|
||||
|
||||
|
||||
[NoInterfaceObject]
|
||||
[NoInterfaceObject]
|
||||
interface Position {
|
||||
readonly attribute Coordinates coords;
|
||||
readonly attribute DOMTimeStamp timestamp;
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
[NoInterfaceObject]
|
||||
interface Coordinates {
|
||||
readonly attribute double latitude;
|
||||
readonly attribute double longitude;
|
||||
|
@ -49,7 +48,7 @@ partial interface Navigator {
|
|||
readonly attribute double? speed;
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
[NoInterfaceObject]
|
||||
interface PositionError {
|
||||
const unsigned short PERMISSION_DENIED = 1;
|
||||
const unsigned short POSITION_UNAVAILABLE = 2;
|
||||
|
|
72
tests/wpt/web-platform-tests/interfaces/media-source.idl
Normal file
72
tests/wpt/web-platform-tests/interfaces/media-source.idl
Normal file
|
@ -0,0 +1,72 @@
|
|||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "Media Source Extensions™" spec.
|
||||
// See: https://w3c.github.io/media-source/
|
||||
|
||||
enum ReadyState {
|
||||
"closed",
|
||||
"open",
|
||||
"ended"
|
||||
};
|
||||
enum EndOfStreamError {
|
||||
"network",
|
||||
"decode"
|
||||
};
|
||||
[Constructor]
|
||||
interface MediaSource : EventTarget {
|
||||
readonly attribute SourceBufferList sourceBuffers;
|
||||
readonly attribute SourceBufferList activeSourceBuffers;
|
||||
readonly attribute ReadyState readyState;
|
||||
attribute unrestricted double duration;
|
||||
attribute EventHandler onsourceopen;
|
||||
attribute EventHandler onsourceended;
|
||||
attribute EventHandler onsourceclose;
|
||||
SourceBuffer addSourceBuffer(DOMString type);
|
||||
void removeSourceBuffer(SourceBuffer sourceBuffer);
|
||||
void endOfStream(optional EndOfStreamError error);
|
||||
void setLiveSeekableRange(double start, double end);
|
||||
void clearLiveSeekableRange();
|
||||
static boolean isTypeSupported(DOMString type);
|
||||
};
|
||||
enum AppendMode {
|
||||
"segments",
|
||||
"sequence"
|
||||
};
|
||||
interface SourceBuffer : EventTarget {
|
||||
attribute AppendMode mode;
|
||||
readonly attribute boolean updating;
|
||||
readonly attribute TimeRanges buffered;
|
||||
attribute double timestampOffset;
|
||||
readonly attribute AudioTrackList audioTracks;
|
||||
readonly attribute VideoTrackList videoTracks;
|
||||
readonly attribute TextTrackList textTracks;
|
||||
attribute double appendWindowStart;
|
||||
attribute unrestricted double appendWindowEnd;
|
||||
attribute EventHandler onupdatestart;
|
||||
attribute EventHandler onupdate;
|
||||
attribute EventHandler onupdateend;
|
||||
attribute EventHandler onerror;
|
||||
attribute EventHandler onabort;
|
||||
void appendBuffer(BufferSource data);
|
||||
void abort();
|
||||
void remove(double start, unrestricted double end);
|
||||
};
|
||||
interface SourceBufferList : EventTarget {
|
||||
readonly attribute unsigned long length;
|
||||
attribute EventHandler onaddsourcebuffer;
|
||||
attribute EventHandler onremovesourcebuffer;
|
||||
getter SourceBuffer (unsigned long index);
|
||||
};
|
||||
[Exposed=Window]
|
||||
partial interface URL {
|
||||
static DOMString createObjectURL(MediaSource mediaSource);
|
||||
};
|
||||
partial interface AudioTrack {
|
||||
readonly attribute SourceBuffer? sourceBuffer;
|
||||
};
|
||||
partial interface VideoTrack {
|
||||
readonly attribute SourceBuffer? sourceBuffer;
|
||||
};
|
||||
partial interface TextTrack {
|
||||
readonly attribute SourceBuffer? sourceBuffer;
|
||||
};
|
|
@ -4,42 +4,39 @@
|
|||
// See: https://wicg.github.io/netinfo/
|
||||
|
||||
enum ConnectionType {
|
||||
"bluetooth",
|
||||
"cellular",
|
||||
"ethernet",
|
||||
"mixed",
|
||||
"none",
|
||||
"other",
|
||||
"unknown",
|
||||
"wifi",
|
||||
"wimax"
|
||||
"bluetooth",
|
||||
"cellular",
|
||||
"ethernet",
|
||||
"mixed",
|
||||
"none",
|
||||
"other",
|
||||
"unknown",
|
||||
"wifi",
|
||||
"wimax"
|
||||
};
|
||||
|
||||
enum EffectiveConnectionType {
|
||||
"2g",
|
||||
"3g",
|
||||
"4g",
|
||||
"slow-2g"
|
||||
"2g",
|
||||
"3g",
|
||||
"4g",
|
||||
"slow-2g"
|
||||
};
|
||||
[NoInterfaceObject,
|
||||
Exposed=(Window,Worker)]
|
||||
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface NavigatorNetworkInformation {
|
||||
readonly attribute NetworkInformation connection;
|
||||
readonly attribute NetworkInformation connection;
|
||||
};
|
||||
|
||||
Navigator implements NavigatorNetworkInformation;
|
||||
|
||||
WorkerNavigator implements NavigatorNetworkInformation;
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface NetworkInformation : EventTarget {
|
||||
readonly attribute ConnectionType type;
|
||||
readonly attribute EffectiveConnectionType effectiveType;
|
||||
readonly attribute Megabit downlinkMax;
|
||||
readonly attribute Megabit downlink;
|
||||
readonly attribute Millisecond rtt;
|
||||
readonly attribute boolean saveData;
|
||||
attribute EventHandler onchange;
|
||||
};
|
||||
|
||||
typedef unrestricted double Megabit;
|
||||
|
||||
typedef unsigned long long Millisecond;
|
||||
readonly attribute ConnectionType type;
|
||||
readonly attribute EffectiveConnectionType effectiveType;
|
||||
readonly attribute Megabit downlinkMax;
|
||||
readonly attribute Megabit downlink;
|
||||
readonly attribute Millisecond rtt;
|
||||
readonly attribute boolean saveData;
|
||||
attribute EventHandler onchange;
|
||||
};typedef unrestricted double Megabit;typedef unsigned long long Millisecond;
|
||||
|
|
|
@ -166,7 +166,7 @@ interface PaymentResponse : EventTarget {
|
|||
|
||||
dictionary PaymentValidationErrors {
|
||||
PayerErrorFields payer;
|
||||
AddressErrorFields shippingAddress;
|
||||
AddressErrors shippingAddress;
|
||||
};
|
||||
|
||||
dictionary PayerErrorFields {
|
||||
|
|
|
@ -22,7 +22,7 @@ partial interface DocumentOrShadowRoot {
|
|||
readonly attribute Element? pictureInPictureElement;
|
||||
};
|
||||
|
||||
interface PictureInPictureWindow {
|
||||
interface PictureInPictureWindow : EventTarget {
|
||||
readonly attribute long width;
|
||||
readonly attribute long height;
|
||||
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
dictionary PointerEventInit : MouseEventInit {
|
||||
sequence<PointerEvent> coalescedEvents;
|
||||
// GENERATED CONTENT - DO NOT EDIT
|
||||
// Content of this file was automatically extracted from the
|
||||
// "PointerEvents - Level 2 - Extensions" spec.
|
||||
// See: https://w3c.github.io/pointerevents/extension.html
|
||||
|
||||
partial dictionary PointerEventInit {
|
||||
sequence<PointerEvent> coalescedEvents = [];
|
||||
sequence<PointerEvent> predictedEvents = [];
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional PointerEventInit eventInitDict)]
|
||||
interface PointerEvent : MouseEvent {
|
||||
partial interface PointerEvent {
|
||||
sequence<PointerEvent> getCoalescedEvents();
|
||||
sequence<PointerEvent> getPredictedEvents();
|
||||
};
|
||||
|
|
|
@ -4,19 +4,17 @@
|
|||
// See: https://w3c.github.io/requestidlecallback/
|
||||
|
||||
partial interface Window {
|
||||
unsigned long requestIdleCallback(IdleRequestCallback callback,
|
||||
optional IdleRequestOptions options);
|
||||
void cancelIdleCallback(unsigned long handle);
|
||||
unsigned long requestIdleCallback(IdleRequestCallback callback, optional IdleRequestOptions options);
|
||||
void cancelIdleCallback(unsigned long handle);
|
||||
};
|
||||
|
||||
dictionary IdleRequestOptions {
|
||||
unsigned long timeout;
|
||||
unsigned long timeout;
|
||||
};
|
||||
|
||||
[Exposed=Window]
|
||||
interface IdleDeadline {
|
||||
DOMHighResTimeStamp timeRemaining();
|
||||
readonly attribute boolean didTimeout;
|
||||
[Exposed=Window] interface IdleDeadline {
|
||||
DOMHighResTimeStamp timeRemaining();
|
||||
readonly attribute boolean didTimeout;
|
||||
};
|
||||
|
||||
callback IdleRequestCallback = void (IdleDeadline deadline);
|
||||
|
|
|
@ -5,27 +5,28 @@
|
|||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceResourceTiming : PerformanceEntry {
|
||||
readonly attribute DOMString initiatorType;
|
||||
readonly attribute DOMString nextHopProtocol;
|
||||
readonly attribute DOMHighResTimeStamp workerStart;
|
||||
readonly attribute DOMHighResTimeStamp redirectStart;
|
||||
readonly attribute DOMHighResTimeStamp redirectEnd;
|
||||
readonly attribute DOMHighResTimeStamp fetchStart;
|
||||
readonly attribute DOMHighResTimeStamp domainLookupStart;
|
||||
readonly attribute DOMHighResTimeStamp domainLookupEnd;
|
||||
readonly attribute DOMHighResTimeStamp connectStart;
|
||||
readonly attribute DOMHighResTimeStamp connectEnd;
|
||||
readonly attribute DOMHighResTimeStamp secureConnectionStart;
|
||||
readonly attribute DOMHighResTimeStamp requestStart;
|
||||
readonly attribute DOMHighResTimeStamp responseStart;
|
||||
readonly attribute DOMHighResTimeStamp responseEnd;
|
||||
readonly attribute unsigned long long transferSize;
|
||||
readonly attribute unsigned long long encodedBodySize;
|
||||
readonly attribute unsigned long long decodedBodySize;
|
||||
readonly attribute DOMString initiatorType;
|
||||
readonly attribute DOMString nextHopProtocol;
|
||||
readonly attribute DOMHighResTimeStamp workerStart;
|
||||
readonly attribute DOMHighResTimeStamp redirectStart;
|
||||
readonly attribute DOMHighResTimeStamp redirectEnd;
|
||||
readonly attribute DOMHighResTimeStamp fetchStart;
|
||||
readonly attribute DOMHighResTimeStamp domainLookupStart;
|
||||
readonly attribute DOMHighResTimeStamp domainLookupEnd;
|
||||
readonly attribute DOMHighResTimeStamp connectStart;
|
||||
readonly attribute DOMHighResTimeStamp connectEnd;
|
||||
readonly attribute DOMHighResTimeStamp secureConnectionStart;
|
||||
readonly attribute DOMHighResTimeStamp requestStart;
|
||||
readonly attribute DOMHighResTimeStamp responseStart;
|
||||
readonly attribute DOMHighResTimeStamp responseEnd;
|
||||
readonly attribute unsigned long long transferSize;
|
||||
readonly attribute unsigned long long encodedBodySize;
|
||||
readonly attribute unsigned long long decodedBodySize;
|
||||
[Default] object toJSON();
|
||||
};
|
||||
|
||||
partial interface Performance {
|
||||
void clearResourceTimings();
|
||||
void setResourceTimingBufferSize(unsigned long maxSize);
|
||||
attribute EventHandler onresourcetimingbufferfull;
|
||||
void clearResourceTimings();
|
||||
void setResourceTimingBufferSize(unsigned long maxSize);
|
||||
attribute EventHandler onresourcetimingbufferfull;
|
||||
};
|
||||
|
|
|
@ -4,42 +4,40 @@
|
|||
// See: https://w3c.github.io/selection-api/
|
||||
|
||||
interface Selection {
|
||||
readonly attribute Node? anchorNode;
|
||||
readonly attribute unsigned long anchorOffset;
|
||||
readonly attribute Node? focusNode;
|
||||
readonly attribute unsigned long focusOffset;
|
||||
readonly attribute boolean isCollapsed;
|
||||
readonly attribute unsigned long rangeCount;
|
||||
readonly attribute DOMString type;
|
||||
Range getRangeAt(unsigned long index);
|
||||
void addRange(Range range);
|
||||
void removeRange(Range range);
|
||||
void removeAllRanges();
|
||||
void empty();
|
||||
void collapse(Node? node,
|
||||
optional unsigned long offset = 0);
|
||||
void setPosition(Node? node,
|
||||
optional unsigned long offset = 0);
|
||||
void collapseToStart();
|
||||
void collapseToEnd();
|
||||
void extend(Node node, optional unsigned long offset = 0);
|
||||
void setBaseAndExtent(Node anchorNode,
|
||||
unsigned long anchorOffset,
|
||||
Node focusNode,
|
||||
unsigned long focusOffset);
|
||||
void selectAllChildren(Node node);
|
||||
[CEReactions] void deleteFromDocument();
|
||||
boolean containsNode(Node node,
|
||||
optional boolean allowPartialContainment = false);
|
||||
stringifier DOMString ();
|
||||
readonly attribute Node? anchorNode;
|
||||
readonly attribute unsigned long anchorOffset;
|
||||
readonly attribute Node? focusNode;
|
||||
readonly attribute unsigned long focusOffset;
|
||||
readonly attribute boolean isCollapsed;
|
||||
readonly attribute unsigned long rangeCount;
|
||||
readonly attribute DOMString type;
|
||||
Range getRangeAt(unsigned long index);
|
||||
void addRange(Range range);
|
||||
void removeRange(Range range);
|
||||
void removeAllRanges();
|
||||
void empty();
|
||||
void collapse(Node? node, optional unsigned long offset = 0);
|
||||
void setPosition(Node? node, optional unsigned long offset = 0);
|
||||
void collapseToStart();
|
||||
void collapseToEnd();
|
||||
void extend(Node node, optional unsigned long offset = 0);
|
||||
void setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset);
|
||||
void selectAllChildren(Node node);
|
||||
[CEReactions]
|
||||
void deleteFromDocument();
|
||||
boolean containsNode(Node node, optional boolean allowPartialContainment = false);
|
||||
stringifier DOMString ();
|
||||
};
|
||||
|
||||
partial interface Document {
|
||||
Selection? getSelection();
|
||||
Selection? getSelection();
|
||||
};
|
||||
|
||||
partial interface Window {
|
||||
Selection? getSelection();
|
||||
Selection? getSelection();
|
||||
};
|
||||
|
||||
partial interface GlobalEventHandlers {
|
||||
attribute EventHandler onselectstart;
|
||||
attribute EventHandler onselectionchange;
|
||||
attribute EventHandler onselectstart;
|
||||
attribute EventHandler onselectionchange;
|
||||
};
|
||||
|
|
|
@ -9,78 +9,74 @@ enum TouchType {
|
|||
};
|
||||
|
||||
dictionary TouchInit {
|
||||
required long identifier;
|
||||
required long identifier;
|
||||
required EventTarget target;
|
||||
double clientX = 0;
|
||||
double clientY = 0;
|
||||
double screenX = 0;
|
||||
double screenY = 0;
|
||||
double pageX = 0;
|
||||
double pageY = 0;
|
||||
float radiusX = 0;
|
||||
float radiusY = 0;
|
||||
float rotationAngle = 0;
|
||||
float force = 0;
|
||||
double altitudeAngle = 0;
|
||||
double azimuthAngle = 0;
|
||||
TouchType touchType = "direct";
|
||||
double clientX = 0;
|
||||
double clientY = 0;
|
||||
double screenX = 0;
|
||||
double screenY = 0;
|
||||
double pageX = 0;
|
||||
double pageY = 0;
|
||||
float radiusX = 0;
|
||||
float radiusY = 0;
|
||||
float rotationAngle = 0;
|
||||
float force = 0;
|
||||
double altitudeAngle = 0;
|
||||
double azimuthAngle = 0;
|
||||
TouchType touchType = "direct";
|
||||
};
|
||||
|
||||
[Constructor(TouchInit touchInitDict),
|
||||
Exposed=Window]
|
||||
[Constructor(TouchInit touchInitDict), Exposed=Window]
|
||||
interface Touch {
|
||||
readonly attribute long identifier;
|
||||
readonly attribute EventTarget target;
|
||||
readonly attribute double screenX;
|
||||
readonly attribute double screenY;
|
||||
readonly attribute double clientX;
|
||||
readonly attribute double clientY;
|
||||
readonly attribute double pageX;
|
||||
readonly attribute double pageY;
|
||||
readonly attribute float radiusX;
|
||||
readonly attribute float radiusY;
|
||||
readonly attribute float rotationAngle;
|
||||
readonly attribute float force;
|
||||
readonly attribute float altitudeAngle;
|
||||
readonly attribute float azimuthAngle;
|
||||
readonly attribute TouchType touchType;
|
||||
readonly attribute long identifier;
|
||||
readonly attribute EventTarget target;
|
||||
readonly attribute double screenX;
|
||||
readonly attribute double screenY;
|
||||
readonly attribute double clientX;
|
||||
readonly attribute double clientY;
|
||||
readonly attribute double pageX;
|
||||
readonly attribute double pageY;
|
||||
readonly attribute float radiusX;
|
||||
readonly attribute float radiusY;
|
||||
readonly attribute float rotationAngle;
|
||||
readonly attribute float force;
|
||||
readonly attribute float altitudeAngle;
|
||||
readonly attribute float azimuthAngle;
|
||||
readonly attribute TouchType touchType;
|
||||
};
|
||||
|
||||
interface TouchList {
|
||||
readonly attribute unsigned long length;
|
||||
readonly attribute unsigned long length;
|
||||
getter Touch? item(unsigned long index);
|
||||
};
|
||||
|
||||
dictionary TouchEventInit : EventModifierInit {
|
||||
sequence<Touch> touches = [];
|
||||
sequence<Touch> targetTouches = [];
|
||||
sequence<Touch> changedTouches = [];
|
||||
sequence<Touch> touches = [];
|
||||
sequence<Touch> targetTouches = [];
|
||||
sequence<Touch> changedTouches = [];
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional TouchEventInit eventInitDict),
|
||||
Exposed=Window]
|
||||
[Constructor(DOMString type, optional TouchEventInit eventInitDict), Exposed=Window]
|
||||
interface TouchEvent : UIEvent {
|
||||
readonly attribute TouchList touches;
|
||||
readonly attribute TouchList targetTouches;
|
||||
readonly attribute TouchList changedTouches;
|
||||
readonly attribute boolean altKey;
|
||||
readonly attribute boolean metaKey;
|
||||
readonly attribute boolean ctrlKey;
|
||||
readonly attribute boolean shiftKey;
|
||||
readonly attribute TouchList touches;
|
||||
readonly attribute TouchList targetTouches;
|
||||
readonly attribute TouchList changedTouches;
|
||||
readonly attribute boolean altKey;
|
||||
readonly attribute boolean metaKey;
|
||||
readonly attribute boolean ctrlKey;
|
||||
readonly attribute boolean shiftKey;
|
||||
};
|
||||
|
||||
partial interface GlobalEventHandlers {
|
||||
attribute EventHandler ontouchstart;
|
||||
attribute EventHandler ontouchend;
|
||||
attribute EventHandler ontouchmove;
|
||||
attribute EventHandler ontouchcancel;
|
||||
attribute EventHandler ontouchstart;
|
||||
attribute EventHandler ontouchend;
|
||||
attribute EventHandler ontouchmove;
|
||||
attribute EventHandler ontouchcancel;
|
||||
};
|
||||
|
||||
partial interface Document {
|
||||
// Deprecated in this specification
|
||||
Touch createTouch(WindowProxy view,
|
||||
EventTarget target,
|
||||
long identifier,
|
||||
double pageX,
|
||||
double pageY,
|
||||
double screenX,
|
||||
double screenY);
|
||||
// Deprecated in this specification
|
||||
TouchList createTouchList(Touch... touches);
|
||||
// Deprecated in this specification
|
||||
Touch createTouch(WindowProxy view, EventTarget target, long identifier, double pageX, double pageY, double screenX, double screenY);
|
||||
// Deprecated in this specification
|
||||
TouchList createTouchList(Touch... touches);
|
||||
};
|
||||
|
|
|
@ -6,14 +6,14 @@
|
|||
partial interface Performance {
|
||||
void mark(DOMString markName);
|
||||
void clearMarks(optional DOMString markName);
|
||||
void measure(DOMString measureName,
|
||||
optional DOMString startMark,
|
||||
optional DOMString endMark);
|
||||
void measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark);
|
||||
void clearMeasures(optional DOMString measureName);
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceMark : PerformanceEntry {
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceMeasure : PerformanceEntry {
|
||||
};
|
||||
|
|
|
@ -46,8 +46,8 @@ interface BaseAudioContext : EventTarget {
|
|||
WaveShaperNode createWaveShaper ();
|
||||
|
||||
Promise<AudioBuffer> decodeAudioData (ArrayBuffer audioData,
|
||||
optional DecodeSuccessCallback successCallback,
|
||||
optional DecodeErrorCallback errorCallback);
|
||||
optional DecodeSuccessCallback? successCallback,
|
||||
optional DecodeErrorCallback? errorCallback);
|
||||
Promise<void> resume ();
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue