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

Unified 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: Rebase 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 side-by-side diff with in-line comments
Download patch
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});
+ },
+});

Powered by Google App Engine
This is Rietveld 408576698