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

Side by Side Diff: third_party/closure_compiler/externs/file_manager_private.js

Issue 883993003: Files.app: Add missing externs for FileManagerPrivate APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
« 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 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
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
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
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;
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