| 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 * @param {boolean} optedIntoCloudServices Whether or not the user opted into | 190 * @param {boolean} optedIntoCloudServices Whether or not the user opted into |
| 191 * cloud services. | 191 * cloud services. |
| 192 */ | 192 */ |
| 193 function acknowledgeFirstRunFlow(optedIntoCloudServices) { | 193 function acknowledgeFirstRunFlow(optedIntoCloudServices) { |
| 194 chrome.send('acknowledgeFirstRunFlow', [optedIntoCloudServices]); | 194 chrome.send('acknowledgeFirstRunFlow', [optedIntoCloudServices]); |
| 195 } | 195 } |
| 196 | 196 |
| 197 /** | 197 /** |
| 198 * Acts on the given issue. | 198 * Acts on the given issue. |
| 199 * | 199 * |
| 200 * @param {string} issueId | 200 * @param {number} issueId |
| 201 * @param {number} actionType Type of action that the user clicked. | 201 * @param {number} actionType Type of action that the user clicked. |
| 202 * @param {?number} helpPageId The numeric help center ID. | 202 * @param {?number} helpPageId The numeric help center ID. |
| 203 */ | 203 */ |
| 204 function actOnIssue(issueId, actionType, helpPageId) { | 204 function actOnIssue(issueId, actionType, helpPageId) { |
| 205 chrome.send('actOnIssue', [{issueId: issueId, actionType: actionType, | 205 chrome.send('actOnIssue', [{issueId: issueId, actionType: actionType, |
| 206 helpPageId: helpPageId}]); | 206 helpPageId: helpPageId}]); |
| 207 } | 207 } |
| 208 | 208 |
| 209 /** | 209 /** |
| 210 * Modifies |route| by changing its source to the one identified by | 210 * Modifies |route| by changing its source to the one identified by |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 419 reportRouteCreationOutcome: reportRouteCreationOutcome, | 419 reportRouteCreationOutcome: reportRouteCreationOutcome, |
| 420 reportSelectedCastMode: reportSelectedCastMode, | 420 reportSelectedCastMode: reportSelectedCastMode, |
| 421 reportSinkCount: reportSinkCount, | 421 reportSinkCount: reportSinkCount, |
| 422 reportTimeToClickSink: reportTimeToClickSink, | 422 reportTimeToClickSink: reportTimeToClickSink, |
| 423 reportTimeToInitialActionClose: reportTimeToInitialActionClose, | 423 reportTimeToInitialActionClose: reportTimeToInitialActionClose, |
| 424 requestInitialData: requestInitialData, | 424 requestInitialData: requestInitialData, |
| 425 requestRoute: requestRoute, | 425 requestRoute: requestRoute, |
| 426 searchSinksAndCreateRoute: searchSinksAndCreateRoute, | 426 searchSinksAndCreateRoute: searchSinksAndCreateRoute, |
| 427 }; | 427 }; |
| 428 }); | 428 }); |
| OLD | NEW |