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