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

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

Issue 2004263002: [Do not commit] MD History: Experimentally implement cr-toolbar using cr-search-field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 356866d0a0b7b8224911f2aa1bc2a8c8bf15cfa1..ff69a07de8c02eec80a040015ffd6d4ca5cf001f 100644
--- a/chrome/browser/resources/md_history/history_toolbar.js
+++ b/chrome/browser/resources/md_history/history_toolbar.js
@@ -88,10 +88,10 @@ Polymer({
return;
this.searchTerm = search;
- var searchField = /** @type {SearchField} */(this.$['search-input']);
- searchField.showAndFocus().then(function(showing) {
- if (showing) searchField.setValue(search);
- });
+ var toolbar = /** @type {!CrToolbarElement} */(this.$['main-toolbar']);
+ //toolbar.showAndFocus().then(function(showing) {
+ //if (showing) toolbar.setValue(search);
+ //});
},
/**
@@ -104,8 +104,8 @@ Polymer({
attached: function() {
this.searchFieldDelegate_ = new ToolbarSearchFieldDelegate(this);
- /** @type {SearchField} */(this.$['search-input'])
- .setDelegate(this.searchFieldDelegate_);
+ /** @type {!CrToolbarElement} */(this.$['main-toolbar'])
+ //.setDelegate(this.searchFieldDelegate_);
},
onClearSelectionTap_: function() {

Powered by Google App Engine
This is Rietveld 408576698