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

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.
7 Polymer('route-details', {
8 publish: {
9 /**
10 * The route to show.
11 *
12 * @attribute route
13 * @type {media_router.Route}
14 * @default null
15 */
16 route: null,
17 },
18
19 /**
20 * Fires a back-click event. This is called when the back link is clicked.
21 */
22 back: function() {
23 this.fire('back-click');
24 },
25
26 /**
27 * Fires a close-route-click event. This is called when the button to close
28 * the current route is clicked.
29 */
30 closeRoute: function() {
31 this.fire('close-route-click', {route: this.route});
32 },
33 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698