| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 * @const {!media_router.CastMode} | 120 * @const {!media_router.CastMode} |
| 121 */ | 121 */ |
| 122 var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO, | 122 var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO, |
| 123 loadTimeData.getString('autoCastMode'), null); | 123 loadTimeData.getString('autoCastMode'), null); |
| 124 | 124 |
| 125 /** | 125 /** |
| 126 * @param {string} id The ID of this issue. | 126 * @param {string} id The ID of this issue. |
| 127 * @param {string} title The issue title. | 127 * @param {string} title The issue title. |
| 128 * @param {string} message The issue message. | 128 * @param {string} message The issue message. |
| 129 * @param {number} defaultActionType The type of default action. | 129 * @param {number} defaultActionType The type of default action. |
| 130 * @param {?number} secondaryActionType The type of optional action. | 130 * @param {number|undefined} secondaryActionType The type of optional action. |
| 131 * @param {?string} routeId The route ID to which this issue | 131 * @param {?string} routeId The route ID to which this issue |
| 132 * pertains. If not set, this is a global issue. | 132 * pertains. If not set, this is a global issue. |
| 133 * @param {boolean} isBlocking True if this issue blocks other UI. | 133 * @param {boolean} isBlocking True if this issue blocks other UI. |
| 134 * @param {?number} helpPageId The numeric help center ID. | 134 * @param {?number} helpPageId The numeric help center ID. |
| 135 * @constructor | 135 * @constructor |
| 136 * @struct | 136 * @struct |
| 137 */ | 137 */ |
| 138 var Issue = function(id, title, message, defaultActionType, | 138 var Issue = function(id, title, message, defaultActionType, |
| 139 secondaryActionType, routeId, isBlocking, | 139 secondaryActionType, routeId, isBlocking, |
| 140 helpPageId) { | 140 helpPageId) { |
| 141 /** @type {string} */ | 141 /** @type {string} */ |
| 142 this.id = id; | 142 this.id = id; |
| 143 | 143 |
| 144 /** @type {string} */ | 144 /** @type {string} */ |
| 145 this.title = title; | 145 this.title = title; |
| 146 | 146 |
| 147 /** @type {string} */ | 147 /** @type {string} */ |
| 148 this.message = message; | 148 this.message = message; |
| 149 | 149 |
| 150 /** @type {number} */ | 150 /** @type {number} */ |
| 151 this.defaultActionType = defaultActionType; | 151 this.defaultActionType = defaultActionType; |
| 152 | 152 |
| 153 /** @type {?number} */ | 153 /** @type {number|undefined} */ |
| 154 this.secondaryActionType = secondaryActionType; | 154 this.secondaryActionType = secondaryActionType; |
| 155 | 155 |
| 156 /** @type {?string} */ | 156 /** @type {?string} */ |
| 157 this.routeId = routeId; | 157 this.routeId = routeId; |
| 158 | 158 |
| 159 /** @type {boolean} */ | 159 /** @type {boolean} */ |
| 160 this.isBlocking = isBlocking; | 160 this.isBlocking = isBlocking; |
| 161 | 161 |
| 162 /** @type {?number} */ | 162 /** @type {?number} */ |
| 163 this.helpPageId = helpPageId; | 163 this.helpPageId = helpPageId; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 | 257 |
| 258 return { | 258 return { |
| 259 AUTO_CAST_MODE: AUTO_CAST_MODE, | 259 AUTO_CAST_MODE: AUTO_CAST_MODE, |
| 260 CastMode: CastMode, | 260 CastMode: CastMode, |
| 261 Issue: Issue, | 261 Issue: Issue, |
| 262 Route: Route, | 262 Route: Route, |
| 263 Sink: Sink, | 263 Sink: Sink, |
| 264 TabInfo: TabInfo, | 264 TabInfo: TabInfo, |
| 265 }; | 265 }; |
| 266 }); | 266 }); |
| OLD | NEW |