| OLD | NEW | 
|    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  Loading... | 
|  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 }; | 
| OLD | NEW |