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

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

Issue 2185233002: [DevTools] Added Runtime.awaitPromise protocol method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: alligned output 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
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." } 189 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." }
190 ], 190 ],
191 "returns": [ 191 "returns": [
192 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." }, 192 { "name": "result", "$ref": "RemoteObject", "description": " Evaluation result." },
193 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the evaluation." }, 193 { "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."} 194 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "hidden": true, "description": "Exception details."}
195 ], 195 ],
196 "description": "Evaluates expression on global object." 196 "description": "Evaluates expression on global object."
197 }, 197 },
198 { 198 {
199 "name": "awaitPromise",
200 "hidden": true,
201 "async": true,
202 "parameters": [
203 { "name": "promiseObjectId", "$ref": "RemoteObjectId", "desc ription": "Identifier of the promise." },
204 { "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." },
205 { "name": "generatePreview", "type": "boolean", "optional": true, "description": "Whether preview should be generated for the result." }
206 ],
207 "returns": [
208 { "name": "result", "$ref": "RemoteObject", "description": " Promise result. Will contain rejected value if promise was rejected." },
209 { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the promise was rejected." },
210 { "name": "exceptionDetails", "$ref": "ExceptionDetails", "o ptional": true, "description": "Exception details if stack strace is available." }
211 ],
212 "description": "Add handler to promise with given promise object id."
213 },
214 {
199 "name": "callFunctionOn", 215 "name": "callFunctionOn",
200 "parameters": [ 216 "parameters": [
201 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to call function on." }, 217 { "name": "objectId", "$ref": "RemoteObjectId", "description ": "Identifier of the object to call function on." },
202 { "name": "functionDeclaration", "type": "string", "descript ion": "Declaration of the function to call." }, 218 { "name": "functionDeclaration", "type": "string", "descript ion": "Declaration of the function to call." },
203 { "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." }, 219 { "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." },
204 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether function call shoul d stop on exceptions and mute console. Overrides setPauseOnException state.", "h idden": true }, 220 { "name": "doNotPauseOnExceptionsAndMuteConsole", "type": "b oolean", "optional": true, "description": "Specifies whether function call shoul d stop on exceptions and mute console. Overrides setPauseOnException state.", "h idden": true },
205 { "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." }, 221 { "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." },
206 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." }, 222 { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for th e result." },
207 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." } 223 { "name": "userGesture", "type": "boolean", "optional": true , "hidden": true, "description": "Whether execution should be treated as initiat ed by user in the UI." }
208 ], 224 ],
(...skipping 775 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 { 1000 {
985 "name": "heapStatsUpdate", 1001 "name": "heapStatsUpdate",
986 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 1002 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
987 "parameters": [ 1003 "parameters": [
988 { "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."} 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."}
989 ] 1005 ]
990 } 1006 }
991 ] 1007 ]
992 }] 1008 }]
993 } 1009 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8RuntimeAgentImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698