Title: [181614] trunk/Source/WebInspectorUI
Revision
181614
Author
[email protected]
Date
2015-03-16 21:41:36 -0700 (Mon, 16 Mar 2015)

Log Message

Web Inspector: Add more DOM Native Function parameter strings
https://bugs.webkit.org/show_bug.cgi?id=142760

Reviewed by Timothy Hatcher.

* UserInterface/Models/NativeFunctionParameters.js:
Add native parameter strings generated and hand modified
for DOM built-in classes.

* UserInterface/Views/ObjectTreePropertyTreeElement.js:
For native constructors "FooConstructor" the description is just
the name of the Constructor not the function string.

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (181613 => 181614)


--- trunk/Source/WebInspectorUI/ChangeLog	2015-03-17 04:41:34 UTC (rev 181613)
+++ trunk/Source/WebInspectorUI/ChangeLog	2015-03-17 04:41:36 UTC (rev 181614)
@@ -1,5 +1,20 @@
 2015-03-16  Joseph Pecoraro  <[email protected]>
 
+        Web Inspector: Add more DOM Native Function parameter strings
+        https://bugs.webkit.org/show_bug.cgi?id=142760
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Models/NativeFunctionParameters.js:
+        Add native parameter strings generated and hand modified
+        for DOM built-in classes.
+
+        * UserInterface/Views/ObjectTreePropertyTreeElement.js:
+        For native constructors "FooConstructor" the description is just
+        the name of the Constructor not the function string.
+
+2015-03-16  Joseph Pecoraro  <[email protected]>
+
         Web Inspector: Object Previews in Indexed DB tables
         https://bugs.webkit.org/show_bug.cgi?id=140813
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js (181613 => 181614)


--- trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js	2015-03-17 04:41:34 UTC (rev 181613)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/NativeFunctionParameters.js	2015-03-17 04:41:36 UTC (rev 181614)
@@ -133,6 +133,42 @@
         keyFor: "symbol",
         __proto__: null,
     },
+
+    // Autogenerated DOM Interface static methods.
+
+    IDBKeyRangeConstructor: {
+        bound: "lower, upper, [lowerOpen], [upperOpen]",
+        lowerBound: "lower, [open]",
+        only: "value",
+        upperBound: "upper, [open]",
+        __proto__: null,
+    },
+
+    MediaSourceConstructor: {
+        isTypeSupported: "type",
+        __proto__: null,
+    },
+
+    MediaStreamTrackConstructor: {
+        getSources: "callback",
+        __proto__: null,
+    },
+
+    NotificationConstructor: {
+        requestPermission: "[callback]",
+        __proto__: null,
+    },
+
+    URLConstructor: {
+        createObjectURL: "blob",
+        revokeObjectURL: "url",
+        __proto__: null,
+    },
+
+    WebKitMediaKeysConstructor: {
+        isTypeSupported: "keySystem, [type]",
+        __proto__: null,
+    },
 };
 
 WebInspector.NativePrototypeFunctionParameters = {
@@ -281,35 +317,24 @@
         __proto__: null,
     },
 
-    // DOM objects.
-    // FIXME: Many idls. Generate?
+    // Curated DOM Interfaces.
 
