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 /** | 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 2184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2195 selection.fileCount += 1; | 2195 selection.fileCount += 1; |
2196 selection.showBytes |= !FileType.isHosted(entry); | 2196 selection.showBytes |= !FileType.isHosted(entry); |
2197 } else { | 2197 } else { |
2198 selection.directoryCount += 1; | 2198 selection.directoryCount += 1; |
2199 } | 2199 } |
2200 selection.totalCount++; | 2200 selection.totalCount++; |
2201 } | 2201 } |
2202 | 2202 |
2203 // Now this.selection is complete. Update buttons. | 2203 // Now this.selection is complete. Update buttons. |
2204 this.updateCommonActionButtons_(); | 2204 this.updateCommonActionButtons_(); |
| 2205 this.updatePreviewPanelVisibility_(); |
2205 this.updateSearchBreadcrumbs_(); | 2206 this.updateSearchBreadcrumbs_(); |
2206 this.updatePreviewPanelVisibility_(); | |
2207 forcedShowTimeout = setTimeout(showThumbnails, | 2207 forcedShowTimeout = setTimeout(showThumbnails, |
2208 FileManager.THUMBNAIL_SHOW_DELAY); | 2208 FileManager.THUMBNAIL_SHOW_DELAY); |
2209 onThumbnailLoaded(); | 2209 onThumbnailLoaded(); |
2210 | 2210 |
2211 this.setDefaultActionMenuItem(null); | 2211 this.setDefaultActionMenuItem(null); |
2212 | 2212 |
2213 if (this.dialogType_ == FileManager.DialogType.FULL_PAGE && | 2213 if (this.dialogType_ == FileManager.DialogType.FULL_PAGE && |
2214 selection.directoryCount == 0 && selection.fileCount > 0) { | 2214 selection.directoryCount == 0 && selection.fileCount > 0) { |
2215 selection.tasks = new FileTasks(this, selection.urls). | 2215 selection.tasks = new FileTasks(this, selection.urls). |
2216 display(this.taskItems_). | 2216 display(this.taskItems_). |
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4180 } | 4180 } |
4181 | 4181 |
4182 var defaultActionSeparator = | 4182 var defaultActionSeparator = |
4183 this.dialogDom_.querySelector('#default-action-separator'); | 4183 this.dialogDom_.querySelector('#default-action-separator'); |
4184 | 4184 |
4185 this.defaultActionMenuItem_.hidden = !taskItem; | 4185 this.defaultActionMenuItem_.hidden = !taskItem; |
4186 defaultActionSeparator.hidden = !taskItem; | 4186 defaultActionSeparator.hidden = !taskItem; |
4187 } | 4187 } |
4188 })(); | 4188 })(); |
4189 | 4189 |
OLD | NEW |