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

Unified Diff: chrome/browser/resources/media_router/media_router_data.js

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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/media_router/media_router_data.js
diff --git a/chrome/browser/resources/media_router/media_router_data.js b/chrome/browser/resources/media_router/media_router_data.js
index aec528cfc02c4ffd820a8be82fad3ec73f0d718a..456856699bb9b34569bd26304cf71423a0d40577 100644
--- a/chrome/browser/resources/media_router/media_router_data.js
+++ b/chrome/browser/resources/media_router/media_router_data.js
@@ -150,19 +150,23 @@ cr.define('media_router', function() {
/**
* @param {string} id The ID of the media sink.
* @param {string} name The name of the sink.
+ * @param {?string} description Optional description of the sink.
* @param {media_router.SinkIconType} iconType the type of icon for the sink.
* @param {media_router.SinkStatus} status The readiness state of the sink.
* @param {!Array<number>} castModes Cast modes compatible with the sink.
* @constructor
* @struct
*/
- var Sink = function(id, name, iconType, status, castModes) {
+ var Sink = function(id, name, description, iconType, status, castModes) {
/** @type {string} */
this.id = id;
/** @type {string} */
this.name = name;
+ /** @type {?string} */
+ this.description = description;
+
/** @type {SinkIconType} */
this.iconType = iconType;

Powered by Google App Engine
This is Rietveld 408576698