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

Unified Diff: ui/file_manager/file_manager/foreground/js/ui/combobutton.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/combobutton.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/combobutton.js b/ui/file_manager/file_manager/foreground/js/ui/combobutton.js
index b87d69ac185307eb47da6f019b5ad45a12371453..8a4b72a8f17c005ea2393f28b56fde17e171b3f1 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/combobutton.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/combobutton.js
@@ -58,23 +58,7 @@ cr.define('cr.ui', function() {
},
set defaultItem(defaultItem) {
this.defaultItem_ = defaultItem;
-
this.actionNode_.textContent = defaultItem.label || '';
-
- if (defaultItem.iconType) {
- this.actionNode_.classList.add('with-icon');
- this.actionNode_.style.backgroundImage = '';
- this.actionNode_.setAttribute('file-type-icon', defaultItem.iconType);
- } else if (defaultItem.iconUrl) {
- this.actionNode_.classList.add('with-icon');
- this.actionNode_.style.backgroundImage =
- 'url(' + defaultItem.iconUrl + ')';
- this.actionNode_.removeAttribute('file-type-icon');
- } else {
- this.actionNode_.classList.remove('with-icon');
- this.actionNode_.style.backgroundImage = '';
- this.actionNode_.removeAttribute('file-type-icon');
- }
},
/**

Powered by Google App Engine
This is Rietveld 408576698