-    HTMLElement: {
-        insertAdjacentElement: "position, [element]",
-        insertAdjacentHTML: "position, [html]",
-        insertAdjacentText: "position, [text]",
-        __proto__: null,
-    },
-    
     Element: {
         closest: "selectors",
         getAttribute: "attributeName",
         getAttributeNS: "namespace, attributeName",
         getAttributeNode: "attributeName",
         getAttributeNodeNS: "namespace, attributeName",
-        getElementsByClassName: "names",
-        getElementsByTagName: "tagName",
-        getElementsByTagNameNS: "namespace, localName",
         hasAttribute: "attributeName",
         hasAttributeNS: "namespace, attributeName",
         matches: "selector",
         removeAttribute: "attributeName",
         removeAttributeNS: "namespace, attributeName",
         removeAttributeNode: "attributeName",
+        scrollByLines: "[lines]",
+        scrollByPages: "[pages]",
         scrollIntoView: "[alignWithTop]",
         scrollIntoViewIfNeeded: "[centerIfNeeded]",
-        scrollByLines: "[lines]",
-        scrollByPages: "[pages]",
         setAttribute: "name, value",
         setAttributeNS: "namespace, name, value",
         setAttributeNode: "attributeNode",
@@ -320,12 +345,12 @@
 
     Node: {
         appendChild: "child",
-        cloneNode: "deep",
-        compareDocumentPosition: "node",
-        contains: "node",
+        cloneNode: "[deep]",
+        compareDocumentPosition: "[node]",
+        contains: "[node]",
         insertBefore: "insertElement, referenceElement",
-        isDefaultNamespace: "namespace",
-        isEqualNode: "node",
+        isDefaultNamespace: "[namespace]",
+        isEqualNode: "[node]",
         lookupNamespaceURI: "prefix",
         removeChild: "node",
         replaceChild: "newChild, oldChild",
@@ -333,50 +358,46 @@
     },
 
     Window: {
-        alert: "message",
+        alert: "[message]",
         atob: "encodedData",
         btoa: "stringToEncode",
+        cancelAnimationFrame: "id",
+        clearInterval: "intervalId",
         clearTimeout: "timeoutId",
-        confirm: "message",
+        confirm: "[message]",
         find: "string, [caseSensitive], [backwards], [wrapAround]",
-        getComputedStyle: "element, [pseudoElement]",
+        getComputedStyle: "[element], [pseudoElement]",
+        getMatchedCSSRules: "[element], [pseudoElement]",
         matchMedia: "mediaQueryString",
-        moveBy: "deltaX, deltaY",
-        moveTo: "screenX, screenY",
+        moveBy: "[deltaX], [deltaY]",
+        moveTo: "[screenX], [screenY]",
         open: "url, windowName, [featuresString]",
+        openDatabase: "name, version, displayName, estimatedSize, [creationCallback]",
         postMessage: "message, targetOrigin, [...transferables]",
-        prompt: "text, [value]",
-        resizeBy: "deltaX, deltaY",
-        resizeTo: "width, height",
-        scrollBy: "deltaX, deltaY",
-        scrollTo: "x, y",
+        prompt: "[message], [value]",
+        requestAnimationFrame: "callback",
+        resizeBy: "[deltaX], [deltaY]",
+        resizeTo: "[width], [height]",
+        scrollBy: "[deltaX], [deltaY]",
+        scrollTo: "[x], [y]",
         setInterval: "func, [delay], [...params]",
         setTimeout: "func, [delay], [...params]",
         showModalDialog: "url, [arguments], [options]",
         __proto__: null,
     },
 
-    Event: {
-        initEvent: "type, bubbles, cancelable",
-        __proto__: null,
-    },
-
-    HTMLDocument: {
-        write: "html",
-        writeln: "html",
-        __proto__: null,
-    },
-
     Document: {
-        adoptNode: "node",
-        caretPositionFromPoint: "x, y",
+        adoptNode: "[node]",
+        caretRangeFromPoint: "[x], [y]",
         createAttribute: "attributeName",
+        createAttributeNS: "namespace, qualifiedName",
         createCDATASection: "data",
         createComment: "data",
         createElement: "tagName",
         createElementNS: "namespace, qualifiedName",
+        createEntityReference: "name",
         createEvent: "type",
-        createExpression: "xpath, namespaceURLMapper",
+        createExpression: "xpath, resolver",
         createNSResolver: "node",
         createNodeIterator: "root, whatToShow, filter",
         createProcessingInstruction: "target, data",
@@ -385,39 +406,1657 @@
         elementFromPoint: "x, y",
         evaluate: "xpath, contextNode, namespaceResolver, resultType, result",
         execCommand: "command, userInterface, value",
+        getCSSCanvasContext: "contextId, name, width, height",
         getElementById: "id",
         getElementsByName: "name",
+        getOverrideStyle: "[element], [pseudoElement]",
         importNode: "node, deep",
+        queryCommandEnabled: "command",
+        queryCommandIndeterm: "command",
+        queryCommandState: "command",
+        queryCommandSupported: "command",
+        queryCommandValue: "command",
         __proto__: null,
     },
 
+    // Autogenerated DOM Interfaces.
+
+    ANGLEInstancedArrays: {
+        drawArraysInstancedANGLE: "mode, first, count, primcount",
+        drawElementsInstancedANGLE: "mode, count, type, offset, primcount",
+        vertexAttribDivisorANGLE: "index, divisor",
+        __proto__: null,
+    },
+
+    AnalyserNode: {
+        getByteFrequencyData: "array",
+        getByteTimeDomainData: "array",
+        getFloatFrequencyData: "array",
+        __proto__: null,
+    },
+
+    AudioBuffer: {
+        getChannelData: "channelIndex",
+        __proto__: null,
+    },
+
+    AudioBufferCallback: {
+        handleEvent: "audioBuffer",
+        __proto__: null,
+    },
+
+    AudioBufferSourceNode: {
+        noteGrainOn: "when, grainOffset, grainDuration",
+        noteOff: "when",
+        noteOn: "when",
+        start: "[when], [grainOffset], [grainDuration]",
+        stop: "[when]",
+        __proto__: null,
+    },
+
+    AudioListener: {
+        setOrientation: "x, y, z, xUp, yUp, zUp",
+        setPosition: "x, y, z",
+        setVelocity: "x, y, z",
+        __proto__: null,
+    },
+
+    AudioNode: {
+        connect: "destination, [output], [input]",
+        disconnect: "[output]",
+        __proto__: null,
+    },
+
+    AudioParam: {
+        cancelScheduledValues: "startTime",
+        exponentialRampToValueAtTime: "value, time",
+        linearRampToValueAtTime: "value, time",
+        setTargetAtTime: "target, time, timeConstant",
+        setTargetValueAtTime: "targetValue, time, timeConstant",
+        setValueAtTime: "value, time",
+        setValueCurveAtTime: "values, time, duration",
+        __proto__: null,
+    },
+
+    AudioTrackList: {
+        getTrackById: "id",
+        item: "index",
+        __proto__: null,
+    },
+
+    BiquadFilterNode: {
+        getFrequencyResponse: "frequencyHz, magResponse, phaseResponse",
+        __proto__: null,
+    },
+
+    Blob: {
+        slice: "[start], [end], [contentType]",
+        __proto__: null,
+    },
+
+    CSS: {
+        supports: "property, value",
+        __proto__: null,
+    },
+
+    CSSKeyframesRule: {
+        appendRule: "[rule]",
+        deleteRule: "[key]",
+        findRule: "[key]",
+        insertRule: "[rule]",
+        __proto__: null,
+    },
+
+    CSSMediaRule: {
+        deleteRule: "[index]",
+        insertRule: "[rule], [index]",
+        __proto__: null,
+    },
+
+    CSSPrimitiveValue: {
+        getFloatValue: "[unitType]",
+        setFloatValue: "[unitType], [floatValue]",
+        setStringValue: "[stringType], [stringValue]",
+        __proto__: null,
+    },
+
+    CSSRuleList: {
+        item: "[index]",
+        __proto__: null,
+    },
+
+    CSSStyleDeclaration: {
+        getPropertyCSSValue: "[propertyName]",
+        getPropertyPriority: "[propertyName]",
+        getPropertyShorthand: "[propertyName]",
+        getPropertyValue: "[propertyName]",
+        isPropertyImplicit: "[propertyName]",
+        item: "[index]",
+        removeProperty: "[propertyName]",
+        setProperty: "[propertyName], [value], [priority]",
+        __proto__: null,
+    },
+
+    CSSStyleSheet: {
+        addRule: "[selector], [style], [index]",
+        deleteRule: "[index]",
+        insertRule: "[rule], [index]",
+        removeRule: "[index]",
+        __proto__: null,
+    },
+
+    CSSSupportsRule: {
+        deleteRule: "[index]",
+        insertRule: "[rule], [index]",
+        __proto__: null,
+    },
+
+    CSSValueList: {
+        item: "[index]",
+        __proto__: null,
+    },
+
+    CanvasGradient: {
+        addColorStop: "[offset], [color]",
+        __proto__: null,
+    },
+
+    CanvasRenderingContext2D: {
+        arc: "x, y, radius, startAngle, endAngle, [anticlockwise]",
+        arcTo: "x1, y1, x2, y2, radius",
+        bezierCurveTo: "cp1x, cp1y, cp2x, cp2y, x, y",
+        clearRect: "x, y, width, height",
+        clip: "path, [winding]",
+        createImageData: "imagedata",
+        createLinearGradient: "x0, y0, x1, y1",
+        createPattern: "canvas, repetitionType",
+        createRadialGradient: "x0, y0, r0, x1, y1, r1",
+        drawFocusIfNeeded: "element",
+        drawImage: "image, x, y",
+        drawImageFromRect: "image, [sx], [sy], [sw], [sh], [dx], [dy], [dw], [dh], [compositeOperation]",
+        ellipse: "x, y, radiusX, radiusY, rotation, startAngle, endAngle, [anticlockwise]",
+        fill: "path, [winding]",
+        fillRect: "x, y, width, height",
+        fillText: "text, x, y, [maxWidth]",
+        getImageData: "sx, sy, sw, sh",
+        isPointInPath: "path, x, y, [winding]",
+        isPointInStroke: "path, x, y",
+        lineTo: "x, y",
+        measureText: "text",
+        moveTo: "x, y",
+        putImageData: "imagedata, dx, dy",
+        quadraticCurveTo: "cpx, cpy, x, y",
+        rect: "x, y, width, height",
+        rotate: "angle",
+        scale: "sx, sy",
+        setAlpha: "[alpha]",
+        setCompositeOperation: "[compositeOperation]",
+        setFillColor: "color, [alpha]",
+        setLineCap: "[cap]",
+        setLineDash: "dash",
+        setLineJoin: "[join]",
+        setLineWidth: "[width]",
+        setMiterLimit: "[limit]",
+        setShadow: "width, height, blur, [color], [alpha]",
+        setStrokeColor: "color, [alpha]",
+        setTransform: "m11, m12, m21, m22, dx, dy",
+        stroke: "path",
+        strokeRect: "x, y, width, height",
+        strokeText: "text, x, y, [maxWidth]",
+        transform: "m11, m12, m21, m22, dx, dy",
+        translate: "tx, ty",
+        webkitGetImageDataHD: "sx, sy, sw, sh",
+        webkitPutImageDataHD: "imagedata, dx, dy",
+        __proto__: null,
+    },
+
+    CharacterData: {
+        appendData: "[data]",
+        deleteData: "[offset], [length]",
+        insertData: "[offset], [data]",
+        replaceData: "[offset], [length], [data]",
+        substringData: "[offset], [length]",
+        __proto__: null,
+    },
+
+    ClientRectList: {
+        item: "[index]",
+        __proto__: null,
+    },
+
+    CommandLineAPIHost: {
+        copyText: "text",
+        databaseId: "database",
+        getEventListeners: "node",
+        inspect: "objectId, hints",
+        storageId: "storage",
+        __proto__: null,
+    },
+
+    CompositionEvent: {
+        initCompositionEvent: "[typeArg], [canBubbleArg], [cancelableArg], [viewArg], [dataArg]",
+        __proto__: null,
+    },
+
+    Crypto: {
+        getRandomValues: "array",
+        __proto__: null,
+    },
+
+    CustomEvent: {
+        initCustomEvent: "[typeArg], [canBubbleArg], [cancelableArg], [detailArg]",
+        __proto__: null,
+    },
+
+    DOMApplicationCache: {
+        /* EventTarget */
+        __proto__: null,
+    },
+
+    DOMImplementation: {
+        createCSSStyleSheet: "[title], [media]",
+        createDocument: "[namespaceURI], [qualifiedName], [doctype]",
+        createDocumentType: "[qualifiedName], [publicId], [systemId]",
+        createHTMLDocument: "[title]",
+        hasFeature: "[feature], [version]",
+        __proto__: null,
+    },
+
+    DOMParser: {
+        parseFromString: "[str], [contentType]",
+        __proto__: null,
+    },
+
+    DOMStringList: {
+        contains: "[string]",
+        item: "[index]",
+        __proto__: null,
+    },
+
+    DOMTokenList: {
+        add: "tokens...",
+        contains: "token",
+        item: "index",
+        remove: "tokens...",
+        toggle: "token, [force]",
+        __proto__: null,
+    },
+
+    DataTransfer: {
+        clearData: "[type]",
+        getData: "type",
+        setData: "type, data",
+        setDragImage: "image, x, y",
+        __proto__: null,
+    },
+
+    DataTransferItem: {
+        getAsString: "[callback]",
+        __proto__: null,
+    },
+
+    DataTransferItemList: {
+        add: "file",
+        item: "[index]",
+        __proto__: null,
+    },
+
+    Database: {
+        changeVersion: "oldVersion, newVersion, [callback], [errorCallback], [successCallback]",
+        readTransaction: "callback, [errorCallback], [successCallback]",
+        transaction: "callback, [errorCallback], [successCallback]",
+        __proto__: null,
+    },
+
+    DatabaseCallback: {
+        handleEvent: "database",
+        __proto__: null,
+    },
+
+    DedicatedWorkerGlobalScope: {
+        postMessage: "message, [messagePorts]",
+        __proto__: null,
+    },
+
+    DeviceMotionEvent: {
+        initDeviceMotionEvent: "[type], [bubbles], [cancelable], [acceleration], [accelerationIncludingGravity], [rotationRate], [interval]",
+        __proto__: null,
+    },
+
+    DeviceOrientationEvent: {
+        initDeviceOrientationEvent: "[type], [bubbles], [cancelable], [alpha], [beta], [gamma], [absolute]",
+        __proto__: null,
+    },
+
+    DocumentFragment: {
+        querySelector: "selectors",
+        querySelectorAll: "selectors",
+        __proto__: null,
+    },
+
+    Event: {
+        initEvent: "[type], [canBubble], [cancelable]",
+        __proto__: null,
+    },
+
+    FileList: {
+        item: "index",
+        __proto__: null,
+    },
+
+    FileReader: {
+        readAsArrayBuffer: "blob",
+        readAsBinaryString: "blob",
+        readAsDataURL: "blob",
+        readAsText: "blob, [encoding]",
+        __proto__: null,
+    },
+
+    FileReaderSync: {
+        readAsArrayBuffer: "blob",
+        readAsBinaryString: "blob",
+        readAsDataURL: "blob",
+        readAsText: "blob, [encoding]",
+        __proto__: null,
+    },
+
+    FontLoader: {
+        checkFont: "font, [text]",
+        loadFont: "params",
+        notifyWhenFontsReady: "callback",
+        __proto__: null,
+    },
+
+    FormData: {
+        append: "[name], [value], [filename]",
+        __proto__: null,
+    },
+
     Geolocation: {
-        clearWatch: "watchId",
-        getCurrentPosition: "successHandler, [errorHandler], [options]",
-        watchPosition: "successHandler, [errorHandler], [options]",
+        clearWatch: "watchID",
+        getCurrentPosition: "successCallback, [errorCallback], [options]",
+        watchPosition: "successCallback, [errorCallback], [options]",
         __proto__: null,
     },
 
+    HTMLAllCollection: {
+        item: "[index]",
+        namedItem: "name",
+        tags: "name",
+        __proto__: null,
+    },
+
+    HTMLButtonElement: {
+        setCustomValidity: "error",
+        __proto__: null,
+    },
+
+    HTMLCanvasElement: {
+        getContext: "[contextId]",
+        probablySupportsContext: "[contextId]",
+        toDataURL: "[type]",
+        __proto__: null,
+    },
+
+    HTMLCollection: {
+        item: "[index]",
+        namedItem: "[name]",
+        __proto__: null,
+    },
+
+    HTMLDocument: {
+        write: "[html]",
+        writeln: "[html]",
+        __proto__: null,
+    },
+
+    HTMLElement: {
+        insertAdjacentElement: "[position], [element]",
+        insertAdjacentHTML: "[position], [html]",
+        insertAdjacentText: "[position], [text]",
+        __proto__: null,
+    },
+
+    HTMLFieldSetElement: {
+        setCustomValidity: "error",
+        __proto__: null,
+    },
+
+    HTMLFormControlsCollection: {
+        namedItem: "[name]",
+        __proto__: null,
+    },
+
+    HTMLInputElement: {
+        setCustomValidity: "error",
+        setRangeText: "replacement",
+        setSelectionRange: "[start], [end], [direction]",
+        stepDown: "[n]",
+        stepUp: "[n]",
+        __proto__: null,
+    },
+
+    HTMLKeygenElement: {
+        setCustomValidity: "error",
+        __proto__: null,
+    },
+
+    HTMLMediaElement: {
+        addTextTrack: "kind, [label], [language]",
+        canPlayType: "[type], [keySystem]",
+        fastSeek: "time",
+        webkitAddKey: "keySystem, key, [initData], [sessionId]",
+        webkitCancelKeyRequest: "keySystem, [sessionId]",
+        webkitGenerateKeyRequest: "keySystem, [initData]",
+        webkitSetMediaKeys: "mediaKeys",
+        __proto__: null,
+    },
+
+    HTMLObjectElement: {
+        setCustomValidity: "error",
+        __proto__: null,
+    },
+
+    HTMLOptionsCollection: {
+        add: "element, [before]",
+        namedItem: "[name]",
+        remove: "[index]",
+        __proto__: null,
+    },
+
+    HTMLOutputElement: {
+        setCustomValidity: "error",
+        __proto__: null,
+    },
+
+    HTMLSelectElement: {
+        add: "element, [before]",
+        item: "index",
+        namedItem: "[name]",
+        setCustomValidity: "error",
+        __proto__: null,
+    },
+
+    HTMLTableElement: {
+        deleteRow: "[index]",
+        insertRow: "[index]",
+        __proto__: null,
+    },
+
+    HTMLTableRowElement: {
+        deleteCell: "[index]",
+        insertCell: "[index]",
+        __proto__: null,
+    },
+
+    HTMLTableSectionElement: {
+        deleteRow: "[index]",
+        insertRow: "[index]",
+        __proto__: null,
+    },
+
+    HTMLTextAreaElement: {
+        setCustomValidity: "error",
+        setRangeText: "replacement",
+        setSelectionRange: "[start], [end], [direction]",
+        __proto__: null,
+    },
+
+    HTMLVideoElement: {
+        webkitSetPresentationMode: "mode",
+        webkitSupportsPresentationMode: "mode",
+        __proto__: null,
+    },
+
+    HashChangeEvent: {
+        initHashChangeEvent: "[type], [canBubble], [cancelable], [oldURL], [newURL]",
+        __proto__: null,
+    },
+
+    History: {
+        go: "[distance]",
+        pushState: "data, title, [url]",
+        replaceState: "data, title, [url]",
+        __proto__: null,
+    },
+
+    IDBCursor: {
+        advance: "count",
+        continue: "[key]",
+        update: "value",
+        __proto__: null,
+    },
+
+    IDBDatabase: {
+        createObjectStore: "name, [options]",
+        deleteObjectStore: "name",
+        transaction: "storeName, [mode]",
+        __proto__: null,
+    },
+
+    IDBFactory: {
+        cmp: "first, second",
+        deleteDatabase: "name",
+        open: "name, [version]",
+        __proto__: null,
+    },
+
+    IDBIndex: {
+        count: "[range]",
+        get: "key",
+        getKey: "key",
+        openCursor: "[range], [direction]",
+        openKeyCursor: "[range], [direction]",
+        __proto__: null,
+    },
+
+    IDBObjectStore: {
+        add: "value, [key]",
+        count: "[range]",
+        createIndex: "name, keyPath, [options]",
+        delete: "keyRange",
+        deleteIndex: "name",
+        get: "key",
+        index: "name",
+        openCursor: "[range], [direction]",
+        put: "value, [key]",
+        __proto__: null,
+    },
+
+    IDBTransaction: {
+        objectStore: "name",
+        __proto__: null,
+    },
+
+    KeyboardEvent: {
+        initKeyboardEvent: "[type], [canBubble], [cancelable], [view], [keyIdentifier], [location], [ctrlKey], [altKey], [shiftKey], [metaKey], [altGraphKey]",
+        __proto__: null,
+    },
+
+    Location: {
+        assign: "[url]",
+        reload: "[force=false]",
+        replace: "[url]",
+        __proto__: null,
+    },
+
+    MediaController: {
+        /* EventTarget */
+        __proto__: null,
+    },
+
+    MediaControlsHost: {
+        displayNameForTrack: "track",
+        mediaUIImageData: "partID",
+        setSelectedTextTrack: "track",
+        sortedTrackListForMenu: "trackList",
+        __proto__: null,
+    },
+
+    MediaList: {
+        appendMedium: "[newMedium]",
+        deleteMedium: "[oldMedium]",
+        item: "[index]",
+        __proto__: null,
+    },
+
+    MediaQueryList: {
+        addListener: "[listener]",
+        removeListener: "[listener]",
+        __proto__: null,
+    },
+
+    MediaQueryListListener: {
+        queryChanged: "[list]",
+        __proto__: null,
+    },
+
+    MediaSource: {
+        addSourceBuffer: "type",
+        endOfStream: "[error]",
+        removeSourceBuffer: "buffer",
+        __proto__: null,
+    },
+
+    MediaStreamTrack: {
+        applyConstraints: "constraints",
+        __proto__: null,
+    },
+
+    MediaStreamTrackSourcesCallback: {
+        handleEvent: "sources",
+        __proto__: null,
+    },
+
+    MessageEvent: {
+        initMessageEvent: "[typeArg], [canBubbleArg], [cancelableArg], [dataArg], [originArg], [lastEventIdArg], [sourceArg], [messagePorts]",
+        webkitInitMessageEvent: "[typeArg], [canBubbleArg], [cancelableArg], [dataArg], [originArg], [lastEventIdArg], [sourceArg], [transferables]",
+        __proto__: null,
+    },
+
+    MessagePort: {
+        /* EventTarget */
+        __proto__: null,
+    },
+
+    MimeTypeArray: {
+        item: "[index]",
+        namedItem: "[name]",
+        __proto__: null,
+    },
+
+    MouseEvent: {
+        initMouseEvent: "[type], [canBubble], [cancelable], [view], [detail], [screenX], [screenY], [clientX], [clientY], [ctrlKey], [altKey], [shiftKey], [metaKey], [button], [relatedTarget]",
+        __proto__: null,
+    },
+
+    MutationEvent: {
+        initMutationEvent: "[type], [canBubble], [cancelable], [relatedNode], [prevValue], [newValue], [attrName], [attrChange]",
+        __proto__: null,
+    },
+
+    MutationObserver: {
+        observe: "target, options",
+        __proto__: null,
+    },
+
+    NamedNodeMap: {
+        getNamedItem: "[name]",
+        getNamedItemNS: "[namespaceURI], [localName]",
+        item: "[index]",
+        removeNamedItem: "[name]",
+        removeNamedItemNS: "[namespaceURI], [localName]",
+        setNamedItem: "[node]",
+        setNamedItemNS: "[node]",
+        __proto__: null,
+    },
+
+    Navigator: {
+        webkitGetUserMedia: "options, successCallback, [errorCallback]",
+        __proto__: null,
+    },
+
+    NavigatorUserMediaErrorCallback: {
+        handleEvent: "error",
+        __proto__: null,
+    },
+
+    NavigatorUserMediaSuccessCallback: {
+        handleEvent: "stream",
+        __proto__: null,
+    },
+
+    NodeFilter: {
+        acceptNode: "[n]",
+        __proto__: null,
+    },
+
+    NodeList: {
+        item: "index",
+        __proto__: null,
+    },
+
+    Notification: {
+        /* EventTarget */
+        __proto__: null,
+    },
+
+    NotificationCenter: {
+        createNotification: "iconUrl, title, body",
+        requestPermission: "[callback]",
+        __proto__: null,
+    },
+
+    NotificationPermissionCallback: {
+        handleEvent: "permission",
+        __proto__: null,
+    },
+
+    OESVertexArrayObject: {
+        bindVertexArrayOES: "[arrayObject]",
+        deleteVertexArrayOES: "[arrayObject]",
+        isVertexArrayOES: "[arrayObject]",
+        __proto__: null,
+    },
+
+    OscillatorNode: {
+        noteOff: "when",
+        noteOn: "when",
+        setPeriodicWave: "wave",
+        start: "[when]",
+        stop: "[when]",
+        __proto__: null,
+    },
+
+    Path2D: {
+        addPath: "path, [transform]",
+        arc: "[x], [y], [radius], [startAngle], [endAngle], [anticlockwise]",
+        arcTo: "[x1], [y1], [x2], [y2], [radius]",
+        bezierCurveTo: "[cp1x], [cp1y], [cp2x], [cp2y], [x], [y]",
+        ellipse: "x, y, radiusX, radiusY, rotation, startAngle, endAngle, [anticlockwise]",
+        lineTo: "[x], [y]",
+        moveTo: "[x], [y]",
+        quadraticCurveTo: "[cpx], [cpy], [x], [y]",
+        rect: "[x], [y], [width], [height]",
+        __proto__: null,
+    },
+
+    Plugin: {
+        item: "[index]",
+        namedItem: "[name]",
+        __proto__: null,
+    },
+
+    PluginArray: {
+        item: "[index]",
+        namedItem: "[name]",
+        refresh: "[reload]",
+        __proto__: null,
+    },
+
+    PositionCallback: {
+        handleEvent: "position",
+        __proto__: null,
+    },
+
+    PositionErrorCallback: {
+        handleEvent: "error",
+        __proto__: null,
+    },
+
+    QuickTimePluginReplacement: {
+        postEvent: "eventName",
+        __proto__: null,
+    },
+
+    RTCDTMFSender: {
+        insertDTMF: "tones, [duration], [interToneGap]",
+        __proto__: null,
+    },
+
+    RTCDataChannel: {
+        send: "data",
+        __proto__: null,
+    },
+
+    RTCPeerConnectionErrorCallback: {
+        handleEvent: "error",
+        __proto__: null,
+    },
+
+    RTCSessionDescriptionCallback: {
+        handleEvent: "sdp",
+        __proto__: null,
+    },
+
+    RTCStatsCallback: {
+        handleEvent: "response",
+        __proto__: null,
+    },
+
+    RTCStatsReport: {
+        stat: "name",
+        __proto__: null,
+    },
+
+    RTCStatsResponse: {
+        namedItem: "[name]",
+        __proto__: null,
+    },
+
+    Range: {
+        collapse: "[toStart]",
+        compareBoundaryPoints: "[how], [sourceRange]",
+        compareNode: "[refNode]",
+        comparePoint: "[refNode], [offset]",
+        createContextualFragment: "[html]",
+        expand: "[unit]",
+        insertNode: "[newNode]",
+        intersectsNode: "[refNode]",
+        isPointInRange: "[refNode], [offset]",
+        selectNode: "[refNode]",
+        selectNodeContents: "[refNode]",
+        setEnd: "[refNode], [offset]",
+        setEndAfter: "[refNode]",
+        setEndBefore: "[refNode]",
+        setStart: "[refNode], [offset]",
+        setStartAfter: "[refNode]",
+        setStartBefore: "[refNode]",
+        surroundContents: "[newParent]",
+        __proto__: null,
+    },
+
+    ReadableStream: {
+        cancel: "reason",
+        pipeThrough: "dest, options",
+        pipeTo: "streams, options",
+        __proto__: null,
+    },
+
+    RequestAnimationFrameCallback: {
+        handleEvent: "highResTime",
+        __proto__: null,
+    },
+
+    SQLResultSetRowList: {
+        item: "index",
+        __proto__: null,
+    },
+
+    SQLStatementCallback: {
+        handleEvent: "transaction, resultSet",
+        __proto__: null,
+    },
+
+    SQLStatementErrorCallback: {
+        handleEvent: "transaction, error",
+        __proto__: null,
+    },
+
+    SQLTransaction: {
+        executeSql: "sqlStatement, arguments, [callback], [errorCallback]",
+        __proto__: null,
+    },
+
+    SQLTransactionCallback: {
+        handleEvent: "transaction",
+        __proto__: null,
+    },
+
+    SQLTransactionErrorCallback: {
+        handleEvent: "error",
+        __proto__: null,
+    },
+
+    SVGAngle: {
+        convertToSpecifiedUnits: "unitType",
+        newValueSpecifiedUnits: "unitType, valueInSpecifiedUnits",
+        __proto__: null,
+    },
+
+    SVGAnimationElement: {
+        beginElementAt: "[offset]",
+        endElementAt: "[offset]",
+        hasExtension: "[extension]",
+        __proto__: null,
+    },
+
+    SVGColor: {
+        setColor: "colorType, rgbColor, iccColor",
+        setRGBColor: "rgbColor",
+        setRGBColorICCColor: "rgbColor, iccColor",
+        __proto__: null,
+    },
+
+    SVGCursorElement: {
+        hasExtension: "[extension]",
+        __proto__: null,
+    },
+
+    SVGDocument: {
+        createEvent: "[eventType]",
+        __proto__: null,
+    },
+
+    SVGElement: {
+        getPresentationAttribute: "[name]",
+        __proto__: null,
+    },
+
+    SVGFEDropShadowElement: {
+        setStdDeviation: "[stdDeviationX], [stdDeviationY]",
+        __proto__: null,
+    },
+
+    SVGFEGaussianBlurElement: {
+        setStdDeviation: "[stdDeviationX], [stdDeviationY]",
+        __proto__: null,
+    },
+
+    SVGFEMorphologyElement: {
+        setRadius: "[radiusX], [radiusY]",
+        __proto__: null,
+    },
+
+    SVGFilterElement: {
+        setFilterRes: "[filterResX], [filterResY]",
+        __proto__: null,
+    },
+
+    SVGGraphicsElement: {
+        getTransformToElement: "[element]",
+        hasExtension: "[extension]",
+        __proto__: null,
+    },
+
+    SVGLength: {
+        convertToSpecifiedUnits: "unitType",
+        newValueSpecifiedUnits: "unitType, valueInSpecifiedUnits",
+        __proto__: null,
+    },
+
+    SVGLengthList: {
+        appendItem: "item",
+        getItem: "index",
+        initialize: "item",
+        insertItemBefore: "item, index",
+        removeItem: "index",
+        replaceItem: "item, index",
+        __proto__: null,
+    },
+
+    SVGMarkerElement: {
+        setOrientToAngle: "[angle]",
+        __proto__: null,
+    },
+
+    SVGMaskElement: {
+        hasExtension: "[extension]",
+        __proto__: null,
+    },
+
+    SVGMatrix: {
+        multiply: "secondMatrix",
+        rotate: "angle",
+        rotateFromVector: "x, y",
+        scale: "scaleFactor",
+        scaleNonUniform: "scaleFactorX, scaleFactorY",
+        skewX: "angle",
+        skewY: "angle",
+        translate: "x, y",
+        __proto__: null,
+    },
+
+    SVGNumberList: {
+        appendItem: "item",
+        getItem: "index",
+        initialize: "item",
+        insertItemBefore: "item, index",
+        removeItem: "index",
+        replaceItem: "item, index",
+        __proto__: null,
+    },
+
+    SVGPaint: {
+        setPaint: "paintType, uri, rgbColor, iccColor",
+        setUri: "uri",
+        __proto__: null,
+    },
+
+    SVGPathElement: {
+        createSVGPathSegArcAbs: "[x], [y], [r1], [r2], [angle], [largeArcFlag], [sweepFlag]",
+        createSVGPathSegArcRel: "[x], [y], [r1], [r2], [angle], [largeArcFlag], [sweepFlag]",
+        createSVGPathSegCurvetoCubicAbs: "[x], [y], [x1], [y1], [x2], [y2]",
+        createSVGPathSegCurvetoCubicRel: "[x], [y], [x1], [y1], [x2], [y2]",
+        createSVGPathSegCurvetoCubicSmoothAbs: "[x], [y], [x2], [y2]",
+        createSVGPathSegCurvetoCubicSmoothRel: "[x], [y], [x2], [y2]",
+        createSVGPathSegCurvetoQuadraticAbs: "[x], [y], [x1], [y1]",
+        createSVGPathSegCurvetoQuadraticRel: "[x], [y], [x1], [y1]",
+        createSVGPathSegCurvetoQuadraticSmoothAbs: "[x], [y]",
+        createSVGPathSegCurvetoQuadraticSmoothRel: "[x], [y]",
+        createSVGPathSegLinetoAbs: "[x], [y]",
+        createSVGPathSegLinetoHorizontalAbs: "[x]",
+        createSVGPathSegLinetoHorizontalRel: "[x]",
+        createSVGPathSegLinetoRel: "[x], [y]",
+        createSVGPathSegLinetoVerticalAbs: "[y]",
+        createSVGPathSegLinetoVerticalRel: "[y]",
+        createSVGPathSegMovetoAbs: "[x], [y]",
+        createSVGPathSegMovetoRel: "[x], [y]",
+        getPathSegAtLength: "[distance]",
+        getPointAtLength: "[distance]",
+        __proto__: null,
+    },
+
+    SVGPathSegList: {
+        appendItem: "newItem",
+        getItem: "index",
+        initialize: "newItem",
+        insertItemBefore: "newItem, index",
+        removeItem: "index",
+        replaceItem: "newItem, index",
+        __proto__: null,
+    },
+
+    SVGPatternElement: {
+        hasExtension: "[extension]",
+        __proto__: null,
+    },
+
+    SVGPoint: {
+        matrixTransform: "matrix",
+        __proto__: null,
+    },
+
+    SVGPointList: {
+        appendItem: "item",
+        getItem: "index",
+        initialize: "item",
+        insertItemBefore: "item, index",
+        removeItem: "index",
+        replaceItem: "item, index",
+        __proto__: null,
+    },
+
+    SVGSVGElement: {
+        checkEnclosure: "[element], [rect]",
+        checkIntersection: "[element], [rect]",
+        createSVGTransformFromMatrix: "[matrix]",
+        getElementById: "[elementId]",
+        getEnclosureList: "[rect], [referenceElement]",
+        getIntersectionList: "[rect], [referenceElement]",
+        setCurrentTime: "[seconds]",
+        suspendRedraw: "[maxWaitMilliseconds]",
+        unsuspendRedraw: "[suspendHandleId]",
+        __proto__: null,
+    },
+
+    SVGStringList: {
+        appendItem: "item",
+        getItem: "index",
+        initialize: "item",
+        insertItemBefore: "item, index",
+        removeItem: "index",
+        replaceItem: "item, index",
+        __proto__: null,
+    },
+
+    SVGTextContentElement: {
+        getCharNumAtPosition: "[point]",
+        getEndPositionOfChar: "[offset]",
+        getExtentOfChar: "[offset]",
+        getRotationOfChar: "[offset]",
+        getStartPositionOfChar: "[offset]",
+        getSubStringLength: "[offset], [length]",
+        selectSubString: "[offset], [length]",
+        __proto__: null,
+    },
+
+    SVGTransform: {
+        setMatrix: "matrix",
+        setRotate: "angle, cx, cy",
+        setScale: "sx, sy",
+        setSkewX: "angle",
+        setSkewY: "angle",
+        setTranslate: "tx, ty",
+        __proto__: null,
+    },
+
+    SVGTransformList: {
+        appendItem: "item",
+        createSVGTransformFromMatrix: "matrix",
+        getItem: "index",
+        initialize: "item",
+        insertItemBefore: "item, index",
+        removeItem: "index",
+        replaceItem: "item, index",
+        __proto__: null,
+    },
+
+    SecurityPolicy: {
+        allowsConnectionTo: "url",
+        allowsFontFrom: "url",
+        allowsFormAction: "url",
+        allowsFrameFrom: "url",
+        allowsImageFrom: "url",
+        allowsMediaFrom: "url",
+        allowsObjectFrom: "url",
+        allowsPluginType: "type",
+        allowsScriptFrom: "url",
+        allowsStyleFrom: "url",
+        __proto__: null,
+    },
+
+    Selection: {
+        addRange: "[range]",
+        collapse: "[node], [index]",
+        containsNode: "[node], [allowPartial]",
+        extend: "[node], [offset]",
+        getRangeAt: "[index]",
+        modify: "[alter], [direction], [granularity]",
+        selectAllChildren: "[node]",
+        setBaseAndExtent: "[baseNode], [baseOffset], [extentNode], [extentOffset]",
+        setPosition: "[node], [offset]",
+        __proto__: null,
+    },
+
+    SourceBuffer: {
+        appendBuffer: "data",
+        remove: "start, end",
+        __proto__: null,
+    },
+
+    SourceBufferList: {
+        item: "index",
+        __proto__: null,
+    },
+
+    SpeechSynthesis: {
+        speak: "utterance",
+        __proto__: null,
+    },
+
+    SpeechSynthesisUtterance: {
+        /* EventTarget */
+        __proto__: null,
+    },
+
     Storage: {
         getItem: "key",
         key: "index",
         removeItem: "key",
+        setItem: "key, data",
         __proto__: null,
     },
 
-    Location: {
-        assign: "url",
-        reload: "[force=false]",
-        replace: "url",
+    StorageErrorCallback: {
+        handleEvent: "error",
         __proto__: null,
     },
 
-    History: {
-        go: "distance",
-        pushState: "data, title, url",
-        replaceState: "data, title, url",
+    StorageEvent: {
+        initStorageEvent: "[typeArg], [canBubbleArg], [cancelableArg], [keyArg], [oldValueArg], [newValueArg], [urlArg], [storageAreaArg]",
         __proto__: null,
     },
+
+    StorageInfo: {
+        queryUsageAndQuota: "storageType, [usageCallback], [errorCallback]",
+        requestQuota: "storageType, newQuotaInBytes, [quotaCallback], [errorCallback]",
+        __proto__: null,
+    },
+
+    StorageQuota: {
+        queryUsageAndQuota: "usageCallback, [errorCallback]",
+        requestQuota: "newQuotaInBytes, [quotaCallback], [errorCallback]",
+        __proto__: null,
+    },
+
+    StorageQuotaCallback: {
+        handleEvent: "grantedQuotaInBytes",
+        __proto__: null,
+    },
+
+    StorageUsageCallback: {
+        handleEvent: "currentUsageInBytes, currentQuotaInBytes",
+        __proto__: null,
+    },
+
+    StringCallback: {
+        handleEvent: "data",
+        __proto__: null,
+    },
+
+    StyleMedia: {
+        matchMedium: "[mediaquery]",
+        __proto__: null,
+    },
+
+    StyleSheetList: {
+        item: "[index]",
+        __proto__: null,
+    },
+
+    Text: {
+        replaceWholeText: "[content]",
+        splitText: "offset",
+        __proto__: null,
+    },
+
+    TextEvent: {
+        initTextEvent: "[typeArg], [canBubbleArg], [cancelableArg], [viewArg], [dataArg]",
+        __proto__: null,
+    },
+
+    TextTrack: {
+        addCue: "cue",
+        addRegion: "region",
+        removeCue: "cue",
+        removeRegion: "region",
+        __proto__: null,
+    },
+
+    TextTrackCue: {
+        /* EventTarget */
+        __proto__: null,
+    },
+
+    TextTrackCueList: {
+        getCueById: "id",
+        item: "index",
+        __proto__: null,
+    },
+
+    TextTrackList: {
+        getTrackById: "id",
+        item: "index",
+        __proto__: null,
+    },
+
+    TimeRanges: {
+        end: "index",
+        start: "index",
+        __proto__: null,
+    },
+
+    TouchEvent: {
+        initTouchEvent: "[touches], [targetTouches], [changedTouches], [type], [view], [screenX], [screenY], [clientX], [clientY], [ctrlKey], [altKey], [shiftKey], [metaKey]",
+        __proto__: null,
+    },
+
+    TouchList: {
+        item: "index",
+        __proto__: null,
+    },
+
+    UIEvent: {
+        initUIEvent: "[type], [canBubble], [cancelable], [view], [detail]",
+        __proto__: null,
+    },
+
+    UserMessageHandler: {
+        postMessage: "message",
+        __proto__: null,
+    },
+
+    VTTRegionList: {
+        getRegionById: "id",
+        item: "index",
+        __proto__: null,
+    },
+
+    VideoTrackList: {
+        getTrackById: "id",
+        item: "index",
+        __proto__: null,
+    },
+
+    WebGL2RenderingContext: {
+        beginQuery: "target, query",
+        beginTransformFeedback: "primitiveMode",
+        bindBufferBase: "target, index, buffer",
+        bindBufferRange: "target, index, buffer, offset, size",
+        bindSampler: "unit, sampler",
+        bindTransformFeedback: "target, id",
+        bindVertexArray: "vertexArray",
+        blitFramebuffer: "srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter",
+        clearBufferfi: "buffer, drawbuffer, depth, stencil",
+        clearBufferfv: "buffer, drawbuffer, value",
+        clearBufferiv: "buffer, drawbuffer, value",
+        clearBufferuiv: "buffer, drawbuffer, value",
+        clientWaitSync: "sync, flags, timeout",
+        compressedTexImage3D: "target, level, internalformat, width, height, depth, border, imageSize, data",
+        compressedTexSubImage3D: "target, level, xoffset, yoffset, zoffset, width, height, depth, format, imageSize, data",
+        copyBufferSubData: "readTarget, writeTarget, readOffset, writeOffset, size",
+        copyTexSubImage3D: "target, level, xoffset, yoffset, zoffset, x, y, width, height",
+        deleteQuery: "query",
+        deleteSampler: "sampler",
+        deleteSync: "sync",
+        deleteTransformFeedback: "id",
+        deleteVertexArray: "vertexArray",
+        drawArraysInstanced: "mode, first, count, instanceCount",
+        drawBuffers: "buffers",
+        drawElementsInstanced: "mode, count, type, offset, instanceCount",
+        drawRangeElements: "mode, start, end, count, type, offset",
+        endQuery: "target",
+        fenceSync: "condition, flags",
+        framebufferTextureLayer: "target, attachment, texture, level, layer",
+        getActiveUniformBlockName: "program, uniformBlockIndex",
+        getActiveUniformBlockParameter: "program, uniformBlockIndex, pname",
+        getActiveUniforms: "program, uniformIndices, pname",
+        getBufferSubData: "target, offset, returnedData",
+        getFragDataLocation: "program, name",
+        getIndexedParameter: "target, index",
+        getInternalformatParameter: "target, internalformat, pname",
+        getQuery: "target, pname",
+        getQueryParameter: "query, pname",
+        getSamplerParameter: "sampler, pname",
+        getSyncParameter: "sync, pname",
+        getTransformFeedbackVarying: "program, index",
+        getUniformBlockIndex: "program, uniformBlockName",
+        getUniformIndices: "program, uniformNames",
+        invalidateFramebuffer: "target, attachments",
+        invalidateSubFramebuffer: "target, attachments, x, y, width, height",
+        isQuery: "query",
+        isSampler: "sampler",
+        isSync: "sync",
+        isTransformFeedback: "id",
+        isVertexArray: "vertexArray",
+        readBuffer: "src",
+        renderbufferStorageMultisample: "target, samples, internalformat, width, height",
+        samplerParameterf: "sampler, pname, param",
+        samplerParameteri: "sampler, pname, param",
+        texImage3D: "target, level, internalformat, width, height, depth, border, format, type, pixels",
+        texStorage2D: "target, levels, internalformat, width, height",
+        texStorage3D: "target, levels, internalformat, width, height, depth",
+        texSubImage3D: "target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, pixels",
+        transformFeedbackVaryings: "program, varyings, bufferMode",
+        uniform1ui: "location, v0",
+        uniform1uiv: "location, value",
+        uniform2ui: "location, v0, v1",
+        uniform2uiv: "location, value",
+        uniform3ui: "location, v0, v1, v2",
+        uniform3uiv: "location, value",
+        uniform4ui: "location, v0, v1, v2, v3",
+        uniform4uiv: "location, value",
+        uniformBlockBinding: "program, uniformBlockIndex, uniformBlockBinding",
+        uniformMatrix2x3fv: "location, transpose, value",
+        uniformMatrix2x4fv: "location, transpose, value",
+        uniformMatrix3x2fv: "location, transpose, value",
+        uniformMatrix3x4fv: "location, transpose, value",
+        uniformMatrix4x2fv: "location, transpose, value",
+        uniformMatrix4x3fv: "location, transpose, value",
+        vertexAttribDivisor: "index, divisor",
+        vertexAttribI4i: "index, x, y, z, w",
+        vertexAttribI4iv: "index, v",
+        vertexAttribI4ui: "index, x, y, z, w",
+        vertexAttribI4uiv: "index, v",
+        vertexAttribIPointer: "index, size, type, stride, offset",
+        waitSync: "sync, flags, timeout",
+        __proto__: null,
+    },
+
+    WebGLDebugShaders: {
+        getTranslatedShaderSource: "shader",
+        __proto__: null,
+    },
+
+    WebGLDrawBuffers: {
+        drawBuffersWEBGL: "buffers",
+        __proto__: null,
+    },
+
+    WebGLRenderingContextBase: {
+        activeTexture: "texture",
+        attachShader: "program, shader",
+        bindAttribLocation: "program, index, name",
+        bindBuffer: "target, buffer",
+        bindFramebuffer: "target, framebuffer",
+        bindRenderbuffer: "target, renderbuffer",
+        bindTexture: "target, texture",
+        blendColor: "red, green, blue, alpha",
+        blendEquation: "mode",
+        blendEquationSeparate: "modeRGB, modeAlpha",
+        blendFunc: "sfactor, dfactor",
+        blendFuncSeparate: "srcRGB, dstRGB, srcAlpha, dstAlpha",
+        bufferData: "target, data, usage",
+        bufferSubData: "target, offset, data",
+        checkFramebufferStatus: "target",
+        clear: "mask",
+        clearColor: "red, green, blue, alpha",
+        clearDepth: "depth",
+        clearStencil: "s",
+        colorMask: "red, green, blue, alpha",
+        compileShader: "shader",
+        compressedTexImage2D: "target, level, internalformat, width, height, border, data",
+        compressedTexSubImage2D: "target, level, xoffset, yoffset, width, height, format, data",
+        copyTexImage2D: "target, level, internalformat, x, y, width, height, border",
+        copyTexSubImage2D: "target, level, xoffset, yoffset, x, y, width, height",
+        createShader: "type",
+        cullFace: "mode",
+        deleteBuffer: "buffer",
+        deleteFramebuffer: "framebuffer",
+        deleteProgram: "program",
+        deleteRenderbuffer: "renderbuffer",
+        deleteShader: "shader",
+        deleteTexture: "texture",
+        depthFunc: "func",
+        depthMask: "flag",
+        depthRange: "zNear, zFar",
+        detachShader: "program, shader",
+        disable: "cap",
+        disableVertexAttribArray: "index",
+        drawArrays: "mode, first, count",
+        drawElements: "mode, count, type, offset",
+        enable: "cap",
+        enableVertexAttribArray: "index",
+        framebufferRenderbuffer: "target, attachment, renderbuffertarget, renderbuffer",
+        framebufferTexture2D: "target, attachment, textarget, texture, level",
+        frontFace: "mode",
+        generateMipmap: "target",
+        getActiveAttrib: "program, index",
+        getActiveUniform: "program, index",
+        getAttachedShaders: "program",
+        getAttribLocation: "program, name",
+        getBufferParameter: "target, pname",
+        getExtension: "name",
+        getFramebufferAttachmentParameter: "target, attachment, pname",
+        getParameter: "pname",
+        getProgramInfoLog: "program",
+        getProgramParameter: "program, pname",
+        getRenderbufferParameter: "target, pname",
+        getShaderInfoLog: "shader",
+        getShaderParameter: "shader, pname",
+        getShaderPrecisionFormat: "shadertype, precisiontype",
+        getShaderSource: "shader",
+        getTexParameter: "target, pname",
+        getUniform: "program, location",
+        getUniformLocation: "program, name",
+        getVertexAttrib: "index, pname",
+        getVertexAttribOffset: "index, pname",
+        hint: "target, mode",
+        isBuffer: "buffer",
+        isEnabled: "cap",
+        isFramebuffer: "framebuffer",
+        isProgram: "program",
+        isRenderbuffer: "renderbuffer",
+        isShader: "shader",
+        isTexture: "texture",
+        lineWidth: "width",
+        linkProgram: "program",
+        pixelStorei: "pname, param",
+        polygonOffset: "factor, units",
+        readPixels: "x, y, width, height, format, type, pixels",
+        renderbufferStorage: "target, internalformat, width, height",
+        sampleCoverage: "value, invert",
+        scissor: "x, y, width, height",
+        shaderSource: "shader, string",
+        stencilFunc: "func, ref, mask",
+        stencilFuncSeparate: "face, func, ref, mask",
+        stencilMask: "mask",
+        stencilMaskSeparate: "face, mask",
+        stencilOp: "fail, zfail, zpass",
+        stencilOpSeparate: "face, fail, zfail, zpass",
+        texImage2D: "target, level, internalformat, width, height, border, format, type, pixels",
+        texParameterf: "target, pname, param",
+        texParameteri: "target, pname, param",
+        texSubImage2D: "target, level, xoffset, yoffset, width, height, format, type, pixels",
+        uniform1f: "location, x",
+        uniform1fv: "location, v",
+        uniform1i: "location, x",
+        uniform1iv: "location, v",
+        uniform2f: "location, x, y",
+        uniform2fv: "location, v",
+        uniform2i: "location, x, y",
+        uniform2iv: "location, v",
+        uniform3f: "location, x, y, z",
+        uniform3fv: "location, v",
+        uniform3i: "location, x, y, z",
+        uniform3iv: "location, v",
+        uniform4f: "location, x, y, z, w",
+        uniform4fv: "location, v",
+        uniform4i: "location, x, y, z, w",
+        uniform4iv: "location, v",
+        uniformMatrix2fv: "location, transpose, array",
+        uniformMatrix3fv: "location, transpose, array",
+        uniformMatrix4fv: "location, transpose, array",
+        useProgram: "program",
+        validateProgram: "program",
+        vertexAttrib1f: "indx, x",
+        vertexAttrib1fv: "indx, values",
+        vertexAttrib2f: "indx, x, y",
+        vertexAttrib2fv: "indx, values",
+        vertexAttrib3f: "indx, x, y, z",
+        vertexAttrib3fv: "indx, values",
+        vertexAttrib4f: "indx, x, y, z, w",
+        vertexAttrib4fv: "indx, values",
+        vertexAttribPointer: "indx, size, type, normalized, stride, offset",
+        viewport: "x, y, width, height",
+        __proto__: null,
+    },
+
+    WebKitCSSMatrix: {
+        multiply: "[secondMatrix]",
+        rotate: "[rotX], [rotY], [rotZ]",
+        rotateAxisAngle: "[x], [y], [z], [angle]",
+        scale: "[scaleX], [scaleY], [scaleZ]",
+        setMatrixValue: "[string]",
+        skewX: "[angle]",
+        skewY: "[angle]",
+        translate: "[x], [y], [z]",
+        __proto__: null,
+    },
+
+    WebKitMediaKeySession: {
+        update: "key",
+        __proto__: null,
+    },
+
+    WebKitMediaKeys: {
+        createSession: "[type], [initData]",
+        __proto__: null,
+    },
+
+    WebKitNamedFlow: {
+        getRegionsByContent: "contentNode",
+        __proto__: null,
+    },
+
+    WebKitNamedFlowCollection: {
+        item: "index",
+        namedItem: "name",
+        __proto__: null,
+    },
+
+    WebKitSubtleCrypto: {
+        decrypt: "algorithm, key, data",
+        digest: "algorithm, data",
+        encrypt: "algorithm, key, data",
+        exportKey: "format, key",
+        generateKey: "algorithm, [extractable], [keyUsages]",
+        importKey: "format, keyData, algorithm, [extractable], [keyUsages]",
+        sign: "algorithm, key, data",
+        unwrapKey: "format, wrappedKey, unwrappingKey, unwrapAlgorithm, unwrappedKeyAlgorithm, [extractable], [keyUsages]",
+        verify: "algorithm, key, signature, data",
+        wrapKey: "format, key, wrappingKey, wrapAlgorithm",
+        __proto__: null,
+    },
+
+    WebSocket: {
+        close: "[code], [reason]",
+        send: "data",
+        __proto__: null,
+    },
+
+    WheelEvent: {
+        initWebKitWheelEvent: "[wheelDeltaX], [wheelDeltaY], [view], [screenX], [screenY], [clientX], [clientY], [ctrlKey], [altKey], [shiftKey], [metaKey]",
+        __proto__: null,
+    },
+
+    Worker: {
+        postMessage: "message, [messagePorts]",
+        __proto__: null,
+    },
+
+    WorkerGlobalScope: {
+        clearInterval: "[handle]",
+        clearTimeout: "[handle]",
+        setInterval: "handler, [timeout]",
+        setTimeout: "handler, [timeout]",
+        __proto__: null,
+    },
+
+    XMLHttpRequest: {
+        getResponseHeader: "header",
+        open: "method, url, [async], [user], [password]",
+        overrideMimeType: "override",
+        setRequestHeader: "header, value",
+        __proto__: null,
+    },
+
+    XMLHttpRequestUpload: {
+        /* EventTarget */
+        __proto__: null,
+    },
+
+    XMLSerializer: {
+        serializeToString: "[node]",
+        __proto__: null,
+    },
+
+    XPathEvaluator: {
+        createExpression: "[_expression_], [resolver]",
+        createNSResolver: "[nodeResolver]",
+        evaluate: "[_expression_], [contextNode], [resolver], [type], [inResult]",
+        __proto__: null,
+    },
+
+    XPathExpression: {
+        evaluate: "[contextNode], [type], [inResult]",
+        __proto__: null,
+    },
+
+    XPathNSResolver: {
+        lookupNamespaceURI: "[prefix]",
+        __proto__: null,
+    },
+
+    XPathResult: {
+        snapshotItem: "[index]",
+        __proto__: null,
+    },
+
+    XSLTProcessor: {
+        getParameter: "namespaceURI, localName",
+        importStylesheet: "[stylesheet]",
+        removeParameter: "namespaceURI, localName",
+        setParameter: "namespaceURI, localName, value",
+        transformToDocument: "[source]",
+        transformToFragment: "[source], [docVal]",
+        __proto__: null,
+    },
+
+    webkitAudioContext: {
+        createBuffer: "numberOfChannels, numberOfFrames, sampleRate",
+        createChannelMerger: "[numberOfInputs]",
+        createChannelSplitter: "[numberOfOutputs]",
+        createDelay: "[maxDelayTime]",
+        createDelayNode: "[maxDelayTime]",
+        createJavaScriptNode: "bufferSize, [numberOfInputChannels], [numberOfOutputChannels]",
+        createMediaElementSource: "mediaElement",
+        createPeriodicWave: "real, imag",
+        createScriptProcessor: "bufferSize, [numberOfInputChannels], [numberOfOutputChannels]",
+        decodeAudioData: "audioData, successCallback, [errorCallback]",
+        __proto__: null,
+    },
+
+    webkitAudioPannerNode: {
+        setOrientation: "x, y, z",
+        setPosition: "x, y, z",
+        setVelocity: "x, y, z",
+        __proto__: null,
+    },
+
+    webkitMediaStream: {
+        addTrack: "track",
+        getTrackById: "trackId",
+        removeTrack: "track",
+        __proto__: null,
+    },
+
+    webkitRTCPeerConnection: {
+        addIceCandidate: "candidate, successCallback, failureCallback",
+        addStream: "stream",
+        createAnswer: "successCallback, failureCallback, [answerOptions]",
+        createDTMFSender: "track",
+        createDataChannel: "label, [options]",
+        createOffer: "successCallback, failureCallback, [offerOptions]",
+        getStats: "successCallback, failureCallback, [selector]",
+        getStreamById: "streamId",
+        removeStream: "stream",
+        setLocalDescription: "description, successCallback, failureCallback",
+        setRemoteDescription: "description, successCallback, failureCallback",
+        updateIce: "configuration",
+        __proto__: null,
+    },
 };
 
 WebInspector.NativePrototypeFunctionParameters.WeakMap = WebInspector.NativePrototypeFunctionParameters.Map;
@@ -434,11 +2073,20 @@
         dispatchEvent: "event",
     };
 
-    mixin(WebInspector.NativePrototypeFunctionParameters.Node, EventTarget);
-    mixin(WebInspector.NativePrototypeFunctionParameters.Window, EventTarget);
+    var eventTargetTypes = [
+        "Node", "Window",
+        "AudioNode", "AudioTrackList", "DOMApplicationCache", "FileReader", "FontLoader",
+        "MediaController", "MediaStreamTrack", "MessagePort", "Notification", "RTCDTMFSender",
+        "SpeechSynthesisUtterance", "TextTrack", "TextTrackCue", "TextTrackList",
+        "VideoTrackList", "WebKitMediaKeySession", "WebKitNamedFlow", "WebSocket",
+        "WorkerGlobalScope", "XMLHttpRequest", "webkitMediaStream", "webkitRTCPeerConnection"
+    ];
 
+    for (var type of eventTargetTypes)
+        mixin(WebInspector.NativePrototypeFunctionParameters[type], EventTarget);
+
     var ElementQueries = {
-        getElementsByClassName: "names",
+        getElementsByClassName: "classNames",
         getElementsByTagName: "tagName",
         getElementsByTagNameNS: "namespace, localName",
         querySelector: "selectors",

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js (181613 => 181614)


--- trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js	2015-03-17 04:41:34 UTC (rev 181613)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/ObjectTreePropertyTreeElement.js	2015-03-17 04:41:36 UTC (rev 181614)
@@ -270,8 +270,17 @@
                     }
                 }
             }
-        }        
 
+            // Native DOM constructor.
+            if (this._propertyPath.object.description.endsWith("Constructor")) {
+                var name = this._propertyPath.object.description;
+                if (WebInspector.NativeConstructorFunctionParameters[name]) {
+                    var params = WebInspector.NativeConstructorFunctionParameters[name][this._property.name];
+                    return params ? "(" + params + ")" : "()";
+                }
+            }
+        }
+
         var match = resolvedValue.description.match(/^function.*?(\([^)]+?\))/);
         return match ? match[1] : "()";
     },
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to