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

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

Issue 1990323002: [Media Router WebUI] Handle route details in incognito. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 7 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 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 * 82 *
83 * @param {{deviceMissingUrl: string, 83 * @param {{deviceMissingUrl: string,
84 * sinksAndIdentity: { 84 * sinksAndIdentity: {
85 * sinks: !Array<!media_router.Sink>, 85 * sinks: !Array<!media_router.Sink>,
86 * showEmail: boolean, 86 * showEmail: boolean,
87 * userEmail: string, 87 * userEmail: string,
88 * showDomain: boolean, 88 * showDomain: boolean,
89 * userDomain: string 89 * userDomain: string
90 * }, 90 * },
91 * routes: !Array<!media_router.Route>, 91 * routes: !Array<!media_router.Route>,
92 * castModes: !Array<!media_router.CastMode>}} data 92 * castModes: !Array<!media_router.CastMode>,
93 * isOffTheRecord: boolean}} data
93 * Parameters in data: 94 * Parameters in data:
94 * deviceMissingUrl - url to be opened on "Device missing?" clicked. 95 * deviceMissingUrl - url to be opened on "Device missing?" clicked.
95 * sinksAndIdentity - list of sinks to be displayed and user identity. 96 * sinksAndIdentity - list of sinks to be displayed and user identity.
96 * routes - list of routes that are associated with the sinks. 97 * routes - list of routes that are associated with the sinks.
97 * castModes - list of available cast modes. 98 * castModes - list of available cast modes.
99 * isOffTheRecord - whether or not the browser is currently incognito.
98 */ 100 */
99 function setInitialData(data) { 101 function setInitialData(data) {
100 container.deviceMissingUrl = data['deviceMissingUrl']; 102 container.deviceMissingUrl = data['deviceMissingUrl'];
101 container.castModeList = data['castModes']; 103 container.castModeList = data['castModes'];
102 this.setSinkListAndIdentity(data['sinksAndIdentity']); 104 this.setSinkListAndIdentity(data['sinksAndIdentity']);
105 container.isOffTheRecord = data['isOffTheRecord'];
103 container.routeList = data['routes']; 106 container.routeList = data['routes'];
104 container.maybeShowRouteDetailsOnOpen(); 107 container.maybeShowRouteDetailsOnOpen();
105 media_router.browserApi.onInitialDataReceived(); 108 media_router.browserApi.onInitialDataReceived();
106 } 109 }
107 110
108 /** 111 /**
109 * Sets current issue to |issue|, or clears the current issue if |issue| is 112 * Sets current issue to |issue|, or clears the current issue if |issue| is
110 * null. 113 * null.
111 * 114 *
112 * @param {?media_router.Issue} issue 115 * @param {?media_router.Issue} issue
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 reportRouteCreation: reportRouteCreation, 376 reportRouteCreation: reportRouteCreation,
374 reportRouteCreationOutcome: reportRouteCreationOutcome, 377 reportRouteCreationOutcome: reportRouteCreationOutcome,
375 reportSelectedCastMode: reportSelectedCastMode, 378 reportSelectedCastMode: reportSelectedCastMode,
376 reportSinkCount: reportSinkCount, 379 reportSinkCount: reportSinkCount,
377 reportTimeToClickSink: reportTimeToClickSink, 380 reportTimeToClickSink: reportTimeToClickSink,
378 reportTimeToInitialActionClose: reportTimeToInitialActionClose, 381 reportTimeToInitialActionClose: reportTimeToInitialActionClose,
379 requestInitialData: requestInitialData, 382 requestInitialData: requestInitialData,
380 requestRoute: requestRoute, 383 requestRoute: requestRoute,
381 }; 384 };
382 }); 385 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698