| 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 // Any strings used here will already be localized. Values such as | 5 // Any strings used here will already be localized. Values such as |
| 6 // CastMode.type or IDs will be defined elsewhere and determined later. | 6 // CastMode.type or IDs will be defined elsewhere and determined later. |
| 7 cr.define('media_router', function() { | 7 cr.define('media_router', function() { |
| 8 'use strict'; | 8 'use strict'; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 this.isLocal = isLocal; | 143 this.isLocal = isLocal; |
| 144 | 144 |
| 145 /** @type {?string} */ | 145 /** @type {?string} */ |
| 146 this.customControllerPath = customControllerPath; | 146 this.customControllerPath = customControllerPath; |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 | 149 |
| 150 /** | 150 /** |
| 151 * @param {string} id The ID of the media sink. | 151 * @param {string} id The ID of the media sink. |
| 152 * @param {string} name The name of the sink. | 152 * @param {string} name The name of the sink. |
| 153 * @param {?string} description Optional description of the sink. |
| 153 * @param {media_router.SinkIconType} iconType the type of icon for the sink. | 154 * @param {media_router.SinkIconType} iconType the type of icon for the sink. |
| 154 * @param {media_router.SinkStatus} status The readiness state of the sink. | 155 * @param {media_router.SinkStatus} status The readiness state of the sink. |
| 155 * @param {!Array<number>} castModes Cast modes compatible with the sink. | 156 * @param {!Array<number>} castModes Cast modes compatible with the sink. |
| 156 * @constructor | 157 * @constructor |
| 157 * @struct | 158 * @struct |
| 158 */ | 159 */ |
| 159 var Sink = function(id, name, iconType, status, castModes) { | 160 var Sink = function(id, name, description, iconType, status, castModes) { |
| 160 /** @type {string} */ | 161 /** @type {string} */ |
| 161 this.id = id; | 162 this.id = id; |
| 162 | 163 |
| 163 /** @type {string} */ | 164 /** @type {string} */ |
| 164 this.name = name; | 165 this.name = name; |
| 165 | 166 |
| 167 /** @type {?string} */ |
| 168 this.description = description; |
| 169 |
| 166 /** @type {SinkIconType} */ | 170 /** @type {SinkIconType} */ |
| 167 this.iconType = iconType; | 171 this.iconType = iconType; |
| 168 | 172 |
| 169 /** @type {media_router.SinkStatus} */ | 173 /** @type {media_router.SinkStatus} */ |
| 170 this.status = status; | 174 this.status = status; |
| 171 | 175 |
| 172 /** @type {!Array<number>} */ | 176 /** @type {!Array<number>} */ |
| 173 this.castModes = castModes; | 177 this.castModes = castModes; |
| 174 }; | 178 }; |
| 175 | 179 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 193 MediaRouterView: MediaRouterView, | 197 MediaRouterView: MediaRouterView, |
| 194 SinkIconType: SinkIconType, | 198 SinkIconType: SinkIconType, |
| 195 SinkStatus: SinkStatus, | 199 SinkStatus: SinkStatus, |
| 196 CastMode: CastMode, | 200 CastMode: CastMode, |
| 197 Issue: Issue, | 201 Issue: Issue, |
| 198 Route: Route, | 202 Route: Route, |
| 199 Sink: Sink, | 203 Sink: Sink, |
| 200 TabInfo: TabInfo, | 204 TabInfo: TabInfo, |
| 201 }; | 205 }; |
| 202 }); | 206 }); |
| OLD | NEW |