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

Unified Diff: chrome/browser/resources/media_router/media_router.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/media_router/media_router.js
diff --git a/chrome/browser/resources/media_router/media_router.js b/chrome/browser/resources/media_router/media_router.js
index cd65124a6f4c75e43e7e895b8aaea7e38b4f12f7..9ff13ec81a445e3097daf0d737ffe5046cae95b7 100644
--- a/chrome/browser/resources/media_router/media_router.js
+++ b/chrome/browser/resources/media_router/media_router.js
@@ -28,40 +28,40 @@ cr.define('media_router', function() {
container = /** @type {!MediaRouterContainerElement} */
($('media-router-container'));
- media_router.ui.setElements(container,
- /** @type {!MediaRouterHeaderElement} */(container.header));
+ media_router.ui.setElements(
+ container,
+ /** @type {!MediaRouterHeaderElement} */ (container.header));
- container.addEventListener('acknowledge-first-run-flow',
- onAcknowledgeFirstRunFlow);
+ container.addEventListener(
+ 'acknowledge-first-run-flow', onAcknowledgeFirstRunFlow);
container.addEventListener('back-click', onNavigateToSinkList);
container.addEventListener('cast-mode-selected', onCastModeSelected);
- container.addEventListener('change-route-source-click',
- onChangeRouteSourceClick);
+ container.addEventListener(
+ 'change-route-source-click', onChangeRouteSourceClick);
container.addEventListener('close-dialog', onCloseDialog);
container.addEventListener('close-route', onCloseRoute);
container.addEventListener('create-route', onCreateRoute);
container.addEventListener('issue-action-click', onIssueActionClick);
container.addEventListener('join-route-click', onJoinRouteClick);
- container.addEventListener('navigate-sink-list-to-details',
- onNavigateToDetails);
- container.addEventListener('navigate-to-cast-mode-list',
- onNavigateToCastMode);
+ container.addEventListener(
+ 'navigate-sink-list-to-details', onNavigateToDetails);
+ container.addEventListener(
+ 'navigate-to-cast-mode-list', onNavigateToCastMode);
container.addEventListener(
'select-local-media-file', onSelectLocalMediaFile);
container.addEventListener('report-filter', onFilter);
container.addEventListener('report-initial-action', onInitialAction);
- container.addEventListener('report-initial-action-close',
- onInitialActionClose);
+ container.addEventListener(
+ 'report-initial-action-close', onInitialActionClose);
container.addEventListener('report-route-creation', onReportRouteCreation);
- container.addEventListener('report-sink-click-time',
- onSinkClickTimeReported);
+ container.addEventListener(
+ 'report-sink-click-time', onSinkClickTimeReported);
container.addEventListener('report-sink-count', onSinkCountReported);
- container.addEventListener('report-resolved-route',
- onReportRouteCreationOutcome);
- container.addEventListener('request-initial-data',
- onRequestInitialData);
- container.addEventListener('search-sinks-and-create-route',
- onSearchSinksAndCreateRoute);
+ container.addEventListener(
+ 'report-resolved-route', onReportRouteCreationOutcome);
+ container.addEventListener('request-initial-data', onRequestInitialData);
+ container.addEventListener(
+ 'search-sinks-and-create-route', onSearchSinksAndCreateRoute);
container.addEventListener('show-initial-state', onShowInitialState);
container.addEventListener('sink-click', onSinkClick);
@@ -210,9 +210,8 @@ cr.define('media_router', function() {
function onIssueActionClick(event) {
/** @type {{id: number, actionType: number, helpPageId: number}} */
var detail = event.detail;
- media_router.browserApi.actOnIssue(detail.id,
- detail.actionType,
- detail.helpPageId);
+ media_router.browserApi.actOnIssue(
+ detail.id, detail.actionType, detail.helpPageId);
container.issue = null;
}
@@ -228,8 +227,8 @@ cr.define('media_router', function() {
function onCreateRoute(event) {
/** @type {{sinkId: string, selectedCastModeValue: number}} */
var detail = event.detail;
- media_router.browserApi.requestRoute(detail.sinkId,
- detail.selectedCastModeValue);
+ media_router.browserApi.requestRoute(
+ detail.sinkId, detail.selectedCastModeValue);
}
/**

Powered by Google App Engine
This is Rietveld 408576698