| OLD | NEW |
| (Empty) |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 'use strict'; | |
| 6 | |
| 7 /** | |
| 8 * The Chrome File System Provider API. | |
| 9 * @see https://developer.chrome.com/apps/fileSystemProvider | |
| 10 * @const | |
| 11 */ | |
| 12 chrome.fileSystemProvider = {}; | |
| 13 | |
| 14 /** | |
| 15 * @see https://developer.chrome.com/apps/fileSystemProvider#method-get | |
| 16 * @param {string} fileSystemId | |
| 17 * @param {function(!FileSystemInfo)} callback | |
| 18 */ | |
| 19 chrome.fileSystemProvider.get = function(fileSystemId, callback) {}; | |
| 20 | |
| 21 /** | |
| 22 * @see https://developer.chrome.com/apps/fileSystemProvider#method-mount | |
| 23 * @param {!Object} options | |
| 24 * @param {function(...)=} opt_callback | |
| 25 */ | |
| 26 chrome.fileSystemProvider.mount = function(options, opt_callback) {}; | |
| 27 | |
| 28 /** | |
| 29 * @see https://developer.chrome.com/apps/fileSystemProvider#method-unmount | |
| 30 * @param {!Object} options | |
| 31 * @param {function(...)=} opt_callback | |
| 32 */ | |
| 33 chrome.fileSystemProvider.unmount = function(options, opt_callback) {}; | |
| 34 | |
| 35 /** | |
| 36 * @see | |
| 37 * https://developer.chrome.com/apps/fileSystemProvider#event-onUnmountRequested | |
| 38 * @typedef {!Event} | |
| 39 */ | |
| 40 chrome.fileSystemProvider.onUnmountRequested; | |
| 41 | |
| 42 /** | |
| 43 * @see | |
| 44 * https://developer.chrome.com/apps/fileSystemProvider#event-onGetMetadataReque
sted | |
| 45 * @typedef {!Event} | |
| 46 */ | |
| 47 chrome.fileSystemProvider.onGetMetadataRequested; | |
| 48 | |
| 49 /** | |
| 50 * @see | |
| 51 * https://developer.chrome.com/apps/fileSystemProvider#event-onReadDirectoryReq
uested | |
| 52 * @typedef {!Event} | |
| 53 */ | |
| 54 chrome.fileSystemProvider.onReadDirectoryRequested; | |
| 55 | |
| 56 /** | |
| 57 * @see | |
| 58 * https://developer.chrome.com/apps/fileSystemProvider#event-onOpenFileRequeste
d | |
| 59 * @typedef {!Event} | |
| 60 */ | |
| 61 chrome.fileSystemProvider.onOpenFileRequested; | |
| 62 | |
| 63 /** | |
| 64 * @see | |
| 65 * https://developer.chrome.com/apps/fileSystemProvider#event-onCloseFileRequest
ed | |
| 66 * @typedef {!Event} | |
| 67 */ | |
| 68 chrome.fileSystemProvider.onCloseFileRequested; | |
| 69 | |
| 70 /** | |
| 71 * @see | |
| 72 * https://developer.chrome.com/apps/fileSystemProvider#event-onReadFileRequeste
d | |
| 73 * @typedef {!Event} | |
| 74 */ | |
| 75 chrome.fileSystemProvider.onReadFileRequested; | |
| 76 | |
| 77 /** | |
| 78 * @see https://developer.chrome.com/apps/fileSystemProvider#type-FileSystemInfo | |
| 79 * @typedef {!Object} | |
| 80 */ | |
| 81 var FileSystemInfo; | |
| 82 | |
| 83 /** | |
| 84 * @see https://developer.chrome.com/apps/fileSystemProvider#type-ProviderError | |
| 85 * @typedef {string} | |
| 86 */ | |
| 87 var ProviderError; | |
| 88 | |
| 89 /** | |
| 90 * @see https://developer.chrome.com/apps/fileSystemProvider#type-EntryMetadata | |
| 91 * @typedef {!Object} | |
| 92 */ | |
| 93 var EntryMetadata; | |
| 94 | |
| 95 /** | |
| 96 * @see https://developer.chrome.com/apps/fileSystemProvider#type-OpenFileMode | |
| 97 * @typedef {string} | |
| 98 */ | |
| 99 var OpenFileMode; | |
| 100 | |
| 101 /** | |
| 102 * THe Chrome Manifest Icons. Not defined in externs/chrome_extensions.js. | |
| 103 * @see https://developer.chrome.com/apps/manifest/icons | |
| 104 * @typedef {!Array<string>} | |
| 105 */ | |
| 106 chrome.runtime.Manifest.prototype.icons; | |
| OLD | NEW |