| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This Polymer element is used to show information about issues related | 5 // This Polymer element is used to show information about issues related |
| 6 // to casting. | 6 // to casting. |
| 7 Polymer({ | 7 Polymer({ |
| 8 is: 'issue-banner', | 8 is: 'issue-banner', |
| 9 | 9 |
| 10 properties: { | 10 properties: { |
| 11 /** | 11 /** |
| 12 * The current view to be shown. | |
| 13 * @private {media_router.MediaRouterView} | |
| 14 */ | |
| 15 currentView_: { | |
| 16 type: String, | |
| 17 readOnly: true, | |
| 18 value: media_router.MediaRouterView.ISSUE, | |
| 19 }, | |
| 20 | |
| 21 /** | |
| 22 * The text shown in the default action button. | 12 * The text shown in the default action button. |
| 23 * @private {string} | 13 * @private {string} |
| 24 */ | 14 */ |
| 25 defaultActionButtonText_: { | 15 defaultActionButtonText_: { |
| 26 type: String, | 16 type: String, |
| 27 value: '', | 17 value: '', |
| 28 }, | 18 }, |
| 29 | 19 |
| 30 /** | 20 /** |
| 31 * The header text. | |
| 32 * @private {string} | |
| 33 */ | |
| 34 headerText_: { | |
| 35 type: String, | |
| 36 readOnly: true, | |
| 37 value: loadTimeData.getString('issueHeader'), | |
| 38 }, | |
| 39 | |
| 40 /** | |
| 41 * The issue to show. | 21 * The issue to show. |
| 42 * @type {?media_router.Issue} | 22 * @type {?media_router.Issue} |
| 43 */ | 23 */ |
| 44 issue: { | 24 issue: { |
| 45 type: Object, | 25 type: Object, |
| 46 value: null, | 26 value: null, |
| 47 observer: 'updateActionButtonText_', | 27 observer: 'updateActionButtonText_', |
| 48 }, | 28 }, |
| 49 | 29 |
| 50 /** | 30 /** |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 secondaryText = loadTimeData.getString( | 136 secondaryText = loadTimeData.getString( |
| 157 this.issueActionTypeToButtonTextResource_[ | 137 this.issueActionTypeToButtonTextResource_[ |
| 158 this.issue.secondaryActionType]); | 138 this.issue.secondaryActionType]); |
| 159 } | 139 } |
| 160 } | 140 } |
| 161 | 141 |
| 162 this.defaultActionButtonText_ = defaultText; | 142 this.defaultActionButtonText_ = defaultText; |
| 163 this.secondaryActionButtonText_ = secondaryText; | 143 this.secondaryActionButtonText_ = secondaryText; |
| 164 }, | 144 }, |
| 165 }); | 145 }); |
| OLD | NEW |