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

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

Issue 1998013003: [Media Router WebUI] Show issue's secondary action when 'dismiss'. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 * @const {!media_router.CastMode} 112 * @const {!media_router.CastMode}
113 */ 113 */
114 var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO, 114 var AUTO_CAST_MODE = new CastMode(media_router.CastModeType.AUTO,
115 loadTimeData.getString('autoCastMode'), null); 115 loadTimeData.getString('autoCastMode'), null);
116 116
117 /** 117 /**
118 * @param {string} id The ID of this issue. 118 * @param {string} id The ID of this issue.
119 * @param {string} title The issue title. 119 * @param {string} title The issue title.
120 * @param {string} message The issue message. 120 * @param {string} message The issue message.
121 * @param {number} defaultActionType The type of default action. 121 * @param {number} defaultActionType The type of default action.
122 * @param {?number} secondaryActionType The type of optional action. 122 * @param {number|undefined} secondaryActionType The type of optional action.
123 * @param {?string} routeId The route ID to which this issue 123 * @param {?string} routeId The route ID to which this issue
124 * pertains. If not set, this is a global issue. 124 * pertains. If not set, this is a global issue.
125 * @param {boolean} isBlocking True if this issue blocks other UI. 125 * @param {boolean} isBlocking True if this issue blocks other UI.
126 * @param {?number} helpPageId The numeric help center ID. 126 * @param {?number} helpPageId The numeric help center ID.
127 * @constructor 127 * @constructor
128 * @struct 128 * @struct
129 */ 129 */
130 var Issue = function(id, title, message, defaultActionType, 130 var Issue = function(id, title, message, defaultActionType,
131 secondaryActionType, routeId, isBlocking, 131 secondaryActionType, routeId, isBlocking,
132 helpPageId) { 132 helpPageId) {
133 /** @type {string} */ 133 /** @type {string} */
134 this.id = id; 134 this.id = id;
135 135
136 /** @type {string} */ 136 /** @type {string} */
137 this.title = title; 137 this.title = title;
138 138
139 /** @type {string} */ 139 /** @type {string} */
140 this.message = message; 140 this.message = message;
141 141
142 /** @type {number} */ 142 /** @type {number} */
143 this.defaultActionType = defaultActionType; 143 this.defaultActionType = defaultActionType;
144 144
145 /** @type {?number} */ 145 /** @type {number|undefined} */
146 this.secondaryActionType = secondaryActionType; 146 this.secondaryActionType = secondaryActionType;
147 147
148 /** @type {?string} */ 148 /** @type {?string} */
149 this.routeId = routeId; 149 this.routeId = routeId;
150 150
151 /** @type {boolean} */ 151 /** @type {boolean} */
152 this.isBlocking = isBlocking; 152 this.isBlocking = isBlocking;
153 153
154 /** @type {?number} */ 154 /** @type {?number} */
155 this.helpPageId = helpPageId; 155 this.helpPageId = helpPageId;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 249
250 return { 250 return {
251 AUTO_CAST_MODE: AUTO_CAST_MODE, 251 AUTO_CAST_MODE: AUTO_CAST_MODE,
252 CastMode: CastMode, 252 CastMode: CastMode,
253 Issue: Issue, 253 Issue: Issue,
254 Route: Route, 254 Route: Route,
255 Sink: Sink, 255 Sink: Sink,
256 TabInfo: TabInfo, 256 TabInfo: TabInfo,
257 }; 257 };
258 }); 258 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698