8000 Update sources by MattiasBuelens · Pull Request #893 · microsoft/TypeScript-DOM-lib-generator · GitHub
[go: up one dir, main page]

Skip to content

Update sources #893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
337 changes: 199 additions & 138 deletions baselines/dom.generated.d.ts

Large diffs are not rendered by default.

88 changes: 38 additions & 50 deletions baselines/webworker.generated.d.ts

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions baselines/webworker.iterable.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ interface Headers {
values(): IterableIterator<string>;
}

interface IDBDatabase {
/**
* Returns a new transaction with the given mode ("readonly" or "readwrite") and scope which can be a single object store name or an array of names.
*/
transaction(storeNames: string | Iterable<string>, mode?: IDBTransactionMode): IDBTransaction;
}

interface IDBObjectStore {
/**
* Creates a new index in store with the given name, keyPath and options and returns a new IDBIndex. If the keyPath and options define constraints that cannot be satisfied with the data already in store the upgrade transaction will abort with a "ConstraintError" DOMException.
Expand Down
4 changes: 1 addition & 3 deletions inputfiles/idl/CSS Inline Layout.widl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ partial interface CSSStyleDeclaration {
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString alignmentBaseline;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString baselineShift;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString lineHeight;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString lineSizing;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString leadingTrimOver;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString leadingTrimUnder;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString textEdge;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString leadingTrim;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString inlineSizing;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString initialLetter;
Expand Down
12 changes: 6 additions & 6 deletions inputfiles/idl/CSS Object Model.widl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ interface MediaList {
stringifier attribute [LegacyNullToEmptyString] CSSOMString mediaText;
readonly attribute unsigned long length;
getter CSSOMString? item(unsigned long index);
void appendMedium(CSSOMString medium);
void deleteMedium(CSSOMString medium);
undefined appendMedium(CSSOMString medium);
undefined deleteMedium(CSSOMString medium);
};

[Exposed=Window]
Expand All @@ -23,13 +23,13 @@ interface CSSStyleSheet : StyleSheet {
readonly attribute CSSRule? ownerRule;
[SameObject] readonly attribute CSSRuleList cssRules;
unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
void deleteRule(unsigned long index);
undefined deleteRule(unsigned long index);
};

partial interface CSSStyleSheet {
[SameObject] readonly attribute CSSRuleList rules;
long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
void removeRule(optional unsigned long index = 0);
undefined removeRule(optional unsigned long index = 0);
};

[Exposed=Window]
Expand Down Expand Up @@ -89,7 +89,7 @@ interface CSSImportRule : CSSRule {
interface CSSGroupingRule : CSSRule {
[SameObject] readonly attribute CSSRuleList cssRules;
unsigned long insertRule(CSSOMString rule, optional unsigned long index = 0);
void deleteRule(unsigned long index);
undefined deleteRule(unsigned long index);
};

[Exposed=Window]
Expand Down Expand Up @@ -117,7 +117,7 @@ interface CSSStyleDeclaration {
getter CSSOMString item(unsigned long index);
CSSOMString getPropertyValue(CSSOMString property);
CSSOMString getPropertyPriority(CSSOMString property);
[CEReactions] void setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
[CEReactions] undefined setProperty(CSSOMString property, [LegacyNullToEmptyString] CSSOMString value, optional [LegacyNullToEmptyString] CSSOMString priority = "");
[CEReactions] CSSOMString removeProperty(CSSOMString property);
readonly attribute CSSRule? parentRule;
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString cssFloat;
Expand Down
9 changes: 9 additions & 0 deletions inputfiles/idl/CSS Pseudo-Elements.widl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Exposed=Window]
interface CSSPseudoElement : EventTarget {
readonly attribute CSSOMString type;
readonly attribute Element element;
};

partial interface Element {
CSSPseudoElement? pseudo(CSSOMString type);
};
63 changes: 44 additions & 19 deletions inputfiles/idl/CSSOM View.widl
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ partial interface Window {
[SameObject, Replaceable] readonly attribute Screen screen;

// browsing context
void moveTo(long x, long y);
void moveBy(long x, long y);
void resizeTo(long width, long height);
void resizeBy(long x, long y);
undefined moveTo(long x, long y);
undefined moveBy(long x, long y);
undefined resizeTo(long width, long height);
undefined resizeBy(long x, long y);

// viewport
[Replaceable] readonly attribute long innerWidth;
Expand All @@ -27,12 +27,12 @@ partial interface Window {
[Replaceable] readonly attribute double pageXOffset;
[Replaceable] readonly attribute double scrollY;
[Replaceable] readonly attribute double pageYOffset;
void scroll(optional ScrollToOptions options = {});
void scroll(unrestricted double x, unrestricted double y);
void scrollTo(optional ScrollToOptions options = {});
void scrollTo(unrestricted double x, unrestricted double y);
void scrollBy(optional ScrollToOptions options = {});
void scrollBy(unrestricted double x, unrestricted double y);
undefined scroll(optional ScrollToOptions options = {});
undefined scroll(unrestricted double x, unrestricted double y);
undefined scrollTo(optional ScrollToOptions options = {});
undefined scrollTo(unrestricted double x, unrestricted double y);
undefined scrollBy(optional ScrollToOptions options = {});
undefined scrollBy(unrestricted double x, unrestricted double y);

// client
[Replaceable] readonly attribute long screenX;
Expand All @@ -48,8 +48,8 @@ partial interface Window {
interface MediaQueryList : EventTarget {
readonly attribute CSSOMString media;
readonly attribute boolean matches;
void addListener(EventListener? callback);
void removeListener(EventListener? callback);
undefined addListener(EventListener? callback);
undefined removeListener(EventListener? callback);
attribute EventHandler onchange;
};

Expand Down Expand Up @@ -98,13 +98,13 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
partial interface Element {
DOMRectList getClientRects();
[NewObject] DOMRect getBoundingClientRect();
void scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {});
void scroll(optional ScrollToOptions options = {});
void scroll(unrestricted double x, unrestricted double y);
void scrollTo(optional ScrollToOptions options = {});
void scrollTo(unrestricted double x, unrestricted double y);
void scrollBy(optional ScrollToOptions options = {});
void scrollBy(unrestricted double x, unrestricted double y);
undefined scrollIntoView(optional (boolean or ScrollIntoViewOptions) arg = {});
undefined scroll(optional ScrollToOptions options = {});
undefined scroll(unrestricted double x, unrestricted double y);
undefined scrollTo(optional ScrollToOptions options = {});
undefined scrollTo(unrestricted double x, unrestricted double y);
undefined scrollBy(optional ScrollToOptions options = {});
undefined scrollBy(unrestricted double x, unrestricted double y);
attribute unrestricted double scrollTop;
attribute unrestricted double scrollLeft;
readonly attribute long scrollWidth;
Expand Down Expand Up @@ -153,6 +153,31 @@ partial dictionary MouseEventInit {
double clientY = 0.0;
};

enum CSSBoxType { "margin", "border", "padding", "content" };
dictionary BoxQuadOptions {
CSSBoxType box = "border";
GeometryNode relativeTo; // XXX default document (i.e. viewport)
};

dictionary ConvertCoordinateOptions {
CSSBoxType fromBox = "border";
CSSBoxType toBox = "border";
};

interface mixin GeometryUtils {
sequence<DOMQuad> getBoxQuads(optional BoxQuadOptions options = {});
DOMQuad convertQuadFromNode(DOMQuadInit quad, GeometryNode from, optional ConvertCoordinateOptions options = {});
DOMQuad convertRectFromNode(DOMRectReadOnly rect, GeometryNode from, optional ConvertCoordinateOptions options = {});
DOMPoint convertPointFromNode(DOMPointInit point, GeometryNode from, optional ConvertCoordinateOptions options = {}); // XXX z,w turns into 0
};

Text includes GeometryUtils; // like Range
Element includes GeometryUtils;
CSSPseudoElement includes GeometryUtils;
Document includes GeometryUtils;

typedef (Text or Element or CSSPseudoElement or Document) GeometryNode;

partial interface CSSStyleDeclaration {
[CEReactions] attribute [LegacyNullToEmptyString] CSSOMString scrollBehavior;
};
4 changes: 2 additions & 2 deletions inputfiles/idl/Clipboard.widl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ typedef sequence<ClipboardItem> ClipboardItems;
[SecureContext, Exposed=Window] interface Clipboard : EventTarget {
Promise<ClipboardItems> read();
Promise<DOMString> readText();
Promise<void> write(ClipboardItems data);
Promise<void> writeText(DOMString data);
Promise<undefined> write(ClipboardItems data);
Promise<undefined> writeText(DOMString data);
};

typedef (DOMString or Blob) ClipboardItemDataType;
Expand Down
38 changes: 19 additions & 19 deletions inputfiles/idl/Console.widl
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
[Exposed=(Window,Worker,Worklet)]
namespace console { // but see namespace object requirements below
// Logging
void assert(optional boolean condition = false, any... data);
void clear();
void debug(any... data);
void error(any... data);
void info(any... data);
void log(any... data);
void table(optional any tabularData, optional sequence<DOMString> properties);
void trace(any... data);
void warn(any... data);
void dir(optional any item, optional object? options);
void dirxml(any... data);
undefined assert(optional boolean condition = false, any... data);
undefined clear();
undefined debug(any... data);
undefined error(any... data);
undefined info(any... data);
undefined log(any... data);
undefined table(optional any tabularData, optional sequence<DOMString> properties);
undefined trace(any... data);
undefined warn(any... data);
undefined dir(optional any item, optional object? options);
undefined dirxml(any... data);

// Counting
void count(optional DOMString label = "default");
void countReset(optional DOMString label = "default");
undefined count(optional DOMString label = "default");
undefined countReset(optional DOMString label = "default");

// Grouping
void group(any... data);
void groupCollapsed(any... data);
void groupEnd();
undefined group(any... data);
undefined groupCollapsed(any... data);
undefined groupEnd();

// Timing
void time(optional DOMString label = "default");
void timeLog(optional DOMString label = "default", any... data);
void timeEnd(optional DOMString label = "default");
undefined time(optional DOMString label = "default");
undefined timeLog(optional DOMString label = "default", any... data);
undefined timeEnd(optional DOMString label = "default");
};
Loading
0