| 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 * This object encapsulates everything related to tasks execution. | 6 * This object encapsulates everything related to tasks execution. |
| 7 * | 7 * |
| 8 * @param {FileManager} fileManager FileManager instance. | 8 * @param {FileManager} fileManager FileManager instance. |
| 9 * @param {Object=} opt_params File manager load parameters. | 9 * @param {Object=} opt_params File manager load parameters. |
| 10 * @constructor | 10 * @constructor |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 451 |
| 452 var context = { | 452 var context = { |
| 453 // We show the root label in readonly warning (e.g. archive name). | 453 // We show the root label in readonly warning (e.g. archive name). |
| 454 readonlyDirName: readonlyDirName, | 454 readonlyDirName: readonlyDirName, |
| 455 curDirEntry: currentDir, | 455 curDirEntry: currentDir, |
| 456 saveDirEntry: readonly ? downloadsDir : null, | 456 saveDirEntry: readonly ? downloadsDir : null, |
| 457 searchResults: fm.directoryModel_.isSearching(), | 457 searchResults: fm.directoryModel_.isSearching(), |
| 458 metadataCache: fm.metadataCache_, | 458 metadataCache: fm.metadataCache_, |
| 459 pageState: this.params_, | 459 pageState: this.params_, |
| 460 onClose: onClose, | 460 onClose: onClose, |
| 461 allowMosaic: fm.isOnDrive(), | |
| 462 onThumbnailError: function(imageURL) { | 461 onThumbnailError: function(imageURL) { |
| 463 fm.metadataCache_.refreshFileMetadata(imageURL); | 462 fm.metadataCache_.refreshFileMetadata(imageURL); |
| 464 }, | 463 }, |
| 465 displayStringFunction: strf | 464 displayStringFunction: strf |
| 466 }; | 465 }; |
| 467 galleryFrame.contentWindow.Gallery.open(context, allUrls, urls); | 466 galleryFrame.contentWindow.Gallery.open(context, allUrls, urls); |
| 468 }.bind(this); | 467 }.bind(this); |
| 469 | 468 |
| 470 galleryFrame.src = 'gallery.html'; | 469 galleryFrame.src = 'gallery.html'; |
| 471 fm.openFilePopup_(galleryFrame, fm.updateTitle_.bind(fm)); | 470 fm.openFilePopup_(galleryFrame, fm.updateTitle_.bind(fm)); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 title, | 601 title, |
| 603 message, | 602 message, |
| 604 items, defaultIdx, | 603 items, defaultIdx, |
| 605 onSuccess); | 604 onSuccess); |
| 606 }; | 605 }; |
| 607 | 606 |
| 608 FileTasks.decorate('display'); | 607 FileTasks.decorate('display'); |
| 609 FileTasks.decorate('updateMenuItem'); | 608 FileTasks.decorate('updateMenuItem'); |
| 610 FileTasks.decorate('execute'); | 609 FileTasks.decorate('execute'); |
| 611 FileTasks.decorate('executeDefault'); | 610 FileTasks.decorate('executeDefault'); |
| OLD | NEW |