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

Unified Diff: chrome/browser/resources/md_history/history_toolbar.js

Issue 2800603002: MD WebUI: Pull 'X selected' toolbar overlay from History into shared element (Closed)
Patch Set: dbeam review comments 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/md_history/history_toolbar.js
diff --git a/chrome/browser/resources/md_history/history_toolbar.js b/chrome/browser/resources/md_history/history_toolbar.js
index 2a42bd58ebb96704aee198d559a25a5c812e5139..62da493f7ab10c6fe845a6626fd2c89d85b80a84 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -96,6 +96,14 @@ Polymer({
this.searchField.showAndFocus();
},
+ deleteSelectedItems: function() {
+ this.fire('delete-selected');
+ },
+
+ clearSelectedItems: function() {
+ this.fire('unselect-all');
+ },
+
/**
* Changes the toolbar background color depending on whether any history items
* are currently selected.
@@ -169,16 +177,6 @@ Polymer({
},
/** @private */
- onClearSelectionTap_: function() {
- this.fire('unselect-all');
- },
-
- /** @private */
- onDeleteTap_: function() {
- this.fire('delete-selected');
- },
-
- /** @private */
numberOfItemsSelected_: function(count) {
return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : '';
},
« no previous file with comments | « chrome/browser/resources/md_history/history_toolbar.html ('k') | chrome/browser/resources/md_history/lazy_load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698