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

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

Issue 1475843002: [MR] Add description field to MediaSink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 enum IconType { 9 enum IconType {
10 CAST, 10 CAST,
11 CAST_AUDIO, 11 CAST_AUDIO,
12 CAST_AUDIO_GROUP, 12 CAST_AUDIO_GROUP,
13 GENERIC, 13 GENERIC,
14 HANGOUT 14 HANGOUT
15 }; 15 };
16 16
17 // The sink identifier, e.g. "rs71w7mFzYLFlabir_qO4NHl6SUc." 17 // The sink identifier, e.g. "rs71w7mFzYLFlabir_qO4NHl6SUc."
18 string sink_id; 18 string sink_id;
19 // The human-readable name, e.g. "Janet's Chromecast". 19 // The human-readable name, e.g. "Janet's Chromecast".
20 string name; 20 string name;
21 // Optional description of the sink.
22 string? description;
21 // The type of icon to show in the UI for this media sink. 23 // The type of icon to show in the UI for this media sink.
22 IconType icon_type; 24 IconType icon_type;
23 }; 25 };
24 26
25 // Should be kept in sync with media_route.h. 27 // Should be kept in sync with media_route.h.
26 struct MediaRoute { 28 struct MediaRoute {
27 // The ID of this media route, e.g. "r_PR1O_blkC9dsKp-tb1ti8qurOo". 29 // The ID of this media route, e.g. "r_PR1O_blkC9dsKp-tb1ti8qurOo".
28 string media_route_id; 30 string media_route_id;
29 // The ID of the media source being sent through this media route. 31 // The ID of the media source being sent through this media route.
30 // May be missing if route is not local. 32 // May be missing if route is not local.
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 227
226 // Called when the overall availability of media sinks has been updated. 228 // Called when the overall availability of media sinks has been updated.
227 OnSinkAvailabilityUpdated(SinkAvailability availability); 229 OnSinkAvailabilityUpdated(SinkAvailability availability);
228 230
229 // Called when the state of presentation connected to route |route_id| has 231 // Called when the state of presentation connected to route |route_id| has
230 // changed to |state|. 232 // changed to |state|.
231 OnPresentationConnectionStateChanged( 233 OnPresentationConnectionStateChanged(
232 string route_id, PresentationConnectionState state); 234 string route_id, PresentationConnectionState state);
233 }; 235 };
234 236
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/media/router/media_router_type_converters.cc » ('j') | chrome/browser/media/router/media_sink.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698