| 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 * This variable is checked in SelectFileDialogExtensionBrowserTest. | 8 * This variable is checked in SelectFileDialogExtensionBrowserTest. |
| 9 * @type {number} | 9 * @type {number} |
| 10 */ | 10 */ |
| (...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1299 // Preload a thumbnail if the new copied entry an image. | 1299 // Preload a thumbnail if the new copied entry an image. |
| 1300 var metadata = entry.getMetadata(function(metadata) { | 1300 var metadata = entry.getMetadata(function(metadata) { |
| 1301 var url = entry.toURL(); | 1301 var url = entry.toURL(); |
| 1302 var thumbnailLoader_ = new ThumbnailLoader( | 1302 var thumbnailLoader_ = new ThumbnailLoader( |
| 1303 url, | 1303 url, |
| 1304 ThumbnailLoader.LoaderType.CANVAS, | 1304 ThumbnailLoader.LoaderType.CANVAS, |
| 1305 metadata, | 1305 metadata, |
| 1306 undefined, // Media type. | 1306 undefined, // Media type. |
| 1307 FileType.isOnDrive(url) ? | 1307 FileType.isOnDrive(url) ? |
| 1308 ThumbnailLoader.UseEmbedded.USE_EMBEDDED : | 1308 ThumbnailLoader.UseEmbedded.USE_EMBEDDED : |
| 1309 ThumbnailLoader.UseEmbedded.NO_EMBEDDED); | 1309 ThumbnailLoader.UseEmbedded.NO_EMBEDDED, |
| 1310 10); // Very low priority. |
| 1310 thumbnailLoader_.loadDetachedImage(function(success) {}); | 1311 thumbnailLoader_.loadDetachedImage(function(success) {}); |
| 1311 }); | 1312 }); |
| 1312 } | 1313 } |
| 1313 } | 1314 } |
| 1314 }; | 1315 }; |
| 1315 | 1316 |
| 1316 /** | 1317 /** |
| 1317 * Fills the file type list or hides it. | 1318 * Fills the file type list or hides it. |
| 1318 * @private | 1319 * @private |
| 1319 */ | 1320 */ |
| (...skipping 2333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3653 * Set the flag expressing whether the ctrl key is pressed or not. | 3654 * Set the flag expressing whether the ctrl key is pressed or not. |
| 3654 * @param {boolean} flag New value of the flag | 3655 * @param {boolean} flag New value of the flag |
| 3655 * @private | 3656 * @private |
| 3656 */ | 3657 */ |
| 3657 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { | 3658 FileManager.prototype.setCtrlKeyPressed_ = function(flag) { |
| 3658 this.ctrlKeyPressed_ = flag; | 3659 this.ctrlKeyPressed_ = flag; |
| 3659 this.document_.querySelector('#drive-clear-local-cache').canExecuteChange(); | 3660 this.document_.querySelector('#drive-clear-local-cache').canExecuteChange(); |
| 3660 this.document_.querySelector('#drive-reload').canExecuteChange(); | 3661 this.document_.querySelector('#drive-reload').canExecuteChange(); |
| 3661 }; | 3662 }; |
| 3662 })(); | 3663 })(); |
| OLD | NEW |