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

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

Issue 2176613003: [Media Router] Clean up issues related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years 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 // 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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/media_router/media_router_data.js ('k') | chrome/browser/ui/toolbar/media_router_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698