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

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

Issue 867033003: Change Files app's banner controller into a banners UI class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/file_manager_ui.js
diff --git a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
index 6fb84305f8122e1911c9823ac2909b723f3238c6..236d439bfaf4d0f9b756fdc800708ccc55e060d4 100644
--- a/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
+++ b/ui/file_manager/file_manager/foreground/js/ui/file_manager_ui.js
@@ -226,6 +226,12 @@ function FileManagerUI(element, launchParam) {
};
/**
+ * Banners in the file list.
+ * @type {Banners}
+ */
+ this.banners = null;
+
+ /**
* Dialog footer.
* @type {!DialogFooter}
*/
@@ -331,6 +337,15 @@ FileManagerUI.prototype.initDirectoryTree = function(directoryTree) {
};
/**
+ * TODO(mtomasz): Merge the method into initAdditionalUI if possible.
+ * @param {!Banners} banners
+ */
+FileManagerUI.prototype.initBanners = function(banners) {
+ this.banners = banners;
+ this.banners.addEventListener('relayout', this.relayout.bind(this));
+};
+
+/**
* Relayouts the UI.
*/
FileManagerUI.prototype.relayout = function() {
« no previous file with comments | « ui/file_manager/file_manager/foreground/js/ui/drive_banners.js ('k') | ui/file_manager/file_manager/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698