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

Side by Side Diff: chrome/browser/resources/file_manager/js/file_manager.js

Issue 10222005: Reapply https://chromiumcodereview.appspot.com/10204015. Fix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/file_manager/js/directory_model.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 this.compareType_.bind(this)); 611 this.compareType_.bind(this));
612 612
613 dataModel.addEventListener('splice', 613 dataModel.addEventListener('splice',
614 this.onDataModelSplice_.bind(this)); 614 this.onDataModelSplice_.bind(this));
615 dataModel.addEventListener('permuted', 615 dataModel.addEventListener('permuted',
616 this.onDataModelPermuted_.bind(this)); 616 this.onDataModelPermuted_.bind(this));
617 617
618 this.directoryModel_.getFileListSelection().addEventListener( 618 this.directoryModel_.getFileListSelection().addEventListener(
619 'change', this.onSelectionChanged_.bind(this)); 619 'change', this.onSelectionChanged_.bind(this));
620 620
621 this.directoryModel_.setAutoSelectIndex(
622 this.dialogType_ == FileManager.DialogType.SELECT_SAVEAS_FILE ? -1 : 0);
623
624 this.initTable_(); 621 this.initTable_();
625 this.initGrid_(); 622 this.initGrid_();
626 this.initRootsList_(); 623 this.initRootsList_();
627 624
628 var listType = FileManager.ListType.DETAIL; 625 var listType = FileManager.ListType.DETAIL;
629 if (FileManager.DialogType.isModal(this.dialogType_)) 626 if (FileManager.DialogType.isModal(this.dialogType_))
630 listType = window.localStorage['listType-' + this.dialogType_] || 627 listType = window.localStorage['listType-' + this.dialogType_] ||
631 FileManager.ListType.DETAIL; 628 FileManager.ListType.DETAIL;
632 this.setListType(listType); 629 this.setListType(listType);
633 630
(...skipping 3714 matching lines...) Expand 10 before | Expand all | Expand 10 after
4348 4345
4349 this.directoryModel_.addEventListener('scan-completed', maybeShowBanner); 4346 this.directoryModel_.addEventListener('scan-completed', maybeShowBanner);
4350 this.directoryModel_.addEventListener('rescan-completed', maybeShowBanner); 4347 this.directoryModel_.addEventListener('rescan-completed', maybeShowBanner);
4351 4348
4352 var style = this.document_.createElement('link'); 4349 var style = this.document_.createElement('link');
4353 style.rel = 'stylesheet'; 4350 style.rel = 'stylesheet';
4354 style.href = 'css/gdrive_welcome.css'; 4351 style.href = 'css/gdrive_welcome.css';
4355 this.document_.head.appendChild(style); 4352 this.document_.head.appendChild(style);
4356 }; 4353 };
4357 })(); 4354 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/file_manager/js/directory_model.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698