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. | 12 * The current view to be shown. |
13 * @private {media_router.MediaRouterView} | 13 * @private {media_router.MediaRouterView} |
14 */ | 14 */ |
15 currentView_: { | 15 currentView_: { |
imcheng
2015/11/09 21:23:32
Looks like this can be removed.
apacible
2015/11/09 22:43:20
Done.
| |
16 type: String, | 16 type: String, |
17 readOnly: true, | 17 readOnly: true, |
18 value: media_router.MediaRouterView.ISSUE, | 18 value: media_router.MediaRouterView.ISSUE, |
19 }, | 19 }, |
20 | 20 |
21 /** | 21 /** |
22 * The text shown in the default action button. | 22 * The text shown in the default action button. |
23 * @private {string} | 23 * @private {string} |
24 */ | 24 */ |
25 defaultActionButtonText_: { | 25 defaultActionButtonText_: { |
26 type: String, | 26 type: String, |
27 value: '', | 27 value: '', |
28 }, | 28 }, |
29 | 29 |
30 /** | 30 /** |
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. | 31 * The issue to show. |
42 * @type {?media_router.Issue} | 32 * @type {?media_router.Issue} |
43 */ | 33 */ |
44 issue: { | 34 issue: { |
45 type: Object, | 35 type: Object, |
46 value: null, | 36 value: null, |
47 observer: 'updateActionButtonText_', | 37 observer: 'updateActionButtonText_', |
48 }, | 38 }, |
49 | 39 |
50 /** | 40 /** |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
156 secondaryText = loadTimeData.getString( | 146 secondaryText = loadTimeData.getString( |
157 this.issueActionTypeToButtonTextResource_[ | 147 this.issueActionTypeToButtonTextResource_[ |
158 this.issue.secondaryActionType]); | 148 this.issue.secondaryActionType]); |
159 } | 149 } |
160 } | 150 } |
161 | 151 |
162 this.defaultActionButtonText_ = defaultText; | 152 this.defaultActionButtonText_ = defaultText; |
163 this.secondaryActionButtonText_ = secondaryText; | 153 this.secondaryActionButtonText_ = secondaryText; |
164 }, | 154 }, |
165 }); | 155 }); |
OLD | NEW |