OLD | NEW |
(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 }); |
OLD | NEW |