| Index: third_party/WebKit/Source/core/inspector/browser_protocol.json
|
| diff --git a/third_party/WebKit/Source/core/inspector/browser_protocol.json b/third_party/WebKit/Source/core/inspector/browser_protocol.json
|
| index 9e6068d0942a5d3c7d4fdc3069d4e0617a511cf3..f6211067326d8909edb1445af589f25c9bc878b9 100644
|
| --- a/third_party/WebKit/Source/core/inspector/browser_protocol.json
|
| +++ b/third_party/WebKit/Source/core/inspector/browser_protocol.json
|
| @@ -7,13 +7,11 @@
|
| "commands": [
|
| {
|
| "name": "enable",
|
| - "description": "Enables inspector domain notifications.",
|
| - "handlers": []
|
| + "description": "Enables inspector domain notifications."
|
| },
|
| {
|
| "name": "disable",
|
| - "description": "Disables inspector domain notifications.",
|
| - "handlers": []
|
| + "description": "Disables inspector domain notifications."
|
| }
|
| ],
|
| "events": [
|
| @@ -22,13 +20,11 @@
|
| "description": "Fired when remote debugging connection is about to be terminated. Contains detach reason.",
|
| "parameters": [
|
| { "name": "reason", "type": "string", "description": "The reason why connection has been terminated." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "targetCrashed",
|
| - "description": "Fired when debugging target has crashed",
|
| - "handlers": []
|
| + "description": "Fired when debugging target has crashed"
|
| }
|
| ]
|
| },
|
| @@ -57,16 +53,14 @@
|
| "description": "Enable/disable suppressing memory pressure notifications in all processes.",
|
| "parameters": [
|
| { "name": "suppressed", "type": "boolean", "description": "If true, memory pressure notifications will be suppressed."}
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "simulatePressureNotification",
|
| "description": "Simulate a memory pressure notification in all processes.",
|
| "parameters": [
|
| { "name": "level", "$ref": "PressureLevel", "description": "Memory pressure level of the notification." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ]
|
| },
|
| @@ -271,8 +265,7 @@
|
| { "name": "entries", "type": "array", "items": { "$ref": "NavigationEntry" }, "description": "Array of navigation history entries." }
|
| ],
|
| "description": "Returns navigation history for the current page.",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "navigateToHistoryEntry",
|
| @@ -280,8 +273,7 @@
|
| { "name": "entryId", "type": "integer", "description": "Unique id of the entry to navigate to." }
|
| ],
|
| "description": "Navigates current page to the given history entry.",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "getCookies",
|
| @@ -289,8 +281,6 @@
|
| { "name": "cookies", "type": "array", "items": { "$ref": "Network.Cookie" }, "description": "Array of cookie objects." }
|
| ],
|
| "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.",
|
| - "handlers": [],
|
| - "async": true,
|
| "experimental": true,
|
| "redirect": "Network"
|
| },
|
| @@ -301,8 +291,6 @@
|
| { "name": "url", "type": "string", "description": "URL to match cooke domain and path." }
|
| ],
|
| "description": "Deletes browser cookie with given name, domain and path.",
|
| - "handlers": [],
|
| - "async": true,
|
| "experimental": true,
|
| "redirect": "Network"
|
| },
|
| @@ -316,7 +304,6 @@
|
| },
|
| {
|
| "name": "getResourceContent",
|
| - "async": true,
|
| "description": "Returns content of the given resource.",
|
| "parameters": [
|
| { "name": "frameId", "$ref": "FrameId", "description": "Frame id to get resource for." },
|
| @@ -330,7 +317,6 @@
|
| },
|
| {
|
| "name": "searchInResource",
|
| - "async": true,
|
| "description": "Searches for given string in resource content.",
|
| "parameters": [
|
| { "name": "frameId", "$ref": "FrameId", "description": "Frame id for resource to search in." },
|
| @@ -371,14 +357,12 @@
|
| { "name": "positionY", "type": "integer", "optional": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
|
| { "name": "screenOrientation", "$ref": "Emulation.ScreenOrientation", "optional": true, "description": "Screen orientation override." }
|
| ],
|
| - "handlers": [],
|
| "redirect": "Emulation",
|
| "experimental": true
|
| },
|
| {
|
| "name": "clearDeviceMetricsOverride",
|
| "description": "Clears the overriden device metrics.",
|
| - "handlers": [],
|
| "redirect": "Emulation",
|
| "experimental": true
|
| },
|
| @@ -390,14 +374,12 @@
|
| { "name": "longitude", "type": "number", "optional": true, "description": "Mock longitude"},
|
| { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"}
|
| ],
|
| - "redirect": "Emulation",
|
| - "handlers": []
|
| + "redirect": "Emulation"
|
| },
|
| {
|
| "name": "clearGeolocationOverride",
|
| "description": "Clears the overriden Geolocation Position and Error.",
|
| - "redirect": "Emulation",
|
| - "handlers": []
|
| + "redirect": "Emulation"
|
| },
|
| {
|
| "name": "setDeviceOrientationOverride",
|
| @@ -428,13 +410,11 @@
|
| },
|
| {
|
| "name": "captureScreenshot",
|
| - "async": true,
|
| "description": "Capture page screenshot.",
|
| "returns": [
|
| { "name": "data", "type": "string", "description": "Base64-encoded image data (PNG)." }
|
| ],
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "startScreencast",
|
| @@ -459,8 +439,7 @@
|
| "parameters": [
|
| { "name": "sessionId", "type": "integer", "description": "Frame number." }
|
| ],
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "handleJavaScriptDialog",
|
| @@ -468,8 +447,7 @@
|
| "parameters": [
|
| { "name": "accept", "type": "boolean", "description": "Whether to accept or dismiss the dialog." },
|
| { "name": "promptText", "type": "string", "optional": true, "description": "The text to enter into the dialog prompt before accepting. Used only if this is a prompt dialog." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "setColorPickerEnabled",
|
| @@ -477,8 +455,7 @@
|
| { "name": "enabled", "type": "boolean", "description": "Shows / hides color picker" }
|
| ],
|
| "description": "Shows / hides color picker",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "configureOverlay",
|
| @@ -496,13 +473,11 @@
|
| { "name": "url", "type": "string", "description": "Manifest location." },
|
| { "name": "errors", "type": "array", "items": { "$ref": "AppManifestError" } },
|
| { "name": "data", "type": "string", "optional": true, "description": "Manifest content." }
|
| - ],
|
| - "handlers": ["none"]
|
| + ]
|
| },
|
| {
|
| "name": "requestAppBanner",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "setBlockedEventsWarningThreshold",
|
| @@ -517,8 +492,7 @@
|
| { "name": "enabled", "type": "boolean" }
|
| ],
|
| "description": "Toggles navigation throttling which allows programatic control over navigation and redirect response.",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "processNavigation",
|
| @@ -527,8 +501,7 @@
|
| { "name": "navigationId", "type": "integer" }
|
| ],
|
| "description": "Should be sent in response to a navigationRequested or a redirectRequested event, telling the browser how to handle the navigation.",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "getLayoutMetrics",
|
| @@ -635,8 +608,7 @@
|
| { "name": "metadata", "$ref": "ScreencastFrameMetadata", "description": "Screencast frame metadata."},
|
| { "name": "sessionId", "type": "integer", "description": "Frame number."}
|
| ],
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "screencastVisibilityChanged",
|
| @@ -644,8 +616,7 @@
|
| "parameters": [
|
| { "name": "visible", "type": "boolean", "description": "True if the page is visible." }
|
| ],
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "colorPicked",
|
| @@ -653,18 +624,15 @@
|
| "parameters": [
|
| { "name": "color", "$ref": "DOM.RGBA", "description": "RGBA of the picked color." }
|
| ],
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "interstitialShown",
|
| - "description": "Fired when interstitial page was shown",
|
| - "handlers": []
|
| + "description": "Fired when interstitial page was shown"
|
| },
|
| {
|
| "name": "interstitialHidden",
|
| - "description": "Fired when interstitial page was hidden",
|
| - "handlers": []
|
| + "description": "Fired when interstitial page was hidden"
|
| },
|
| {
|
| "name": "navigationRequested",
|
| @@ -674,8 +642,7 @@
|
| { "name": "isRedirect", "type": "boolean", "description": "Whether the navigation has encountered a server redirect or not." },
|
| { "name": "navigationId", "type": "integer" },
|
| { "name": "url", "type": "string", "description": "URL of requested navigation." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ]
|
| },
|
| @@ -764,13 +731,11 @@
|
| { "name": "positionX", "type": "integer", "optional": true, "experimental": true, "description": "Overriding view X position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
|
| { "name": "positionY", "type": "integer", "optional": true, "experimental": true, "description": "Overriding view Y position on screen in pixels (minimum 0, maximum 10000000). Only used for |mobile==true|." },
|
| { "name": "screenOrientation", "$ref": "ScreenOrientation", "optional": true, "description": "Screen orientation override." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "clearDeviceMetricsOverride",
|
| - "description": "Clears the overriden device metrics.",
|
| - "handlers": []
|
| + "description": "Clears the overriden device metrics."
|
| },
|
| {
|
| "name": "forceViewport",
|
| @@ -807,8 +772,7 @@
|
| "parameters": [
|
| { "name": "width", "type": "integer", "description": "Frame width (DIP)." },
|
| { "name": "height", "type": "integer", "description": "Frame height (DIP)." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "setScriptExecutionDisabled",
|
| @@ -826,14 +790,12 @@
|
| { "name": "latitude", "type": "number", "optional": true, "description": "Mock latitude"},
|
| { "name": "longitude", "type": "number", "optional": true, "description": "Mock longitude"},
|
| { "name": "accuracy", "type": "number", "optional": true, "description": "Mock accuracy"}
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "clearGeolocationOverride",
|
| "description": "Clears the overriden Geolocation Position and Error.",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "setTouchEmulationEnabled",
|
| @@ -864,8 +826,7 @@
|
| "returns": [
|
| { "name": "result", "type": "boolean", "description": "True if emulation is supported." }
|
| ],
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "setVirtualTimePolicy",
|
| @@ -929,18 +890,15 @@
|
| "commands": [
|
| {
|
| "name": "enable",
|
| - "description": "Enables tracking security state changes.",
|
| - "handlers": []
|
| + "description": "Enables tracking security state changes."
|
| },
|
| {
|
| "name": "disable",
|
| - "description": "Disables tracking security state changes.",
|
| - "handlers": []
|
| + "description": "Disables tracking security state changes."
|
| },
|
| {
|
| "name": "showCertificateViewer",
|
| - "description": "Displays native dialog with the certificate details.",
|
| - "handlers": []
|
| + "description": "Displays native dialog with the certificate details."
|
| }
|
| ],
|
| "events": [
|
| @@ -952,8 +910,7 @@
|
| { "name": "explanations", "type": "array", "items": { "$ref": "SecurityStateExplanation" }, "description": "List of explanations for the security state. If the overall security state is `insecure` or `warning`, at least one corresponding explanation should be included.", "optional": true },
|
| { "name": "insecureContentStatus", "$ref": "InsecureContentStatus", "description": "Information about insecure content on the page.", "optional": true },
|
| { "name": "schemeIsCryptographic", "type": "boolean", "description": "True if the page was loaded over cryptographic transport such as HTTPS.", "optional": true }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ]
|
| },
|
| @@ -1207,7 +1164,6 @@
|
| },
|
| {
|
| "name": "getResponseBody",
|
| - "async": true,
|
| "description": "Returns content served for the given request.",
|
| "parameters": [
|
| { "name": "requestId", "$ref": "RequestId", "description": "Identifier of the network request to get content for." }
|
| @@ -1258,8 +1214,7 @@
|
| },
|
| {
|
| "name": "clearBrowserCache",
|
| - "description": "Clears browser cache.",
|
| - "handlers": []
|
| + "description": "Clears browser cache."
|
| },
|
| {
|
| "name": "canClearBrowserCookies",
|
| @@ -1270,8 +1225,7 @@
|
| },
|
| {
|
| "name": "clearBrowserCookies",
|
| - "description": "Clears browser cookies.",
|
| - "handlers": []
|
| + "description": "Clears browser cookies."
|
| },
|
| {
|
| "name": "getCookies",
|
| @@ -1279,8 +1233,6 @@
|
| { "name": "cookies", "type": "array", "items": { "$ref": "Cookie" }, "description": "Array of cookie objects." }
|
| ],
|
| "description": "Returns all browser cookies. Depending on the backend support, will return detailed cookie information in the <code>cookies</code> field.",
|
| - "handlers": [],
|
| - "async": true,
|
| "experimental": true
|
| },
|
| {
|
| @@ -1290,8 +1242,6 @@
|
| { "name": "url", "type": "string", "description": "URL to match cooke domain and path." }
|
| ],
|
| "description": "Deletes browser cookie with given name, domain and path.",
|
| - "handlers": [],
|
| - "async": true,
|
| "experimental": true
|
| },
|
| {
|
| @@ -1311,8 +1261,6 @@
|
| { "name": "success", "type": "boolean", "description": "True if successfully set cookie." }
|
| ],
|
| "description": "Sets a cookie with the given cookie data; may overwrite equivalent cookies if they exist.",
|
| - "handlers": [],
|
| - "async": true,
|
| "experimental": true
|
| },
|
| {
|
| @@ -1321,8 +1269,7 @@
|
| "returns": [
|
| { "name": "result", "type": "boolean", "description": "True if emulation of network conditions is supported." }
|
| ],
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "emulateNetworkConditions",
|
| @@ -1584,7 +1531,6 @@
|
| },
|
| {
|
| "name": "executeSQL",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "databaseId", "$ref": "DatabaseId" },
|
| { "name": "query", "type": "string" }
|
| @@ -1697,7 +1643,6 @@
|
| },
|
| {
|
| "name": "requestDatabaseNames",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "securityOrigin", "type": "string", "description": "Security origin." }
|
| ],
|
| @@ -1708,7 +1653,6 @@
|
| },
|
| {
|
| "name": "requestDatabase",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "securityOrigin", "type": "string", "description": "Security origin." },
|
| { "name": "databaseName", "type": "string", "description": "Database name." }
|
| @@ -1720,7 +1664,6 @@
|
| },
|
| {
|
| "name": "requestData",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "securityOrigin", "type": "string", "description": "Security origin." },
|
| { "name": "databaseName", "type": "string", "description": "Database name." },
|
| @@ -1738,7 +1681,6 @@
|
| },
|
| {
|
| "name": "clearObjectStore",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "securityOrigin", "type": "string", "description": "Security origin." },
|
| { "name": "databaseName", "type": "string", "description": "Database name." },
|
| @@ -1782,7 +1724,6 @@
|
| "commands": [
|
| {
|
| "name": "requestCacheNames",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "securityOrigin", "type": "string", "description": "Security origin." }
|
| ],
|
| @@ -1793,7 +1734,6 @@
|
| },
|
| {
|
| "name": "requestEntries",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "cacheId", "$ref": "CacheId", "description": "ID of cache to get entries from." },
|
| { "name": "skipCount", "type": "integer", "description": "Number of records to skip." },
|
| @@ -1807,7 +1747,6 @@
|
| },
|
| {
|
| "name": "deleteCache",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "cacheId", "$ref": "CacheId", "description": "Id of cache for deletion." }
|
| ],
|
| @@ -1815,7 +1754,6 @@
|
| },
|
| {
|
| "name": "deleteEntry",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "cacheId", "$ref": "CacheId", "description": "Id of cache where the entry will be deleted." },
|
| { "name": "request", "type": "string", "description": "URL spec of the request." }
|
| @@ -2968,7 +2906,6 @@
|
| "commands": [
|
| {
|
| "name": "enable",
|
| - "async": true,
|
| "description": "Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received."
|
| },
|
| {
|
| @@ -3237,7 +3174,6 @@
|
| {
|
| "name": "read",
|
| "description": "Read a chunk of the stream",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "handle", "$ref": "StreamHandle", "description": "Handle of the stream to read." },
|
| { "name": "offset", "type": "integer", "optional": true, "description": "Seek to the specified offset before reading (if not specificed, proceed with offset following the last read)." },
|
| @@ -3246,16 +3182,14 @@
|
| "returns": [
|
| { "name": "data", "type": "string", "description": "Data that were read." },
|
| { "name": "eof", "type": "boolean", "description": "Set if the end-of-file condition occured while reading." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "close",
|
| "description": "Close the stream, discard any temporary backing storage.",
|
| "parameters": [
|
| { "name": "handle", "$ref": "StreamHandle", "description": "Handle of the stream to close." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ]
|
| },
|
| @@ -3402,8 +3336,7 @@
|
| "description": "Controls whether to discover available targets and notify via <code>targetCreated/targetDestroyed</code> events.",
|
| "parameters": [
|
| { "name": "discover", "type": "boolean", "description": "Whether to discover available targets." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "setAutoAttach",
|
| @@ -3417,16 +3350,14 @@
|
| "name": "setAttachToFrames",
|
| "parameters": [
|
| { "name": "value", "type": "boolean", "description": "Whether to attach to frames." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "setRemoteLocations",
|
| "description": "Enables target discovery for the specified locations, when <code>setDiscoverTargets</code> was set to <code>true</code>.",
|
| "parameters": [
|
| { "name": "locations", "type": "array", "items": { "$ref": "RemoteLocation" }, "description": "List of remote locations." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "sendMessageToTarget",
|
| @@ -3444,16 +3375,14 @@
|
| ],
|
| "returns": [
|
| { "name": "targetInfo","$ref": "TargetInfo" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "activateTarget",
|
| "description": "Activates (focuses) the target.",
|
| "parameters": [
|
| { "name": "targetId", "$ref": "TargetID" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "closeTarget",
|
| @@ -3463,8 +3392,7 @@
|
| ],
|
| "returns": [
|
| { "name": "success", "type": "boolean" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "attachToTarget",
|
| @@ -3474,24 +3402,21 @@
|
| ],
|
| "returns": [
|
| { "name": "success", "type": "boolean", "description": "Whether attach succeeded." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "detachFromTarget",
|
| "description": "Detaches from the target with given id.",
|
| "parameters": [
|
| { "name": "targetId", "$ref": "TargetID" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "createBrowserContext",
|
| "description": "Creates a new empty BrowserContext. Similar to an incognito profile but you can have more than one.",
|
| "returns": [
|
| { "name": "browserContextId", "$ref": "BrowserContextID", "description": "The id of the context created." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "disposeBrowserContext",
|
| @@ -3501,8 +3426,7 @@
|
| ],
|
| "returns": [
|
| { "name": "success", "type": "boolean" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "createTarget",
|
| @@ -3515,16 +3439,14 @@
|
| ],
|
| "returns": [
|
| { "name": "targetId", "$ref": "TargetID", "description": "The id of the page opened." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "getTargets",
|
| "description": "Retrieves a list of available targets.",
|
| "returns": [
|
| { "name": "targetInfos", "type": "array", "items": { "$ref": "TargetInfo" }, "description": "The list of targets." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ],
|
| "events": [
|
| @@ -3533,16 +3455,14 @@
|
| "description": "Issued when a possible inspection target is created.",
|
| "parameters": [
|
| { "name": "targetInfo", "$ref": "TargetInfo" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "targetDestroyed",
|
| "description": "Issued when a target is destroyed.",
|
| "parameters": [
|
| { "name": "targetId", "$ref": "TargetID" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "attachedToTarget",
|
| @@ -3625,61 +3545,52 @@
|
| ],
|
| "commands": [
|
| {
|
| - "name": "enable",
|
| - "handlers": []
|
| + "name": "enable"
|
| },
|
| {
|
| - "name": "disable",
|
| - "handlers": []
|
| + "name": "disable"
|
| },
|
| {
|
| "name": "unregister",
|
| "parameters": [
|
| { "name": "scopeURL", "type": "string" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "updateRegistration",
|
| "parameters": [
|
| { "name": "scopeURL", "type": "string" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "startWorker",
|
| "parameters": [
|
| { "name": "scopeURL", "type": "string" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "skipWaiting",
|
| "parameters": [
|
| { "name": "scopeURL", "type": "string" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "stopWorker",
|
| "parameters": [
|
| { "name": "versionId", "type": "string" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "inspectWorker",
|
| "parameters": [
|
| { "name": "versionId", "type": "string" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "setForceUpdateOnPageLoad",
|
| "parameters": [
|
| { "name": "forceUpdateOnPageLoad", "type": "boolean" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "deliverPushMessage",
|
| @@ -3687,8 +3598,7 @@
|
| { "name": "origin", "type": "string" },
|
| { "name": "registrationId", "type": "string" },
|
| { "name": "data", "type": "string" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "dispatchSyncEvent",
|
| @@ -3697,8 +3607,7 @@
|
| { "name": "registrationId", "type": "string" },
|
| { "name": "tag", "type": "string" },
|
| { "name": "lastChance", "type": "boolean" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ],
|
| "events": [
|
| @@ -3706,22 +3615,19 @@
|
| "name": "workerRegistrationUpdated",
|
| "parameters": [
|
| { "name": "registrations", "type": "array", "items": { "$ref": "ServiceWorkerRegistration" } }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "workerVersionUpdated",
|
| "parameters": [
|
| { "name": "versions", "type": "array", "items": { "$ref": "ServiceWorkerVersion" } }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "workerErrorReported",
|
| "parameters": [
|
| { "name": "errorMessage", "$ref": "ServiceWorkerErrorMessage" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ]
|
| },
|
| @@ -3768,8 +3674,7 @@
|
| { "name": "isKeypad", "type": "boolean", "optional": true, "description": "Whether the event was generated from the keypad (default: false)." },
|
| { "name": "isSystemKey", "type": "boolean", "optional": true, "description": "Whether the event was a system key event (default: false)." }
|
| ],
|
| - "description": "Dispatches a key event to the page.",
|
| - "handlers": []
|
| + "description": "Dispatches a key event to the page."
|
| },
|
| {
|
| "name": "dispatchMouseEvent",
|
| @@ -3782,8 +3687,7 @@
|
| { "name": "button", "type": "string", "enum": ["none", "left", "middle", "right"], "optional": true, "description": "Mouse button (default: \"none\")." },
|
| { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." }
|
| ],
|
| - "description": "Dispatches a mouse event to the page.",
|
| - "handlers": []
|
| + "description": "Dispatches a mouse event to the page."
|
| },
|
| {
|
| "name": "dispatchTouchEvent",
|
| @@ -3810,12 +3714,10 @@
|
| { "name": "modifiers", "type": "integer", "optional": true, "description": "Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0)." },
|
| { "name": "clickCount", "type": "integer", "optional": true, "description": "Number of times the mouse button was clicked (default: 0)." }
|
| ],
|
| - "description": "Emulates touch event from the mouse event parameters.",
|
| - "handlers": []
|
| + "description": "Emulates touch event from the mouse event parameters."
|
| },
|
| {
|
| "name": "synthesizePinchGesture",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." },
|
| { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." },
|
| @@ -3824,12 +3726,10 @@
|
| { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." }
|
| ],
|
| "description": "Synthesizes a pinch gesture over a time period by issuing appropriate touch events.",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "synthesizeScrollGesture",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." },
|
| { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." },
|
| @@ -3845,12 +3745,10 @@
|
| { "name": "interactionMarkerName", "type": "string", "optional": true, "description": "The name of the interaction markers to generate, if not empty (default: \"\")." }
|
| ],
|
| "description": "Synthesizes a scroll gesture over a time period by issuing appropriate touch events.",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| },
|
| {
|
| "name": "synthesizeTapGesture",
|
| - "async": true,
|
| "parameters": [
|
| { "name": "x", "type": "integer", "description": "X coordinate of the start of the gesture in CSS pixels." },
|
| { "name": "y", "type": "integer", "description": "Y coordinate of the start of the gesture in CSS pixels." },
|
| @@ -3859,8 +3757,7 @@
|
| { "name": "gestureSourceType", "$ref": "GestureSourceType", "optional": true, "description": "Which type of input events to be generated (default: 'default', which queries the platform for the preferred input type)." }
|
| ],
|
| "description": "Synthesizes a tap gesture over a time period by issuing appropriate touch events.",
|
| - "experimental": true,
|
| - "handlers": []
|
| + "experimental": true
|
| }
|
| ],
|
| "events": []
|
| @@ -4075,7 +3972,6 @@
|
| "commands": [
|
| {
|
| "name": "start",
|
| - "async": true,
|
| "description": "Start trace events collection.",
|
| "parameters": [
|
| { "name": "categories", "type": "string", "optional": true, "deprecated": true, "description": "Category/tag filter" },
|
| @@ -4087,35 +3983,29 @@
|
| },
|
| {
|
| "name": "end",
|
| - "async": true,
|
| "description": "Stop trace events collection."
|
| },
|
| {
|
| "name": "getCategories",
|
| - "async": true,
|
| "description": "Gets supported tracing categories.",
|
| "returns": [
|
| { "name": "categories", "type": "array", "items": { "type": "string" }, "description": "A list of supported tracing categories." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "requestMemoryDump",
|
| - "async": true,
|
| "description": "Request a global memory dump.",
|
| "returns": [
|
| { "name": "dumpGuid", "type": "string", "description": "GUID of the resulting global memory dump." },
|
| { "name": "success", "type": "boolean", "description": "True iff the global memory dump succeeded." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "recordClockSyncMarker",
|
| "description": "Record a clock sync marker in the trace.",
|
| "parameters": [
|
| { "name": "syncId", "type": "string", "description": "The ID of this clock sync marker" }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ],
|
| "events": [
|
| @@ -4124,16 +4014,14 @@
|
| "parameters": [
|
| { "name": "value", "type": "array", "items": { "type": "object" } }
|
| ],
|
| - "description": "Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event.",
|
| - "handlers": []
|
| + "description": "Contains an bucket of collected trace events. When tracing is stopped collected events will be send as a sequence of dataCollected events followed by tracingComplete event."
|
| },
|
| {
|
| "name": "tracingComplete",
|
| "description": "Signals that tracing is stopped and there is no trace buffers pending flush, all data were delivered via dataCollected events.",
|
| "parameters": [
|
| { "name": "stream", "$ref": "IO.StreamHandle", "optional": true, "description": "A handle of the stream that holds resulting trace data." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "bufferUsage",
|
| @@ -4141,8 +4029,7 @@
|
| { "name": "percentFull", "type": "number", "optional": true, "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." },
|
| { "name": "eventCount", "type": "number", "optional": true, "description": "An approximate number of events in the trace log." },
|
| { "name": "value", "type": "number", "optional": true, "description": "A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ]
|
| },
|
| @@ -4467,8 +4354,7 @@
|
| { "name": "origin", "type": "string", "description": "Security origin." },
|
| { "name": "storageTypes", "type": "string", "description": "Comma separated origin names." }
|
| ],
|
| - "description": "Clears storage for origin.",
|
| - "handlers": []
|
| + "description": "Clears storage for origin."
|
| }
|
| ]
|
| },
|
| @@ -4550,14 +4436,12 @@
|
| "commands": [
|
| {
|
| "name": "getInfo",
|
| - "async": true,
|
| "description": "Returns information about the system.",
|
| "returns": [
|
| { "name": "gpu", "$ref": "GPUInfo", "description": "Information about the GPUs on the system." },
|
| { "name": "modelName", "type": "string", "description": "A platform-dependent description of the model of the machine. On Mac OS, this is, for example, 'MacBookPro'. Will be the empty string if not supported." },
|
| { "name": "modelVersion", "type": "string", "description": "A platform-dependent description of the version of the machine. On Mac OS, this is, for example, '10.1'. Will be the empty string if not supported." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ]
|
| },
|
| @@ -4568,21 +4452,17 @@
|
| "commands": [
|
| {
|
| "name": "bind",
|
| - "async": true,
|
| "description": "Request browser port binding.",
|
| "parameters": [
|
| { "name": "port", "type": "integer", "description": "Port number to bind." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| },
|
| {
|
| "name": "unbind",
|
| - "async": true,
|
| "description": "Request browser port unbinding.",
|
| "parameters": [
|
| { "name": "port", "type": "integer", "description": "Port number to unbind." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ],
|
| "events": [
|
| @@ -4592,8 +4472,7 @@
|
| "parameters": [
|
| {"name": "port", "type": "integer", "description": "Port number that was successfully bound." },
|
| {"name": "connectionId", "type": "string", "description": "Connection id to be used." }
|
| - ],
|
| - "handlers": []
|
| + ]
|
| }
|
| ]
|
| }]
|
|
|