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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/search_box.js

Issue 900743002: Move preview panel's components to toolbar and footer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a TODO comment about customized CommandButton. Created 5 years, 10 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/file_manager/file_manager/foreground/js/ui/search_box.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/search_box.js b/ui/file_manager/file_manager/foreground/js/ui/search_box.js
index f751b5b90b89c32f16dc3cd48d4cabdde10db2bd..eb3b6c73de7c64e641b4504602348ef837bf2842 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/search_box.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/search_box.js
@@ -181,6 +181,15 @@ SearchBox.prototype.clear = function() {
};
/**
+ * Sets hidden attribute for components of search box.
+ * @param {boolean} hidden True when the search box need to be hidden.
+ */
+SearchBox.prototype.setHidden = function(hidden) {
+ this.element.hidden = hidden;
+ this.searchButton.hidden = hidden;
+}
+
+/**
* @private
*/
SearchBox.prototype.onInput_ = function() {
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/ui/preview_panel_unittest.js ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698