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

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

Issue 2800603002: MD WebUI: Pull 'X selected' toolbar overlay from History into shared element (Closed)
Patch Set: Tweak CSS again Created 3 years, 8 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
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698