Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(843)

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/js_protocol.json

Issue 2203073004: [DevTools] Add awaitPromise flag to Runtime.runScript (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-call-function-on-async
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Runtime", 4 "domain": "Runtime",
5 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.", 5 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.",
6 "types": [ 6 "types": [
7 { 7 {
8 "id": "ScriptId", 8 "id": "ScriptId",
9 "type": "string", 9 "type": "string",
10 "description": "Unique script identifier." 10 "description": "Unique script identifier."
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 ], 291 ],
292 "hidden": true 292 "hidden": true
293 }, 293 },
294 { 294 {
295 "name": "compileScript", 295 "name": "compileScript",
296 "hidden": true, 296 "hidden": true,
297 "parameters": [ 297 "parameters": [
298 { "name": "expression", "type": "string", "description": "Ex pression to compile." }, 298 { "name": "expression", "type": "string", "description": "Ex pression to compile." },
299 { "name": "sourceURL", "type": "string", "description": "Sou rce url to be set for the script." }, 299 { "name": "sourceURL", "type": "string", "description": "Sou rce url to be set for the script." },
300 { "name": "persistScript", "type": "boolean", "description": "Specifies whether the compiled script should be persisted." }, 300 { "name": "persistScript", "type": "boolean", "description": "Specifies whether the compiled script should be persisted." },
301 { "name": "executionContextId", "$ref": "ExecutionContextId" , "description": "Specifies in which isolated context to perform script run. Eac h content script lives in an isolated context and this parameter is used to spec ify one of those contexts." } 301 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Specifies in which isolated context to perfo rm script run. Each content script lives in an isolated context and this paramet er is used to specify one of those contexts. If the parameter is omitted or 0 th e evaluation will be performed in the context of the inspected page." }
dgozman 2016/08/02 21:38:08 The part about "or 0" is not true. Could you pleas
kozy 2016/08/02 22:18:50 Added or 0 support back, we need it to support som
302 ], 302 ],
303 "returns": [ 303 "returns": [
304 { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." }, 304 { "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." },
305 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."} 305 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."}
306 ], 306 ],
307 "description": "Compiles expression." 307 "description": "Compiles expression."
308 }, 308 },
309 { 309 {
310 "name": "runScript", 310 "name": "runScript",
311 "hidden": true, 311 "hidden": true,
312 "async": true,
312 "parameters": [ 313 "parameters": [
313 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." }, 314 { "name": "scriptId", "$ref": "ScriptId", "description": "Id of the script to run." },
314 { "name": "executionContextId", "$ref": "ExecutionContextId" , "description": "Specifies in which isolated context to perform script run. Eac h content script lives in an isolated context and this parameter is used to spec ify one of those contexts." }, 315 { "name": "executionContextId", "$ref": "ExecutionContextId" , "optional": true, "description": "Specifies in which isolated context to perfo rm script run. Each content script lives in an isolated context and this paramet er is used to specify one of those contexts. If the parameter is omitted or 0 th e evaluation will be performed in the context of the inspected page." },
315 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, 316 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
316 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." }, 317 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether script run should s top on exceptions and mute console. Overrides setPauseOnException state." },
317 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation." } 318 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation." },
319 { "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." },
320 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." },
321 { "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." }
dgozman 2016/08/02 21:38:08 style: missing space before colon
kozy 2016/08/02 22:18:50 Done.
318 ], 322 ],
319 "returns": [ 323 "returns": [
320 { "name": "result", "$ref": "RemoteObject", "description": " Run result." }, 324 { "name": "result", "$ref": "RemoteObject", "description": " Run result." },
325 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the execution." },
321 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."} 326 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details."}
322 ], 327 ],
323 "description": "Runs script with given id in a given context." 328 "description": "Runs script with given id in a given context."
324 } 329 }
325 ], 330 ],
326 "events": [ 331 "events": [
327 { 332 {
328 "name": "executionContextCreated", 333 "name": "executionContextCreated",
329 "parameters": [ 334 "parameters": [
330 { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." } 335 { "name": "context", "$ref": "ExecutionContextDescription", "description": "A newly created execution contex." }
(...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 { 1010 {
1006 "name": "heapStatsUpdate", 1011 "name": "heapStatsUpdate",
1007 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 1012 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
1008 "parameters": [ 1013 "parameters": [
1009 { "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."} 1014 { "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."}
1010 ] 1015 ]
1011 } 1016 }
1012 ] 1017 ]
1013 }] 1018 }]
1014 } 1019 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698