| OLD | NEW |
| 1 // Copyright 2017 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 // This file was generated by: | |
| 6 // tools/json_schema_compiler/compiler.py. | |
| 7 // NOTE: The format of types has changed. 'FooType' is now | |
| 8 // 'chrome.fileManagerPrivate.FooType'. | |
| 9 // Please run the closure compiler before committing changes. | |
| 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp
ilation.md | |
| 11 | |
| 12 /** @fileoverview Externs generated from namespace: fileManagerPrivate */ | 5 /** @fileoverview Externs generated from namespace: fileManagerPrivate */ |
| 13 | 6 |
| 14 /** | 7 /** |
| 15 * @const | |
| 16 */ | |
| 17 chrome.fileManagerPrivate = {}; | |
| 18 | |
| 19 /** | |
| 20 * @enum {string} | |
| 21 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-VolumeTy
pe | |
| 22 */ | |
| 23 chrome.fileManagerPrivate.VolumeType = { | |
| 24 DRIVE: 'drive', | |
| 25 DOWNLOADS: 'downloads', | |
| 26 REMOVABLE: 'removable', | |
| 27 ARCHIVE: 'archive', | |
| 28 PROVIDED: 'provided', | |
| 29 MTP: 'mtp', | |
| 30 MEDIA_VIEW: 'media_view', | |
| 31 TESTING: 'testing', | |
| 32 }; | |
| 33 | |
| 34 /** | |
| 35 * @enum {string} | |
| 36 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-DeviceTy
pe | |
| 37 */ | |
| 38 chrome.fileManagerPrivate.DeviceType = { | |
| 39 USB: 'usb', | |
| 40 SD: 'sd', | |
| 41 OPTICAL: 'optical', | |
| 42 MOBILE: 'mobile', | |
| 43 UNKNOWN: 'unknown', | |
| 44 }; | |
| 45 | |
| 46 /** | |
| 47 * @enum {string} | |
| 48 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-MountCon
dition | |
| 49 */ | |
| 50 chrome.fileManagerPrivate.MountCondition = { | |
| 51 UNKNOWN: 'unknown', | |
| 52 UNSUPPORTED: 'unsupported', | |
| 53 }; | |
| 54 | |
| 55 /** | |
| 56 * @enum {string} | |
| 57 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-MountCon
text | |
| 58 */ | |
| 59 chrome.fileManagerPrivate.MountContext = { | |
| 60 USER: 'user', | |
| 61 AUTO: 'auto', | |
| 62 }; | |
| 63 | |
| 64 /** | |
| 65 * @enum {string} | |
| 66 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-MountCom
pletedEventType | |
| 67 */ | |
| 68 chrome.fileManagerPrivate.MountCompletedEventType = { | |
| 69 MOUNT: 'mount', | |
| 70 UNMOUNT: 'unmount', | |
| 71 }; | |
| 72 | |
| 73 /** | |
| 74 * @enum {string} | |
| 75 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-MountCom
pletedStatus | |
| 76 */ | |
| 77 chrome.fileManagerPrivate.MountCompletedStatus = { | |
| 78 SUCCESS: 'success', | |
| 79 ERROR_UNKNOWN: 'error_unknown', | |
| 80 ERROR_INTERNAL: 'error_internal', | |
| 81 ERROR_INVALID_ARGUMENT: 'error_invalid_argument', | |
| 82 ERROR_INVALID_PATH: 'error_invalid_path', | |
| 83 ERROR_PATH_ALREADY_MOUNTED: 'error_path_already_mounted', | |
| 84 ERROR_PATH_NOT_MOUNTED: 'error_path_not_mounted', | |
| 85 ERROR_DIRECTORY_CREATION_FAILED: 'error_directory_creation_failed', | |
| 86 ERROR_INVALID_MOUNT_OPTIONS: 'error_invalid_mount_options', | |
| 87 ERROR_INVALID_UNMOUNT_OPTIONS: 'error_invalid_unmount_options', | |
| 88 ERROR_INSUFFICIENT_PERMISSIONS: 'error_insufficient_permissions', | |
| 89 ERROR_MOUNT_PROGRAM_NOT_FOUND: 'error_mount_program_not_found', | |
| 90 ERROR_MOUNT_PROGRAM_FAILED: 'error_mount_program_failed', | |
| 91 ERROR_INVALID_DEVICE_PATH: 'error_invalid_device_path', | |
| 92 ERROR_UNKNOWN_FILESYSTEM: 'error_unknown_filesystem', | |
| 93 ERROR_UNSUPPORTED_FILESYSTEM: 'error_unsupported_filesystem', | |
| 94 ERROR_INVALID_ARCHIVE: 'error_invalid_archive', | |
| 95 ERROR_AUTHENTICATION: 'error_authentication', | |
| 96 ERROR_PATH_UNMOUNTED: 'error_path_unmounted', | |
| 97 }; | |
| 98 | |
| 99 /** | |
| 100 * @enum {string} | |
| 101 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-Transfer
State | |
| 102 */ | |
| 103 chrome.fileManagerPrivate.TransferState = { | |
| 104 IN_PROGRESS: 'in_progress', | |
| 105 COMPLETED: 'completed', | |
| 106 FAILED: 'failed', | |
| 107 }; | |
| 108 | |
| 109 /** | |
| 110 * @enum {string} | |
| 111 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-Transfer
Type | |
| 112 */ | |
| 113 chrome.fileManagerPrivate.TransferType = { | |
| 114 UPLOAD: 'upload', | |
| 115 DOWNLOAD: 'download', | |
| 116 }; | |
| 117 | |
| 118 /** | |
| 119 * @enum {string} | |
| 120 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-CopyProg
ressStatusType | |
| 121 */ | |
| 122 chrome.fileManagerPrivate.CopyProgressStatusType = { | |
| 123 BEGIN_COPY_ENTRY: 'begin_copy_entry', | |
| 124 END_COPY_ENTRY: 'end_copy_entry', | |
| 125 PROGRESS: 'progress', | |
| 126 SUCCESS: 'success', | |
| 127 ERROR: 'error', | |
| 128 }; | |
| 129 | |
| 130 /** | |
| 131 * @enum {string} | |
| 132 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-FileWatc
hEventType | |
| 133 */ | |
| 134 chrome.fileManagerPrivate.FileWatchEventType = { | |
| 135 CHANGED: 'changed', | |
| 136 ERROR: 'error', | |
| 137 }; | |
| 138 | |
| 139 /** | |
| 140 * @enum {string} | |
| 141 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-ChangeTy
pe | |
| 142 */ | |
| 143 chrome.fileManagerPrivate.ChangeType = { | |
| 144 ADD_OR_UPDATE: 'add_or_update', | |
| 145 DELETE: 'delete', | |
| 146 }; | |
| 147 | |
| 148 /** | |
| 149 * @enum {string} | |
| 150 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-SearchTy
pe | |
| 151 */ | |
| 152 chrome.fileManagerPrivate.SearchType = { | |
| 153 EXCLUDE_DIRECTORIES: 'EXCLUDE_DIRECTORIES', | |
| 154 SHARED_WITH_ME: 'SHARED_WITH_ME', | |
| 155 OFFLINE: 'OFFLINE', | |
| 156 ALL: 'ALL', | |
| 157 }; | |
| 158 | |
| 159 /** | |
| 160 * @enum {string} | |
| 161 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-ZoomOper
ationType | |
| 162 */ | |
| 163 chrome.fileManagerPrivate.ZoomOperationType = { | |
| 164 IN: 'in', | |
| 165 OUT: 'out', | |
| 166 RESET: 'reset', | |
| 167 }; | |
| 168 | |
| 169 /** | |
| 170 * @enum {string} | |
| 171 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-Inspecti
onType | |
| 172 */ | |
| 173 chrome.fileManagerPrivate.InspectionType = { | |
| 174 NORMAL: 'normal', | |
| 175 CONSOLE: 'console', | |
| 176 ELEMENT: 'element', | |
| 177 BACKGROUND: 'background', | |
| 178 }; | |
| 179 | |
| 180 /** | |
| 181 * @enum {string} | |
| 182 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-DeviceEv
entType | |
| 183 */ | |
| 184 chrome.fileManagerPrivate.DeviceEventType = { | |
| 185 DISABLED: 'disabled', | |
| 186 REMOVED: 'removed', | |
| 187 HARD_UNPLUGGED: 'hard_unplugged', | |
| 188 FORMAT_START: 'format_start', | |
| 189 FORMAT_SUCCESS: 'format_success', | |
| 190 FORMAT_FAIL: 'format_fail', | |
| 191 }; | |
| 192 | |
| 193 /** | |
| 194 * @enum {string} | |
| 195 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-DriveSyn
cErrorType | |
| 196 */ | |
| 197 chrome.fileManagerPrivate.DriveSyncErrorType = { | |
| 198 DELETE_WITHOUT_PERMISSION: 'delete_without_permission', | |
| 199 SERVICE_UNAVAILABLE: 'service_unavailable', | |
| 200 NO_SERVER_SPACE: 'no_server_space', | |
| 201 MISC: 'misc', | |
| 202 }; | |
| 203 | |
| 204 /** | |
| 205 * @enum {string} | |
| 206 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-TaskResu
lt | |
| 207 */ | |
| 208 chrome.fileManagerPrivate.TaskResult = { | |
| 209 OPENED: 'opened', | |
| 210 MESSAGE_SENT: 'message_sent', | |
| 211 FAILED: 'failed', | |
| 212 EMPTY: 'empty', | |
| 213 }; | |
| 214 | |
| 215 /** | |
| 216 * @enum {string} | |
| 217 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-DriveSha
reType | |
| 218 */ | |
| 219 chrome.fileManagerPrivate.DriveShareType = { | |
| 220 CAN_EDIT: 'can_edit', | |
| 221 CAN_COMMENT: 'can_comment', | |
| 222 CAN_VIEW: 'can_view', | |
| 223 }; | |
| 224 | |
| 225 /** | |
| 226 * @enum {string} | |
| 227 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-EntryPro
pertyName | |
| 228 */ | |
| 229 chrome.fileManagerPrivate.EntryPropertyName = { | |
| 230 SIZE: 'size', | |
| 231 MODIFICATION_TIME: 'modificationTime', | |
| 232 THUMBNAIL_URL: 'thumbnailUrl', | |
| 233 CROPPED_THUMBNAIL_URL: 'croppedThumbnailUrl', | |
| 234 IMAGE_WIDTH: 'imageWidth', | |
| 235 IMAGE_HEIGHT: 'imageHeight', | |
| 236 IMAGE_ROTATION: 'imageRotation', | |
| 237 PINNED: 'pinned', | |
| 238 PRESENT: 'present', | |
| 239 HOSTED: 'hosted', | |
| 240 AVAILABLE_OFFLINE: 'availableOffline', | |
| 241 AVAILABLE_WHEN_METERED: 'availableWhenMetered', | |
| 242 DIRTY: 'dirty', | |
| 243 CUSTOM_ICON_URL: 'customIconUrl', | |
| 244 CONTENT_MIME_TYPE: 'contentMimeType', | |
| 245 SHARED_WITH_ME: 'sharedWithMe', | |
| 246 SHARED: 'shared', | |
| 247 STARRED: 'starred', | |
| 248 EXTERNAL_FILE_URL: 'externalFileUrl', | |
| 249 }; | |
| 250 | |
| 251 /** | |
| 252 * @enum {string} | |
| 253 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-EntryTag
Visibility | |
| 254 */ | |
| 255 chrome.fileManagerPrivate.EntryTagVisibility = { | |
| 256 PRIVATE: 'private', | |
| 257 PUBLIC: 'public', | |
| 258 }; | |
| 259 | |
| 260 /** | |
| 261 * @enum {string} | |
| 262 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-Source | |
| 263 */ | |
| 264 chrome.fileManagerPrivate.Source = { | |
| 265 FILE: 'file', | |
| 266 DEVICE: 'device', | |
| 267 NETWORK: 'network', | |
| 268 SYSTEM: 'system', | |
| 269 }; | |
| 270 | |
| 271 /** | |
| 272 * @enum {string} | |
| 273 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-Verb | |
| 274 */ | |
| 275 chrome.fileManagerPrivate.Verb = { | |
| 276 OPEN_WITH: 'open_with', | |
| 277 ADD_TO: 'add_to', | |
| 278 PACK_WITH: 'pack_with', | |
| 279 SHARE_WITH: 'share_with', | |
| 280 }; | |
| 281 | |
| 282 /** | |
| 283 * @typedef {{ | 8 * @typedef {{ |
| 284 * taskId: string, | 9 * taskId: string, |
| 285 * title: string, | 10 * title: string, |
| 286 * verb: (!chrome.fileManagerPrivate.Verb|undefined), | |
| 287 * iconUrl: string, | 11 * iconUrl: string, |
| 288 * isDefault: boolean, | 12 * isDefault: boolean |
| 289 * isGenericFileHandler: boolean | |
| 290 * }} | 13 * }} |
| 291 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-FileTask | |
| 292 */ | 14 */ |
| 293 chrome.fileManagerPrivate.FileTask; | 15 var FileTask; |
| 294 | 16 |
| 295 /** | 17 /** |
| 296 * @typedef {{ | 18 * @typedef {{ |
| 297 * size: (number|undefined), | 19 * size: (number|undefined), |
| 298 * modificationTime: (number|undefined), | 20 * modificationTime: (number|undefined), |
| 299 * thumbnailUrl: (string|undefined), | 21 * thumbnailUrl: (string|undefined), |
| 300 * croppedThumbnailUrl: (string|undefined), | 22 * croppedThumbnailUrl: (string|undefined), |
| 23 * externalFileUrl: (string|undefined), |
| 301 * imageWidth: (number|undefined), | 24 * imageWidth: (number|undefined), |
| 302 * imageHeight: (number|undefined), | 25 * imageHeight: (number|undefined), |
| 303 * imageRotation: (number|undefined), | 26 * imageRotation: (number|undefined), |
| 304 * pinned: (boolean|undefined), | 27 * pinned: (boolean|undefined), |
| 305 * present: (boolean|undefined), | 28 * present: (boolean|undefined), |
| 306 * hosted: (boolean|undefined), | 29 * hosted: (boolean|undefined), |
| 30 * dirty: (boolean|undefined), |
| 307 * availableOffline: (boolean|undefined), | 31 * availableOffline: (boolean|undefined), |
| 308 * availableWhenMetered: (boolean|undefined), | 32 * availableWhenMetered: (boolean|undefined), |
| 309 * dirty: (boolean|undefined), | |
| 310 * customIconUrl: (string|undefined), | 33 * customIconUrl: (string|undefined), |
| 311 * contentMimeType: (string|undefined), | 34 * contentMimeType: (string|undefined), |
| 312 * sharedWithMe: (boolean|undefined), | 35 * sharedWithMe: (boolean|undefined), |
| 313 * shared: (boolean|undefined), | 36 * shared: (boolean|undefined) |
| 314 * starred: (boolean|undefined), | |
| 315 * externalFileUrl: (string|undefined) | |
| 316 * }} | 37 * }} |
| 317 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-EntryPro
perties | |
| 318 */ | 38 */ |
| 319 chrome.fileManagerPrivate.EntryProperties; | 39 var EntryProperties; |
| 320 | 40 |
| 321 /** | 41 /** |
| 322 * @typedef {{ | 42 * @typedef {{ |
| 323 * totalSize: number, | 43 * totalSize: number, |
| 324 * remainingSize: number | 44 * remainingSize: number |
| 325 * }} | 45 * }} |
| 326 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-MountPoi
ntSizeStats | |
| 327 */ | 46 */ |
| 328 chrome.fileManagerPrivate.MountPointSizeStats; | 47 var MountPointSizeStats; |
| 329 | 48 |
| 330 /** | 49 /** |
| 331 * @typedef {{ | 50 * @typedef {{ |
| 332 * profileId: string, | 51 * profileId: string, |
| 333 * displayName: string, | 52 * displayName: string, |
| 334 * isCurrentProfile: boolean | 53 * isCurrentProfile: boolean |
| 335 * }} | 54 * }} |
| 336 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-ProfileI
nfo | |
| 337 */ | 55 */ |
| 338 chrome.fileManagerPrivate.ProfileInfo; | 56 var ProfileInfo; |
| 339 | 57 |
| 340 /** | 58 /** |
| 341 * @typedef {{ | 59 * @typedef {{ |
| 342 * volumeId: string, | 60 * volumeId: string, |
| 343 * fileSystemId: (string|undefined), | 61 * fileSystemId: (string|undefined), |
| 344 * extensionId: (string|undefined), | 62 * extensionId: (string|undefined), |
| 345 * source: !chrome.fileManagerPrivate.Source, | 63 * source: string, |
| 346 * volumeLabel: (string|undefined), | 64 * volumeLabel: (string|undefined), |
| 347 * profile: !chrome.fileManagerPrivate.ProfileInfo, | 65 * profile: ProfileInfo, |
| 348 * sourcePath: (string|undefined), | 66 * sourcePath: (string|undefined), |
| 349 * volumeType: !chrome.fileManagerPrivate.VolumeType, | 67 * volumeType: string, |
| 350 * deviceType: (!chrome.fileManagerPrivate.DeviceType|undefined), | 68 * deviceType: (string|undefined), |
| 351 * devicePath: (string|undefined), | 69 * devicePath: (string|undefined), |
| 352 * isParentDevice: (boolean|undefined), | 70 * isParentDevice: (boolean|undefined), |
| 353 * isReadOnly: boolean, | 71 * isReadOnly: boolean, |
| 354 * isReadOnlyRemovableDevice: boolean, | 72 * isReadOnlyRemovableDevice: boolean, |
| 355 * hasMedia: boolean, | 73 * hasMedia: boolean, |
| 356 * configurable: boolean, | 74 * configurable: boolean, |
| 357 * watchable: boolean, | 75 * watchable: boolean, |
| 358 * mountCondition: (!chrome.fileManagerPrivate.MountCondition|undefined), | 76 * mountCondition: (string|undefined), |
| 359 * mountContext: (!chrome.fileManagerPrivate.MountContext|undefined) | 77 * mountContext: (string|undefined) |
| 360 * }} | 78 * }} |
| 361 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-VolumeMe
tadata | |
| 362 */ | 79 */ |
| 363 chrome.fileManagerPrivate.VolumeMetadata; | 80 var VolumeMetadata; |
| 364 | 81 |
| 365 /** | 82 /** |
| 366 * @typedef {{ | 83 * @typedef {{ |
| 367 * eventType: !chrome.fileManagerPrivate.MountCompletedEventType, | 84 * eventType: string, |
| 368 * status: !chrome.fileManagerPrivate.MountCompletedStatus, | 85 * status: string, |
| 369 * volumeMetadata: !chrome.fileManagerPrivate.VolumeMetadata, | 86 * volumeMetadata: VolumeMetadata, |
| 370 * shouldNotify: boolean | 87 * shouldNotify: boolean |
| 371 * }} | 88 * }} |
| 372 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-MountCom
pletedEvent | |
| 373 */ | 89 */ |
| 374 chrome.fileManagerPrivate.MountCompletedEvent; | 90 var MountCompletedEvent; |
| 375 | 91 |
| 376 /** | 92 /** |
| 377 * @typedef {{ | 93 * @typedef {{ |
| 378 * fileUrl: string, | 94 * fileUrl: string, |
| 379 * transferState: !chrome.fileManagerPrivate.TransferState, | 95 * transferState: string, |
| 380 * transferType: !chrome.fileManagerPrivate.TransferType, | 96 * transferType: string, |
| 381 * processed: number, | 97 * processed: number, |
| 382 * total: number, | 98 * total: number, |
| 383 * num_total_jobs: number | 99 * num_total_jobs: number |
| 384 * }} | 100 * }} |
| 385 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-FileTran
sferStatus | |
| 386 */ | 101 */ |
| 387 chrome.fileManagerPrivate.FileTransferStatus; | 102 var FileTransferStatus; |
| 388 | 103 |
| 389 /** | 104 /** |
| 390 * @typedef {{ | 105 * @typedef {{ |
| 391 * type: !chrome.fileManagerPrivate.DriveSyncErrorType, | 106 * type: string, |
| 392 * fileUrl: string | 107 * fileUrl: string |
| 393 * }} | 108 * }} |
| 394 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-DriveSyn
cErrorEvent | |
| 395 */ | 109 */ |
| 396 chrome.fileManagerPrivate.DriveSyncErrorEvent; | 110 var DriveSyncErrorEvent; |
| 397 | 111 |
| 398 /** | 112 /** |
| 399 * @typedef {{ | 113 * @typedef {{ |
| 400 * type: !chrome.fileManagerPrivate.CopyProgressStatusType, | 114 * type: string, |
| 401 * sourceUrl: (string|undefined), | 115 * sourceUrl: (string|undefined), |
| 402 * destinationUrl: (string|undefined), | 116 * destinationUrl: (string|undefined), |
| 403 * size: (number|undefined), | 117 * size: (number|undefined), |
| 404 * error: (string|undefined) | 118 * error: (string|undefined) |
| 405 * }} | 119 * }} |
| 406 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-CopyProg
ressStatus | |
| 407 */ | 120 */ |
| 408 chrome.fileManagerPrivate.CopyProgressStatus; | 121 var CopyProgressStatus; |
| 409 | 122 |
| 410 /** | 123 /** |
| 411 * @typedef {{ | 124 * @typedef {{ |
| 412 * url: string, | 125 * url: string, |
| 413 * changes: !Array<!chrome.fileManagerPrivate.ChangeType> | 126 * changes: Array |
| 414 * }} | 127 * }} |
| 415 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-FileChan
ge | |
| 416 */ | 128 */ |
| 417 chrome.fileManagerPrivate.FileChange; | 129 var FileChange; |
| 418 | 130 |
| 419 /** | 131 /** |
| 420 * @typedef {{ | 132 * @typedef {{ |
| 421 * eventType: !chrome.fileManagerPrivate.FileWatchEventType, | 133 * eventType: string, |
| 422 * entry: Object, | 134 * entry: Object, |
| 423 * changedFiles: (!Array<!chrome.fileManagerPrivate.FileChange>|undefined) | 135 * changedFiles: (Array|undefined) |
| 424 * }} | 136 * }} |
| 425 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-FileWatc
hEvent | |
| 426 */ | 137 */ |
| 427 chrome.fileManagerPrivate.FileWatchEvent; | 138 var FileWatchEvent; |
| 428 | 139 |
| 429 /** | 140 /** |
| 430 * @typedef {{ | 141 * @typedef {{ |
| 431 * driveEnabled: boolean, | 142 * driveEnabled: boolean, |
| 432 * cellularDisabled: boolean, | 143 * cellularDisabled: boolean, |
| 433 * hostedFilesDisabled: boolean, | 144 * hostedFilesDisabled: boolean, |
| 434 * searchSuggestEnabled: boolean, | 145 * searchSuggestEnabled: boolean, |
| 435 * use24hourClock: boolean, | 146 * use24hourClock: boolean, |
| 436 * allowRedeemOffers: boolean, | 147 * allowRedeemOffers: boolean, |
| 437 * timezone: string | 148 * timezone: string |
| 438 * }} | 149 * }} |
| 439 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-Preferen
ces | |
| 440 */ | 150 */ |
| 441 chrome.fileManagerPrivate.Preferences; | 151 var Preferences; |
| 442 | 152 |
| 443 /** | 153 /** |
| 444 * @typedef {{ | 154 * @typedef {{ |
| 445 * cellularDisabled: (boolean|undefined), | 155 * cellularDisabled: (boolean|undefined), |
| 446 * hostedFilesDisabled: (boolean|undefined) | 156 * hostedFilesDisabled: (boolean|undefined) |
| 447 * }} | 157 * }} |
| 448 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-Preferen
cesChange | |
| 449 */ | 158 */ |
| 450 chrome.fileManagerPrivate.PreferencesChange; | 159 var PreferencesChange; |
| 451 | 160 |
| 452 /** | 161 /** |
| 453 * @typedef {{ | 162 * @typedef {{ |
| 454 * query: string, | 163 * query: string, |
| 455 * nextFeed: string | 164 * nextFeed: string |
| 456 * }} | 165 * }} |
| 457 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-SearchPa
rams | |
| 458 */ | 166 */ |
| 459 chrome.fileManagerPrivate.SearchParams; | 167 var SearchParams; |
| 460 | 168 |
| 461 /** | 169 /** |
| 462 * @typedef {{ | 170 * @typedef {{ |
| 463 * query: string, | 171 * query: string, |
| 464 * types: !chrome.fileManagerPrivate.SearchType, | 172 * types: string, |
| 465 * maxResults: number | 173 * maxResults: number |
| 466 * }} | 174 * }} |
| 467 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-SearchMe
tadataParams | |
| 468 */ | 175 */ |
| 469 chrome.fileManagerPrivate.SearchMetadataParams; | 176 var SearchMetadataParams; |
| 470 | 177 |
| 471 /** | 178 /** |
| 472 * @typedef {{ | 179 * @typedef {{ |
| 473 * entry: Object, | 180 * entry: Object, |
| 474 * highlightedBaseName: string | 181 * highlightedBaseName: string |
| 475 * }} | 182 * }} |
| 476 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-SearchRe
sult | |
| 477 */ | 183 */ |
| 478 chrome.fileManagerPrivate.SearchResult; | 184 var SearchResult; |
| 479 | 185 |
| 480 /** | 186 /** |
| 481 * @typedef {{ | 187 * @typedef {{ |
| 482 * type: string, | 188 * type: string, |
| 483 * reason: (string|undefined), | 189 * reason: (string|undefined) |
| 484 * hasCellularNetworkAccess: boolean | |
| 485 * }} | 190 * }} |
| 486 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-DriveCon
nectionState | |
| 487 */ | 191 */ |
| 488 chrome.fileManagerPrivate.DriveConnectionState; | 192 var DriveConnectionState; |
| 489 | 193 |
| 490 /** | 194 /** |
| 491 * @typedef {{ | 195 * @typedef {{ |
| 492 * type: !chrome.fileManagerPrivate.DeviceEventType, | 196 * type: string, |
| 493 * devicePath: string | 197 * devicePath: string |
| 494 * }} | 198 * }} |
| 495 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-DeviceEv
ent | |
| 496 */ | 199 */ |
| 497 chrome.fileManagerPrivate.DeviceEvent; | 200 var DeviceEvent; |
| 498 | 201 |
| 499 /** | 202 /** |
| 500 * @typedef {{ | 203 * @typedef {{ |
| 501 * extensionId: string, | 204 * extensionId: string, |
| 502 * name: string, | 205 * name: string, |
| 503 * configurable: boolean, | 206 * configurable: boolean, |
| 504 * watchable: boolean, | 207 * watchable: boolean, |
| 505 * multipleMounts: boolean, | 208 * multipleMounts: boolean, |
| 506 * source: !chrome.fileManagerPrivate.manifestTypes.FileSystemProviderSource | 209 * source: string |
| 507 * }} | 210 * }} |
| 508 * @see https://developer.chrome.com/extensions/fileManagerPrivate#type-Providin
gExtension | |
| 509 */ | 211 */ |
| 510 chrome.fileManagerPrivate.ProvidingExtension; | 212 var ProvidingExtension; |
| 213 |
| 214 /** |
| 215 * @typedef {{ |
| 216 * id: string, |
| 217 * title: (string|undefined) |
| 218 * }} |
| 219 */ |
| 220 var EntryAction; |
| 221 |
| 222 /** |
| 223 * @const |
| 224 */ |
| 225 chrome.fileManagerPrivate = {}; |
| 511 | 226 |
| 512 /** | 227 /** |
| 513 * Logout the current user for navigating to the re-authentication screen for | 228 * Logout the current user for navigating to the re-authentication screen for |
| 514 * the Google account. | 229 * the Google account. |
| 515 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-logout
UserForReauthentication | |
| 516 */ | 230 */ |
| 517 chrome.fileManagerPrivate.logoutUserForReauthentication = function() {}; | 231 chrome.fileManagerPrivate.logoutUserForReauthentication = function() {}; |
| 518 | 232 |
| 519 /** | 233 /** |
| 520 * Cancels file selection. | 234 * Cancels file selection. |
| 521 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-cancel
Dialog | |
| 522 */ | 235 */ |
| 523 chrome.fileManagerPrivate.cancelDialog = function() {}; | 236 chrome.fileManagerPrivate.cancelDialog = function() {}; |
| 524 | 237 |
| 525 /** | 238 /** |
| 526 * Executes file browser task over selected files. |taskId| The unique | 239 * Executes file browser task over selected files. |taskId| The unique |
| 527 * identifier of task to execute. |entries| Array of entries |callback| | 240 * identifier of task to execute. |entries| Array of file entries |callback| |
| 528 * @param {string} taskId | 241 * @param {string} taskId |
| 529 * @param {!Array<Object>} entries | 242 * @param {!Array<!Entry>} entries |
| 530 * @param {function(!chrome.fileManagerPrivate.TaskResult):void} callback | 243 * @param {function((boolean|undefined))} callback |result| Result of the task |
| 531 * |result| Result of the task execution. | 244 * execution. |
| 532 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-execut
eTask | |
| 533 */ | 245 */ |
| 534 chrome.fileManagerPrivate.executeTask = function(taskId, entries, callback) {}; | 246 chrome.fileManagerPrivate.executeTask = function(taskId, entries, callback) {}; |
| 535 | 247 |
| 536 /** | 248 /** |
| 537 * Sets the default task for the supplied MIME types and path extensions. Lists | 249 * Sets the default task for the supplied MIME types and path extensions. |
| 538 * of MIME types and URLs may contain duplicates. Additionally, the list of MIME | 250 * Lists of MIME types and entries may contain duplicates. |
| 539 * types can be empty. |taskId| The unique identifier of task to mark as | 251 * |taskId| The unique identifier of task to mark as default. |entries| Array |
| 540 * default. |entries| Array of selected entries to extract path extensions from. | 252 * of selected file entries to extract path extensions from. |mimeTypes| Array |
| 541 * |mimeTypes| Array of selected file MIME types. |callback| | 253 * of selected file MIME types. |callback| |
| 542 * @param {string} taskId | 254 * @param {string} taskId |
| 543 * @param {!Array<Object>} entries | 255 * @param {!Array<!Entry>} entries |
| 544 * @param {!Array<string>} mimeTypes | 256 * @param {!Array<string>} mimeTypes |
| 545 * @param {function():void} callback Callback that does not take arguments. | 257 * @param {!function()} callback Callback that does not take arguments. |
| 546 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-setDef
aultTask | |
| 547 */ | 258 */ |
| 548 chrome.fileManagerPrivate.setDefaultTask = function(taskId, entries, mimeTypes,
callback) {}; | 259 chrome.fileManagerPrivate.setDefaultTask = function(taskId, entries, mimeTypes, |
| 260 callback) {}; |
| 549 | 261 |
| 550 /** | 262 /** |
| 551 * Gets the list of tasks that can be performed over selected files. |entries| | 263 * Gets the list of tasks that can be performed over selected files. |entries| |
| 552 * Array of selected entries |callback| | 264 * Array of selected entries |callback| |
| 553 * @param {!Array<Object>} entries | 265 * @param {!Array<!Entry>} entries |
| 554 * @param {function(!Array<!chrome.fileManagerPrivate.FileTask>):void} callback | 266 * @param {function((!Array<!FileTask>|undefined))} callback |tasks| The list of |
| 555 * |tasks| The list of matched file entries for this task. | 267 * matched file entries for this task. |
| 556 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getFil
eTasks | |
| 557 */ | 268 */ |
| 558 chrome.fileManagerPrivate.getFileTasks = function(entries, callback) {}; | 269 chrome.fileManagerPrivate.getFileTasks = function(entries, callback) {}; |
| 559 | 270 |
| 560 /** | 271 /** |
| 561 * Gets the MIME type of a file. |entry| Entry to be checked. |callback| | |
| 562 * @param {Object} entry | |
| 563 * @param {function(string):void} callback |result| Mime type of the file. | |
| 564 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getMim
eType | |
| 565 */ | |
| 566 chrome.fileManagerPrivate.getMimeType = function(entry, callback) {}; | |
| 567 | |
| 568 /** | |
| 569 * Gets localized strings and initialization data. |callback| | 272 * Gets localized strings and initialization data. |callback| |
| 570 * @param {function(Object):void} callback |result| Hash containing the string | 273 * @param {function((!Object|undefined))} callback |result| Hash containing the |
| 571 * assets. | 274 * string assets. |
| 572 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getStr
ings | |
| 573 */ | 275 */ |
| 574 chrome.fileManagerPrivate.getStrings = function(callback) {}; | 276 chrome.fileManagerPrivate.getStrings = function(callback) {}; |
| 575 | 277 |
| 576 /** | 278 /** |
| 577 * Adds file watch. |entry| Entry to watch |callback| | 279 * Adds file watch. |entry| Entry of file to watch |callback| |
| 578 * @param {Object} entry | 280 * @param {!Entry} entry |
| 579 * @param {function(boolean):void} callback |success| True when file watch is | 281 * @param {function((boolean|undefined))} callback |success| True when file |
| 580 * successfully added. | 282 * watch is successfully added. |
| 581 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-addFil
eWatch | |
| 582 */ | 283 */ |
| 583 chrome.fileManagerPrivate.addFileWatch = function(entry, callback) {}; | 284 chrome.fileManagerPrivate.addFileWatch = function(entry, callback) {}; |
| 584 | 285 |
| 585 /** | 286 /** |
| 586 * Removes file watch. |entry| Watched entry |callback| | 287 * Removes file watch. |entry| Entry of watched file to remove |callback| |
| 587 * @param {Object} entry | 288 * @param {!Entry} entry |
| 588 * @param {function(boolean):void} callback |success| True when file watch is | 289 * @param {function((boolean|undefined))} callback |success| True when file |
| 589 * successfully removed. | 290 * watch is successfully |
| 590 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-remove
FileWatch | 291 * removed. |
| 591 */ | 292 */ |
| 592 chrome.fileManagerPrivate.removeFileWatch = function(entry, callback) {}; | 293 chrome.fileManagerPrivate.removeFileWatch = function(entry, callback) {}; |
| 593 | 294 |
| 594 /** | 295 /** |
| 595 * Enables the extenal file scheme necessary to initiate drags to the browser | 296 * Enables the extenal file scheme necessary to initiate drags to the browser |
| 596 * window for files on the external backend. | 297 * window for files on the external backend. |
| 597 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-enable
ExternalFileScheme | |
| 598 */ | 298 */ |
| 599 chrome.fileManagerPrivate.enableExternalFileScheme = function() {}; | 299 chrome.fileManagerPrivate.enableExternalFileScheme = function() {}; |
| 600 | 300 |
| 601 /** | 301 /** |
| 602 * Requests granting R/W permissions for the passed entries. It's a best effort | 302 * Requests R/W access to the specified entries as |entryUrls|. Note, that only |
| 603 * operation. Some files may not be granted access if the url is invalid or not | 303 * files backed by external file system backend will be granted the access. |
| 604 * backed by the external file system. |entryUrls| Urls for the entries to be | |
| 605 * accessed. |callback| | |
| 606 * @param {!Array<string>} entryUrls | 304 * @param {!Array<string>} entryUrls |
| 607 * @param {function():void} callback Callback that does not take arguments. | 305 * @param {function()} callback Completion callback. |
| 608 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-grantA
ccess | |
| 609 */ | 306 */ |
| 610 chrome.fileManagerPrivate.grantAccess = function(entryUrls, callback) {}; | 307 chrome.fileManagerPrivate.grantAccess = function(entryUrls, callback) {}; |
| 611 | 308 |
| 612 /** | 309 /** |
| 613 * Selects multiple files. |selectedPaths| Array of selected paths | 310 * Selects multiple files. |selectedPaths| Array of selected paths |
| 614 * |shouldReturnLocalPath| true if paths need to be resolved to local paths. | 311 * |shouldReturnLocalPath| true if paths need to be resolved to local paths. |
| 615 * |callback| | 312 * |callback| |
| 616 * @param {!Array<string>} selectedPaths | 313 * @param {!Array<string>} selectedPaths |
| 617 * @param {boolean} shouldReturnLocalPath | 314 * @param {boolean} shouldReturnLocalPath |
| 618 * @param {function():void} callback Callback that does not take arguments. | 315 * @param {function()} callback Callback that does not take arguments. |
| 619 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-select
Files | |
| 620 */ | 316 */ |
| 621 chrome.fileManagerPrivate.selectFiles = function(selectedPaths, shouldReturnLoca
lPath, callback) {}; | 317 chrome.fileManagerPrivate.selectFiles = function(selectedPaths, |
| 318 shouldReturnLocalPath, callback) {}; |
| 622 | 319 |
| 623 /** | 320 /** |
| 624 * Selects a file. |selectedPath| A selected path |index| Index of Filter | 321 * Selects a file. |selectedPath| A selected path |index| Index of Filter |
| 625 * |forOpening| true if paths are selected for opening. false if for saving. | 322 * |forOpening| true if paths are selected for opening. false if for saving. |
| 626 * |shouldReturnLocalPath| true if paths need to be resolved to local paths. | 323 * |shouldReturnLocalPath| true if paths need to be resolved to local paths. |
| 627 * |callback| | 324 * |callback| |
| 628 * @param {string} selectedPath | 325 * @param {string} selectedPath |
| 629 * @param {number} index | 326 * @param {number} index |
| 630 * @param {boolean} forOpening | 327 * @param {boolean} forOpening |
| 631 * @param {boolean} shouldReturnLocalPath | 328 * @param {boolean} shouldReturnLocalPath |
| 632 * @param {function():void} callback Callback that does not take arguments. | 329 * @param {function()} callback Callback that does not take arguments. |
| 633 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-select
File | |
| 634 */ | 330 */ |
| 635 chrome.fileManagerPrivate.selectFile = function(selectedPath, index, forOpening,
shouldReturnLocalPath, callback) {}; | 331 chrome.fileManagerPrivate.selectFile = function(selectedPath, index, forOpening, |
| 332 shouldReturnLocalPath, callback) {}; |
| 636 | 333 |
| 637 /** | 334 /** |
| 638 * Requests additional properties for files. |entries| list of entries |names| | 335 * Requests additional properties for files. |entries| list of entries of files |
| 639 * list of requested properties by their names. |callback| Completion callback. | 336 * |callback| |
| 640 * May return less than requested properties if some are not available. In | 337 * @param {!Array<!Entry>} entries |
| 641 * the same time, it can return properties which were not requested (if it's | 338 * @param {!Array<string>} names |
| 642 * cheap to compute them). | 339 * @param {function((!Array<!EntryProperties>|undefined))} callback |
| 643 * @param {!Array<Object>} entries | 340 * |entryProperties| A dictionary containing properties of the requested |
| 644 * @param {!Array<!chrome.fileManagerPrivate.EntryPropertyName>} names | 341 * entries. |
| 645 * @param {function(!Array<!chrome.fileManagerPrivate.EntryProperties>):void} | |
| 646 * callback |entryProperties| A dictionary containing properties of the | |
| 647 * requested entries. | |
| 648 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getEnt
ryProperties | |
| 649 */ | 342 */ |
| 650 chrome.fileManagerPrivate.getEntryProperties = function(entries, names, callback
) {}; | 343 chrome.fileManagerPrivate.getEntryProperties = function(entries, names, |
| 344 callback) {}; |
| 651 | 345 |
| 652 /** | 346 /** |
| 653 * Pins/unpins a Drive file in the cache. |entry| Entry to pin/unpin. |pin| Pass | 347 * Pins/unpins a Drive file in the cache. |entry| Entry of a file to pin/unpin. |
| 654 * true to pin the file. |callback| Completion callback. | 348 * |pin| Pass true to pin the file. |callback| Completion callback. |
| 655 * $(ref:runtime.lastError) will be set if there was an error. | 349 * $(ref:runtime.lastError) will be set if there was an error. |
| 656 * @param {Object} entry | 350 * @param {!Entry} entry |
| 657 * @param {boolean} pin | 351 * @param {boolean} pin |
| 658 * @param {function():void} callback Callback that does not take arguments. | 352 * @param {function()} callback Callback that does not take arguments. |
| 659 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-pinDri
veFile | |
| 660 */ | 353 */ |
| 661 chrome.fileManagerPrivate.pinDriveFile = function(entry, pin, callback) {}; | 354 chrome.fileManagerPrivate.pinDriveFile = function(entry, pin, callback) {}; |
| 662 | 355 |
| 663 /** | 356 /** |
| 664 * Resolves entries in the isolated file system and returns corresponding | 357 * Resolves file entries in the isolated file system and returns corresponding |
| 665 * entries in the external file system mounted to Chrome OS file manager | 358 * entries in the external file system mounted to Chrome OS file manager |
| 666 * backend. If resolving entry fails, the entry will be just ignored and the | 359 * backend. If resolving entry fails, the entry will be just ignored and the |
| 667 * corresponding entry does not appear in the result. | 360 * corresponding entry does not appear in the result. |
| 668 * @param {!Array<Object>} entries | 361 * @param {!Array<!Entry>} entries |
| 669 * @param {function(!Array<Object>):void} callback |entries| External entries. | 362 * @param {function((!Array<!Entry>|undefined))} callback Completion callback |
| 670 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-resolv
eIsolatedEntries | 363 * with resolved entries. |
| 671 */ | 364 */ |
| 672 chrome.fileManagerPrivate.resolveIsolatedEntries = function(entries, callback) {
}; | 365 chrome.fileManagerPrivate.resolveIsolatedEntries = function(entries, |
| 366 callback) {}; |
| 673 | 367 |
| 674 /** | 368 /** |
| 675 * Mount a resource or a file. |source| Mount point source. For compressed files | 369 * Mount a resource or a file. |source| Mount point source. For compressed |
| 676 * it is relative file path within external file system |callback| | 370 * files it is relative file path within external file system |callback| |
| 677 * @param {string} source | 371 * @param {string} source |
| 678 * @param {function(string):void} callback |sourcePath| Source path of the | 372 * @param {function((string|undefined))} callback Callback with source path of |
| 679 * mount. | 373 * the mount. |
| 680 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-addMou
nt | |
| 681 */ | 374 */ |
| 682 chrome.fileManagerPrivate.addMount = function(source, callback) {}; | 375 chrome.fileManagerPrivate.addMount = function(source, callback) {}; |
| 683 | 376 |
| 684 /** | 377 /** |
| 685 * Unmounts a mounted resource. |volumeId| An ID of the volume. | 378 * Unmounts a mounted resource. |volumeId| An ID of the volume. |
| 686 * @param {string} volumeId | 379 * @param {string} volumeId |
| 687 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-remove
Mount | |
| 688 */ | 380 */ |
| 689 chrome.fileManagerPrivate.removeMount = function(volumeId) {}; | 381 chrome.fileManagerPrivate.removeMount = function(volumeId) {}; |
| 690 | 382 |
| 691 /** | 383 /** |
| 692 * Get the list of mounted volumes. |callback| | 384 * Get the list of mounted volumes. |callback| |
| 693 * @param {function(!Array<!chrome.fileManagerPrivate.VolumeMetadata>):void} | 385 * @param {function((!Array<!VolumeMetadata>|undefined))} callback Callback with |
| 694 * callback |volumeMetadataList| The list of VolumeMetadata representing | 386 * the list of VolumeMetadata representing mounted volumes. |
| 695 * mounted volumes. | |
| 696 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getVol
umeMetadataList | |
| 697 */ | 387 */ |
| 698 chrome.fileManagerPrivate.getVolumeMetadataList = function(callback) {}; | 388 chrome.fileManagerPrivate.getVolumeMetadataList = function(callback) {}; |
| 699 | 389 |
| 700 /** | 390 /** |
| 701 * Cancels ongoing file transfers for selected files. |entries| Array of files | 391 * Cancels ongoing file transfers for selected files. |entries| Array of files |
| 702 * for which ongoing transfer should be canceled. |callback| Completion callback | 392 * for which ongoing transfer should be canceled. |
| 703 * of the cancel. | 393 * @param {!Array<!FileEntry>} entries |
| 704 * @param {!Array<Object>} entries | 394 * @param {function()} callback |
| 705 * @param {function():void} callback Callback that does not take arguments. | |
| 706 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-cancel
FileTransfers | |
| 707 */ | 395 */ |
| 708 chrome.fileManagerPrivate.cancelFileTransfers = function(entries, callback) {}; | 396 chrome.fileManagerPrivate.cancelFileTransfers = function(entries, callback) {}; |
| 709 | 397 |
| 710 /** | 398 /** |
| 711 * Cancels all ongoing file transfers. |callback| Completion callback of the | 399 * Cancels all ongoing file transfers. |
| 712 * cancel. | 400 * @param {function()} callback |
| 713 * @param {function():void} callback Callback that does not take arguments. | |
| 714 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-cancel
AllFileTransfers | |
| 715 */ | 401 */ |
| 716 chrome.fileManagerPrivate.cancelAllFileTransfers = function(callback) {}; | 402 chrome.fileManagerPrivate.cancelAllFileTransfers = function(callback) {}; |
| 717 | 403 |
| 718 /** | 404 /** |
| 719 * Starts to copy an entry. If the source is a directory, the copy is done | 405 * Starts to copy an entry. If the source is a directory, the copy is done |
| 720 * recursively. |entry| Entry of the source entry to be copied. |parentEntry| | 406 * recursively. |entry| Entry of the source entry to be copied. |parent| Entry |
| 721 * Entry for the destination (parent) directory. |newName| Name of the new | 407 * of the destination directory. |newName| Name of the new entry. It must not |
| 722 * entry. It must not contain '/'. |callback| Completion callback. | 408 * contain '/'. |callback| Completion callback. |
| 723 * @param {Object} entry | 409 * @param {!Entry} entry |
| 724 * @param {Object} parentEntry | 410 * @param {!DirectoryEntry} parentEntry |
| 725 * @param {string} newName | 411 * @param {string} newName |
| 726 * @param {function(number):void} callback |copyId| ID of the copy task. Can be | 412 * @param {function((number|undefined))} callback |copyId| ID of the copy task. |
| 727 * used to identify the progress, and to cancel the task. | 413 * Can be used to identify the progress, and to cancel the task. |
| 728 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-startC
opy | |
| 729 */ | 414 */ |
| 730 chrome.fileManagerPrivate.startCopy = function(entry, parentEntry, newName, call
back) {}; | 415 chrome.fileManagerPrivate.startCopy = function(entry, parentEntry, newName, |
| 416 callback) {}; |
| 731 | 417 |
| 732 /** | 418 /** |
| 733 * Cancels the running copy task. |copyId| ID of the copy task to be cancelled. | 419 * Cancels the running copy task. |copyId| ID of the copy task to be cancelled. |
| 734 * |callback| Completion callback of the cancel. | 420 * |callback| Completion callback of the cancel. |
| 735 * @param {number} copyId | 421 * @param {number} copyId |
| 736 * @param {function():void} callback Callback that does not take arguments. | 422 * @param {function()} callback Callback that does not take arguments. |
| 737 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-cancel
Copy | |
| 738 */ | 423 */ |
| 739 chrome.fileManagerPrivate.cancelCopy = function(copyId, callback) {}; | 424 chrome.fileManagerPrivate.cancelCopy = function(copyId, callback) {}; |
| 740 | 425 |
| 741 /** | 426 /** |
| 742 * Retrieves total and remaining size of a mount point. |volumeId| ID of the | 427 * Retrieves total and remaining size of a mount point. |volumeId| ID of the |
| 743 * volume to be checked. |callback| | 428 * volume to be checked. |callback| |
| 744 * @param {string} volumeId | 429 * @param {string} volumeId |
| 745 * @param {function(!chrome.fileManagerPrivate.MountPointSizeStats):void} | 430 * @param {function((!MountPointSizeStats|undefined))} callback Name/value pairs |
| 746 * callback |sizeStats| Name/value pairs of size stats. Will be undefined if | 431 * of size stats. Will be undefined if stats could not be determined. |
| 747 * stats could not be determined. | |
| 748 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getSiz
eStats | |
| 749 */ | 432 */ |
| 750 chrome.fileManagerPrivate.getSizeStats = function(volumeId, callback) {}; | 433 chrome.fileManagerPrivate.getSizeStats = function(volumeId, callback) {}; |
| 751 | 434 |
| 752 /** | 435 /** |
| 753 * Formats a mounted volume. |volumeId| ID of the volume to be formatted. | 436 * Formats a mounted volume. |volumeId| ID of the volume to be formatted. |
| 754 * @param {string} volumeId | 437 * @param {string} volumeId |
| 755 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-format
Volume | |
| 756 */ | 438 */ |
| 757 chrome.fileManagerPrivate.formatVolume = function(volumeId) {}; | 439 chrome.fileManagerPrivate.formatVolume = function(volumeId) {}; |
| 758 | 440 |
| 759 /** | 441 /** |
| 760 * Retrieves file manager preferences. |callback| | 442 * Retrieves file manager preferences. |callback| |
| 761 * @param {function(!chrome.fileManagerPrivate.Preferences):void} callback | 443 * @param {function((!Preferences|undefined))} callback |
| 762 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getPre
ferences | |
| 763 */ | 444 */ |
| 764 chrome.fileManagerPrivate.getPreferences = function(callback) {}; | 445 chrome.fileManagerPrivate.getPreferences = function(callback) {}; |
| 765 | 446 |
| 766 /** | 447 /** |
| 767 * Sets file manager preferences. |changeInfo| | 448 * Sets file manager preferences. |changeInfo| |
| 768 * @param {!chrome.fileManagerPrivate.PreferencesChange} changeInfo | 449 * @param {PreferencesChange} changeInfo |
| 769 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-setPre
ferences | |
| 770 */ | 450 */ |
| 771 chrome.fileManagerPrivate.setPreferences = function(changeInfo) {}; | 451 chrome.fileManagerPrivate.setPreferences = function(changeInfo) {}; |
| 772 | 452 |
| 773 /** | 453 /** |
| 774 * Performs drive content search. |searchParams| |callback| | 454 * Performs drive content search. |searchParams| |callback| |
| 775 * @param {!chrome.fileManagerPrivate.SearchParams} searchParams | 455 * @param {SearchParams} searchParams |
| 776 * @param {function(!Array<Object>, string):void} callback |entries| |nextFeed| | 456 * @param {function((!Array<Entry>|undefined), (string|undefined))} callback |
| 777 * ID of the feed that contains next chunk of the search result. Should | 457 * Entries and ID of the feed that contains next chunk of the search result. |
| 778 * be sent to the next searchDrive request to perform incremental | 458 * Should be sent to the next searchDrive request to perform incremental search. |
| 779 * search. | |
| 780 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-search
Drive | |
| 781 */ | 459 */ |
| 782 chrome.fileManagerPrivate.searchDrive = function(searchParams, callback) {}; | 460 chrome.fileManagerPrivate.searchDrive = function(searchParams, callback) {}; |
| 783 | 461 |
| 784 /** | 462 /** |
| 785 * Performs drive metadata search. |searchParams| |callback| | 463 * Performs drive metadata search. |searchParams| |callback| |
| 786 * @param {!chrome.fileManagerPrivate.SearchMetadataParams} searchParams | 464 * @param {SearchMetadataParams} searchParams |
| 787 * @param {function(!Array<!chrome.fileManagerPrivate.SearchResult>):void} | 465 * @param {function((!Array<!SearchResult>|undefined))} callback |
| 788 * callback | |
| 789 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-search
DriveMetadata | |
| 790 */ | 466 */ |
| 791 chrome.fileManagerPrivate.searchDriveMetadata = function(searchParams, callback)
{}; | 467 chrome.fileManagerPrivate.searchDriveMetadata = function(searchParams, |
| 468 callback) {}; |
| 792 | 469 |
| 793 /** | 470 /** |
| 794 * Search files in the volume having |volumeId| by using |hashList|. | 471 * Search for files in the given volume, whose content hash matches the list of |
| 795 * sub-directories) the given |targetDirectoryUrl|. | 472 * given hashes. |
| 796 * @param {string} volumeId | 473 * @param {string} volumeId |
| 797 * @param {!Array<string>} hashList | 474 * @param {!Array<string>} hashes |
| 798 * @param {function(Object):void} callback |urls| The map of hash and array of | 475 * @param {function((!Object<string, !Array<string>>|undefined))} callback |
| 799 * FileEntry's URL. The array can be empty if the corresponding file is not | |
| 800 * found. | |
| 801 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-search
FilesByHashes | |
| 802 */ | 476 */ |
| 803 chrome.fileManagerPrivate.searchFilesByHashes = function(volumeId, hashList, cal
lback) {}; | 477 chrome.fileManagerPrivate.searchFilesByHashes = function(volumeId, hashes, |
| 478 callback) {}; |
| 804 | 479 |
| 805 /** | 480 /** |
| 806 * Create a zip file for the selected files. |parentEntry| Entry of the | 481 * Create a zip file for the selected files. |parentEntry| Entry of the |
| 807 * directory containing the selected files. |entries| Entries of the selected | 482 * directory containing the selected files. |entries| Selected entries. |
| 808 * files. The files must be under the directory specified by |parentEntry|. | 483 * The files must be under the directory specified by |parentEntry|. |destName| |
| 809 * |destName| Name of the destination zip file. The zip file will be created | 484 * Name of the destination zip file. The zip file will be created under the |
| 810 * under the directory specified by |parentEntry|. |callback| TODO(mtomasz): | 485 * directory specified by |parentEntry|. |
| 811 * Swap order of |entries| and |parentEntry|. | 486 * @param {!DirectoryEntry} parentEntry |
| 812 * @param {Object} parentEntry | 487 * @param {!Array<!Entry>} entries |
| 813 * @param {!Array<Object>} entries | |
| 814 * @param {string} destName | 488 * @param {string} destName |
| 815 * @param {function(boolean):void} callback | 489 * @param {function((boolean|undefined))} callback |
| 816 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-zipSel
ection | |
| 817 */ | 490 */ |
| 818 chrome.fileManagerPrivate.zipSelection = function(parentEntry, entries, destName
, callback) {}; | 491 chrome.fileManagerPrivate.zipSelection = function(parentEntry, entries, |
| 492 destName, callback) {}; |
| 819 | 493 |
| 820 /** | 494 /** |
| 821 * Retrieves the state of the current drive connection. |callback| | 495 * Retrieves the state of the current drive connection. |callback| |
| 822 * @param {function(!chrome.fileManagerPrivate.DriveConnectionState):void} | 496 * @param {function((!DriveConnectionState|undefined))} callback |
| 823 * callback | |
| 824 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getDri
veConnectionState | |
| 825 */ | 497 */ |
| 826 chrome.fileManagerPrivate.getDriveConnectionState = function(callback) {}; | 498 chrome.fileManagerPrivate.getDriveConnectionState = function(callback) {}; |
| 827 | 499 |
| 828 /** | 500 /** |
| 829 * Checks whether the path name length fits in the limit of the filesystem. | 501 * Checks whether the path name length fits in the limit of the filesystem. |
| 830 * |parentEntry| The entry of the parent directory entry. |name| The name of the | 502 * |parentEntry| The parent directory entry. |name| The name of the file. |
| 831 * file. |callback| Called back when the check is finished. | 503 * |callback| Called back when the check is finished. |
| 832 * @param {Object} parentEntry | 504 * @param {!DirectoryEntry} parentEntry |
| 833 * @param {string} name | 505 * @param {string} name |
| 834 * @param {function(boolean):void} callback |result| true if the length is in | 506 * @param {function((boolean|undefined))} callback |result| true if the length |
| 835 * the valid range, false otherwise. | 507 * is in the valid range, false otherwise. |
| 836 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-valida
tePathNameLength | |
| 837 */ | 508 */ |
| 838 chrome.fileManagerPrivate.validatePathNameLength = function(parentEntry, name, c
allback) {}; | 509 chrome.fileManagerPrivate.validatePathNameLength = function( |
| 510 parentEntry, name, callback) {}; |
| 839 | 511 |
| 840 /** | 512 /** |
| 841 * Changes the zoom factor of the Files.app. |operation| Zooming mode. | 513 * Changes the zoom factor of the Files.app. |operation| Zooming mode. |
| 842 * @param {!chrome.fileManagerPrivate.ZoomOperationType} operation | 514 * @param {string} operation |
| 843 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-zoom | |
| 844 */ | 515 */ |
| 845 chrome.fileManagerPrivate.zoom = function(operation) {}; | 516 chrome.fileManagerPrivate.zoom = function(operation) {}; |
| 846 | 517 |
| 847 /** | 518 /** |
| 848 * Requests a Drive API OAuth2 access token. |refresh| Whether the token should | 519 * Requests a Drive API OAuth2 access token. |refresh| Whether the token should |
| 849 * be refetched instead of using the cached one. |callback| | 520 * be refetched instead of using the cached one. |callback| |
| 850 * @param {boolean} refresh | 521 * @param {boolean} refresh |
| 851 * @param {function(string):void} callback |accessToken| OAuth2 access token, or | 522 * @param {function((string|undefined))} callback |accessToken| OAuth2 access |
| 852 * an empty string if failed to fetch. | 523 * token, or an empty string if failed to fetch. |
| 853 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-reques
tAccessToken | |
| 854 */ | 524 */ |
| 855 chrome.fileManagerPrivate.requestAccessToken = function(refresh, callback) {}; | 525 chrome.fileManagerPrivate.requestAccessToken = function(refresh, callback) {}; |
| 856 | 526 |
| 857 /** | 527 /** |
| 858 * Requests a Webstore API OAuth2 access token. |callback| | 528 * Requests a Webstore API OAuth2 access token. |callback| |
| 859 * @param {function(string):void} callback |accessToken| OAuth2 access token, or | 529 * @param {function((string|undefined))} callback |accessToken| OAuth2 access |
| 860 * an empty string if failed to fetch. | 530 * token, or an empty string if failed to fetch. |
| 861 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-reques
tWebStoreAccessToken | |
| 862 */ | 531 */ |
| 863 chrome.fileManagerPrivate.requestWebStoreAccessToken = function(callback) {}; | 532 chrome.fileManagerPrivate.requestWebStoreAccessToken = function(callback) {}; |
| 864 | 533 |
| 865 /** | 534 /** |
| 866 * Requests a share dialog url for the specified file. |entry| The entry to | 535 * Requests a share dialog url for the specified file. |
| 867 * share. |callback| | 536 * @param {!Entry} entry |
| 868 * @param {Object} entry | 537 * @param {function((string|undefined))} callback Callback with the result url. |
| 869 * @param {function(string):void} callback |url| Result url. | |
| 870 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getSha
reUrl | |
| 871 */ | 538 */ |
| 872 chrome.fileManagerPrivate.getShareUrl = function(entry, callback) {}; | 539 chrome.fileManagerPrivate.getShareUrl = function(entry, callback) {}; |
| 873 | 540 |
| 874 /** | 541 /** |
| 875 * Requests a download url to download the file contents. |entry| The entry to | 542 * Requests a download url to download the file contents. |
| 876 * download. |callback| | 543 * @param {!Entry} entry |
| 877 * @param {Object} entry | 544 * @param {function((string|undefined))} callback Callback with the result url. |
| 878 * @param {function(string):void} callback |url| Result url. | |
| 879 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getDow
nloadUrl | |
| 880 */ | 545 */ |
| 881 chrome.fileManagerPrivate.getDownloadUrl = function(entry, callback) {}; | 546 chrome.fileManagerPrivate.getDownloadUrl = function(entry, callback) {}; |
| 882 | 547 |
| 883 /** | 548 /** |
| 884 * Requests to share drive files. |entry| Entry to be shared. |shareType| Type | 549 * Requests to share drive files. |
| 885 * of access that is getting granted. | 550 * @param {!Entry} entry |
| 886 * @param {Object} entry | 551 * @param {string} shareType |
| 887 * @param {!chrome.fileManagerPrivate.DriveShareType} shareType | 552 * @param {function()} callback Callback that does not take arguments. |
| 888 * @param {function():void} callback Callback that does not take arguments. | |
| 889 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-reques
tDriveShare | |
| 890 */ | 553 */ |
| 891 chrome.fileManagerPrivate.requestDriveShare = function(entry, shareType, callbac
k) {}; | 554 chrome.fileManagerPrivate.requestDriveShare = function(entry, shareType, |
| 555 callback) {}; |
| 556 |
| 557 /** |
| 558 * Requests to install a webstore item. |item_id| The id of the item to |
| 559 * install. |silentInstallation| False to show installation prompt. True not to |
| 560 * show. |callback| |
| 561 * @param {string} itemId |
| 562 * @param {boolean} silentInstallation |
| 563 * @param {function()} callback Callback that does not take arguments. |
| 564 */ |
| 565 chrome.fileManagerPrivate.installWebstoreItem = function(itemId, |
| 566 silentInstallation, callback) {}; |
| 892 | 567 |
| 893 /** | 568 /** |
| 894 * Obtains a list of profiles that are logged-in. | 569 * Obtains a list of profiles that are logged-in. |
| 895 * @param {function(!Array<!chrome.fileManagerPrivate.ProfileInfo>, string, stri
ng):void} | 570 * @param {function((!Array<!ProfileInfo>|undefined), (string|undefined), |
| 896 * callback |profiles| List of profile information. |runningProfile| ID of | 571 * (string|undefined))} callback Callback with list of profile information, |
| 897 * the profile that runs the application instance. |showingProfile| ID of | 572 * |runningProfile| ID of the profile that runs the application instance. |
| 898 * the profile that shows the application window. | 573 * |showingProfile| ID of the profile that shows the application window. |
| 899 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getPro
files | |
| 900 */ | 574 */ |
| 901 chrome.fileManagerPrivate.getProfiles = function(callback) {}; | 575 chrome.fileManagerPrivate.getProfiles = function(callback) {}; |
| 902 | 576 |
| 903 /** | 577 /** |
| 904 * Opens inspector window. |type| InspectionType which specifies how to open | 578 * Opens inspector window. |type| InspectionType which specifies how to open |
| 905 * inspector. | 579 * inspector. |
| 906 * @param {!chrome.fileManagerPrivate.InspectionType} type | 580 * @param {string} type |
| 907 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-openIn
spector | |
| 908 */ | 581 */ |
| 909 chrome.fileManagerPrivate.openInspector = function(type) {}; | 582 chrome.fileManagerPrivate.openInspector = function(type) {}; |
| 910 | 583 |
| 911 /** | 584 /** |
| 912 * Computes an MD5 checksum for the given file. |entry| The entry of the file to | 585 * Computes an MD5 checksum for the given file. |
| 913 * checksum. |callback| | 586 * @param {!Entry} entry |
| 914 * @param {Object} entry | 587 * @param {function((string|undefined))} callback |
| 915 * @param {function(string):void} callback |checksum| Result checksum. | |
| 916 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-comput
eChecksum | |
| 917 */ | 588 */ |
| 918 chrome.fileManagerPrivate.computeChecksum = function(entry, callback) {}; | 589 chrome.fileManagerPrivate.computeChecksum = function(entry, callback) {}; |
| 919 | 590 |
| 920 /** | 591 /** |
| 921 * Is UMA enabled? | 592 * Gets the MIME type of a file. |
| 922 * @param {function(boolean):void} callback |result| Boolean result returned by | 593 * @param {!Entry} entry |
| 923 * the invoked function. | 594 * @param {function((string|undefined))} callback Callback that MIME type of the |
| 924 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-isUMAE
nabled | 595 * file is passed. |
| 596 */ |
| 597 chrome.fileManagerPrivate.getMimeType = function(entry, callback) {}; |
| 598 |
| 599 /** |
| 600 * Gets a flag indicating whether user metrics reporting is enabled. |
| 601 * @param {function((boolean|undefined))} callback |
| 925 */ | 602 */ |
| 926 chrome.fileManagerPrivate.isUMAEnabled = function(callback) {}; | 603 chrome.fileManagerPrivate.isUMAEnabled = function(callback) {}; |
| 927 | 604 |
| 928 /** | 605 /** |
| 929 * Sets a tag on a file or a directory. Only Drive files are supported. | 606 * Sets a tag on a file or a directory. Only Drive files are supported. |
| 930 * @param {Object} entry | 607 * @param {!Entry} entry |
| 931 * @param {!chrome.fileManagerPrivate.EntryTagVisibility} visibility | 608 * @param {string} visibility 'private' or 'public' |
| 932 * @param {string} key | 609 * @param {string} key |
| 933 * @param {string} value | 610 * @param {string} value |
| 934 * @param {function():void} callback Callback that does not take arguments. | 611 * @param {function()} callback |
| 935 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-setEnt
ryTag | |
| 936 */ | 612 */ |
| 937 chrome.fileManagerPrivate.setEntryTag = function(entry, visibility, key, value,
callback) {}; | 613 chrome.fileManagerPrivate.setEntryTag = function(entry, visibility, key, |
| 614 value, callback) {}; |
| 938 | 615 |
| 939 /** | 616 /** |
| 940 * Returns if Piex loader is enabled. | 617 * Gets a flag indicating whether PiexLoader is enabled. |
| 941 * @param {function(boolean):void} callback |result| Boolean result returned by | 618 * @param {function((boolean|undefined))} callback |
| 942 * the invoked function. | |
| 943 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-isPiex
LoaderEnabled | |
| 944 */ | 619 */ |
| 945 chrome.fileManagerPrivate.isPiexLoaderEnabled = function(callback) {}; | 620 chrome.fileManagerPrivate.isPiexLoaderEnabled = function(callback) {}; |
| 946 | 621 |
| 947 /** | 622 /** |
| 948 * Returns list of available providing extensions. | 623 * Returns list of available providing extensions. |
| 949 * @param {function(!Array<!chrome.fileManagerPrivate.ProvidingExtension>):void} | 624 * @param {function((!Array<!ProvidingExtension>|undefined))} callback |
| 950 * callback |extensions| List of providing extensions. | |
| 951 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getPro
vidingExtensions | |
| 952 */ | 625 */ |
| 953 chrome.fileManagerPrivate.getProvidingExtensions = function(callback) {}; | 626 chrome.fileManagerPrivate.getProvidingExtensions = function(callback) {}; |
| 954 | 627 |
| 955 /** | 628 /** |
| 956 * Requests adding a new provided file system. If not possible, then an error | 629 * Requests adding a new provided file system. If not possible, then an error |
| 957 * via chrome.runtime.lastError is returned. | 630 * via chrome.runtime.lastError is returned. |
| 958 * @param {string} extension_id | 631 * @param {string} extensionId |
| 959 * @param {function():void} callback Callback that does not take arguments. | 632 * @param {function()} callback |
| 960 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-addPro
videdFileSystem | |
| 961 */ | 633 */ |
| 962 chrome.fileManagerPrivate.addProvidedFileSystem = function(extension_id, callbac
k) {}; | 634 chrome.fileManagerPrivate.addProvidedFileSystem = |
| 635 function(extensionId, callback) {}; |
| 963 | 636 |
| 964 /** | 637 /** |
| 965 * Requests configuring an existing volume. If not possible, then returns an | 638 * Requests configuring an existing file system. If not possible, then returns |
| 966 * error via chrome.runtime.lastError. | 639 * an error via chrome.runtime.lastError. |
| 967 * @param {string} volumeId | 640 * @param {string} volumeId |
| 968 * @param {function():void} callback Callback that does not take arguments. | 641 * @param {function()} callback |
| 969 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-config
ureVolume | |
| 970 */ | 642 */ |
| 971 chrome.fileManagerPrivate.configureVolume = function(volumeId, callback) {}; | 643 chrome.fileManagerPrivate.configureVolume = function(volumeId, callback) {}; |
| 972 | 644 |
| 973 /** | 645 /** |
| 974 * Requests list of custom actions for the specified entries. If not possible, | 646 * Requests fetching list of actions for the specified set of entries. If not |
| 975 * then an error via chrome.runtime.lastError is returned. | 647 * possible, then returns an error via chrome.runtime.lastError. |
| 976 * @param {!Array<Object>} entries | 648 * @param {!Array<!Entry>} entries |
| 977 * @param {function(!Array<!chrome.fileManagerPrivate.fileSystemProvider.Action>
):void} | 649 * @param {function((!Array<!EntryAction>|undefined))} callback |
| 978 * callback |actions| List of actions. | |
| 979 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getCus
tomActions | |
| 980 */ | 650 */ |
| 981 chrome.fileManagerPrivate.getCustomActions = function(entries, callback) {}; | 651 chrome.fileManagerPrivate.getCustomActions = function(entries, callback) {}; |
| 982 | 652 |
| 983 /** | 653 /** |
| 984 * Executes a custom action for a set of entries. If not possible, then an error | |
| 985 * via chrome.runtime.lastError is returned. | |
| 986 * @param {!Array<Object>} entries | |
| 987 * @param {string} actionId | |
| 988 * @param {function():void} callback Callback that does not take arguments. | |
| 989 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-execut
eCustomAction | |
| 990 */ | |
| 991 chrome.fileManagerPrivate.executeCustomAction = function(entries, actionId, call
back) {}; | |
| 992 | |
| 993 /** | |
| 994 * Get the total size of a directory. |entry| Entry of the target directory. | 654 * Get the total size of a directory. |entry| Entry of the target directory. |
| 995 * |callback| | 655 * |callback| |
| 996 * @param {Object} entry | 656 * @param {!DirectoryEntry} entry |
| 997 * @param {function(number):void} callback |size| result size. | 657 * @param {function(number)} callback |
| 998 * @see https://developer.chrome.com/extensions/fileManagerPrivate#method-getDir
ectorySize | |
| 999 */ | 658 */ |
| 1000 chrome.fileManagerPrivate.getDirectorySize = function(entry, callback) {}; | 659 chrome.fileManagerPrivate.getDirectorySize = function(entry, callback) {}; |
| 1001 | 660 |
| 1002 /** | 661 /** |
| 1003 * @type {!ChromeEvent} | 662 * Executes the action on the specified set of entries. If not possible, then |
| 1004 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onMount
Completed | 663 * returns an error via chrome.runtime.lastError. |
| 664 * @param {!Array<!Entry>} entries |
| 665 * @param {string} actionId |
| 666 * @param {function()} callback |
| 1005 */ | 667 */ |
| 668 chrome.fileManagerPrivate.executeCustomAction = function( |
| 669 entries, actionId, callback) {}; |
| 670 |
| 671 /** @type {!ChromeEvent} */ |
| 1006 chrome.fileManagerPrivate.onMountCompleted; | 672 chrome.fileManagerPrivate.onMountCompleted; |
| 1007 | 673 |
| 1008 /** | 674 /** @type {!ChromeEvent} */ |
| 1009 * @type {!ChromeEvent} | |
| 1010 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onFileT
ransfersUpdated | |
| 1011 */ | |
| 1012 chrome.fileManagerPrivate.onFileTransfersUpdated; | 675 chrome.fileManagerPrivate.onFileTransfersUpdated; |
| 1013 | 676 |
| 1014 /** | 677 /** @type {!ChromeEvent} */ |
| 1015 * @type {!ChromeEvent} | |
| 1016 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onCopyP
rogress | |
| 1017 */ | |
| 1018 chrome.fileManagerPrivate.onCopyProgress; | 678 chrome.fileManagerPrivate.onCopyProgress; |
| 1019 | 679 |
| 1020 /** | 680 /** @type {!ChromeEvent} */ |
| 1021 * @type {!ChromeEvent} | |
| 1022 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onDirec
toryChanged | |
| 1023 */ | |
| 1024 chrome.fileManagerPrivate.onDirectoryChanged; | 681 chrome.fileManagerPrivate.onDirectoryChanged; |
| 1025 | 682 |
| 1026 /** | 683 /** @type {!ChromeEvent} */ |
| 1027 * @type {!ChromeEvent} | |
| 1028 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onPrefe
rencesChanged | |
| 1029 */ | |
| 1030 chrome.fileManagerPrivate.onPreferencesChanged; | 684 chrome.fileManagerPrivate.onPreferencesChanged; |
| 1031 | 685 |
| 1032 /** | 686 /** @type {!ChromeEvent} */ |
| 1033 * @type {!ChromeEvent} | |
| 1034 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onDrive
ConnectionStatusChanged | |
| 1035 */ | |
| 1036 chrome.fileManagerPrivate.onDriveConnectionStatusChanged; | 687 chrome.fileManagerPrivate.onDriveConnectionStatusChanged; |
| 1037 | 688 |
| 1038 /** | 689 /** @type {!ChromeEvent} */ |
| 1039 * @type {!ChromeEvent} | |
| 1040 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onDevic
eChanged | |
| 1041 */ | |
| 1042 chrome.fileManagerPrivate.onDeviceChanged; | 690 chrome.fileManagerPrivate.onDeviceChanged; |
| 1043 | 691 |
| 1044 /** | 692 /** @type {!ChromeEvent} */ |
| 1045 * @type {!ChromeEvent} | |
| 1046 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onDrive
SyncError | |
| 1047 */ | |
| 1048 chrome.fileManagerPrivate.onDriveSyncError; | 693 chrome.fileManagerPrivate.onDriveSyncError; |
| 1049 | 694 |
| 1050 /** | 695 /** @type {!ChromeEvent} */ |
| 1051 * @type {!ChromeEvent} | |
| 1052 * @see https://developer.chrome.com/extensions/fileManagerPrivate#event-onAppsU
pdated | |
| 1053 */ | |
| 1054 chrome.fileManagerPrivate.onAppsUpdated; | 696 chrome.fileManagerPrivate.onAppsUpdated; |
| 697 |
| 698 /** @enum {string} */ |
| 699 chrome.fileManagerPrivate.Verb = { |
| 700 OPEN_WITH: 'open_with', |
| 701 ADD_TO: 'add_to', |
| 702 PACK_WITH: 'pack_with', |
| 703 SHARE_WITH: 'share_with', |
| 704 }; |
| OLD | NEW |