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

Unified Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js

Issue 2152753003: MD History: Fix forward slash key not working in search field (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js
diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js
index 69f7d8efea827e83b99f64137e49376f762c4da0..39cc09b506fa76fc2b0f8a908d7024891a15ec6f 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js
@@ -90,5 +90,13 @@ Polymer({
hideSearch_: function(e) {
this.showingSearch = false;
e.stopPropagation();
+ },
+
+ /**
+ * Return if the search field is showing or not.
+ * @return {boolean}
+ */
+ showingSearchStatus: function() {
Dan Beam 2016/07/15 03:07:41 why is this needed if this.showingSearch is alread
lshang 2016/07/15 05:02:09 Done. Deleted.
+ return this.showingSearch;
}
});

Powered by Google App Engine
This is Rietveld 408576698