OLD | NEW |
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 'use strict'; | 5 'use strict'; |
6 | 6 |
7 /** | 7 /** |
8 * FileManager constructor. | 8 * FileManager constructor. |
9 * | 9 * |
10 * FileManager objects encapsulate the functionality of the file selector | 10 * FileManager objects encapsulate the functionality of the file selector |
(...skipping 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
900 this.dialogType == DialogType.SELECT_UPLOAD_FOLDER || | 900 this.dialogType == DialogType.SELECT_UPLOAD_FOLDER || |
901 this.dialogType == DialogType.SELECT_SAVEAS_FILE; | 901 this.dialogType == DialogType.SELECT_SAVEAS_FILE; |
902 | 902 |
903 var showSpecialSearchRoots = | 903 var showSpecialSearchRoots = |
904 this.dialogType == DialogType.SELECT_OPEN_FILE || | 904 this.dialogType == DialogType.SELECT_OPEN_FILE || |
905 this.dialogType == DialogType.SELECT_OPEN_MULTI_FILE || | 905 this.dialogType == DialogType.SELECT_OPEN_MULTI_FILE || |
906 this.dialogType == DialogType.FULL_PAGE; | 906 this.dialogType == DialogType.FULL_PAGE; |
907 | 907 |
908 this.fileFilter_ = new FileFilter( | 908 this.fileFilter_ = new FileFilter( |
909 this.metadataCache_, | 909 this.metadataCache_, |
910 false /* Don't show dot files by default. */); | 910 true /* Show dot files by default. */); |
911 | 911 |
912 this.fileWatcher_ = new FileWatcher(this.metadataCache_); | 912 this.fileWatcher_ = new FileWatcher(this.metadataCache_); |
913 this.fileWatcher_.addEventListener( | 913 this.fileWatcher_.addEventListener( |
914 'watcher-metadata-changed', | 914 'watcher-metadata-changed', |
915 this.onWatcherMetadataChanged_.bind(this)); | 915 this.onWatcherMetadataChanged_.bind(this)); |
916 | 916 |
917 this.directoryModel_ = new DirectoryModel( | 917 this.directoryModel_ = new DirectoryModel( |
918 singleSelection, | 918 singleSelection, |
919 this.fileFilter_, | 919 this.fileFilter_, |
920 this.fileWatcher_, | 920 this.fileWatcher_, |
(...skipping 2681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3602 callback(this.preferences_); | 3602 callback(this.preferences_); |
3603 return; | 3603 return; |
3604 } | 3604 } |
3605 | 3605 |
3606 chrome.fileBrowserPrivate.getPreferences(function(prefs) { | 3606 chrome.fileBrowserPrivate.getPreferences(function(prefs) { |
3607 this.preferences_ = prefs; | 3607 this.preferences_ = prefs; |
3608 callback(prefs); | 3608 callback(prefs); |
3609 }.bind(this)); | 3609 }.bind(this)); |
3610 }; | 3610 }; |
3611 })(); | 3611 })(); |
OLD | NEW |