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