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

Unified Diff: extensions/common/api/display_source.idl

Issue 1471243002: chrome.displaySource custom bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing nits Created 5 years 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
« no previous file with comments | « no previous file | extensions/extensions.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/api/display_source.idl
diff --git a/extensions/common/api/display_source.idl b/extensions/common/api/display_source.idl
index a3821e3517984000adfaf040357119477d3839dc..f65a82a287aef889d518303f9925a4ac1fcb29f9 100644
--- a/extensions/common/api/display_source.idl
+++ b/extensions/common/api/display_source.idl
@@ -89,7 +89,12 @@ namespace displaySource {
callback GetSinksCallback = void (SinkInfo[] result);
callback RequestAuthenticationCallback = void (AuthenticationInfo result);
- callback TerminateSessionCallback = void ();
+
+ // The callback is used by <code>startSession, terminateSession</code>
+ // to signal completion. The callback is called with
+ // <code>chrome.runtime.lastError</code> set to error
+ // message if the call has failed.
+ [inline_doc] callback CallCompleteCallback = void ();
interface Functions {
// Queries the list of the currently available Display sinks.
@@ -123,13 +128,15 @@ namespace displaySource {
// are required by the sink; otherwise its |data| field must contain the
// required authentication data (e.g. PIN value) and its |method| field must
// be the same as one obtained from ‘requestAuthentication’.
- [nocompile] static void startSession(StartSessionInfo sessionInfo);
+ // |callback| : Called when the session is started.
+ [nocompile] static void startSession(
+ StartSessionInfo sessionInfo, optional CallCompleteCallback callback);
// Terminates the active Display session.
// |sinkId| : Id of the connected sink.
// |callback| : Called when the session is terminated.
[nocompile] static void terminateSession(
- long sinkId, optional TerminateSessionCallback callback);
+ long sinkId, optional CallCompleteCallback callback);
};
interface Events {
« no previous file with comments | « no previous file | extensions/extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698