| Index: chrome/browser/resources/media_router/elements/route_details/route_details.js
|
| diff --git a/chrome/browser/resources/media_router/elements/route_details/route_details.js b/chrome/browser/resources/media_router/elements/route_details/route_details.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..530320860064053269039a7cc83deb94f08cee44
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/media_router/elements/route_details/route_details.js
|
| @@ -0,0 +1,43 @@
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +// This Polymer element shows information from media that is currently cast
|
| +// to a device. It is assumed that the passed in route and sink correspond
|
| +// with each other.
|
| +Polymer('route-details', {
|
| + publish: {
|
| + /**
|
| + * The route to show.
|
| + *
|
| + * @attribute route
|
| + * @type {media_router.Route}
|
| + * @default null
|
| + */
|
| + route: null,
|
| +
|
| + /**
|
| + * The sink to show.
|
| + *
|
| + * @attribute sink
|
| + * @type {media_router.Sink}
|
| + * @default null
|
| + */
|
| + sink: null,
|
| + },
|
| +
|
| + /**
|
| + * Fires a back-click event. This is called when the back link is clicked.
|
| + */
|
| + back: function() {
|
| + this.fire('back-click');
|
| + },
|
| +
|
| + /**
|
| + * Fires a close-route-click event. This is called when the button to close
|
| + * the current route is clicked.
|
| + */
|
| + closeRoute: function() {
|
| + this.fire('close-route-click', {route: this.route});
|
| + },
|
| +});
|
|
|