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

Side by Side Diff: chrome/browser/resources/media_router/media_router.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 <include src="media_router_data.js"> 5 <include src="media_router_data.js">
6 <include src="media_router_ui_interface.js"> 6 <include src="media_router_ui_interface.js">
7 7
8 // Handles user events for the Media Router UI. 8 // Handles user events for the Media Router UI.
9 cr.define('media_router', function() { 9 cr.define('media_router', function() {
10 'use strict'; 10 'use strict';
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 * Acts on an issue and dismisses it from the UI. 191 * Acts on an issue and dismisses it from the UI.
192 * Called when the user performs an action on an issue. 192 * Called when the user performs an action on an issue.
193 * 193 *
194 * @param {!Event} event 194 * @param {!Event} event
195 * Parameters in |event|.detail: 195 * Parameters in |event|.detail:
196 * id - issue ID. 196 * id - issue ID.
197 * actionType - type of action performed by the user. 197 * actionType - type of action performed by the user.
198 * helpPageId - the numeric help center ID. 198 * helpPageId - the numeric help center ID.
199 */ 199 */
200 function onIssueActionClick(event) { 200 function onIssueActionClick(event) {
201 /** @type {{id: string, actionType: number, helpPageId: number}} */ 201 /** @type {{id: number, actionType: number, helpPageId: number}} */
202 var detail = event.detail; 202 var detail = event.detail;
203 media_router.browserApi.actOnIssue(detail.id, 203 media_router.browserApi.actOnIssue(detail.id,
204 detail.actionType, 204 detail.actionType,
205 detail.helpPageId); 205 detail.helpPageId);
206 container.issue = null; 206 container.issue = null;
207 } 207 }
208 208
209 /** 209 /**
210 * Creates a media route. 210 * Creates a media route.
211 * Called when the user requests to create a media route. 211 * Called when the user requests to create a media route.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 function onWindowBlur() { 379 function onWindowBlur() {
380 media_router.browserApi.reportBlur(); 380 media_router.browserApi.reportBlur();
381 } 381 }
382 382
383 return { 383 return {
384 initialize: initialize, 384 initialize: initialize,
385 }; 385 };
386 }); 386 });
387 387
388 window.addEventListener('load', media_router.initialize); 388 window.addEventListener('load', media_router.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/media/router/test_helper.h ('k') | chrome/browser/resources/media_router/media_router_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698