OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** @fileoverview Externs generated from namespace: fileManagerPrivate */ | 5 /** @fileoverview Externs generated from namespace: fileManagerPrivate */ |
6 | 6 |
7 /** | 7 /** |
8 * @typedef {{ | 8 * @typedef {{ |
9 * scale1xUrl: string, | 9 * scale1xUrl: string, |
10 * scale2xUrl: string | 10 * scale2xUrl: string |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 chrome.fileManagerPrivate.searchDrive = function(searchParams, callback) {}; | 435 chrome.fileManagerPrivate.searchDrive = function(searchParams, callback) {}; |
436 | 436 |
437 /** | 437 /** |
438 * Performs drive metadata search. |searchParams| |callback| | 438 * Performs drive metadata search. |searchParams| |callback| |
439 * @param {SearchMetadataParams} searchParams | 439 * @param {SearchMetadataParams} searchParams |
440 * @param {Function} callback | 440 * @param {Function} callback |
441 */ | 441 */ |
442 chrome.fileManagerPrivate.searchDriveMetadata = function(searchParams, callback)
{}; | 442 chrome.fileManagerPrivate.searchDriveMetadata = function(searchParams, callback)
{}; |
443 | 443 |
444 /** | 444 /** |
| 445 * Search for files in the given volume, whose content hash matches the list of |
| 446 * given hashes. |
| 447 * @param {string} volumeId |
| 448 * @param {!Array<string>} hashes |
| 449 * @param {function(!Object<string, !Array<string>>)} callback |
| 450 */ |
| 451 chrome.fileManagerPrivate.searchFilesByHashes = function(volumeId, hashes, callb
ack) {}; |
| 452 |
| 453 /** |
445 * Create a zip file for the selected files. |dirURL| URL of the directory | 454 * Create a zip file for the selected files. |dirURL| URL of the directory |
446 * containing the selected files. |selectionUrls| URLs of the selected files. | 455 * containing the selected files. |selectionUrls| URLs of the selected files. |
447 * The files must be under the directory specified by dirURL. |destName| | 456 * The files must be under the directory specified by dirURL. |destName| |
448 * Name of the destination zip file. The zip file will be created under the | 457 * Name of the destination zip file. The zip file will be created under the |
449 * directory specified by dirURL. |callback| | 458 * directory specified by dirURL. |callback| |
450 * @param {string} dirURL | 459 * @param {string} dirURL |
451 * @param {Array} selectionUrls | 460 * @param {Array} selectionUrls |
452 * @param {string} destName | 461 * @param {string} destName |
453 * @param {Function=} callback | 462 * @param {Function=} callback |
454 */ | 463 */ |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 chrome.fileManagerPrivate.visitDesktop = function(profileId, callback) {}; | 553 chrome.fileManagerPrivate.visitDesktop = function(profileId, callback) {}; |
545 | 554 |
546 /** | 555 /** |
547 * Opens inspector window. |type| InspectionType which specifies how to open | 556 * Opens inspector window. |type| InspectionType which specifies how to open |
548 * inspector. | 557 * inspector. |
549 * @param {string} type | 558 * @param {string} type |
550 */ | 559 */ |
551 chrome.fileManagerPrivate.openInspector = function(type) {}; | 560 chrome.fileManagerPrivate.openInspector = function(type) {}; |
552 | 561 |
553 /** | 562 /** |
| 563 * Computes an MD5 checksum for the given file. |
| 564 * @param {string} fileUrl |
| 565 * @param {function(string)} callback |
| 566 */ |
| 567 chrome.fileManagerPrivate.computeChecksum = function(fileUrl, callback) {}; |
| 568 |
| 569 /** |
554 * Gets the MIME type of a file. | 570 * Gets the MIME type of a file. |
555 * @param {string} fileUrl File url. | 571 * @param {string} fileUrl File url. |
556 * @param {function(string)} callback Callback that MIME type of the file is | 572 * @param {function(string)} callback Callback that MIME type of the file is |
557 * passed. | 573 * passed. |
558 */ | 574 */ |
559 chrome.fileManagerPrivate.getMimeType = function(fileUrl, callback) {}; | 575 chrome.fileManagerPrivate.getMimeType = function(fileUrl, callback) {}; |
560 | 576 |
561 /** @type {!ChromeEvent} */ | 577 /** @type {!ChromeEvent} */ |
562 chrome.fileManagerPrivate.onMountCompleted; | 578 chrome.fileManagerPrivate.onMountCompleted; |
563 | 579 |
(...skipping 10 matching lines...) Expand all Loading... |
574 chrome.fileManagerPrivate.onPreferencesChanged; | 590 chrome.fileManagerPrivate.onPreferencesChanged; |
575 | 591 |
576 /** @type {!ChromeEvent} */ | 592 /** @type {!ChromeEvent} */ |
577 chrome.fileManagerPrivate.onDriveConnectionStatusChanged; | 593 chrome.fileManagerPrivate.onDriveConnectionStatusChanged; |
578 | 594 |
579 /** @type {!ChromeEvent} */ | 595 /** @type {!ChromeEvent} */ |
580 chrome.fileManagerPrivate.onDeviceChanged; | 596 chrome.fileManagerPrivate.onDeviceChanged; |
581 | 597 |
582 /** @type {!ChromeEvent} */ | 598 /** @type {!ChromeEvent} */ |
583 chrome.fileManagerPrivate.onDriveSyncError; | 599 chrome.fileManagerPrivate.onDriveSyncError; |
OLD | NEW |