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

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

Issue 71503003: [Files.app] Show files beginning with '.' (dot) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « no previous file | 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 '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
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
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 })();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698