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

Side by Side Diff: extensions/common/api/display_source.idl

Issue 1674583002: [chrome.displaySource] Session notification improvements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Init sCallId Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The <code>chrome.displaySource</code> API creates a Display 5 // The <code>chrome.displaySource</code> API creates a Display
6 // session using WebMediaStreamTrack as sources. 6 // session using WebMediaStreamTrack as sources.
7 namespace displaySource { 7 namespace displaySource {
8 enum ErrorType { 8 enum ErrorType {
9 // Cannot create media pipeline from the given media stream which could be 9 // Cannot create media pipeline from the given media stream which could be
10 // appropriate for a Display session (e.g., necessary codecs are missing 10 // appropriate for a Display session (e.g., necessary codecs are missing
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // |callback| : Called when the session is terminated. 137 // |callback| : Called when the session is terminated.
138 [nocompile] static void terminateSession( 138 [nocompile] static void terminateSession(
139 long sinkId, optional CallCompleteCallback callback); 139 long sinkId, optional CallCompleteCallback callback);
140 }; 140 };
141 141
142 interface Events { 142 interface Events {
143 // Event fired when the available sinks are modified (either their amount 143 // Event fired when the available sinks are modified (either their amount
144 // or properties) 144 // or properties)
145 // |sinks| the list of all currently available sinks 145 // |sinks| the list of all currently available sinks
146 static void onSinksUpdated(SinkInfo[] sinks); 146 static void onSinksUpdated(SinkInfo[] sinks);
147 // Event fired when the Display session is started.
148 // |sinkId| Id of the peer sink
149 [nocompile] static void onSessionStarted(long sinkId);
150 // Event fired when the Display session is terminated. 147 // Event fired when the Display session is terminated.
151 // |sinkId| Id of the peer sink 148 // |sinkId| Id of the peer sink
152 [nocompile] static void onSessionTerminated(long sinkId); 149 [nocompile] static void onSessionTerminated(long sinkId);
153 // Event fired when an error occurs. 150 // Event fired when an error occurs.
154 // |sinkId| Id of the peer sink 151 // |sinkId| Id of the peer sink
155 // |errorInfo| error description 152 // |errorInfo| error description
156 [nocompile] static void onSessionErrorOccured(long sinkId, 153 [nocompile] static void onSessionErrorOccured(long sinkId,
157 ErrorInfo errorInfo); 154 ErrorInfo errorInfo);
158 }; 155 };
159 }; 156 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698