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

Unified 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: a Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/v8_inspector/js_protocol.json
diff --git a/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json b/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json
index 387ef9aca3f4ca11c59f5bb21c2dd6793e43ae36..dc4b6858bd667b778309f1b9893162343b129459 100644
--- a/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json
+++ b/third_party/WebKit/Source/platform/v8_inspector/js_protocol.json
@@ -196,6 +196,20 @@
"description": "Evaluates expression on global object."
},
{
+ "name": "promiseThen",
pfeldman 2016/07/28 21:05:38 name: awaitPromise. also... could we get followin
kozy 2016/07/28 22:54:09 awaitPromise - done. I'm not sure about additiona
+ "hidden": true,
+ "async": true,
+ "parameters": [
+ { "name": "promiseObjectId", "$ref": "RemoteObjectId", "description": "Identifier of the promise." },
+ { "name": "returnByValue", "type": "boolean", "optional": true, "description": "Whether the result is expected to be a JSON object that should be sent by value." },
+ { "name": "generatePreview", "type": "boolean", "optional": true, "hidden": true, "description": "Whether preview should be generated for the result." }
+ ],
+ "returns": [
+ { "name": "resolvedValue", "$ref": "RemoteObject", "optional": true },
dgozman 2016/07/28 00:07:56 Let's add description telling that either on or th
kozy 2016/07/28 22:54:09 Done.
+ { "name": "rejectedValue", "$ref": "RemoteObject", "optional": true }
+ ]
+ },
+ {
"name": "callFunctionOn",
"parameters": [
{ "name": "objectId", "$ref": "RemoteObjectId", "description": "Identifier of the object to call function on." },

Powered by Google App Engine
This is Rietveld 408576698