| // Copyright 2023 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // This file was generated by: |
| // tools/json_schema_compiler/compiler.py. |
| // NOTE: The format of types has changed. 'FooType' is now |
| // 'chrome.imageLoaderPrivate.FooType'. |
| // Please run the closure compiler before committing changes. |
| // See https://chromium.googlesource.com/chromium/src/+/main/docs/closure_compilation.md |
| |
| /** |
| * @fileoverview Externs generated from namespace: imageLoaderPrivate |
| * @externs |
| */ |
| |
| /** @const */ |
| 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) {}; |