OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
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 | |
8 * <cr-toolbar>. See <history-toolbar> for an example usage. | |
9 */ | |
10 | |
11 Polymer({ | |
12 is: 'cr-toolbar-selection-overlay', | |
13 | |
14 properties: { | |
15 deleteLabel: String, | |
16 | |
17 cancelLabel: String, | |
18 | |
19 selectionLabel: String, | |
20 }, | |
21 | |
22 /** @private */ | |
23 onClearSelectionTap_: function() { | |
24 this.fire('clear-selected-items'); | |
25 }, | |
26 | |
27 /** @private */ | |
28 onDeleteTap_: function() { | |
Dan Beam
2017/04/11 00:39:01
nit: just name this deleteSelectedItems() and make
tsergeant
2017/04/11 01:16:20
Done, although the method being called from tests
| |
29 this.fire('delete-selected-items'); | |
30 }, | |
31 }); | |
OLD | NEW |