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

Unified Diff: chrome/browser/resources/media_router/elements/issue_banner/issue_banner.js

Issue 1023673008: Add Media Router issue-banner. (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/media_router/elements/issue_banner/issue_banner.js
diff --git a/chrome/browser/resources/media_router/elements/issue_banner/issue_banner.js b/chrome/browser/resources/media_router/elements/issue_banner/issue_banner.js
new file mode 100644
index 0000000000000000000000000000000000000000..fa13a24e52a28e6a5e56323f308f1635da4c69c6
--- /dev/null
+++ b/chrome/browser/resources/media_router/elements/issue_banner/issue_banner.js
@@ -0,0 +1,32 @@
+// 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.
+
+Polymer('issue-banner', {
+ publish: {
+ /**
+ * The issue to show.
+ *
+ * @attribute issue
+ * @type {media_router.Issue}
+ * @default: null
+ */
+ issue: null
+ },
+
+ /**
+ * Fires an issue-action-click event. This is called when an issue action
+ * is clicked.
+ *
+ * @param {!Event} event The event object.
+ * @param {Object} detail The details of the event.
+ * @param {!Element} sender Reference to clicked node.
+ */
+ onClickAction: function(event, detail, sender) {
+ this.fire('issue-action-click', {
+ id: this.issue.id,
+ actionType: parseInt(sender.title),
+ helpURL: this.issue.helpURL
+ });
+ }
+});

Powered by Google App Engine
This is Rietveld 408576698