Chromium Code Reviews| Index: Source/devtools/protocol.json |
| diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json |
| index 76cbcbea306dea557909fcc72eda93efe3ec9727..e5163c2553da7f4b19ea1d2148e4c0b73663371f 100644 |
| --- a/Source/devtools/protocol.json |
| +++ b/Source/devtools/protocol.json |
| @@ -248,7 +248,7 @@ |
| "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." } |
| + { "name": "entries", "type": "array", "items": { "$ref": "NavigationEntry" }, "description": "Array of navigation history entries." } |
| ], |
| "description": "Returns navigation history for the current page.", |
| "hidden": true |
| @@ -264,7 +264,7 @@ |
| { |
| "name": "getCookies", |
| "returns": [ |
| - { "name": "cookies", "type": "array", "items": { "$ref": "Cookie"}, "description": "Array of cookie objects." }, |
| + { "name": "cookies", "type": "array", "items": { "$ref": "Cookie" }, "description": "Array of cookie objects." }, |
| { "name": "cookiesString", "type": "string", "description": "document.cookie string representation of the cookies." } |
| ], |
| "description": "Returns all browser cookies. Depending on the backend support, will either return detailed cookie information in the <code>cookie</code> field or string cookie representation using <code>cookieString</code>.", |
| @@ -750,8 +750,8 @@ |
| { "name": "accessorPropertiesOnly", "optional": true, "type": "boolean", "description": "If true, returns accessor properties (with getter/setter) only; internal properties are not returned either.", "hidden": true } |
| ], |
| "returns": [ |
| - { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor"}, "description": "Object properties." }, |
| - { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor"}, "description": "Internal object properties (only of the element itself).", "hidden": true } |
| + { "name": "result", "type": "array", "items": { "$ref": "PropertyDescriptor" }, "description": "Object properties." }, |
| + { "name": "internalProperties", "optional": true, "type": "array", "items": { "$ref": "InternalPropertyDescriptor" }, "description": "Internal object properties (only of the element itself).", "hidden": true } |
| ], |
| "description": "Returns properties of a given object. Object group of the result is inherited from the target object." |
| }, |
| @@ -1976,7 +1976,7 @@ |
| { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name for handler value. Handler value is not returned without this parameter specified." } |
| ], |
| "returns": [ |
| - { "name": "listeners", "type": "array", "items": { "$ref": "EventListener"}, "description": "Array of relevant listeners." } |
| + { "name": "listeners", "type": "array", "items": { "$ref": "EventListener" }, "description": "Array of relevant listeners." } |
| ], |
| "description": "Returns event listeners relevant to the node.", |
| "hidden": true |
| @@ -2244,7 +2244,7 @@ |
| "name": "setChildNodes", |
| "parameters": [ |
| { "name": "parentId", "$ref": "NodeId", "description": "Parent node id to populate with children." }, |
| - { "name": "nodes", "type": "array", "items": { "$ref": "Node"}, "description": "Child nodes array." } |
| + { "name": "nodes", "type": "array", "items": { "$ref": "Node" }, "description": "Child nodes array." } |
| ], |
| "description": "Fired when backend wants to provide client with the missing DOM structure. This happens upon most of the calls requesting node ids." |
| }, |
| @@ -2662,7 +2662,7 @@ |
| ], |
| "returns": [ |
| { "name": "cssFamilyName", "type": "string", "description": "Font family name which is determined by computed style." }, |
| - { "name": "fonts", "type": "array", "items": { "$ref": "PlatformFontUsage"}, "description": "Usage statistics for every employed platform font." } |
| + { "name": "fonts", "type": "array", "items": { "$ref": "PlatformFontUsage" }, "description": "Usage statistics for every employed platform font." } |
| ], |
| "description": "Requests information about platform fonts which we used to render child TextNodes in the given node.", |
| "hidden": true |
| @@ -2984,6 +2984,16 @@ |
| "description": "JavaScript call frame. Array of call frames form the call stack." |
| }, |
| { |
| + "id": "StackTrace", |
|
yurys
2013/12/03 13:49:42
Won't you need to pass additional details with asy
|
| + "type": "object", |
| + "properties": [ |
| + { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call frames of the stack trace." }, |
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." } |
| + ], |
| + "description": "JavaScript call stack, including async stack traces.", |
| + "hidden": true |
| + }, |
| + { |
| "id": "Scope", |
| "type": "object", |
| "properties": [ |
| @@ -3045,7 +3055,7 @@ |
| ], |
| "returns": [ |
| { "name": "breakpointId", "$ref": "BreakpointId", "description": "Id of the created breakpoint for further reference." }, |
| - { "name": "locations", "type": "array", "items": { "$ref": "Location"}, "description": "List of the locations this breakpoint resolved into upon addition." } |
| + { "name": "locations", "type": "array", "items": { "$ref": "Location" }, "description": "List of the locations this breakpoint resolved into upon addition." } |
| ], |
| "description": "Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in <code>locations</code> property. Further matching script parsing will result in subsequent <code>breakpointResolved</code> events issued. This logical breakpoint will survive page reloads." |
| }, |
| @@ -3130,8 +3140,9 @@ |
| { "name": "preview", "type": "boolean", "optional": true, "description": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.", "hidden": true } |
| ], |
| "returns": [ |
| - { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame"}, "description": "New stack trace in case editing has happened while VM was stopped." }, |
| - { "name": "result", "type": "object", "optional": true, "description": "VM-specific description of the changes applied.", "hidden": true } |
| + { "name": "callFrames", "type": "array", "optional": true, "items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing has happened while VM was stopped." }, |
| + { "name": "result", "type": "object", "optional": true, "description": "VM-specific description of the changes applied.", "hidden": true }, |
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any.", "hidden": true } |
| ], |
| "error": { |
| "$ref": "SetScriptSourceError" |
| @@ -3144,8 +3155,9 @@ |
| { "name": "callFrameId", "$ref": "CallFrameId", "description": "Call frame identifier to evaluate on." } |
| ], |
| "returns": [ |
| - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame"}, "description": "New stack trace." }, |
| - { "name": "result", "type": "object", "description": "VM-specific description.", "hidden": true } |
| + { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "New stack trace." }, |
| + { "name": "result", "type": "object", "description": "VM-specific description." }, |
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." } |
|
yurys
2013/12/03 13:49:42
hidden:true
aandrey
2013/12/03 15:09:00
this command is already hidden
|
| ], |
| "hidden": true, |
| "description": "Restarts particular call frame from the beginning." |
| @@ -3257,7 +3269,8 @@ |
| { |
| "name": "getBacktrace", |
| "returns": [ |
| - { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame"}, "description": "Call stack the virtual machine stopped on." } |
| + { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }, |
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any." } |
|
yurys
2013/12/03 13:49:42
hidden:true
aandrey
2013/12/03 15:09:00
ditto
|
| ], |
| "hidden": true, |
| "description": "Returns call stack including variables changed since VM was paused. VM must be paused." |
| @@ -3316,7 +3329,8 @@ |
| { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "Call stack the virtual machine stopped on." }, |
| { "name": "reason", "type": "string", "enum": [ "XHR", "DOM", "EventListener", "exception", "assert", "CSPViolation", "debugCommand", "other" ], "description": "Pause reason." }, |
| { "name": "data", "type": "object", "optional": true, "description": "Object containing break-specific auxiliary properties." }, |
| - { "name": "hitBreakpoints", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden": true } |
| + { "name": "hitBreakpoints", "type": "array", "optional": true, "items": { "type": "string" }, "description": "Hit breakpoints IDs", "hidden": true }, |
| + { "name": "asyncStackTrace", "$ref": "StackTrace", "optional": true, "description": "Async stack trace, if any.", "hidden": true } |
| ], |
| "description": "Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria." |
| }, |