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

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

Issue 2118383003: MD History: add shortcuts for search (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test change Created 4 years, 5 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 13f9c35d6c704424fc288305e4f4d533a484c1ca..d9e85ec15b600f13cc9f29b66a309fdf775c540a 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -96,6 +96,12 @@ Polymer({
this.fire('delete-selected');
},
+ showSearchField: function() {
+ /** @type {!CrToolbarElement} */(this.$['main-toolbar'])
+ .getSearchField()
+ .showAndFocus();
+ },
+
/**
* If the user is a supervised user the delete button is not shown.
* @private
« no previous file with comments | « chrome/browser/resources/md_history/history.html ('k') | chrome/test/data/webui/md_history/history_overflow_menu_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698