OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 /** | 5 /** |
6 * @fileoverview Element which displays the number of selected items with | 6 * @fileoverview Element which displays the number of selected items with |
7 * Cancel/Delete buttons, designed to be used as an overlay on top of | 7 * Cancel/Delete buttons, designed to be used as an overlay on top of |
8 * <cr-toolbar>. See <history-toolbar> for an example usage. | 8 * <cr-toolbar>. See <history-toolbar> for an example usage. |
9 */ | 9 */ |
10 | 10 |
11 Polymer({ | 11 Polymer({ |
12 is: 'cr-toolbar-selection-overlay', | 12 is: 'cr-toolbar-selection-overlay', |
13 | 13 |
14 properties: { | 14 properties: { |
15 deleteLabel: String, | 15 deleteLabel: String, |
16 | 16 |
17 cancelLabel: String, | 17 cancelLabel: String, |
18 | 18 |
19 selectionLabel: String, | 19 selectionLabel: String, |
20 }, | 20 }, |
21 | 21 |
| 22 /** @return {PaperButtonElement} */ |
| 23 get deleteButton() { |
| 24 return this.$.delete; |
| 25 }, |
| 26 |
22 /** @private */ | 27 /** @private */ |
23 onClearSelectionTap_: function() { | 28 onClearSelectionTap_: function() { |
24 this.fire('clear-selected-items'); | 29 this.fire('clear-selected-items'); |
25 }, | 30 }, |
26 | 31 |
27 /** @private */ | 32 /** @private */ |
28 onDeleteTap_: function() { | 33 onDeleteTap_: function() { |
29 this.fire('delete-selected-items'); | 34 this.fire('delete-selected-items'); |
30 }, | 35 }, |
31 }); | 36 }); |
OLD | NEW |