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 // API invoked by the browser MediaRouterWebUIMessageHandler to communicate | 5 // API invoked by the browser MediaRouterWebUIMessageHandler to communicate |
6 // with this UI. | 6 // with this UI. |
7 cr.define('media_router.ui', function() { | 7 cr.define('media_router.ui', function() { |
8 'use strict'; | 8 'use strict'; |
9 | 9 |
10 // The media-router-container element. | 10 // The media-router-container element. |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 * userEmail: string, | 145 * userEmail: string, |
146 * showDomain: boolean}} data | 146 * showDomain: boolean}} data |
147 * Parameters in data: | 147 * Parameters in data: |
148 * sinks - list of sinks to be displayed. | 148 * sinks - list of sinks to be displayed. |
149 * showEmail - true if the user email should be shown. | 149 * showEmail - true if the user email should be shown. |
150 * userEmail - email of the user if the user is signed in. | 150 * userEmail - email of the user if the user is signed in. |
151 * showDomain - true if the user domain should be shown. | 151 * showDomain - true if the user domain should be shown. |
152 */ | 152 */ |
153 function setSinkListAndIdentity(data) { | 153 function setSinkListAndIdentity(data) { |
154 container.showDomain = data['showDomain']; | 154 container.showDomain = data['showDomain']; |
155 console.log('setSinkListAndIdentity: ' + JSON.stringify(data['sinks'])); | |
takumif
2017/05/17 22:06:47
Remove the logging?
mark a. foltz
2017/05/18 17:35:25
Done.
| |
155 container.allSinks = data['sinks']; | 156 container.allSinks = data['sinks']; |
156 header.userEmail = data['userEmail']; | 157 header.userEmail = data['userEmail']; |
157 header.showEmail = data['showEmail']; | 158 header.showEmail = data['showEmail']; |
158 } | 159 } |
159 | 160 |
160 /** | 161 /** |
161 * Updates the max height of the dialog | 162 * Updates the max height of the dialog |
162 * | 163 * |
163 * @param {number} height | 164 * @param {number} height |
164 */ | 165 */ |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
419 reportRouteCreationOutcome: reportRouteCreationOutcome, | 420 reportRouteCreationOutcome: reportRouteCreationOutcome, |
420 reportSelectedCastMode: reportSelectedCastMode, | 421 reportSelectedCastMode: reportSelectedCastMode, |
421 reportSinkCount: reportSinkCount, | 422 reportSinkCount: reportSinkCount, |
422 reportTimeToClickSink: reportTimeToClickSink, | 423 reportTimeToClickSink: reportTimeToClickSink, |
423 reportTimeToInitialActionClose: reportTimeToInitialActionClose, | 424 reportTimeToInitialActionClose: reportTimeToInitialActionClose, |
424 requestInitialData: requestInitialData, | 425 requestInitialData: requestInitialData, |
425 requestRoute: requestRoute, | 426 requestRoute: requestRoute, |
426 searchSinksAndCreateRoute: searchSinksAndCreateRoute, | 427 searchSinksAndCreateRoute: searchSinksAndCreateRoute, |
427 }; | 428 }; |
428 }); | 429 }); |
OLD | NEW |