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

Side by Side Diff: chrome/browser/resources/media_router/elements/route_details/route_details.js

Issue 1027253004: Add Media Router route-details. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
(Empty)
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
3 // found in the LICENSE file.
4
5 // This Polymer element shows information from media that is currently cast
6 // to a device. It is assumed that the passed in route and sink correspond
7 // with each other.
8 Polymer('route-details', {
9 publish: {
10 /**
11 * The route to show.
12 *
13 * @attribute route
14 * @type {media_router.Route}
15 * @default null
16 */
17 route: null,
18
19 /**
20 * The sink to show.
21 *
22 * @attribute sink
23 * @type {media_router.Sink}
24 * @default null
25 */
26 sink: null,
27 },
28
29 /**
30 * Fires a back-click event. This is called when the back link is clicked.
31 */
32 back: function() {
33 this.fire('back-click');
34 },
35
36 /**
37 * Fires a close-route-click event. This is called when the button to close
38 * the current route is clicked.
39 */
40 closeRoute: function() {
41 this.fire('close-route-click', {route: this.route});
42 },
43 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698