OLD | NEW |
1 { | 1 { |
2 "version": { "major": "1", "minor": "2" }, | 2 "version": { "major": "1", "minor": "2" }, |
3 "domains": [ | 3 "domains": [ |
4 { | 4 { |
5 "domain": "Schema", | 5 "domain": "Schema", |
6 "description": "Provides information about the protocol schema.", | 6 "description": "Provides information about the protocol schema.", |
7 "types": [ | 7 "types": [ |
8 { | 8 { |
9 "id": "Domain", | 9 "id": "Domain", |
10 "type": "object", | 10 "type": "object", |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 "properties": [ | 204 "properties": [ |
205 { "name": "description", "type": "string", "optional": true,
"description": "String label of this stack trace. For async traces this may be
a name of the function that initiated the async call." }, | 205 { "name": "description", "type": "string", "optional": true,
"description": "String label of this stack trace. For async traces this may be
a name of the function that initiated the async call." }, |
206 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, | 206 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "JavaScript function name." }, |
207 { "name": "parent", "$ref": "StackTrace", "optional": true,
"description": "Asynchronous JavaScript stack trace that preceded this stack, if
available." } | 207 { "name": "parent", "$ref": "StackTrace", "optional": true,
"description": "Asynchronous JavaScript stack trace that preceded this stack, if
available." } |
208 ] | 208 ] |
209 } | 209 } |
210 ], | 210 ], |
211 "commands": [ | 211 "commands": [ |
212 { | 212 { |
213 "name": "evaluate", | 213 "name": "evaluate", |
214 "async": true, | |
215 "parameters": [ | 214 "parameters": [ |
216 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, | 215 { "name": "expression", "type": "string", "description": "Ex
pression to evaluate." }, |
217 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 216 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
218 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, | 217 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
219 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, | 218 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, |
220 { "name": "contextId", "$ref": "ExecutionContextId", "option
al": true, "description": "Specifies in which execution context to perform evalu
ation. If the parameter is omitted the evaluation will be performed in the conte
xt of the inspected page." }, | 219 { "name": "contextId", "$ref": "ExecutionContextId", "option
al": true, "description": "Specifies in which execution context to perform evalu
ation. If the parameter is omitted the evaluation will be performed in the conte
xt of the inspected page." }, |
221 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, | 220 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, |
222 { "name": "generatePreview", "type": "boolean", "optional":
true, "experimental": true, "description": "Whether preview should be generated
for the result." }, | 221 { "name": "generatePreview", "type": "boolean", "optional":
true, "experimental": true, "description": "Whether preview should be generated
for the result." }, |
223 { "name": "userGesture", "type": "boolean", "optional": true
, "experimental": true, "description": "Whether execution should be treated as i
nitiated by user in the UI." }, | 222 { "name": "userGesture", "type": "boolean", "optional": true
, "experimental": true, "description": "Whether execution should be treated as i
nitiated by user in the UI." }, |
224 { "name": "awaitPromise", "type": "boolean", "optional":true
, "description": "Whether execution should wait for promise to be resolved. If t
he result of evaluation is not a Promise, it's considered to be an error." } | 223 { "name": "awaitPromise", "type": "boolean", "optional":true
, "description": "Whether execution should wait for promise to be resolved. If t
he result of evaluation is not a Promise, it's considered to be an error." } |
225 ], | 224 ], |
226 "returns": [ | 225 "returns": [ |
227 { "name": "result", "$ref": "RemoteObject", "description": "
Evaluation result." }, | 226 { "name": "result", "$ref": "RemoteObject", "description": "
Evaluation result." }, |
228 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} | 227 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
229 ], | 228 ], |
230 "description": "Evaluates expression on global object." | 229 "description": "Evaluates expression on global object." |
231 }, | 230 }, |
232 { | 231 { |
233 "name": "awaitPromise", | 232 "name": "awaitPromise", |
234 "async": true, | |
235 "parameters": [ | 233 "parameters": [ |
236 { "name": "promiseObjectId", "$ref": "RemoteObjectId", "desc
ription": "Identifier of the promise." }, | 234 { "name": "promiseObjectId", "$ref": "RemoteObjectId", "desc
ription": "Identifier of the promise." }, |
237 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, | 235 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object that shou
ld be sent by value." }, |
238 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." } | 236 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." } |
239 ], | 237 ], |
240 "returns": [ | 238 "returns": [ |
241 { "name": "result", "$ref": "RemoteObject", "description": "
Promise result. Will contain rejected value if promise was rejected." }, | 239 { "name": "result", "$ref": "RemoteObject", "description": "
Promise result. Will contain rejected value if promise was rejected." }, |
242 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details if stack strace is available."
} | 240 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details if stack strace is available."
} |
243 ], | 241 ], |
244 "description": "Add handler to promise with given promise object
id." | 242 "description": "Add handler to promise with given promise object
id." |
245 }, | 243 }, |
246 { | 244 { |
247 "name": "callFunctionOn", | 245 "name": "callFunctionOn", |
248 "async": true, | |
249 "parameters": [ | 246 "parameters": [ |
250 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to call function on." }, | 247 { "name": "objectId", "$ref": "RemoteObjectId", "description
": "Identifier of the object to call function on." }, |
251 { "name": "functionDeclaration", "type": "string", "descript
ion": "Declaration of the function to call." }, | 248 { "name": "functionDeclaration", "type": "string", "descript
ion": "Declaration of the function to call." }, |
252 { "name": "arguments", "type": "array", "items": { "$ref": "
CallArgument", "description": "Call argument." }, "optional": true, "description
": "Call arguments. All call arguments must belong to the same JavaScript world
as the target object." }, | 249 { "name": "arguments", "type": "array", "items": { "$ref": "
CallArgument", "description": "Call argument." }, "optional": true, "description
": "Call arguments. All call arguments must belong to the same JavaScript world
as the target object." }, |
253 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, | 250 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, |
254 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, | 251 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, |
255 { "name": "generatePreview", "type": "boolean", "optional":
true, "experimental": true, "description": "Whether preview should be generated
for the result." }, | 252 { "name": "generatePreview", "type": "boolean", "optional":
true, "experimental": true, "description": "Whether preview should be generated
for the result." }, |
256 { "name": "userGesture", "type": "boolean", "optional": true
, "experimental": true, "description": "Whether execution should be treated as i
nitiated by user in the UI." }, | 253 { "name": "userGesture", "type": "boolean", "optional": true
, "experimental": true, "description": "Whether execution should be treated as i
nitiated by user in the UI." }, |
257 { "name": "awaitPromise", "type": "boolean", "optional":true
, "description": "Whether execution should wait for promise to be resolved. If t
he result of evaluation is not a Promise, it's considered to be an error." } | 254 { "name": "awaitPromise", "type": "boolean", "optional":true
, "description": "Whether execution should wait for promise to be resolved. If t
he result of evaluation is not a Promise, it's considered to be an error." } |
258 ], | 255 ], |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
326 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Specifies in which execution context to perf
orm script run. If the parameter is omitted the evaluation will be performed in
the context of the inspected page." } | 323 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Specifies in which execution context to perf
orm script run. If the parameter is omitted the evaluation will be performed in
the context of the inspected page." } |
327 ], | 324 ], |
328 "returns": [ | 325 "returns": [ |
329 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, | 326 { "name": "scriptId", "$ref": "ScriptId", "optional": true,
"description": "Id of the script." }, |
330 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} | 327 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o
ptional": true, "description": "Exception details."} |
331 ], | 328 ], |
332 "description": "Compiles expression." | 329 "description": "Compiles expression." |
333 }, | 330 }, |
334 { | 331 { |
335 "name": "runScript", | 332 "name": "runScript", |
336 "async": true, | |
337 "parameters": [ | 333 "parameters": [ |
338 { "name": "scriptId", "$ref": "ScriptId", "description": "Id
of the script to run." }, | 334 { "name": "scriptId", "$ref": "ScriptId", "description": "Id
of the script to run." }, |
339 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Specifies in which execution context to perf
orm script run. If the parameter is omitted the evaluation will be performed in
the context of the inspected page." }, | 335 { "name": "executionContextId", "$ref": "ExecutionContextId"
, "optional": true, "description": "Specifies in which execution context to perf
orm script run. If the parameter is omitted the evaluation will be performed in
the context of the inspected page." }, |
340 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, | 336 { "name": "objectGroup", "type": "string", "optional": true,
"description": "Symbolic group name that can be used to release multiple object
s." }, |
341 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, | 337 { "name": "silent", "type": "boolean", "optional": true, "de
scription": "In silent mode exceptions thrown during evaluation are not reported
and do not pause execution. Overrides <code>setPauseOnException</code> state."
}, |
342 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, | 338 { "name": "includeCommandLineAPI", "type": "boolean", "optio
nal": true, "description": "Determines whether Command Line API should be availa
ble during the evaluation." }, |
343 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, | 339 { "name": "returnByValue", "type": "boolean", "optional": tr
ue, "description": "Whether the result is expected to be a JSON object which sho
uld be sent by value." }, |
344 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." }, | 340 { "name": "generatePreview", "type": "boolean", "optional":
true, "description": "Whether preview should be generated for the result." }, |
345 { "name": "awaitPromise", "type": "boolean", "optional": tru
e, "description": "Whether execution should wait for promise to be resolved. If
the result of evaluation is not a Promise, it's considered to be an error." } | 341 { "name": "awaitPromise", "type": "boolean", "optional": tru
e, "description": "Whether execution should wait for promise to be resolved. If
the result of evaluation is not a Promise, it's considered to be an error." } |
346 ], | 342 ], |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1000 { | 996 { |
1001 "name": "heapStatsUpdate", | 997 "name": "heapStatsUpdate", |
1002 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 998 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
1003 "parameters": [ | 999 "parameters": [ |
1004 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} | 1000 { "name": "statsUpdate", "type": "array", "items": { "type":
"integer" }, "description": "An array of triplets. Each triplet describes a fra
gment. The first integer is the fragment index, the second integer is a total co
unt of objects for the fragment, the third integer is a total size of the object
s for the fragment."} |
1005 ] | 1001 ] |
1006 } | 1002 } |
1007 ] | 1003 ] |
1008 }] | 1004 }] |
1009 } | 1005 } |
OLD | NEW |