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 Polymer({ | 5 Polymer({ |
6 is: 'navigation-bar', | 6 is: 'navigation-bar', |
7 | 7 |
8 properties: { | 8 properties: { |
9 backVisible: { | 9 backVisible: {type: Boolean, value: false}, |
10 type: Boolean, | 10 closeVisible: {type: Boolean, value: false}, |
11 value: false | 11 refreshVisible: {type: Boolean, value: false}, |
12 }, | 12 disabled: {type: Boolean, value: false} |
13 closeVisible: { | |
14 type: Boolean, | |
15 value: false | |
16 }, | |
17 refreshVisible: { | |
18 type: Boolean, | |
19 value: false | |
20 }, | |
21 disabled: { | |
22 type: Boolean, | |
23 value: false | |
24 } | |
25 }, | 13 }, |
26 | 14 |
27 onBack_: function() { this.fire('back'); }, | 15 onBack_: function() { |
28 onClose_: function() { this.fire('close'); }, | 16 this.fire('back'); |
29 onRefresh_: function() { this.fire('refresh'); } | 17 }, |
| 18 onClose_: function() { |
| 19 this.fire('close'); |
| 20 }, |
| 21 onRefresh_: function() { |
| 22 this.fire('refresh'); |
| 23 } |
30 }); | 24 }); |
OLD | NEW |