Chromium Code Reviews| 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..fcf9c2646528a191b5158df005df28417d0454af |
| --- /dev/null |
| +++ b/chrome/browser/resources/media_router/elements/issue_banner/issue_banner.js |
| @@ -0,0 +1,37 @@ |
| +// 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 |
| + }, |
| + |
| + created: function() { |
|
Jeremy Klein
2015/04/06 21:07:32
You can remove this whole function.
apacible
2015/04/06 21:28:44
Done.
|
| + this.issue; |
| + }, |
| + |
| + /** |
| + * Fires an issue-action-click event. This is called when an issue action |
| + * is clicked. |
| + * |
| + * @this {issue-banner} |
|
Jeremy Klein
2015/04/06 21:07:32
Do you need this?
apacible
2015/04/06 21:28:44
Removed.
|
| + * @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 |
| + }); |
| + } |
| +}); |