commit | 95d74c0cb502a980592c5de2094ca87227aed4bd | [log] [tgz] |
---|---|---|
author | Nikolay Vitkov <[email protected]> | Thu Jul 18 09:22:00 2024 |
committer | Devtools-frontend LUCI CQ <devtools-frontend-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 18 09:59:08 2024 |
tree | 6d6274a97f7df5992294b486e41cdb52c63a03a7 | |
parent | c864261b0821a0f3b4c5fc9947a3cd79ea11164a [diff] [blame] |
Add callback to UI binding for AIDA client event We want to be able to handle error that come from the API. Back end CL: https://chromium-review.googlesource.com/c/chromium/src/+/5713262 Bug: 352678676 Change-Id: If8031b3f8a97244abd5a82762752ae833438998c Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/5714672 Commit-Queue: Nikolay Vitkov <[email protected]> Reviewed-by: Alex Rudenko <[email protected]>
diff --git a/front_end/devtools_compatibility.js b/front_end/devtools_compatibility.js index 3d65358..72fe169 100644 --- a/front_end/devtools_compatibility.js +++ b/front_end/devtools_compatibility.js
@@ -1146,10 +1146,10 @@ /** * @param {string} request - * @param {function(!InspectorFrontendHostAPI.DoAidaConversationResult): void} cb + * @param {function(!InspectorFrontendHostAPI.AidaClientResult): void} cb */ - registerAidaClientEvent(request) { - DevToolsAPI.sendMessageToEmbedder('registerAidaClientEvent', [request]); + registerAidaClientEvent(request, cb) { + DevToolsAPI.sendMessageToEmbedder('registerAidaClientEvent', [request], cb); } };