D21112: Support message response and reply callbacks
Kai Uwe Broulik
noreply at phabricator.kde.org
Fri May 10 08:39:41 BST 2019
broulik created this revision.
broulik added reviewers: Plasma, fvogt.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
broulik requested review of this revision.
REVISION SUMMARY
This allows to make use of the sendReply/sendResponse callbacks allowing for the callee to reply directly without having to manually track state and relate a message to a reply.
Also add a bit of documentation on the required callback signature.
TEST PLAN
Sent a message with a callback, replied, got reply in callback.
Returned true from a callback and stored the callback in a variable, did some processing, replied successfully at a later point.
REPOSITORY
R856 Plasma Browser Integration
REVISION DETAIL
https://phabricator.kde.org/D21112
AFFECTED FILES
extension/content-script.js
extension/extension.js
extension/options.js
To: broulik, #plasma, fvogt
Cc: plasma-devel, jraleigh, GB_2, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190510/5d806611/attachment-0001.html>
More information about the Plasma-devel
mailing list