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

Side by Side Diff: ui/file_manager/file_manager/foreground/js/file_manager.js

Issue 840863004: Files.app: Add a new column in table view to reflect cloud import status. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-export drive badge icons from svg. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * FileManager constructor. 6 * FileManager constructor.
7 * 7 *
8 * FileManager objects encapsulate the functionality of the file selector 8 * FileManager objects encapsulate the functionality of the file selector
9 * dialogs, as well as the full screen file manager application (though the 9 * dialogs, as well as the full screen file manager application (though the
10 * latter is not yet implemented). 10 * latter is not yet implemented).
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 715
716 // Initialize the dialog. 716 // Initialize the dialog.
717 FileManagerDialogBase.setFileManager(this); 717 FileManagerDialogBase.setFileManager(this);
718 718
719 var table = queryRequiredElement(dom, '.detail-table'); 719 var table = queryRequiredElement(dom, '.detail-table');
720 // TODO(smckay): Work out the cloud import UI when in list view. 720 // TODO(smckay): Work out the cloud import UI when in list view.
721 FileTable.decorate( 721 FileTable.decorate(
722 table, 722 table,
723 this.metadataCache_, 723 this.metadataCache_,
724 this.volumeManager_, 724 this.volumeManager_,
725 this.historyLoader_,
725 this.dialogType == DialogType.FULL_PAGE); 726 this.dialogType == DialogType.FULL_PAGE);
726 var grid = queryRequiredElement(dom, '.thumbnail-grid'); 727 var grid = queryRequiredElement(dom, '.thumbnail-grid');
727 FileGrid.decorate( 728 FileGrid.decorate(
728 grid, 729 grid,
729 this.metadataCache_, 730 this.metadataCache_,
730 this.volumeManager_, 731 this.volumeManager_,
731 this.historyLoader_); 732 this.historyLoader_);
732 733
733 this.addHistoryObserver_(); 734 this.addHistoryObserver_();
734 735
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 // Ignore any entry that isn't an immediate child of the 797 // Ignore any entry that isn't an immediate child of the
797 // current directory. 798 // current directory.
798 util.isChildEntry(event.entry, this.getCurrentDirectoryEntry()) 799 util.isChildEntry(event.entry, this.getCurrentDirectoryEntry())
799 .then( 800 .then(
800 /** 801 /**
801 * @param {boolean} isChild 802 * @param {boolean} isChild
802 * @this {FileManager} 803 * @this {FileManager}
803 */ 804 */
804 function(isChild) { 805 function(isChild) {
805 if (isChild) { 806 if (isChild) {
806 // TODO(smckay): Update listview when that view is visible. 807 // TODO(smckay): Update listview when that view is visible.
Steve McKay 2015/01/14 20:30:16 Nuke the todo. Also, do we need to avoid updating
Ben Kwa 2015/01/15 16:36:56 Done. Re updating one or the other - the code in L
807 this.ui_.listContainer.grid.updateListItemsMetadata( 808 this.ui_.listContainer.grid.updateListItemsMetadata(
808 'import-history', 809 'import-history',
809 [event.entry]); 810 [event.entry]);
811 this.ui_.listContainer.table.updateListItemsMetadata(
812 'import-history',
813 [event.entry]);
810 } 814 }
811 }.bind(this)); 815 }.bind(this));
812 }; 816 };
813 817
814 /** 818 /**
815 * Constructs table and grid (heavy operation). 819 * Constructs table and grid (heavy operation).
816 * @private 820 * @private
817 **/ 821 **/
818 FileManager.prototype.initFileList_ = function() { 822 FileManager.prototype.initFileList_ = function() {
819 var singleSelection = 823 var singleSelection =
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 out += this.initializeQueue_.pendingTasks[key].toString() + '\n'; 1275 out += this.initializeQueue_.pendingTasks[key].toString() + '\n';
1272 }.bind(this)); 1276 }.bind(this));
1273 1277
1274 out += '2. VolumeManagerWrapper\n' + 1278 out += '2. VolumeManagerWrapper\n' +
1275 this.volumeManager_.toString() + '\n'; 1279 this.volumeManager_.toString() + '\n';
1276 1280
1277 out += 'End of debug information.'; 1281 out += 'End of debug information.';
1278 console.log(out); 1282 console.log(out);
1279 }; 1283 };
1280 })(); 1284 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698