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

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

Issue 1730583002: [chrome.displaySource] further implementation of call completion callbacks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from Antony 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 // A new Display session cannot be started before the existing one is
10 // terminated.
11 session_limit_error,
12
13 // The connection with sink cannot be established or has dropped 9 // The connection with sink cannot be established or has dropped
14 // unexpectedly. 10 // unexpectedly.
15 connection_error, 11 connection_error,
16 12
17 // The capabilities of this Display Source and the connected 13 // The capabilities of this Display Source and the connected
18 // sink do not fit (e.g. the sink cannot play the media content of 14 // sink do not fit (e.g. the sink cannot play the media content of
19 // the formats given by the source). 15 // the formats given by the source).
20 capabilities_negotiation_error, 16 capabilities_negotiation_error,
21 17
22 // There was an error in media pipeline: while encoding, packetizing or 18 // There was an error in media pipeline: while encoding, packetizing or
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // Event fired when the Display session is terminated. 134 // Event fired when the Display session is terminated.
139 // |sinkId| Id of the peer sink 135 // |sinkId| Id of the peer sink
140 [nocompile] static void onSessionTerminated(long sinkId); 136 [nocompile] static void onSessionTerminated(long sinkId);
141 // Event fired when an error occurs. 137 // Event fired when an error occurs.
142 // |sinkId| Id of the peer sink 138 // |sinkId| Id of the peer sink
143 // |errorInfo| error description 139 // |errorInfo| error description
144 [nocompile] static void onSessionErrorOccured(long sinkId, 140 [nocompile] static void onSessionErrorOccured(long sinkId,
145 ErrorInfo errorInfo); 141 ErrorInfo errorInfo);
146 }; 142 };
147 }; 143 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698