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 module media_router.interfaces; | 5 module media_router.interfaces; |
6 | 6 |
7 // Represents an output sink to which media can be routed. | 7 // Represents an output sink to which media can be routed. |
8 struct MediaSink { | 8 struct MediaSink { |
9 // The sink identifier, e.g. "rs71w7mFzYLFlabir_qO4NHl6SUc." | 9 // The sink identifier, e.g. "rs71w7mFzYLFlabir_qO4NHl6SUc." |
10 string sink_id; | 10 string sink_id; |
11 // The human-readable name, e.g. "Janet's Chromecast". | 11 // The human-readable name, e.g. "Janet's Chromecast". |
12 string name; | 12 string name; |
| 13 // True if a route is being created to this sink. |
| 14 bool is_launching; |
13 }; | 15 }; |
14 | 16 |
15 // Should be kept in sync with media_route.h. | 17 // Should be kept in sync with media_route.h. |
16 struct MediaRoute { | 18 struct MediaRoute { |
17 // The ID of this media route, e.g. "r_PR1O_blkC9dsKp-tb1ti8qurOo". | 19 // The ID of this media route, e.g. "r_PR1O_blkC9dsKp-tb1ti8qurOo". |
18 string media_route_id; | 20 string media_route_id; |
19 // The ID of the media source being sent through this media route. | 21 // The ID of the media source being sent through this media route. |
20 // May be missing if route is not local. | 22 // May be missing if route is not local. |
21 string? media_source; | 23 string? media_source; |
22 // The sink that is rendering the media content. | 24 // The sink that is rendering the media content. |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 // Called when the Media Route Manager receives a new list of sinks. | 179 // Called when the Media Route Manager receives a new list of sinks. |
178 OnSinksReceived(string media_source, array<MediaSink> sinks); | 180 OnSinksReceived(string media_source, array<MediaSink> sinks); |
179 | 181 |
180 // Called when issues are reported for media routes. | 182 // Called when issues are reported for media routes. |
181 OnIssue(Issue issue); | 183 OnIssue(Issue issue); |
182 | 184 |
183 // Called when list of routes has been updated. | 185 // Called when list of routes has been updated. |
184 OnRoutesUpdated(array<MediaRoute> routes); | 186 OnRoutesUpdated(array<MediaRoute> routes); |
185 }; | 187 }; |
186 | 188 |
OLD | NEW |