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

Side by Side Diff: chrome/browser/media/router/media_router.mojom

Issue 1273423004: Shows a launch spinner next to a sink once it is selected to create a route. The launch spinner sur… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move launch tracker to extension. Created 5 years, 4 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 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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Called when the Media Route Manager receives a new list of sinks. 182 // Called when the Media Route Manager receives a new list of sinks.
181 OnSinksReceived(string media_source, array<MediaSink> sinks); 183 OnSinksReceived(string media_source, array<MediaSink> sinks);
182 184
183 // Called when issues are reported for media routes. 185 // Called when issues are reported for media routes.
184 OnIssue(Issue issue); 186 OnIssue(Issue issue);
185 187
186 // Called when list of routes has been updated. 188 // Called when list of routes has been updated.
187 OnRoutesUpdated(array<MediaRoute> routes); 189 OnRoutesUpdated(array<MediaRoute> routes);
188 }; 190 };
189 191
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698