Skip to content

Commit

Permalink
Sync interfaces/ with @webref/idl 2.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
wpt-pr-bot authored Jun 17, 2021
1 parent 0895a4d commit 25f002b
Show file tree
Hide file tree
Showing 11 changed files with 158 additions and 102 deletions.
8 changes: 4 additions & 4 deletions interfaces/css-typed-om.idl
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ interface CSSMathMax : CSSMathValue {

[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
interface CSSMathClamp : CSSMathValue {
constructor(CSSNumberish min, CSSNumberish val, CSSNumberish max);
readonly attribute CSSNumericValue min;
readonly attribute CSSNumericValue val;
readonly attribute CSSNumericValue max;
constructor(CSSNumberish lower, CSSNumberish value, CSSNumberish upper);
readonly attribute CSSNumericValue lower;
readonly attribute CSSNumericValue value;
readonly attribute CSSNumericValue upper;
};

[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
Expand Down
16 changes: 16 additions & 0 deletions interfaces/file-system-access.idl
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@ interface FileSystemWritableFileStream : WritableStream {
Promise<undefined> truncate(unsigned long long size);
};

enum WellKnownDirectory {
"desktop",
"documents",
"downloads",
"music",
"pictures",
"videos",
};

typedef (WellKnownDirectory or FileSystemHandle) StartInDirectory;

dictionary FilePickerAcceptType {
USVString description;
record<USVString, (USVString or sequence<USVString>)> accept;
Expand All @@ -97,16 +108,21 @@ dictionary FilePickerAcceptType {
dictionary FilePickerOptions {
sequence<FilePickerAcceptType> types;
boolean excludeAcceptAllOption = false;
DOMString id;
StartInDirectory startIn;
};

dictionary OpenFilePickerOptions : FilePickerOptions {
boolean multiple = false;
};

dictionary SaveFilePickerOptions : FilePickerOptions {
USVString? suggestedName;
};

dictionary DirectoryPickerOptions {
DOMString id;
StartInDirectory startIn;
};

[SecureContext]
Expand Down
2 changes: 1 addition & 1 deletion interfaces/js-self-profiling.idl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ dictionary ProfilerInitOptions {
required unsigned long maxBufferSize;
};

[Exposed=(Window,Worker)]
[CrossOriginIsolated, Exposed=(Window,Worker)]
partial interface Performance {
Promise<Profiler> profile(ProfilerInitOptions options);
};
1 change: 1 addition & 0 deletions interfaces/media-source.idl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ interface SourceBuffer : EventTarget {
attribute EventHandler onabort;
undefined appendBuffer (BufferSource data);
undefined abort ();
undefined changeType (DOMString type);
undefined remove (double start, unrestricted double end);
};

Expand Down
2 changes: 1 addition & 1 deletion interfaces/performance-measure-memory.idl
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ dictionary MemoryAttributionContainer {
};

partial interface Performance {
[CrossOriginIsolated] Promise<MemoryMeasurement> measureUserAgentSpecificMemory();
[Exposed=(Window,ServiceWorker,SharedWorker), CrossOriginIsolated] Promise<MemoryMeasurement> measureUserAgentSpecificMemory();
};
8 changes: 4 additions & 4 deletions interfaces/pointerlock.idl
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ partial interface mixin DocumentOrShadowRoot {
};

partial interface MouseEvent {
readonly attribute long movementX;
readonly attribute long movementY;
readonly attribute double movementX;
readonly attribute double movementY;
};

partial dictionary MouseEventInit {
long movementX = 0;
long movementY = 0;
double movementX = 0;
double movementY = 0;
};
9 changes: 9 additions & 0 deletions interfaces/screen-capture.idl
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,28 @@ partial dictionary MediaTrackSupportedConstraints {
boolean logicalSurface = true;
boolean cursor = true;
boolean restrictOwnAudio = true;
boolean suppressLocalAudioPlayback = true;
};

partial dictionary MediaTrackConstraintSet {
ConstrainDOMString displaySurface;
ConstrainBoolean logicalSurface;
ConstrainDOMString cursor;
ConstrainBoolean restrictOwnAudio;
ConstrainBoolean suppressLocalAudioPlayback;
};

partial dictionary MediaTrackSettings {
DOMString displaySurface;
boolean logicalSurface;
DOMString cursor;
boolean restrictOwnAudio;
};

partial dictionary MediaTrackCapabilities {
DOMString displaySurface;
boolean logicalSurface;
sequence<DOMString> cursor;
};

enum DisplayCaptureSurfaceType {
Expand Down
2 changes: 2 additions & 0 deletions interfaces/visual-viewport.idl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ interface VisualViewport : EventTarget {

readonly attribute double scale;

readonly attribute FrozenArray<DOMRect> segments;

attribute EventHandler onresize;
attribute EventHandler onscroll;
};
Loading

0 comments on commit 25f002b

Please sign in to comment.