| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 * showEmail: boolean, | 143 * showEmail: boolean, |
| 144 * userEmail: string, | 144 * userEmail: string, |
| 145 * showDomain: boolean}} data | 145 * showDomain: boolean}} data |
| 146 * Parameters in data: | 146 * Parameters in data: |
| 147 * sinks - list of sinks to be displayed. | 147 * sinks - list of sinks to be displayed. |
| 148 * showEmail - true if the user email should be shown. | 148 * showEmail - true if the user email should be shown. |
| 149 * userEmail - email of the user if the user is signed in. | 149 * userEmail - email of the user if the user is signed in. |
| 150 * showDomain - true if the user domain should be shown. | 150 * showDomain - true if the user domain should be shown. |
| 151 */ | 151 */ |
| 152 function setSinkListAndIdentity(data) { | 152 function setSinkListAndIdentity(data) { |
| 153 container.showDomain = data['showDomain']; |
| 153 container.allSinks = data['sinks']; | 154 container.allSinks = data['sinks']; |
| 154 container.showDomain = data['showDomain']; | |
| 155 header.userEmail = data['userEmail']; | 155 header.userEmail = data['userEmail']; |
| 156 header.showEmail = data['showEmail']; | 156 header.showEmail = data['showEmail']; |
| 157 } | 157 } |
| 158 | 158 |
| 159 /** | 159 /** |
| 160 * Updates the max height of the dialog | 160 * Updates the max height of the dialog |
| 161 * | 161 * |
| 162 * @param {number} height | 162 * @param {number} height |
| 163 */ | 163 */ |
| 164 function updateMaxHeight(height) { | 164 function updateMaxHeight(height) { |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 reportRouteCreationOutcome: reportRouteCreationOutcome, | 404 reportRouteCreationOutcome: reportRouteCreationOutcome, |
| 405 reportSelectedCastMode: reportSelectedCastMode, | 405 reportSelectedCastMode: reportSelectedCastMode, |
| 406 reportSinkCount: reportSinkCount, | 406 reportSinkCount: reportSinkCount, |
| 407 reportTimeToClickSink: reportTimeToClickSink, | 407 reportTimeToClickSink: reportTimeToClickSink, |
| 408 reportTimeToInitialActionClose: reportTimeToInitialActionClose, | 408 reportTimeToInitialActionClose: reportTimeToInitialActionClose, |
| 409 requestInitialData: requestInitialData, | 409 requestInitialData: requestInitialData, |
| 410 requestRoute: requestRoute, | 410 requestRoute: requestRoute, |
| 411 searchSinksAndCreateRoute: searchSinksAndCreateRoute, | 411 searchSinksAndCreateRoute: searchSinksAndCreateRoute, |
| 412 }; | 412 }; |
| 413 }); | 413 }); |
| OLD | NEW |