* @fileoverview Externs generated from namespace: imageLoaderPrivate
* @externs
*/
chrome.imageLoaderPrivate = {};
* For a file in DriveFS, retrieves its thumbnail. If |cropToSquare| is true,
* returns a thumbnail appropriate for file list or grid views; otherwise,
* returns a thumbnail appropriate for quickview.
* @param {string} url
* @param {boolean} cropToSquare
* @param {function(string): void} callback |thumbnailDataUrl| A data URL for
* the thumbnail; |thumbnailDataUrl| is empty if no thumbnail was available.
*/
chrome.imageLoaderPrivate.getDriveThumbnail = function(url, cropToSquare, callback) {};
* For a local PDF file, retrieves its thumbnail with a given |width| and
* |height|.
* @param {string} url
* @param {number} width
* @param {number} height
* @param {function(string): void} callback |thumbnailDataUrl| A data URL for
* the thumbnail; |thumbnailDataUrl| is empty if no thumbnail was available.
*/
chrome.imageLoaderPrivate.getPdfThumbnail = function(url, width, height, callback) {};
* Retrieves a thumbnail of an ARC DocumentsProvider file, closely matching the
* hinted size specified by |widthHint| and |heightHint|, but not necessarily
* the exact size. |callback| is called with thumbnail data encoded as a data
* URL. If the document does not support thumbnails, |callback| is called with
* an empty string. Note: The thumbnail data may originate from third-party
* application code, and is untrustworthy (Security).
* @param {string} url
* @param {number} widthHint
* @param {number} heightHint
* @param {function(string): void} callback |thumbnailDataUrl| A data URL for
* the thumbnail; |thumbnailDataUrl| is empty if no thumbnail was available.
*/
chrome.imageLoaderPrivate.getArcDocumentsProviderThumbnail = function(url, widthHint, heightHint, callback) {};