| 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 | 7 |
| 8 cr.exportPath('media_router'); | 8 cr.exportPath('media_router'); |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 /** | 120 /** |
| 121 * Placeholder object for AUTO cast mode. See comment in CastModeType. | 121 * Placeholder object for AUTO cast mode. See comment in CastModeType. |
| 122 * @const {!media_router.CastMode} | 122 * @const {!media_router.CastMode} |
| 123 */ | 123 */ |
| 124 var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO, | 124 var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO, |
| 125 loadTimeData.getString('autoCastMode'), null); | 125 loadTimeData.getString('autoCastMode'), null); |
| 126 | 126 |
| 127 /** | 127 /** |
| 128 * @param {string} id The ID of this issue. | 128 * @param {number} id The ID of this issue. |
| 129 * @param {string} title The issue title. | 129 * @param {string} title The issue title. |
| 130 * @param {string} message The issue message. | 130 * @param {string} message The issue message. |
| 131 * @param {number} defaultActionType The type of default action. | 131 * @param {number} defaultActionType The type of default action. |
| 132 * @param {number|undefined} secondaryActionType The type of optional action. | 132 * @param {number|undefined} secondaryActionType The type of optional action. |
| 133 * @param {?string} routeId The route ID to which this issue | 133 * @param {?string} routeId The route ID to which this issue |
| 134 * pertains. If not set, this is a global issue. | 134 * pertains. If not set, this is a global issue. |
| 135 * @param {boolean} isBlocking True if this issue blocks other UI. | 135 * @param {boolean} isBlocking True if this issue blocks other UI. |
| 136 * @param {?number} helpPageId The numeric help center ID. | 136 * @param {?number} helpPageId The numeric help center ID. |
| 137 * @constructor | 137 * @constructor |
| 138 * @struct | 138 * @struct |
| 139 */ | 139 */ |
| 140 var Issue = function(id, title, message, defaultActionType, | 140 var Issue = function(id, title, message, defaultActionType, |
| 141 secondaryActionType, routeId, isBlocking, | 141 secondaryActionType, routeId, isBlocking, |
| 142 helpPageId) { | 142 helpPageId) { |
| 143 /** @type {string} */ | 143 /** @type {number} */ |
| 144 this.id = id; | 144 this.id = id; |
| 145 | 145 |
| 146 /** @type {string} */ | 146 /** @type {string} */ |
| 147 this.title = title; | 147 this.title = title; |
| 148 | 148 |
| 149 /** @type {string} */ | 149 /** @type {string} */ |
| 150 this.message = message; | 150 this.message = message; |
| 151 | 151 |
| 152 /** @type {number} */ | 152 /** @type {number} */ |
| 153 this.defaultActionType = defaultActionType; | 153 this.defaultActionType = defaultActionType; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 | 262 |
| 263 return { | 263 return { |
| 264 AUTO_CAST_MODE: AUTO_CAST_MODE, | 264 AUTO_CAST_MODE: AUTO_CAST_MODE, |
| 265 CastMode: CastMode, | 265 CastMode: CastMode, |
| 266 Issue: Issue, | 266 Issue: Issue, |
| 267 Route: Route, | 267 Route: Route, |
| 268 Sink: Sink, | 268 Sink: Sink, |
| 269 TabInfo: TabInfo, | 269 TabInfo: TabInfo, |
| 270 }; | 270 }; |
| 271 }); | 271 }); |
| OLD | NEW |