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

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

Issue 2196003002: [DevTools] Add awaitPromise flag to Runtime.evaluate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-promise-then
Patch Set: Added a test 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 "properties": [ 171 "properties": [
172 { "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." }, 172 { "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." },
173 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "JavaScript function name." }, 173 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "JavaScript function name." },
174 { "name": "parent", "$ref": "StackTrace", "optional": true, "hidden": true, "description": "Asynchronous JavaScript stack trace that precede d this stack, if available." } 174 { "name": "parent", "$ref": "StackTrace", "optional": true, "hidden": true, "description": "Asynchronous JavaScript stack trace that precede d this stack, if available." }
175 ] 175 ]
176 } 176 }
177 ], 177 ],
178 "commands": [ 178 "commands": [
179 { 179 {
180 "name": "evaluate", 180 "name": "evaluate",
181 "async": true,
181 "parameters": [ 182 "parameters": [
182 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." }, 183 { "name": "expression", "type": "string", "description": "Ex pression to evaluate." },
183 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." }, 184 { "name": "objectGroup", "type": "string", "optional": true, "description": "Symbolic group name that can be used to release multiple object s." },
184 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true }, 185 { "name": "includeCommandLineAPI", "type": "boolean", "optio nal": true, "description": "Determines whether Command Line API should be availa ble during the evaluation.", "hidden": true },
185 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "hidd en": true }, 186 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether evaluation should s top on exceptions and mute console. Overrides setPauseOnException state.", "hidd en": true },
186 { "name": "contextId", "$ref": "ExecutionContextId", "option al": true, "description": "Specifies in which isolated context to perform evalua tion. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the eva luation will be performed in the context of the inspected page." }, 187 { "name": "contextId", "$ref": "ExecutionContextId", "option al": true, "description": "Specifies in which isolated context to perform evalua tion. Each content script lives in an isolated context and this parameter may be used to specify one of those contexts. If the parameter is omitted or 0 the eva luation will be performed in the context of the inspected page." },
187 { "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." }, 188 { "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." },
188 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." }, 189 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." },
189 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." } 190 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." },
191 { "name": "awaitPromise", "type": "boolean", "optional":true , "hidden": true, "description": "Whether execution should wait for promise to b e resolved." }
dgozman 2016/07/30 01:42:55 If the result of evaluation is not a Promise, it's
kozy 2016/07/30 01:49:30 Done.
190 ], 192 ],
191 "returns": [ 193 "returns": [
192 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." }, 194 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." },
193 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, 195 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." },
194 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "hidden": true, "description": "Exception details."} 196 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "hidden": true, "description": "Exception details."}
195 ], 197 ],
196 "description": "Evaluates expression on global object." 198 "description": "Evaluates expression on global object."
197 }, 199 },
198 { 200 {
199 "name": "awaitPromise", 201 "name": "awaitPromise",
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 { 1002 {
1001 "name": "heapStatsUpdate", 1003 "name": "heapStatsUpdate",
1002 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 1004 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
1003 "parameters": [ 1005 "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."} 1006 { "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 ] 1007 ]
1006 } 1008 }
1007 ] 1009 ]
1008 }] 1010 }]
1009 } 1011 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698