summaryrefslogtreecommitdiff
path: root/Source/devtools/protocol.json
diff options
context:
space:
mode:
authorTorne (Richard Coles) <torne@google.com>2013-09-12 12:10:38 +0100
committerTorne (Richard Coles) <torne@google.com>2013-09-12 12:10:38 +0100
commit8abfc5808a4e34d6e03867af8bc440dee641886f (patch)
tree739a4084f3a85ed8ee9ac9c94a417b87f2dbc0fe /Source/devtools/protocol.json
parentd0a9dd2d86235b43c51095cb3cb95a7733832808 (diff)
downloadWebKit-8abfc5808a4e34d6e03867af8bc440dee641886f.tar.gz
Merge from Chromium at DEPS revision 222756
This commit was generated by merge_to_master.py. Change-Id: I085d892f6f1583a45f10eb394f195bbea5a334ef
Diffstat (limited to 'Source/devtools/protocol.json')
-rw-r--r--Source/devtools/protocol.json210
1 files changed, 124 insertions, 86 deletions
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index b451f040e..3764e9873 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -1,5 +1,5 @@
{
- "version": { "major": "1", "minor": "0" },
+ "version": { "major": "1", "minor": "1" },
"domains": [{
"domain": "Inspector",
"hidden": true,
@@ -100,6 +100,11 @@
"description": "Resource type as it was perceived by the rendering engine."
},
{
+ "id": "FrameId",
+ "type": "string",
+ "description": "Unique frame identifier."
+ },
+ {
"id": "Frame",
"type": "object",
"description": "Information about the Frame on the page.",
@@ -111,8 +116,7 @@
{ "name": "url", "type": "string", "description": "Frame document's URL." },
{ "name": "securityOrigin", "type": "string", "description": "Frame document's security origin." },
{ "name": "mimeType", "type": "string", "description": "Frame document's mimeType as determined by the browser." }
- ],
- "hidden": true
+ ]
},
{
"id": "FrameResourceTree",
@@ -153,7 +157,7 @@
"description": "Search result for resource.",
"properties": [
{ "name": "url", "type": "string", "description": "Resource URL." },
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Resource frame id." },
+ { "name": "frameId", "$ref": "FrameId", "description": "Resource frame id." },
{ "name": "matchesCount", "type": "number", "description": "Number of matches in the resource content." }
],
"hidden": true
@@ -180,6 +184,17 @@
"type": "string",
"description": "Unique script identifier.",
"hidden": true
+ },
+ {
+ "id": "NavigationEntry",
+ "type": "object",
+ "description": "Navigation history entry.",
+ "properties": [
+ { "name": "id", "type": "integer", "description": "Unique id of the navigation history entry." },
+ { "name": "url", "type": "string", "description": "URL of the navigation history entry." },
+ { "name": "title", "type": "string", "description": "Title of the navigation history entry." }
+ ],
+ "hidden": true
}
],
"commands": [
@@ -225,6 +240,24 @@
"description": "Navigates current page to the given URL."
},
{
+ "name": "getNavigationHistory",
+ "parameters": [],
+ "returns": [
+ { "name": "currentIndex", "type": "integer", "description": "Index of the current navigation history entry." },
+ { "name": "entries", "type": "array", "items": { "$ref": "NavigationEntry"}, "description": "Array of navigation history entries." }
+ ],
+ "description": "Returns navigation history for the current page.",
+ "hidden": true
+ },
+ {
+ "name": "navigateToHistoryEntry",
+ "parameters": [
+ { "name": "entryId", "type": "integer", "description": "Unique id of the entry to navigate to." }
+ ],
+ "description": "Navigates current page to the given history entry.",
+ "hidden": true
+ },
+ {
"name": "getCookies",
"returns": [
{ "name": "cookies", "type": "array", "items": { "$ref": "Cookie"}, "description": "Array of cookie objects." },
@@ -254,7 +287,7 @@
"name": "getResourceContent",
"description": "Returns content of the given resource.",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id to get resource for." },
+ { "name": "frameId", "$ref": "FrameId", "description": "Frame id to get resource for." },
{ "name": "url", "type": "string", "description": "URL of the resource to get content for." }
],
"returns": [
@@ -267,7 +300,7 @@
"name": "searchInResource",
"description": "Searches for given string in resource content.",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id for resource to search in." },
+ { "name": "frameId", "$ref": "FrameId", "description": "Frame id for resource to search in." },
{ "name": "url", "type": "string", "description": "URL of the resource to search in." },
{ "name": "query", "type": "string", "description": "String to search for." },
{ "name": "caseSensitive", "type": "boolean", "optional": true, "description": "If true, search is case sensitive." },
@@ -295,7 +328,7 @@
"name": "setDocumentContent",
"description": "Sets given markup as the document's HTML.",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame id to set HTML for." },
+ { "name": "frameId", "$ref": "FrameId", "description": "Frame id to set HTML for." },
{ "name": "html", "type": "string", "description": "HTML content to set." }
],
"hidden": true
@@ -417,10 +450,14 @@
"parameters": [
{ "name": "format", "type": "string", "optional": true, "enum": ["jpeg", "png"], "description": "Image compression format." },
{ "name": "quality", "type": "integer", "optional": true, "description": "Compression quality from range [0..100]." },
- { "name": "scale", "type": "number", "optional": true, "description": "Image scale from range [0..1]." }
+ { "name": "maxWidth", "type": "integer", "optional": true, "description": "Maximum screenshot width." },
+ { "name": "maxHeight", "type": "integer", "optional": true, "description": "Maximum screenshot height." }
],
"returns": [
- { "name": "data", "type": "string", "description": "Base64-encoded image data (PNG)." }
+ { "name": "data", "type": "string", "description": "Base64-encoded image data (PNG)." },
+ { "name": "deviceScaleFactor", "type": "number", "hidden": true, "description": "Device scale factor." },
+ { "name": "pageScaleFactor", "type": "number", "hidden": true, "description": "Page scale factor." },
+ { "name": "viewport", "$ref": "DOM.Rect", "hidden": true, "description": "Viewport in CSS pixels." }
]
},
{
@@ -429,7 +466,8 @@
"parameters": [
{ "name": "format", "type": "string", "optional": true, "enum": ["jpeg", "png"], "description": "Image compression format." },
{ "name": "quality", "type": "integer", "optional": true, "description": "Compression quality from range [0..100]." },
- { "name": "scale", "type": "number", "optional": true, "description": "Image scale from range [0..1]." }
+ { "name": "maxWidth", "type": "integer", "optional": true, "description": "Maximum screenshot width." },
+ { "name": "maxHeight", "type": "integer", "optional": true, "description": "Maximum screenshot height." }
],
"hidden": true
},
@@ -479,26 +517,31 @@
]
},
{
+ "name": "frameAttached",
+ "description": "Fired when frame has been attached to its parent.",
+ "parameters": [
+ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has been attached." }
+ ]
+ },
+ {
"name": "frameNavigated",
"description": "Fired once navigation of the frame has completed. Frame is now associated with the new loader.",
"parameters": [
{ "name": "frame", "$ref": "Frame", "description": "Frame object." }
- ],
- "hidden": true
+ ]
},
{
"name": "frameDetached",
"description": "Fired when frame has been detached from its parent.",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has been detached." }
- ],
- "hidden": true
+ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has been detached." }
+ ]
},
{
"name": "frameStartedLoading",
"description": "Fired when frame has started loading.",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has started loading." }
+ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has started loading." }
],
"hidden": true
},
@@ -506,7 +549,7 @@
"name": "frameStoppedLoading",
"description": "Fired when frame has stopped loading.",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has stopped loading." }
+ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has stopped loading." }
],
"hidden": true
},
@@ -514,7 +557,7 @@
"name": "frameScheduledNavigation",
"description": "Fired when frame schedules a potential navigation.",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has scheduled a navigation." },
+ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has scheduled a navigation." },
{ "name": "delay", "type": "number", "description": "Delay (in seconds) until the navigation is scheduled to begin. The navigation is not guaranteed to start." }
],
"hidden": true
@@ -523,7 +566,7 @@
"name": "frameClearedScheduledNavigation",
"description": "Fired when frame no longer has a scheduled navigation.",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the frame that has cleared its scheduled navigation." }
+ { "name": "frameId", "$ref": "FrameId", "description": "Id of the frame that has cleared its scheduled navigation." }
],
"hidden": true
},
@@ -552,7 +595,12 @@
"name": "screencastFrame",
"description": "Compressed image data requested by the <code>startScreencast</code>.",
"parameters": [
- { "name": "data", "type": "string", "description": "Base64-encoded compressed image." }
+ { "name": "data", "type": "string", "description": "Base64-encoded compressed image." },
+ { "name": "deviceScaleFactor", "type": "number", "hidden": true, "optional": true, "description": "Device scale factor." },
+ { "name": "pageScaleFactor", "type": "number", "hidden": true, "optional": true, "description": "Page scale factor." },
+ { "name": "viewport", "$ref": "DOM.Rect", "hidden": true, "optional": true, "description": "Viewport in CSS pixels." },
+ { "name": "offsetTop", "type": "number", "hidden": true, "optional": true, "description": "Top offset in DIP." },
+ { "name": "offsetBottom", "type": "number", "hidden": true, "optional": true, "description": "Bottom offset in DIP." }
],
"hidden": true
}
@@ -653,7 +701,7 @@
{ "name": "id", "$ref": "ExecutionContextId", "description": "Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed." },
{ "name": "isPageContext", "type": "boolean", "description": "True if this is a context where inpspected web page scripts run. False if it is a content script isolated context.", "hidden": true },
{ "name": "name", "type": "string", "description": "Human readable name describing given context.", "hidden": true},
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Id of the owning frame." }
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Id of the owning frame." }
]
}
@@ -751,7 +799,8 @@
{
"id": "Timestamp",
"type": "number",
- "description": "Number of seconds since epoch."
+ "description": "Number of seconds since epoch.",
+ "hidden": true
},
{
"id": "ConsoleMessage",
@@ -778,6 +827,7 @@
"description": "Stack entry for console errors and assertions.",
"properties": [
{ "name": "functionName", "type": "string", "description": "JavaScript function name." },
+ { "name": "scriptId", "type": "string", "description": "JavaScript script id." },
{ "name": "url", "type": "string", "description": "JavaScript script name or url." },
{ "name": "lineNumber", "type": "integer", "description": "JavaScript script line number." },
{ "name": "columnNumber", "type": "integer", "description": "JavaScript script column number." }
@@ -859,12 +909,6 @@
"description": "Unique loader identifier."
},
{
- "id": "FrameId",
- "type": "string",
- "description": "Unique frame identifier.",
- "hidden": true
- },
- {
"id": "RequestId",
"type": "string",
"description": "Unique request identifier."
@@ -1057,7 +1101,7 @@
"name": "loadResourceForFrontend",
"async": true,
"parameters": [
- { "name": "frameId", "$ref": "FrameId", "description": "Frame to load the resource from." },
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame to load the resource from." },
{ "name": "url", "type": "string", "description": "URL of the resource to load." },
{ "name": "requestHeaders", "$ref": "Network.Headers", "optional": true, "description": "Request headers." }
],
@@ -1076,7 +1120,7 @@
"description": "Fired when page is about to send HTTP request.",
"parameters": [
{ "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
- { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true },
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "hidden": true },
{ "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
{ "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
{ "name": "request", "$ref": "Request", "description": "Request data." },
@@ -1097,7 +1141,7 @@
"description": "Fired when HTTP response is available.",
"parameters": [
{ "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
- { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true },
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier.", "hidden": true },
{ "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
{ "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
{ "name": "type", "$ref": "Page.ResourceType", "description": "Resource type." },
@@ -1133,19 +1177,6 @@
]
},
{
- "name": "requestServedFromMemoryCache",
- "description": "Fired when HTTP request has been served from memory cache.",
- "parameters": [
- { "name": "requestId", "$ref": "RequestId", "description": "Request identifier." },
- { "name": "frameId", "$ref": "FrameId", "description": "Frame identifier.", "hidden": true },
- { "name": "loaderId", "$ref": "LoaderId", "description": "Loader identifier." },
- { "name": "documentURL", "type": "string", "description": "URL of the document this request is loaded for." },
- { "name": "timestamp", "$ref": "Timestamp", "description": "Timestamp." },
- { "name": "initiator", "$ref": "Initiator", "description": "Request initiator." },
- { "name": "resource", "$ref": "CachedResource", "description": "Cached resource data." }
- ]
- },
- {
"name": "webSocketWillSendHandshakeRequest",
"description": "Fired when WebSocket is about to initiate handshake.",
"parameters": [
@@ -1466,16 +1497,6 @@
"description": "Disables storage tracking, prevents storage events from being sent to the client."
},
{
- "name": "getValue",
- "parameters": [
- { "name": "storageId", "$ref": "StorageId" },
- { "name": "key", "type": "string" }
- ],
- "returns": [
- { "name": "value", "type": "string", "optional": true }
- ]
- },
- {
"name": "getDOMStorageItems",
"parameters": [
{ "name": "storageId", "$ref": "StorageId" }
@@ -1564,7 +1585,7 @@
"type": "object",
"description": "Frame identifier - manifest URL pair.",
"properties": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Frame identifier." },
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Frame identifier." },
{ "name": "manifestURL", "type": "string", "description": "Manifest URL." },
{ "name": "status", "type": "integer", "description": "Application cache status." }
]
@@ -1585,7 +1606,7 @@
{
"name": "getManifestForFrame",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." }
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose manifest is retrieved." }
],
"returns": [
{ "name": "manifestURL", "type": "string", "description": "Manifest URL for document in the given frame." }
@@ -1595,7 +1616,7 @@
{
"name": "getApplicationCacheForFrame",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieved." }
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose application cache is retrieved." }
],
"returns": [
{ "name": "applicationCache", "$ref": "ApplicationCache", "description": "Relevant application cache data for the document in given frame." }
@@ -1607,7 +1628,7 @@
{
"name": "applicationCacheStatusUpdated",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing document whose application cache updated status." },
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing document whose application cache updated status." },
{ "name": "manifestURL", "type": "string", "description": "Manifest URL." },
{ "name": "status", "type": "integer", "description": "Updated application cache status." }
]
@@ -1758,7 +1779,7 @@
{ "name": "xmlVersion", "type": "string", "optional": true, "description": "<code>Document</code>'s XML version in case of XML documents." },
{ "name": "name", "type": "string", "optional": true, "description": "<code>Attr</code>'s name." },
{ "name": "value", "type": "string", "optional": true, "description": "<code>Attr</code>'s value." },
- { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "Frame ID for frame owner elements.", "hidden": true },
+ { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "Frame ID for frame owner elements.", "hidden": true },
{ "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 }
@@ -1798,7 +1819,8 @@
"items": { "type": "number" },
"minItems": 8,
"maxItems": 8,
- "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise."
+ "description": "An array of quad vertices, x immediately followed by y for each point, points clock-wise.",
+ "hidden": true
},
{
"id": "BoxModel",
@@ -1806,12 +1828,11 @@
"hidden": true,
"properties": [
{ "name": "content", "$ref": "Quad", "description": "Content box" },
- { "name": "width", "type": "integer", "description": "Node width" },
- { "name": "height", "type": "integer", "description": "Node height" },
{ "name": "padding", "$ref": "Quad", "description": "Padding box" },
{ "name": "border", "$ref": "Quad", "description": "Border box" },
{ "name": "margin", "$ref": "Quad", "description": "Margin box" },
- { "name": "visibleContentRect", "$ref": "Rect", "description": "Visible content rectangle" }
+ { "name": "width", "type": "integer", "description": "Node width" },
+ { "name": "height", "type": "integer", "description": "Node height" }
],
"description": "Box model."
},
@@ -1820,10 +1841,10 @@
"type": "object",
"hidden": true,
"properties": [
- { "name": "x", "type": "integer", "description": "X coordinate" },
- { "name": "y", "type": "integer", "description": "Y coordinate" },
- { "name": "width", "type": "integer", "description": "Rectangle width" },
- { "name": "height", "type": "integer", "description": "Rectangle height" }
+ { "name": "x", "type": "number", "description": "X coordinate" },
+ { "name": "y", "type": "number", "description": "Y coordinate" },
+ { "name": "width", "type": "number", "description": "Rectangle width" },
+ { "name": "height", "type": "number", "description": "Rectangle height" }
],
"description": "Rectangle."
},
@@ -2033,7 +2054,8 @@
{ "name": "color", "$ref": "RGBA", "optional": true, "description": "The highlight fill color (default: transparent)." },
{ "name": "outlineColor", "$ref": "RGBA", "optional": true, "description": "The highlight outline color (default: transparent)." }
],
- "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport."
+ "description": "Highlights given quad. Coordinates are absolute with respect to the main frame viewport.",
+ "hidden": true
},
{
"name": "highlightNode",
@@ -2051,7 +2073,7 @@
{
"name": "highlightFrame",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame to highlight." },
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame to highlight." },
{ "name": "contentColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight fill color (default: transparent)." },
{ "name": "contentOutlineColor", "$ref": "RGBA", "optional": true, "description": "The content box highlight outline color (default: transparent)." }
],
@@ -2163,6 +2185,18 @@
],
"description": "Returns boxes for the currently selected nodes.",
"hidden": true
+ },
+ {
+ "name": "getNodeForLocation",
+ "parameters": [
+ { "name": "x", "type": "integer", "description": "X coordinate." },
+ { "name": "y", "type": "integer", "description": "Y coordinate." }
+ ],
+ "returns": [
+ { "name": "nodeId", "$ref": "NodeId", "description": "Id of the node at given coordinates." }
+ ],
+ "description": "Returns node id at given location.",
+ "hidden": true
}
],
"events": [
@@ -2175,7 +2209,8 @@
"parameters": [
{ "name": "nodeId", "$ref": "NodeId", "description": "Id of the node to inspect." }
],
- "description": "Fired when the node should be inspected. This happens after call to <code>setInspectModeEnabled</code>."
+ "description": "Fired when the node should be inspected. This happens after call to <code>setInspectModeEnabled</code>.",
+ "hidden" : true
},
{
"name": "setChildNodes",
@@ -2347,7 +2382,7 @@
"type": "object",
"properties": [
{ "name": "styleSheetId", "$ref": "StyleSheetId", "description": "The stylesheet identifier."},
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Owner frame identifier."},
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Owner frame identifier."},
{ "name": "sourceURL", "type": "string", "description": "Stylesheet resource URL."},
{ "name": "sourceMapURL", "type": "string", "optional": true, "description": "URL of source map associated with the stylesheet (if any)." },
{ "name": "origin", "$ref": "StyleSheetOrigin", "description": "Stylesheet origin."},
@@ -2803,14 +2838,6 @@
{ "name": "record", "$ref": "TimelineEvent", "description": "Timeline event record data." }
],
"description": "Fired for every instrumentation event while timeline is started."
- },
- {
- "name": "timelineStarted",
- "parameters": [
- { "name": "timestampsBase", "type": "number", "description": "Timestamps base in milliseconds." },
- { "name": "startTime", "type": "number", "description": "Timeline recording start wall time in milliseconds." }
- ],
- "description": "Sent out on timeline start and provides general information on timeline."
}
]
},
@@ -2889,7 +2916,8 @@
]
}
],
- "description": "Error data for setScriptSource command. compileError is a case type for uncompilable script source error."
+ "description": "Error data for setScriptSource command. compileError is a case type for uncompilable script source error.",
+ "hidden": true
}
],
"commands": [
@@ -2909,6 +2937,15 @@
"description": "Activates / deactivates all breakpoints on the page."
},
{
+ "name": "setSkipAllPauses",
+ "hidden": true,
+ "parameters": [
+ { "name": "skipped", "type": "boolean", "description": "New value for skip pauses state." },
+ { "name": "untilReload", "type": "boolean", "optional": true, "description": "Whether page reload should set skipped to false." }
+ ],
+ "description": "Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc)."
+ },
+ {
"name": "setBreakpointByUrl",
"parameters": [
{ "name": "lineNumber", "type": "integer", "description": "Line number to set breakpoint at." },
@@ -3294,6 +3331,7 @@
{ "name": "hitCount", "type": "integer", "description": "Number of samples where this node was on top of the call stack." },
{ "name": "callUID", "type": "number", "description": "Call UID." },
{ "name": "children", "type": "array", "items": { "$ref": "CPUProfileNode" }, "description": "Child nodes." },
+ { "name": "deoptReason", "type": "string", "description": "The reason of being not optimized. The function may be deoptimized or marked as don't optimize."},
{ "name": "id", "optional": true, "type": "integer", "description": "Unique id of the node." }
]
},
@@ -3673,7 +3711,7 @@
{
"name": "captureFrame",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed." }
+ { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed." }
],
"returns": [
{ "name": "traceLogId", "$ref": "TraceLogId", "description": "Identifier of the trace log containing captured canvas calls." }
@@ -3683,7 +3721,7 @@
{
"name": "startCapturing",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed." }
+ { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "Identifier of the frame containing document whose canvases are to be captured. If omitted, main frame is assumed." }
],
"returns": [
{ "name": "traceLogId", "$ref": "TraceLogId", "description": "Identifier of the trace log containing captured canvas calls." }
@@ -3747,14 +3785,14 @@
{
"name": "contextCreated",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "description": "Identifier of the frame containing a canvas with a context." }
+ { "name": "frameId", "$ref": "Page.FrameId", "description": "Identifier of the frame containing a canvas with a context." }
],
"description": "Fired when a canvas context has been created in the given frame. The context may not be instrumented (see hasUninstrumentedCanvases command)."
},
{
"name": "traceLogsRemoved",
"parameters": [
- { "name": "frameId", "$ref": "Network.FrameId", "optional": true, "description": "If given, trace logs from the given frame were removed." },
+ { "name": "frameId", "$ref": "Page.FrameId", "optional": true, "description": "If given, trace logs from the given frame were removed." },
{ "name": "traceLogId", "$ref": "TraceLogId", "optional": true, "description": "If given, trace log with the given ID was removed." }
],
"description": "Fired when a set of trace logs were removed from the backend. If no parameters are given, all trace logs were removed."
@@ -3809,7 +3847,7 @@
{ "name": "timestamp", "type": "number", "optional": true, "description": "Time at which the event occurred. Measured in UTC time in seconds since January 1, 1970 (default: current time)." },
{ "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)." },
- { "name": "deviceSpace", "type": "boolean", "optional": true, "hidden": true, "description": "If true, x and y are given in device pixels wrt current viewport." }
+ { "name": "deviceSpace", "type": "boolean", "optional": true, "hidden": true, "description": "If true, x and y are given in dip wrt current viewport." }
],
"description": "Dispatches a mouse event to the page."
},
@@ -3857,7 +3895,7 @@
"properties": [
{ "name": "layerId", "$ref": "LayerId", "description": "The unique id for this layer." },
{ "name": "parentLayerId", "$ref": "LayerId", "optional": true, "description": "The id of parent (not present for root)." },
- { "name": "nodeId", "$ref": "DOM.NodeId", "description": "The id for the node associated with this layer." },
+ { "name": "nodeId", "$ref": "DOM.NodeId", "optional": true, "description": "The id for the node associated with this layer." },
{ "name": "offsetX", "type": "number", "description": "Offset from parent layer, X coordinate." },
{ "name": "offsetY", "type": "number", "description": "Offset from parent layer, X coordinate." },
{ "name": "width", "type": "number", "description": "Layer width." },