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

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

Issue 2912893002: MD Bookmarks: Support policies for disabling bookmark editing (Closed)
Patch Set: canEdit -> globalCanEdit Created 3 years, 6 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
21 deleteDisabled: Boolean,
20 }, 22 },
21 23
22 /** @return {PaperButtonElement} */ 24 /** @return {PaperButtonElement} */
23 get deleteButton() { 25 get deleteButton() {
24 return this.$.delete; 26 return this.$.delete;
25 }, 27 },
26 28
27 /** @private */ 29 /** @private */
28 onClearSelectionTap_: function() { 30 onClearSelectionTap_: function() {
29 this.fire('clear-selected-items'); 31 this.fire('clear-selected-items');
30 }, 32 },
31 33
32 /** @private */ 34 /** @private */
33 onDeleteTap_: function() { 35 onDeleteTap_: function() {
34 this.fire('delete-selected-items'); 36 this.fire('delete-selected-items');
35 }, 37 },
36 }); 38 });
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