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

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

Issue 1363593003: [Media Router] Set timeout for route creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per imcheng@'s comments. Created 5 years, 2 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 cr.define('media_router', function() { 7 cr.define('media_router', function() {
8 'use strict'; 8 'use strict';
9 9
10 /** 10 /**
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 this.customControllerPath = customControllerPath; 132 this.customControllerPath = customControllerPath;
133 }; 133 };
134 134
135 135
136 /** 136 /**
137 * @param {string} id The ID of the media sink. 137 * @param {string} id The ID of the media sink.
138 * @param {string} name The name of the sink. 138 * @param {string} name The name of the sink.
139 * @param {media_router.SinkIconType} iconType the type of icon for the sink. 139 * @param {media_router.SinkIconType} iconType the type of icon for the sink.
140 * @param {media_router.SinkStatus} status The readiness state of the sink. 140 * @param {media_router.SinkStatus} status The readiness state of the sink.
141 * @param {!Array<number>} castModes Cast modes compatible with the sink. 141 * @param {!Array<number>} castModes Cast modes compatible with the sink.
142 * @param {boolean} isLaunching True if the Media Router is creating a route
143 * to this sink.
144 * @constructor 142 * @constructor
145 * @struct 143 * @struct
146 */ 144 */
147 var Sink = function(id, name, iconType, status, castModes, isLaunching) { 145 var Sink = function(id, name, iconType, status, castModes) {
148 /** @type {string} */ 146 /** @type {string} */
149 this.id = id; 147 this.id = id;
150 148
151 /** @type {string} */ 149 /** @type {string} */
152 this.name = name; 150 this.name = name;
153 151
154 /** @type {SinkIconType} */ 152 /** @type {SinkIconType} */
155 this.iconType = iconType; 153 this.iconType = iconType;
156 154
157 /** @type {media_router.SinkStatus} */ 155 /** @type {media_router.SinkStatus} */
158 this.status = status; 156 this.status = status;
159 157
160 /** @type {!Array<number>} */ 158 /** @type {!Array<number>} */
161 this.castModes = castModes; 159 this.castModes = castModes;
162
163 /** @type {boolean} */
164 this.isLaunching = isLaunching;
165 }; 160 };
166 161
167 162
168 /** 163 /**
169 * @param {number} tabId The current tab ID. 164 * @param {number} tabId The current tab ID.
170 * @param {string} domain The domain of the current tab. 165 * @param {string} domain The domain of the current tab.
171 * @constructor 166 * @constructor
172 * @struct 167 * @struct
173 */ 168 */
174 var TabInfo = function(tabId, domain) { 169 var TabInfo = function(tabId, domain) {
175 /** @type {number} */ 170 /** @type {number} */
176 this.tabId = tabId; 171 this.tabId = tabId;
177 172
178 /** @type {string} */ 173 /** @type {string} */
179 this.domain = domain; 174 this.domain = domain;
180 }; 175 };
181 176
182 return { 177 return {
183 CastModeType: CastModeType, 178 CastModeType: CastModeType,
184 SinkIconType: SinkIconType, 179 SinkIconType: SinkIconType,
185 SinkStatus: SinkStatus, 180 SinkStatus: SinkStatus,
186 CastMode: CastMode, 181 CastMode: CastMode,
187 Issue: Issue, 182 Issue: Issue,
188 Route: Route, 183 Route: Route,
189 Sink: Sink, 184 Sink: Sink,
190 TabInfo: TabInfo, 185 TabInfo: TabInfo,
191 }; 186 };
192 }); 187 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698