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

Side by Side Diff: chrome/browser/resources/media_router/media_router_data.js

Issue 2176613003: [Media Router] Clean up issues related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months 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 // 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 }; 117 };
118 118
119 /** 119 /**
120 * Placeholder object for AUTO cast mode. See comment in CastModeType. 120 * Placeholder object for AUTO cast mode. See comment in CastModeType.
121 * @const {!media_router.CastMode} 121 * @const {!media_router.CastMode}
122 */ 122 */
123 var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO, 123 var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO,
124 loadTimeData.getString('autoCastMode'), null); 124 loadTimeData.getString('autoCastMode'), null);
125 125
126 /** 126 /**
127 * @param {string} id The ID of this issue. 127 * @param {number} id The ID of this issue.
128 * @param {string} title The issue title. 128 * @param {string} title The issue title.
129 * @param {string} message The issue message. 129 * @param {string} message The issue message.
130 * @param {number} defaultActionType The type of default action. 130 * @param {number} defaultActionType The type of default action.
131 * @param {number|undefined} secondaryActionType The type of optional action. 131 * @param {number|undefined} secondaryActionType The type of optional action.
132 * @param {?string} routeId The route ID to which this issue 132 * @param {?string} routeId The route ID to which this issue
133 * pertains. If not set, this is a global issue. 133 * pertains. If not set, this is a global issue.
134 * @param {boolean} isBlocking True if this issue blocks other UI. 134 * @param {boolean} isBlocking True if this issue blocks other UI.
135 * @param {?number} helpPageId The numeric help center ID. 135 * @param {?number} helpPageId The numeric help center ID.
136 * @constructor 136 * @constructor
137 * @struct 137 * @struct
138 */ 138 */
139 var Issue = function(id, title, message, defaultActionType, 139 var Issue = function(id, title, message, defaultActionType,
140 secondaryActionType, routeId, isBlocking, 140 secondaryActionType, routeId, isBlocking,
141 helpPageId) { 141 helpPageId) {
142 /** @type {string} */ 142 /** @type {number} */
143 this.id = id; 143 this.id = id;
144 144
145 /** @type {string} */ 145 /** @type {string} */
146 this.title = title; 146 this.title = title;
147 147
148 /** @type {string} */ 148 /** @type {string} */
149 this.message = message; 149 this.message = message;
150 150
151 /** @type {number} */ 151 /** @type {number} */
152 this.defaultActionType = defaultActionType; 152 this.defaultActionType = defaultActionType;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 261
262 return { 262 return {
263 AUTO_CAST_MODE: AUTO_CAST_MODE, 263 AUTO_CAST_MODE: AUTO_CAST_MODE,
264 CastMode: CastMode, 264 CastMode: CastMode,
265 Issue: Issue, 265 Issue: Issue,
266 Route: Route, 266 Route: Route,
267 Sink: Sink, 267 Sink: Sink,
268 TabInfo: TabInfo, 268 TabInfo: TabInfo,
269 }; 269 };
270 }); 270 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698