Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_selection_overlay.js

Issue 2893833002: MD Bookmarks: Enable the delete button in the toolbar overlay (Closed)
Patch Set: Fix nit Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_selection_overlay.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 });
OLDNEW
« no previous file with comments | « ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_selection_overlay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698