summaryrefslogtreecommitdiff
path: root/Source/devtools/protocol.json
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2014-02-21 12:17:33 +0000
committerTorne (Richard Coles) <torne@google.com>2014-02-21 12:17:33 +0000
commit09380295ba73501a205346becac22c6978e4671d (patch)
treebf350df1320896ac8d4646f4e62473422d27376d /Source/devtools/protocol.json
parent5724c7df915eb741361b685fc719dd5643e4cc0b (diff)
downloadWebKit-09380295ba73501a205346becac22c6978e4671d.tar.gz
Merge from Chromium at DEPS revision 251904
This commit was generated by merge_to_master.py. Change-Id: I8ca36eee41eba7e9a56d6728a9d19e5883d7058c
Diffstat (limited to 'Source/devtools/protocol.json')
-rw-r--r--Source/devtools/protocol.json416
1 files changed, 139 insertions, 277 deletions
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index c45a38d45..2ca7bd5fb 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -51,27 +51,6 @@
{
"domain": "Memory",
"hidden": true,
- "types": [
- {
- "id": "MemoryBlock",
- "type": "object",
- "properties": [
- { "name": "size", "type": "number", "optional": true, "description": "Size of the block in bytes if available" },
- { "name": "name", "type": "string", "description": "Unique name used to identify the component that allocated this block" },
- { "name": "children", "type": "array", "optional": true, "items": { "$ref": "MemoryBlock" }}
- ]
- },
- {
- "id": "HeapSnapshotChunk",
- "type": "object",
- "properties": [
- { "name": "strings", "type": "array", "items": { "type": "string" }, "description": "An array of strings that were found since last update." },
- { "name": "nodes", "type": "array", "items": { "type": "integer" }, "description": "An array of nodes that were found since last update." },
- { "name": "edges", "type": "array", "items": { "type": "integer" }, "description": "An array of edges that were found since last update." },
- { "name": "baseToRealNodeId", "type": "array", "items": { "type": "integer" }, "description": "An array of integers for nodeId remapping. Even nodeId has to be mapped to the following odd nodeId." }
- ]
- }
- ],
"commands": [
{
"name": "getDOMCounters",
@@ -81,14 +60,6 @@
{ "name": "jsEventListeners", "type": "integer" }
]
}
- ],
- "events": [
- {
- "name": "addNativeSnapshotChunk",
- "parameters": [
- { "name": "chunk", "$ref": "HeapSnapshotChunk", "description": "A chunk of the serialized the snapshot." }
- ]
- }
]
},
{
@@ -435,14 +406,16 @@
"name": "setGeolocationOverride",
"description": "Overrides the Geolocation Position or Error.",
"parameters": [
- { "name": "latitude", "type": "number", "optional": true, "description": "Mock longitude"},
- { "name": "longitude", "type": "number", "optional": true, "description": "Mock latitude"},
+ { "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"}
- ]
+ ],
+ "redirect": "Geolocation"
},
{
"name": "clearGeolocationOverride",
- "description": "Clears the overriden Geolocation Position and Error."
+ "description": "Clears the overriden Geolocation Position and Error.",
+ "redirect": "Geolocation"
},
{
"name": "setDeviceOrientationOverride",
@@ -452,11 +425,13 @@
{ "name": "beta", "type": "number", "description": "Mock beta"},
{ "name": "gamma", "type": "number", "description": "Mock gamma"}
],
+ "redirect": "DeviceOrientation",
"hidden": true
},
{
"name": "clearDeviceOrientationOverride",
"description": "Clears the overridden Device Orientation.",
+ "redirect": "DeviceOrientation",
"hidden": true
},
{
@@ -1027,7 +1002,10 @@
{ "name": "requestHeadersText", "type": "string", "optional": true, "description": "HTTP request headers text." },
{ "name": "connectionReused", "type": "boolean", "description": "Specifies whether physical connection was actually reused for this request." },
{ "name": "connectionId", "type": "number", "description": "Physical connection id that was actually used for this request." },
+ { "name": "remoteIPAddress", "type": "string", "optional": true, "hidden": true, "description": "Remote IP address." },
+ { "name": "remotePort", "type": "integer", "optional": true, "hidden": true, "description": "Remote port."},
{ "name": "fromDiskCache", "type": "boolean", "optional": true, "description": "Specifies that the request was served from the disk cache." },
+ { "name": "encodedDataLength", "type": "number", "optional": false, "description": "Total number of bytes received for this request so far." },
{ "name": "timing", "$ref": "ResourceTiming", "optional": true, "description": "Timing information for the given request." }
]
},
@@ -1222,7 +1200,8 @@
"description": "Fired when HTTP request has finished loading.",
"parameters": [
{ "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
- { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." }
+ { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
+ { "name": "encodedDataLength", "type": "number", "description": "Total number of bytes received for this request." }
]
},
{
@@ -1443,9 +1422,9 @@
"type": "object",
"description": "Data entry.",
"properties": [
- { "name": "key", "$ref": "Runtime.RemoteObject", "description": "Key." },
- { "name": "primaryKey", "$ref": "Runtime.RemoteObject", "description": "Primary key." },
- { "name": "value", "$ref": "Runtime.RemoteObject", "description": "Value." }
+ { "name": "key", "type": "string", "description": "JSON-stringified key object." },
+ { "name": "primaryKey", "type": "string", "description": "JSON-stringified primary key object." },
+ { "name": "value", "type": "string", "description": "JSON-stringified value object." }
]
},
{
@@ -1856,7 +1835,8 @@
{ "name": "contentDocument", "$ref": "Node", "optional": true, "description": "Content document for frame owner elements." },
{ "name": "shadowRoots", "type": "array", "optional": true, "items": { "$ref": "Node" }, "description": "Shadow root list for given element host.", "hidden": true },
{ "name": "templateContent", "$ref": "Node", "optional": true, "description": "Content document fragment for template elements.", "hidden": true },
- { "name": "pseudoElements", "type": "array", "items": { "$ref": "Node" }, "optional": true, "description": "Pseudo elements associated with this node.", "hidden": true }
+ { "name": "pseudoElements", "type": "array", "items": { "$ref": "Node" }, "optional": true, "description": "Pseudo elements associated with this node.", "hidden": true },
+ { "name": "importedDocument", "$ref": "Node", "optional": true, "description": "Import document for the HTMLImport links." }
],
"description": "DOM interaction is implemented in terms of mirror objects that represent the actual DOM nodes. DOMNode is a base node mirror type."
},
@@ -1870,7 +1850,7 @@
{ "name": "isAttribute", "type": "boolean", "description": "<code>EventListener</code>'s isAttribute." },
{ "name": "nodeId", "$ref": "NodeId", "description": "Target <code>DOMNode</code> id." },
{ "name": "handlerBody", "type": "string", "description": "Event handler function body." },
- { "name": "location", "$ref": "Debugger.Location", "optional": true, "description": "Handler code location." },
+ { "name": "location", "$ref": "Debugger.Location", "description": "Handler code location." },
{ "name": "sourceName", "type": "string", "optional": true, "description": "Source script URL." },
{ "name": "handler", "$ref": "Runtime.RemoteObject", "optional": true, "description": "Event handler function value." }
],
@@ -2399,14 +2379,6 @@
],
"description": "Called when a pseudo element is removed from an element.",
"hidden": true
- },
- {
- "name": "pseudoStateChanged",
- "parameters": [
- { "name": "nodeId", "$ref": "NodeId", "description": "Id of the element whose pseudo state has changed." }
- ],
- "description": "Called when an element's <code>:active</code>, <code>:focus</code>, or <code>:hover</code> pseudo state is changed.",
- "hidden": true
}
]
},
@@ -2459,7 +2431,7 @@
{ "name": "inlineStyle", "$ref": "CSSStyle", "optional": true, "description": "The ancestor node's inline style, if any, in the style inheritance chain." },
{ "name": "matchedCSSRules", "type": "array", "items": { "$ref": "RuleMatch" }, "description": "Matches of CSS rules matching the ancestor node in the style inheritance chain." }
],
- "description": "CSS rule collection for a single pseudo style."
+ "description": "Inherited CSS rule collection from ancestor node."
},
{
"id": "RuleMatch",
@@ -2489,15 +2461,6 @@
"description": "Selector list data."
},
{
- "id": "CSSStyleAttribute",
- "type": "object",
- "properties": [
- { "name": "name", "type": "string", "description": "DOM attribute name (e.g. \"width\")."},
- { "name": "style", "$ref": "CSSStyle", "description": "CSS style generated by the respective DOM attribute."}
- ],
- "description": "CSS style information for a DOM style attribute."
- },
- {
"id": "CSSStyleSheetHeader",
"type": "object",
"properties": [
@@ -2519,7 +2482,6 @@
"id": "CSSStyleSheetBody",
"type": "object",
"properties": [
- { "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."},
{ "name": "rules", "type": "array", "items": { "$ref": "CSSRule" }, "description": "Stylesheet resource URL."},
{ "name": "text", "type": "string", "optional": true, "description": "Stylesheet resource contents (if available)."}
],
@@ -2558,14 +2520,6 @@
]
},
{
- "id": "CSSPropertyInfo",
- "type": "object",
- "properties": [
- { "name": "name", "type": "string", "description": "Property name." },
- { "name": "longhands", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Longhand property names." }
- ]
- },
- {
"id": "CSSComputedStyleProperty",
"type": "object",
"properties": [
@@ -2581,9 +2535,7 @@
{ "name": "cssProperties", "type": "array", "items": { "$ref": "CSSProperty" }, "description": "CSS properties in the style." },
{ "name": "shorthandEntries", "type": "array", "items": { "$ref": "ShorthandEntry" }, "description": "Computed values for all shorthands found in the style." },
{ "name": "cssText", "type": "string", "optional": true, "description": "Style declaration text (if available)." },
- { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." },
- { "name": "width", "type": "string", "optional": true, "description": "The effective \"width\" property value from this style." },
- { "name": "height", "type": "string", "optional": true, "description": "The effective \"height\" property value from this style." }
+ { "name": "range", "$ref": "SourceRange", "optional": true, "description": "Style declaration range in the enclosing stylesheet (if available)." }
],
"description": "CSS style representation."
},
@@ -2615,57 +2567,14 @@
"description": "CSS media query descriptor."
},
{
- "id": "SelectorProfileEntry",
- "type": "object",
- "properties": [
- { "name": "selector", "type": "string", "description": "CSS selector of the corresponding rule." },
- { "name": "url", "type": "string", "description": "URL of the resource containing the corresponding rule." },
- { "name": "lineNumber", "type": "integer", "description": "Selector line number in the resource for the corresponding rule." },
- { "name": "time", "type": "number", "description": "Total time this rule handling contributed to the browser running time during profiling (in milliseconds)." },
- { "name": "hitCount", "type": "integer", "description": "Number of times this rule was considered a candidate for matching against DOM elements." },
- { "name": "matchCount", "type": "integer", "description": "Number of times this rule actually matched a DOM element." }
- ],
- "description": "CSS selector profile entry."
- },
- {
- "id": "SelectorProfile",
- "type": "object",
- "properties": [
- { "name": "totalTime", "type": "number", "description": "Total processing time for all selectors in the profile (in milliseconds)." },
- { "name": "data", "type": "array", "items": { "$ref": "SelectorProfileEntry" }, "description": "CSS selector profile entries." }
- ]
- },
- {
- "id": "Region",
- "type": "object",
- "properties": [
- { "name": "regionOverset", "type": "string", "enum": ["overset", "fit", "empty"], "description": "The \"overset\" attribute of a Named Flow." },
- { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The corresponding DOM node id." }
- ],
- "description": "This object represents a region that flows from a Named Flow.",
- "hidden": true
- },
- {
- "id": "NamedFlow",
- "type": "object",
- "properties": [
- { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." },
- { "name": "name", "type": "string", "description": "Named Flow identifier." },
- { "name": "overset", "type": "boolean", "description": "The \"overset\" attribute of a Named Flow." },
- { "name": "content", "type": "array", "items": { "$ref": "DOM.NodeId" }, "description": "An array of nodes that flow into the Named Flow." },
- { "name": "regions", "type": "array", "items": { "$ref": "Region" }, "description": "An array of regions associated with the Named Flow." }
- ],
- "description": "This object represents a Named Flow.",
- "hidden": true
- },
- {
"id": "PlatformFontUsage",
"type": "object",
"properties": [
{ "name": "familyName", "type": "string", "description": "Font's family name reported by platform."},
{ "name": "glyphCount", "type": "number", "description": "Amount of glyphs that were rendered with this font."}
],
- "description": "Information about amount of glyphs that were rendered with given font."
+ "description": "Information about amount of glyphs that were rendered with given font.",
+ "hidden": true
}
],
"commands": [
@@ -2726,13 +2635,6 @@
"hidden": true
},
{
- "name": "getAllStyleSheets",
- "returns": [
- { "name": "headers", "type": "array", "items": { "$ref": "CSSStyleSheetHeader" }, "description": "Descriptor entries for all available stylesheets." }
- ],
- "description": "Returns metainfo entries for all known stylesheets."
- },
- {
"name": "getStyleSheet",
"parameters": [
{ "name": "styleSheetId", "$ref": "StyleSheetId" }
@@ -2761,17 +2663,6 @@
"description": "Sets the new stylesheet text, thereby invalidating all existing <code>CSSStyleId</code>'s and <code>CSSRuleId</code>'s contained by this stylesheet."
},
{
- "name": "setStyleText",
- "parameters": [
- { "name": "styleId", "$ref": "CSSStyleId" },
- { "name": "text", "type": "string" }
- ],
- "returns": [
- { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the text modification." }
- ],
- "description": "Updates the CSSStyleDeclaration text."
- },
- {
"name": "setPropertyText",
"parameters": [
{ "name": "styleId", "$ref": "CSSStyleId" },
@@ -2785,18 +2676,6 @@
"description": "Sets the new <code>text</code> for a property in the respective style, at offset <code>propertyIndex</code>. If <code>overwrite</code> is <code>true</code>, a property at the given offset is overwritten, otherwise inserted. <code>text</code> entirely replaces the property <code>name: value</code>."
},
{
- "name": "toggleProperty",
- "parameters": [
- { "name": "styleId", "$ref": "CSSStyleId" },
- { "name": "propertyIndex", "type": "integer" },
- { "name": "disable", "type": "boolean" }
- ],
- "returns": [
- { "name": "style", "$ref": "CSSStyle", "description": "The resulting style after the property toggling." }
- ],
- "description": "Toggles the property in the respective style, at offset <code>propertyIndex</code>. The <code>disable</code> parameter denotes whether the property should be disabled (i.e. removed from the style declaration). If <code>disable == false</code>, the property gets put back into its original place in the style declaration."
- },
- {
"name": "setRuleSelector",
"parameters": [
{ "name": "ruleId", "$ref": "CSSRuleId" },
@@ -2819,30 +2698,12 @@
"description": "Creates a new empty rule with the given <code>selector</code> in a special \"inspector\" stylesheet in the owner document of the context node."
},
{
- "name": "getSupportedCSSProperties",
- "returns": [
- { "name": "cssProperties", "type": "array", "items": { "$ref": "CSSPropertyInfo" }, "description": "Supported property metainfo." }
- ],
- "description": "Returns all supported CSS property names."
- },
- {
"name": "forcePseudoState",
"parameters": [
{ "name": "nodeId", "$ref": "DOM.NodeId", "description": "The element id for which to force the pseudo state." },
{ "name": "forcedPseudoClasses", "type": "array", "items": { "type": "string", "enum": ["active", "focus", "hover", "visited"] }, "description": "Element pseudo classes to force when computing the element's style." }
],
"description": "Ensures that the given node will have specified pseudo-classes whenever its style is computed by the browser."
- },
- {
- "name": "getNamedFlowCollection",
- "parameters": [
- { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id for which to get the Named Flow Collection." }
- ],
- "returns": [
- { "name": "namedFlows", "type": "array", "items": { "$ref": "NamedFlow" }, "description": "An array containing the Named Flows in the document." }
- ],
- "description": "Returns the Named Flows from the document.",
- "hidden": true
}
],
"events": [
@@ -2870,39 +2731,6 @@
{ "name": "styleSheetId", "$ref": "StyleSheetId", "description": "Identifier of the removed stylesheet." }
],
"description": "Fired whenever an active document stylesheet is removed."
- },
- {
- "name": "namedFlowCreated",
- "parameters": [
- { "name": "namedFlow", "$ref": "NamedFlow", "description": "The new Named Flow." }
- ],
- "description": "Fires when a Named Flow is created.",
- "hidden": true
- },
- {
- "name": "namedFlowRemoved",
- "parameters": [
- { "name": "documentNodeId", "$ref": "DOM.NodeId", "description": "The document node id." },
- { "name": "flowName", "type": "string", "description": "Identifier of the removed Named Flow." }
- ],
- "description": "Fires when a Named Flow is removed: has no associated content nodes and regions.",
- "hidden": true
- },
- {
- "name": "regionLayoutUpdated",
- "parameters": [
- { "name": "namedFlow", "$ref": "NamedFlow", "description": "The Named Flow whose layout may have changed." }
- ],
- "description": "Fires when a Named Flow's layout may have changed.",
- "hidden": true
- },
- {
- "name": "regionOversetChanged",
- "parameters": [
- { "name": "namedFlow", "$ref": "NamedFlow", "description": "The Named Flow containing the regions whose regionOverset values changed." }
- ],
- "description": "Fires if any of the regionOverset values changed in a Named Flow's region chain.",
- "hidden": true
}
]
},
@@ -2911,14 +2739,16 @@
"description": "Timeline provides its clients with instrumentation records that are generated during the page runtime. Timeline instrumentation can be started and stopped using corresponding commands. While timeline is started, it is generating timeline event records.",
"types": [
{
- "id": "DOMCounters",
+ "id": "Counters",
"type": "object",
"properties": [
- { "name": "documents", "type": "integer" },
- { "name": "nodes", "type": "integer" },
- { "name": "jsEventListeners", "type": "integer" }
+ { "name": "documents", "type": "integer", "optional": true },
+ { "name": "nodes", "type": "integer", "optional": true },
+ { "name": "jsEventListeners", "type": "integer", "optional": true },
+ { "name": "jsHeapSizeUsed", "type": "number", "optional": true, "description": "Currently used size of JS heap." },
+ { "name": "gpuMemoryUsedKB", "type": "number", "optional": true, "description": "Current GPU memory usage in kilobytes." }
],
- "description": "Current values of DOM counters.",
+ "description": "Current values of counters.",
"hidden": true
},
{
@@ -2926,11 +2756,15 @@
"type": "object",
"properties": [
{ "name": "type", "type": "string", "description": "Event type." },
- { "name": "thread", "type": "string", "optional": true, "description": "If present, identifies the thread that produced the event.", "hidden": true },
{ "name": "data", "type": "object", "description": "Event data." },
+ { "name": "startTime", "type": "number", "description": "Start time." },
+ { "name": "endTime", "type": "number", "optional": true, "description": "End time." },
{ "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." },
- { "name": "counters", "$ref": "DOMCounters", "optional": true, "hidden": true, "description": "Current values of DOM counters." },
- { "name": "usedHeapSize", "type": "integer", "optional": true, "hidden": true, "description": "Current size of JS heap." }
+ { "name": "thread", "type": "string", "optional": true, "hidden": true, "description": "If present, identifies the thread that produced the event." },
+ { "name": "counters", "$ref": "Counters", "optional": true, "hidden": true, "description": "Current values of counters." },
+ { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "hidden": true, "description": "Stack trace." },
+ { "name": "frameId", "type": "string", "optional": true, "hidden": true, "description": "Unique identifier of the frame within the page that the event relates to." },
+ { "name": "usedHeapSizeDelta", "type": "integer", "optional": true, "hidden": true, "description": "JS heap size change." }
],
"description": "Timeline record contains information about the recorded activity."
}
@@ -2949,7 +2783,7 @@
"parameters": [
{ "name": "maxCallStackDepth", "optional": true, "type": "integer", "description": "Samples JavaScript stack traces up to <code>maxCallStackDepth</code>, defaults to 5." },
{ "name": "bufferEvents", "optional": true, "type": "boolean", "hidden": true, "description": "Whether instrumentation events should be buffered and returned upon <code>stop</code> call." },
- { "name": "includeDomCounters", "optional": true, "type": "boolean", "hidden": true, "description": "Whether DOM counters data should be included into timeline events." },
+ { "name": "includeCounters", "optional": true, "type": "boolean", "hidden": true, "description": "Whether counters data should be included into timeline events." },
{ "name": "includeGPUEvents", "optional": true, "type": "boolean", "hidden": true, "description": "Whether events from GPU process should be collected." }
],
"description": "Starts capturing instrumentation events."
@@ -3486,15 +3320,6 @@
"hidden": true,
"types": [
{
- "id": "ProfileHeader",
- "type": "object",
- "description": "Profile header.",
- "properties": [
- { "name": "title", "type": "string", "description": "Profile title." },
- { "name": "uid", "type": "integer", "description": "Unique identifier of the profile." }
- ]
- },
- {
"id": "CPUProfileNode",
"type": "object",
"description": "CPU Profile node. Holds callsite information, execution statistics and child nodes.",
@@ -3521,11 +3346,6 @@
{ "name": "endTime", "type": "number", "description": "Profiling end time in seconds." },
{ "name": "samples", "optional": true, "type": "array", "items": { "type": "integer" }, "description": "Ids of samples top nodes." }
]
- },
- {
- "id": "HeapSnapshotObjectId",
- "type": "string",
- "description": "Heap snashot object id."
}
],
"commands": [
@@ -3548,37 +3368,29 @@
{
"name": "stop",
"returns": [
- { "name": "header", "$ref": "ProfileHeader", "description": "The header of the recorded profile."}
+ { "name": "profile", "$ref": "CPUProfile", "description": "Recorded profile." }
]
- },
- {
- "name": "getCPUProfile",
- "parameters": [
- { "name": "uid", "type": "integer" }
- ],
- "returns": [
- { "name": "profile", "$ref": "CPUProfile" }
- ]
- },
- {
- "name": "removeProfile",
- "parameters": [
- { "name": "uid", "type": "integer" }
- ]
- },
- {
- "name": "clearProfiles"
}
],
"events": [
{
- "name": "addProfileHeader",
+ "name": "consoleProfileStarted",
"parameters": [
- { "name": "header", "$ref": "ProfileHeader" }
- ]
+ { "name": "id", "type": "string" },
+ { "name": "location", "$ref": "Debugger.Location", "description": "Location of console.profile()." },
+ { "name": "title", "type": "string", "optional": true, "description": "Profile title passed as argument to console.profile()." }
+
+ ],
+ "description": "Sent when new profile recodring is started using console.profile() call."
},
{
- "name": "resetProfiles"
+ "name": "consoleProfileFinished",
+ "parameters": [
+ { "name": "id", "type": "string" },
+ { "name": "location", "$ref": "Debugger.Location", "description": "Location of console.profileEnd()." },
+ { "name": "profile", "$ref": "CPUProfile" },
+ { "name": "title", "type": "string", "optional": true, "description": "Profile title passed as argunet to console.profile()." }
+ ]
}
]
},
@@ -3587,19 +3399,9 @@
"hidden": true,
"types": [
{
- "id": "ProfileHeader",
- "type": "object",
- "description": "Profile header.",
- "properties": [
- { "name": "title", "type": "string", "description": "Profile title." },
- { "name": "uid", "type": "integer", "description": "Unique identifier of the profile." },
- { "name": "maxJSObjectId", "type": "integer", "optional": true, "description": "Last seen JS object Id." }
- ]
- },
- {
"id": "HeapSnapshotObjectId",
"type": "string",
- "description": "Heap snashot object id."
+ "description": "Heap snapshot object id."
}
],
"commands": [
@@ -3610,7 +3412,10 @@
"name": "disable"
},
{
- "name": "startTrackingHeapObjects"
+ "name": "startTrackingHeapObjects",
+ "parameters": [
+ { "name": "trackAllocations", "type": "boolean", "optional": true }
+ ]
},
{
"name": "stopTrackingHeapObjects",
@@ -3620,21 +3425,6 @@
},
{
- "name": "getHeapSnapshot",
- "parameters": [
- { "name": "uid", "type": "integer" }
- ]
- },
- {
- "name": "removeProfile",
- "parameters": [
- { "name": "uid", "type": "integer" }
- ]
- },
- {
- "name": "clearProfiles"
- },
- {
"name": "takeHeapSnapshot",
"parameters": [
{ "name": "reportProgress", "type": "boolean", "optional": true, "description": "If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken." }
@@ -3665,15 +3455,8 @@
],
"events": [
{
- "name": "addProfileHeader",
- "parameters": [
- { "name": "header", "$ref": "ProfileHeader" }
- ]
- },
- {
"name": "addHeapSnapshotChunk",
"parameters": [
- { "name": "uid", "type": "integer" },
{ "name": "chunk", "type": "string" }
]
},
@@ -3684,7 +3467,8 @@
"name": "reportHeapSnapshotProgress",
"parameters": [
{ "name": "done", "type": "integer" },
- { "name": "total", "type": "integer" }
+ { "name": "total", "type": "integer" },
+ { "name": "finished", "type": "boolean", "optional": true }
]
},
{
@@ -4139,7 +3923,7 @@
{ "name": "minDuration", "type": "number", "optional": true, "description": "The minimum duration (in seconds) to replay the snapshot." }
],
"returns": [
- { "name": "timings", "type": "array", "items": { "$ref": "PaintProfile" }, "description": "The array of paint profilers, one per run." }
+ { "name": "timings", "type": "array", "items": { "$ref": "PaintProfile" }, "description": "The array of paint profiles, one per run." }
]
},
{
@@ -4172,12 +3956,51 @@
]
},
{
+ "domain": "Geolocation",
+ "hidden": true,
+ "commands": [
+ {
+ "name": "setGeolocationOverride",
+ "description": "Overrides the Geolocation Position or Error.",
+ "parameters": [
+ { "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"}
+ ]
+ },
+ {
+ "name": "clearGeolocationOverride",
+ "description": "Clears the overriden Geolocation Position and Error."
+ }
+ ]
+ },
+ {
+ "domain": "DeviceOrientation",
+ "hidden": true,
+ "commands": [
+ {
+ "name": "setDeviceOrientationOverride",
+ "description": "Overrides the Device Orientation.",
+ "parameters": [
+ { "name": "alpha", "type": "number", "description": "Mock alpha"},
+ { "name": "beta", "type": "number", "description": "Mock beta"},
+ { "name": "gamma", "type": "number", "description": "Mock gamma"}
+ ]
+ },
+ {
+ "name": "clearDeviceOrientationOverride",
+ "description": "Clears the overridden Device Orientation."
+ }
+ ]
+ },
+ {
"domain": "Tracing",
"hidden": true,
"commands": [
{
"name": "start",
"description": "Start trace events collection.",
+ "async": true,
"parameters": [
{ "name": "categories", "type": "string", "description": "Category/tag filter" },
{ "name": "options", "type": "string", "description": "Tracing options" }
@@ -4203,5 +4026,44 @@
"handlers": ["browser", "frontend"]
}
]
+ },
+ {
+ "domain": "Power",
+ "hidden": true,
+ "types": [
+ {
+ "id": "PowerEvent",
+ "type": "object",
+ "properties": [
+ { "name": "type", "type": "string", "description": "Power Event Type." },
+ { "name": "timestamp", "type": "number", "description": "Power Event Time, in milliseconds." },
+ { "name": "value", "type": "number", "description": "Power Event Value." }
+ ],
+ "description": "PowerEvent item"
+ }
+ ],
+ "commands": [
+ {
+ "name": "start",
+ "description": "Start power events collection.",
+ "parameters": [],
+ "handlers": ["browser", "frontend"]
+ },
+ {
+ "name": "end",
+ "description": "Stop power events collection.",
+ "parameters": [],
+ "handlers": ["browser", "frontend"]
+ }
+ ],
+ "events": [
+ {
+ "name": "dataAvailable",
+ "parameters": [
+ {"name": "value", "type": "array", "items": { "$ref": "PowerEvent" }, "description": "List of power events." }
+ ],
+ "handlers": ["browser", "frontend"]
+ }
+ ]
}]
}