12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595 |
- // Copyright 2014 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- /** @fileoverview Externs generated from namespace: fileManagerPrivate */
- /** @const */
- chrome.fileManagerPrivate = {};
- /** @enum {string} */
- chrome.fileManagerPrivate.VolumeType = {
- DRIVE: 'drive',
- DOWNLOADS: 'downloads',
- REMOVABLE: 'removable',
- ARCHIVE: 'archive',
- PROVIDED: 'provided',
- MTP: 'mtp',
- MEDIA_VIEW: 'media_view',
- CROSTINI: 'crostini',
- ANDROID_FILES: 'android_files',
- DOCUMENTS_PROVIDER: 'documents_provider',
- TESTING: 'testing',
- SMB: 'smb',
- SYSTEM_INTERNAL: 'system_internal',
- GUEST_OS: 'guest_os',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.DeviceType = {
- USB: 'usb',
- SD: 'sd',
- OPTICAL: 'optical',
- MOBILE: 'mobile',
- UNKNOWN: 'unknown',
- };
- /**
- * @enum {string}
- */
- chrome.fileManagerPrivate.DriveConnectionStateType = {
- OFFLINE: 'OFFLINE',
- METERED: 'METERED',
- ONLINE: 'ONLINE',
- };
- /**
- * @enum {string}
- */
- chrome.fileManagerPrivate.DriveOfflineReason = {
- NOT_READY: 'NOT_READY',
- NO_NETWORK: 'NO_NETWORK',
- NO_SERVICE: 'NO_SERVICE',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.MountCondition = {
- UNKNOWN: 'unknown',
- UNSUPPORTED: 'unsupported',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.MountContext = {
- USER: 'user',
- AUTO: 'auto',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.MountCompletedEventType = {
- MOUNT: 'mount',
- UNMOUNT: 'unmount',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.MountCompletedStatus = {
- SUCCESS: 'success',
- ERROR_UNKNOWN: 'error_unknown',
- ERROR_INTERNAL: 'error_internal',
- ERROR_INVALID_ARGUMENT: 'error_invalid_argument',
- ERROR_INVALID_PATH: 'error_invalid_path',
- ERROR_PATH_ALREADY_MOUNTED: 'error_path_already_mounted',
- ERROR_PATH_NOT_MOUNTED: 'error_path_not_mounted',
- ERROR_DIRECTORY_CREATION_FAILED: 'error_directory_creation_failed',
- ERROR_INVALID_MOUNT_OPTIONS: 'error_invalid_mount_options',
- ERROR_INVALID_UNMOUNT_OPTIONS: 'error_invalid_unmount_options',
- ERROR_INSUFFICIENT_PERMISSIONS: 'error_insufficient_permissions',
- ERROR_MOUNT_PROGRAM_NOT_FOUND: 'error_mount_program_not_found',
- ERROR_MOUNT_PROGRAM_FAILED: 'error_mount_program_failed',
- ERROR_INVALID_DEVICE_PATH: 'error_invalid_device_path',
- ERROR_UNKNOWN_FILESYSTEM: 'error_unknown_filesystem',
- ERROR_UNSUPPORTED_FILESYSTEM: 'error_unsupported_filesystem',
- ERROR_INVALID_ARCHIVE: 'error_invalid_archive',
- ERROR_NEED_PASSWORD: 'error_need_password',
- ERROR_IN_PROGRESS: 'error_in_progress',
- ERROR_CANCELLED: 'error_cancelled',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.FormatFileSystemType = {
- VFAT: 'vfat',
- EXFAT: 'exfat',
- NTFS: 'ntfs',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.TransferState = {
- IN_PROGRESS: 'in_progress',
- COMPLETED: 'completed',
- FAILED: 'failed',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.CopyOrMoveProgressStatusType = {
- BEGIN: 'begin',
- PROGRESS: 'progress',
- END_COPY: 'end_copy',
- END_MOVE: 'end_move',
- END_REMOVE_SOURCE: 'end_remove_source',
- SUCCESS: 'success',
- ERROR: 'error',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.FileWatchEventType = {
- CHANGED: 'changed',
- ERROR: 'error',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.ChangeType = {
- ADD_OR_UPDATE: 'add_or_update',
- DELETE: 'delete',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.SearchType = {
- EXCLUDE_DIRECTORIES: 'EXCLUDE_DIRECTORIES',
- SHARED_WITH_ME: 'SHARED_WITH_ME',
- OFFLINE: 'OFFLINE',
- ALL: 'ALL',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.ZoomOperationType = {
- IN: 'in',
- OUT: 'out',
- RESET: 'reset',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.InspectionType = {
- NORMAL: 'normal',
- CONSOLE: 'console',
- ELEMENT: 'element',
- BACKGROUND: 'background',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.DeviceEventType = {
- DISABLED: 'disabled',
- REMOVED: 'removed',
- HARD_UNPLUGGED: 'hard_unplugged',
- FORMAT_START: 'format_start',
- FORMAT_SUCCESS: 'format_success',
- FORMAT_FAIL: 'format_fail',
- RENAME_START: 'rename_start',
- RENAME_SUCCESS: 'rename_success',
- RENAME_FAIL: 'rename_fail',
- PARTITION_START: 'partition_start',
- PARTITION_SUCCESS: 'partition_success',
- PARTITION_FAIL: 'partition_fail',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.DriveSyncErrorType = {
- DELETE_WITHOUT_PERMISSION: 'delete_without_permission',
- SERVICE_UNAVAILABLE: 'service_unavailable',
- NO_SERVER_SPACE: 'no_server_space',
- NO_SERVER_SPACE_ORGANIZATION: 'no_server_space_organization',
- NO_LOCAL_SPACE: 'no_local_space',
- MISC: 'misc',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.DriveConfirmDialogType = {
- ENABLE_DOCS_OFFLINE: 'enable_docs_offline',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.DriveDialogResult = {
- NOT_DISPLAYED: 'not_displayed',
- ACCEPT: 'accept',
- REJECT: 'reject',
- DISMISS: 'dismiss',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.TaskResult = {
- OPENED: 'opened',
- MESSAGE_SENT: 'message_sent',
- FAILED: 'failed',
- EMPTY: 'empty',
- FAILED_PLUGIN_VM_DIRECTORY_NOT_SHARED:
- 'failed_plugin_vm_directory_not_shared',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.DriveShareType = {
- CAN_EDIT: 'can_edit',
- CAN_COMMENT: 'can_comment',
- CAN_VIEW: 'can_view',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.EntryPropertyName = {
- SIZE: 'size',
- MODIFICATION_TIME: 'modificationTime',
- MODIFICATION_BY_ME_TIME: 'modificationByMeTime',
- THUMBNAIL_URL: 'thumbnailUrl',
- CROPPED_THUMBNAIL_URL: 'croppedThumbnailUrl',
- IMAGE_WIDTH: 'imageWidth',
- IMAGE_HEIGHT: 'imageHeight',
- IMAGE_ROTATION: 'imageRotation',
- PINNED: 'pinned',
- PRESENT: 'present',
- HOSTED: 'hosted',
- AVAILABLE_OFFLINE: 'availableOffline',
- AVAILABLE_WHEN_METERED: 'availableWhenMetered',
- DIRTY: 'dirty',
- CUSTOM_ICON_URL: 'customIconUrl',
- CONTENT_MIME_TYPE: 'contentMimeType',
- SHARED_WITH_ME: 'sharedWithMe',
- SHARED: 'shared',
- STARRED: 'starred',
- EXTERNAL_FILE_URL: 'externalFileUrl',
- ALTERNATE_URL: 'alternateUrl',
- SHARE_URL: 'shareUrl',
- CAN_COPY: 'canCopy',
- CAN_DELETE: 'canDelete',
- CAN_RENAME: 'canRename',
- CAN_ADD_CHILDREN: 'canAddChildren',
- CAN_SHARE: 'canShare',
- CAN_PIN: 'canPin',
- IS_MACHINE_ROOT: 'isMachineRoot',
- IS_EXTERNAL_MEDIA: 'isExternalMedia',
- IS_ARBITRARY_SYNC_FOLDER: 'isArbitrarySyncFolder',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.EntryTagVisibility = {
- PRIVATE: 'private',
- PUBLIC: 'public',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.Source = {
- FILE: 'file',
- DEVICE: 'device',
- NETWORK: 'network',
- SYSTEM: 'system',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.Verb = {
- OPEN_WITH: 'open_with',
- ADD_TO: 'add_to',
- PACK_WITH: 'pack_with',
- SHARE_WITH: 'share_with',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.SourceRestriction = {
- ANY_SOURCE: 'any_source',
- NATIVE_SOURCE: 'native_source',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.RecentFileType = {
- ALL: 'all',
- AUDIO: 'audio',
- IMAGE: 'image',
- VIDEO: 'video',
- DOCUMENT: 'document',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.InstallLinuxPackageResponse = {
- STARTED: 'started',
- FAILED: 'failed',
- INSTALL_ALREADY_ACTIVE: 'install_already_active',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.CrostiniEventType = {
- ENABLE: 'enable',
- DISABLE: 'disable',
- SHARE: 'share',
- UNSHARE: 'unshare',
- DROP_FAILED_PLUGIN_VM_DIRECTORY_NOT_SHARED:
- 'drop_failed_plugin_vm_directory_not_shared',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.SharesheetLaunchSource = {
- CONTEXT_MENU: 'context_menu',
- SHARESHEET_BUTTON: 'sharesheet_button',
- UNKNOWN: 'unknown',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.IOTaskState = {
- QUEUED: 'queued',
- IN_PROGRESS: 'in_progress',
- SUCCESS: 'success',
- ERROR: 'error',
- NEED_PASSWORD: 'need_password',
- CANCELLED: 'cancelled',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.IOTaskType = {
- COPY: 'copy',
- DELETE: 'delete',
- EMPTY_TRASH: 'empty_trash',
- EXTRACT: 'extract',
- MOVE: 'move',
- RESTORE: 'restore',
- TRASH: 'trash',
- ZIP: 'zip',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.RecentDateBucket = {
- TODAY: 'today',
- YESTERDAY: 'yesterday',
- EARLIER_THIS_WEEK: 'earlier_this_week',
- EARLIER_THIS_MONTH: 'earlier_this_month',
- EARLIER_THIS_YEAR: 'earlier_this_year',
- OLDER: 'older',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.VmType = {
- TERMINA: 'termina',
- PLUGIN_VM: 'plugin_vm',
- BOREALIS: 'borealis',
- BRUSCHETTA: 'bruschetta',
- ARCVM: 'arcvm',
- };
- /** @enum {string} */
- chrome.fileManagerPrivate.UserType = {
- UNMANAGED: 'kUnmanaged',
- ORGANIZATION: 'kOrganization'
- };
- /**
- * @typedef {{
- * appId: string,
- * taskType: string,
- * actionId: string
- * }}
- */
- chrome.fileManagerPrivate.FileTaskDescriptor;
- /**
- * @typedef {{
- * descriptor: !chrome.fileManagerPrivate.FileTaskDescriptor,
- * title: string,
- * verb: (!chrome.fileManagerPrivate.Verb|undefined),
- * iconUrl: (string|undefined),
- * isDefault: (boolean|undefined),
- * isGenericFileHandler: (boolean|undefined)
- * }}
- */
- chrome.fileManagerPrivate.FileTask;
- /**
- * @typedef {{
- * size: (number|undefined),
- * modificationTime: (number|undefined),
- * modificationByMeTime: (number|undefined),
- * thumbnailUrl: (string|undefined),
- * croppedThumbnailUrl: (string|undefined),
- * imageWidth: (number|undefined),
- * imageHeight: (number|undefined),
- * imageRotation: (number|undefined),
- * pinned: (boolean|undefined),
- * present: (boolean|undefined),
- * hosted: (boolean|undefined),
- * availableOffline: (boolean|undefined),
- * availableWhenMetered: (boolean|undefined),
- * dirty: (boolean|undefined),
- * customIconUrl: (string|undefined),
- * contentMimeType: (string|undefined),
- * sharedWithMe: (boolean|undefined),
- * shared: (boolean|undefined),
- * starred: (boolean|undefined),
- * externalFileUrl: (string|undefined),
- * alternateUrl: (string|undefined),
- * shareUrl: (string|undefined),
- * canCopy: (boolean|undefined),
- * canDelete: (boolean|undefined),
- * canRename: (boolean|undefined),
- * canAddChildren: (boolean|undefined),
- * canShare: (boolean|undefined),
- * canPin: (boolean|undefined),
- * isMachineRoot: (boolean|undefined),
- * isExternalMedia: (boolean|undefined),
- * isArbitrarySyncFolder: (boolean|undefined)
- * }}
- */
- chrome.fileManagerPrivate.EntryProperties;
- /**
- * @typedef {{
- * totalSize: number,
- * remainingSize: number
- * }}
- */
- chrome.fileManagerPrivate.MountPointSizeStats;
- /**
- * @typedef {{
- * userType: !chrome.fileManagerPrivate.UserType,
- * usedUserBytes: number,
- * totalUserBytes: number,
- * organizationLimitExceeded: boolean,
- * organizationName: string
- * }}
- */
- chrome.fileManagerPrivate.DriveQuotaMetadata;
- /**
- * @typedef {{
- * profileId: string,
- * displayName: string,
- * isCurrentProfile: boolean
- * }}
- */
- chrome.fileManagerPrivate.ProfileInfo;
- /**
- * @typedef {{
- * icon16x16Url: (string|undefined),
- * icon32x32Url: (string|undefined)
- * }}
- */
- chrome.fileManagerPrivate.IconSet;
- /**
- * @typedef {{
- * volumeId: string,
- * fileSystemId: (string|undefined),
- * providerId: (string|undefined),
- * source: !chrome.fileManagerPrivate.Source,
- * volumeLabel: (string|undefined),
- * profile: !chrome.fileManagerPrivate.ProfileInfo,
- * sourcePath: (string|undefined),
- * volumeType: !chrome.fileManagerPrivate.VolumeType,
- * deviceType: (!chrome.fileManagerPrivate.DeviceType|undefined),
- * devicePath: (string|undefined),
- * isParentDevice: (boolean|undefined),
- * isReadOnly: boolean,
- * isReadOnlyRemovableDevice: boolean,
- * hasMedia: boolean,
- * configurable: boolean,
- * watchable: boolean,
- * mountCondition: (!chrome.fileManagerPrivate.MountCondition|undefined),
- * mountContext: (!chrome.fileManagerPrivate.MountContext|undefined),
- * diskFileSystemType: (string|undefined),
- * iconSet: !chrome.fileManagerPrivate.IconSet,
- * driveLabel: (string|undefined),
- * remoteMountPath: (string|undefined)
- * }}
- */
- chrome.fileManagerPrivate.VolumeMetadata;
- /**
- * @typedef {{
- * eventType: !chrome.fileManagerPrivate.MountCompletedEventType,
- * status: !chrome.fileManagerPrivate.MountCompletedStatus,
- * volumeMetadata: !chrome.fileManagerPrivate.VolumeMetadata,
- * shouldNotify: boolean
- * }}
- */
- chrome.fileManagerPrivate.MountCompletedEvent;
- /**
- * @typedef {{
- * fileUrl: string,
- * transferState: !chrome.fileManagerPrivate.TransferState,
- * processed: number,
- * total: number,
- * numTotalJobs: number,
- * hideWhenZeroJobs: boolean
- * }}
- */
- chrome.fileManagerPrivate.FileTransferStatus;
- /**
- * @typedef {{
- * type: !chrome.fileManagerPrivate.DriveSyncErrorType,
- * fileUrl: string
- * }}
- */
- chrome.fileManagerPrivate.DriveSyncErrorEvent;
- /**
- * @typedef {{
- * type: !chrome.fileManagerPrivate.DriveConfirmDialogType,
- * fileUrl: string
- * }}
- */
- chrome.fileManagerPrivate.DriveConfirmDialogEvent;
- /**
- * @typedef {{
- * type: !chrome.fileManagerPrivate.CopyOrMoveProgressStatusType,
- * sourceUrl: (string|undefined),
- * destinationUrl: (string|undefined),
- * size: (number|undefined),
- * error: (string|undefined)
- * }}
- */
- chrome.fileManagerPrivate.CopyOrMoveProgressStatus;
- /**
- * @typedef {{
- * url: string,
- * changes: !Array<!chrome.fileManagerPrivate.ChangeType>
- * }}
- */
- chrome.fileManagerPrivate.FileChange;
- /**
- * @typedef {{
- * eventType: !chrome.fileManagerPrivate.FileWatchEventType,
- * entry: Object,
- * changedFiles: (!Array<!chrome.fileManagerPrivate.FileChange>|undefined)
- * }}
- */
- chrome.fileManagerPrivate.FileWatchEvent;
- /**
- * @typedef {{
- * driveEnabled: boolean,
- * cellularDisabled: boolean,
- * searchSuggestEnabled: boolean,
- * use24hourClock: boolean,
- * timezone: string,
- * arcEnabled: boolean,
- * arcRemovableMediaAccessEnabled: boolean,
- * folderShortcuts: !Array<string>
- * }}
- */
- chrome.fileManagerPrivate.Preferences;
- /**
- * @typedef {{
- * cellularDisabled: (boolean|undefined),
- * arcEnabled: (boolean|undefined),
- * arcRemovableMediaAccessEnabled: (boolean|undefined),
- * folderShortcuts: (!Array<string>|undefined)
- * }}
- */
- chrome.fileManagerPrivate.PreferencesChange;
- /**
- * @typedef {{
- * query: string,
- * nextFeed: string
- * }}
- */
- chrome.fileManagerPrivate.SearchParams;
- /**
- * @typedef {{
- * query: string,
- * types: !chrome.fileManagerPrivate.SearchType,
- * maxResults: number
- * }}
- */
- chrome.fileManagerPrivate.SearchMetadataParams;
- /**
- * @typedef {{
- * entry: Entry,
- * highlightedBaseName: string,
- * availableOffline: (boolean|undefined)
- * }}
- */
- chrome.fileManagerPrivate.DriveMetadataSearchResult;
- /**
- * @typedef {{
- * type: !chrome.fileManagerPrivate.DriveConnectionStateType,
- * reason: (!chrome.fileManagerPrivate.DriveOfflineReason|undefined),
- * hasCellularNetworkAccess: boolean,
- * canPinHostedFiles: boolean
- * }}
- */
- chrome.fileManagerPrivate.DriveConnectionState;
- /**
- * @typedef {{
- * type: !chrome.fileManagerPrivate.DeviceEventType,
- * devicePath: string,
- * deviceLabel: string
- * }}
- */
- chrome.fileManagerPrivate.DeviceEvent;
- /**
- * @typedef {{
- * providerId: string,
- * iconSet: !chrome.fileManagerPrivate.IconSet,
- * name: string,
- * configurable: boolean,
- * watchable: boolean,
- * multipleMounts: boolean,
- * source: string
- * }}
- */
- chrome.fileManagerPrivate.Provider;
- /**
- * @typedef {{
- * name: string,
- * version: string,
- * summary: (string|undefined),
- * description: (string|undefined),
- * }}
- */
- chrome.fileManagerPrivate.LinuxPackageInfo;
- /**
- * @typedef {{
- * id: number,
- * displayName: string,
- * vmType: !chrome.fileManagerPrivate.VmType,
- * }}
- */
- chrome.fileManagerPrivate.MountableGuest;
- /**
- * @typedef {{
- * eventType: chrome.fileManagerPrivate.CrostiniEventType,
- * vmName: string,
- * entries: !Array<!Entry>,
- * }}
- */
- chrome.fileManagerPrivate.CrostiniEvent;
- /**
- * @typedef {{
- * name: string,
- * packageName: string,
- * activityName: string,
- * iconSet: !chrome.fileManagerPrivate.IconSet
- * }}
- */
- chrome.fileManagerPrivate.AndroidApp;
- /**
- * @typedef {{
- * type: string,
- * tags: !Object,
- * }}
- */
- chrome.fileManagerPrivate.StreamInfo;
- /**
- * @typedef {{
- * data: string,
- * type: string,
- * }}
- */
- chrome.fileManagerPrivate.AttachedImages;
- /**
- * @typedef {{
- * mimeType: string,
- * height: (number|undefined),
- * width: (number|undefined),
- * duration: (number|undefined),
- * rotation: (number|undefined),
- * album: (string|undefined),
- * artist: (string|undefined),
- * comment: (string|undefined),
- * copyright: (string|undefined),
- * disc: (number|undefined),
- * genre: (string|undefined),
- * language: (string|undefined),
- * title: (string|undefined),
- * track: (number|undefined),
- * rawTags: !Array<!chrome.fileManagerPrivate.StreamInfo>,
- * attachedImages: !Array<!chrome.fileManagerPrivate.AttachedImages>,
- * }}
- */
- chrome.fileManagerPrivate.MediaMetadata;
- /**
- * @typedef {{
- * itemUrls: !Array<string>
- * }}
- */
- chrome.fileManagerPrivate.HoldingSpaceState;
- /**
- * @typedef {{
- * currentDirectoryURL: (string|undefined),
- * selectionURL: (string|undefined)
- * }}
- */
- chrome.fileManagerPrivate.OpenWindowParams;
- /**
- * @typedef {{
- * volumeId: string,
- * writable: boolean,
- * }}
- */
- chrome.fileManagerPrivate.GetVolumeRootOptions;
- /**
- * @typedef {{
- * destinationFolder: (DirectoryEntry|undefined),
- * password: (string|undefined),
- * }}
- */
- chrome.fileManagerPrivate.IOTaskParams;
- /**
- * @typedef {{
- * type: !chrome.fileManagerPrivate.IOTaskType,
- * state: !chrome.fileManagerPrivate.IOTaskState,
- * numRemainingItems: number,
- * itemCount: number,
- * bytesTransferred: number,
- * sourceName: string,
- * destinationName: string,
- * totalBytes: number,
- * taskId: number,
- * remainingSeconds: number,
- * errorName: string,
- * outputs: (Array<Entry>|undefined),
- * }}
- */
- chrome.fileManagerPrivate.ProgressStatus;
- /**
- * @typedef {{
- * sourceUrl: string,
- * isDlpRestricted: boolean,
- * }}
- */
- chrome.fileManagerPrivate.DlpMetadata;
- /** @enum {string} */
- chrome.fileManagerPrivate.DlpLevel = {
- BLOCK: 'block',
- ALLOW: 'allow',
- };
- /**
- * @typedef {{
- * level: chrome.fileManagerPrivate.DlpLevel,
- * urls: !Array<string>,
- * components: !Array<chrome.fileManagerPrivate.VolumeType>,
- * }}
- */
- chrome.fileManagerPrivate.DlpRestrictionDetails;
- /**
- * @typedef {{
- * restoreEntry: !Entry,
- * trashInfoFileName: string,
- * deletionDate: Date,
- * }}
- */
- chrome.fileManagerPrivate.ParsedTrashInfoFile;
- /**
- * Logout the current user for navigating to the re-authentication screen for
- * the Google account.
- */
- chrome.fileManagerPrivate.logoutUserForReauthentication = function() {};
- /**
- * Cancels file selection.
- */
- chrome.fileManagerPrivate.cancelDialog = function() {};
- /**
- * Executes file browser task over selected files. |descriptor| The unique
- * identifier of task to execute. |entries| Array of file entries |callback|
- * @param {!chrome.fileManagerPrivate.FileTaskDescriptor} descriptor
- * @param {!Array<!Entry>} entries
- * @param {function(!chrome.fileManagerPrivate.TaskResult)} callback |result|
- * Result of the task execution.
- */
- chrome.fileManagerPrivate.executeTask = function(descriptor, entries, callback) {};
- /**
- * Sets the default task for the supplied MIME types and path extensions. Lists
- * of MIME types and entries may contain duplicates. |descriptor| The unique
- * identifier of task to mark as default. |entries| Array of selected file
- * entries to extract path extensions from. |mimeTypes| Array of selected file
- * MIME types. |callback|
- * @param {!chrome.fileManagerPrivate.FileTaskDescriptor} descriptor
- * @param {!Array<!Entry>} entries
- * @param {!Array<string>} mimeTypes
- * @param {!function()} callback Callback that does not take arguments.
- */
- chrome.fileManagerPrivate.setDefaultTask = function(descriptor, entries, mimeTypes,
- callback) {};
- /**
- * Gets the list of tasks that can be performed over selected files. |entries|
- * Array of selected entries |callback|
- * @param {!Array<!Entry>} entries
- * @param {function((!Array<!chrome.fileManagerPrivate.FileTask>|undefined))}
- * callback |tasks| The list of matched file entries for this task.
- */
- chrome.fileManagerPrivate.getFileTasks = function(entries, callback) {};
- /**
- * Gets the MIME type of an entry.
- * @param {!Entry} entry The Entry.
- * @param {function((string|undefined))} callback The MIME type callback.
- */
- chrome.fileManagerPrivate.getMimeType = function(entry, callback) {};
- /**
- * Gets the content sniffed MIME type of a file.
- * @param {!FileEntry} fileEntry The file entry.
- * @param {function((string|undefined))} callback The MIME type callback.
- * $(ref:runtime.lastError) will be set if there was an error.
- */
- chrome.fileManagerPrivate.getContentMimeType = function(fileEntry, callback) {};
- /**
- * Gets the content metadata from an Audio or Video file.
- * @param {!FileEntry} fileEntry The file entry.
- * @param {string} mimeType The content sniffed mimeType of the file.
- * @param {boolean} includeImages If true, return metadata tags and thumbnail
- * images. If false, return metadata tags only.
- * @param {function((!chrome.fileManagerPrivate.MediaMetadata|undefined))}
- * callback The content MediaMetadata callback.
- * $(ref:runtime.lastError) will be set if there was an error.
- */
- chrome.fileManagerPrivate.getContentMetadata = function(fileEntry, mimeType,
- includeImages, callback) {};
- /**
- * Gets localized strings and initialization data. |callback|
- * @param {function((!Object|undefined))} callback |result| Hash containing the
- * string assets.
- */
- chrome.fileManagerPrivate.getStrings = function(callback) {};
- /**
- * Adds file watch. |entry| Entry of file to watch |callback|
- * @param {!Entry} entry
- * @param {function((boolean|undefined))} callback |success| True when file
- * watch is successfully added.
- */
- chrome.fileManagerPrivate.addFileWatch = function(entry, callback) {};
- /**
- * Removes file watch. |entry| Entry of watched file to remove |callback|
- * @param {!Entry} entry
- * @param {function((boolean|undefined))} callback |success| True when file
- * watch is successfully
- * removed.
- */
- chrome.fileManagerPrivate.removeFileWatch = function(entry, callback) {};
- /**
- * Enables the extenal file scheme necessary to initiate drags to the browser
- * window for files on the external backend.
- */
- chrome.fileManagerPrivate.enableExternalFileScheme = function() {};
- /**
- * Requests R/W access to the specified entries as |entryUrls|. Note, that only
- * files backed by external file system backend will be granted the access.
- * @param {!Array<string>} entryUrls
- * @param {function()} callback Completion callback.
- */
- chrome.fileManagerPrivate.grantAccess = function(entryUrls, callback) {};
- /**
- * Selects multiple files. |selectedPaths| Array of selected paths
- * |shouldReturnLocalPath| true if paths need to be resolved to local paths.
- * |callback|
- * @param {!Array<string>} selectedPaths
- * @param {boolean} shouldReturnLocalPath
- * @param {function()} callback Callback that does not take arguments.
- */
- chrome.fileManagerPrivate.selectFiles = function(selectedPaths,
- shouldReturnLocalPath, callback) {};
- /**
- * Selects a file. |selectedPath| A selected path |index| Index of Filter
- * |forOpening| true if paths are selected for opening. false if for saving.
- * |shouldReturnLocalPath| true if paths need to be resolved to local paths.
- * |callback|
- * @param {string} selectedPath
- * @param {number} index
- * @param {boolean} forOpening
- * @param {boolean} shouldReturnLocalPath
- * @param {function()} callback Callback that does not take arguments.
- */
- chrome.fileManagerPrivate.selectFile = function(selectedPath, index, forOpening,
- shouldReturnLocalPath, callback) {};
- /**
- * Requests additional properties for files. |entries| list of entries of files
- * |callback|
- * @param {!Array<!Entry>} entries
- * @param {!Array<string>} names
- * @param {function((!Array<!chrome.fileManagerPrivate.EntryProperties>|undefined))}
- * callback |entryProperties| A dictionary containing properties of the
- * requested entries.
- */
- chrome.fileManagerPrivate.getEntryProperties = function(entries, names,
- callback) {};
- /**
- * Pins/unpins a Drive file in the cache. |entry| Entry of a file to pin/unpin.
- * |pin| Pass true to pin the file. |callback| Completion callback.
- * $(ref:runtime.lastError) will be set if there was an error.
- * @param {!Entry} entry
- * @param {boolean} pin
- * @param {function()} callback Callback that does not take arguments.
- */
- chrome.fileManagerPrivate.pinDriveFile = function(entry, pin, callback) {};
- /**
- * Resolves file entries in the isolated file system and returns corresponding
- * entries in the external file system mounted to Chrome OS file manager
- * backend. If resolving entry fails, the entry will be just ignored and the
- * corresponding entry does not appear in the result.
- * @param {!Array<!Entry>} entries
- * @param {function(!Array<!Entry>): void} callback Completion callback
- * with resolved entries.
- */
- chrome.fileManagerPrivate.resolveIsolatedEntries = function(entries,
- callback) {};
- /**
- * Mounts a resource or an archive.
- * @param {string} fileUrl Mount point source.
- * @param {string|undefined} password Optional password to decrypt the archive.
- * @param {function(string): void} callback callback Callback called with the
- * source path of the mount.
- */
- chrome.fileManagerPrivate.addMount = function(fileUrl, password, callback) {};
- /**
- * Cancels an archive mounting operation.
- * @param {string} fileUrl Mount point source. Should be same as the one passed
- * to addMount.
- * @param {function()} callback
- */
- chrome.fileManagerPrivate.cancelMounting = function(fileUrl, callback) {};
- /**
- * Unmounts a mounted resource. |volumeId| An ID of the volume.
- * @param {string} volumeId
- * @param {function()} callback
- */
- chrome.fileManagerPrivate.removeMount = function(volumeId, callback) {};
- /**
- * Get the list of mounted volumes. |callback|
- * @param {function((!Array<!chrome.fileManagerPrivate.VolumeMetadata>|undefined))}
- * callback Callback with the list of
- * chrome.fileManagerPrivate.VolumeMetadata representing mounted volumes.
- */
- chrome.fileManagerPrivate.getVolumeMetadataList = function(callback) {};
- /**
- * Returns a list of files not allowed to be transferred. |entries| list of
- * source entries to be transferred. If any of |entries| is a directory, it will
- * check all its files recursively. |destinationEntry| Entry of the destination
- * directory.
- * @param {!Array<!Entry>} entries
- * @param {!DirectoryEntry} destinationEntry
- * @param {!Array<!Entry>} callback Entries of the files not allowed to be
- * transferred.
- */
- chrome.fileManagerPrivate.getDisallowedTransfers = function(
- entries, destinationEntry, callback) {};
- /**
- * Returns a list of files that are restricted by any Data Leak Prevention
- * (DLP) rule. |entries| list of source entries to be checked.
- * @param {!Array<!Entry>} entries
- * @param {function((!Array<!chrome.fileManagerPrivate.DlpMetadata>|undefined))}
- * callback Callback with the list of chrome.fileManagerPrivate.DlpMetadata
- * containing DLP information about the entries.
- */
- chrome.fileManagerPrivate.getDlpMetadata = function(entries, callback) {};
- /**
- * Retrieves Data Leak Prevention (DLP) restriction details.
- * @param {string} sourceUrl Source URL of the Entry for which the details
- * should be shown.
- * @param {function(!Array<chrome.fileManagerPrivate.DlpRestrictionDetails>)}
- * callback Callback with the list of
- * chrome.fileManagerPrivate.DlpRestrictionDetails containing summarized
- * restriction information about the entry.
- */
- chrome.fileManagerPrivate.getDlpRestrictionDetails = function(
- sourceUrl, callback) {};
- /**
- * Starts to copy an entry. If the source is a directory, the copy is done
- * recursively. |entry| Entry of the source entry to be copied. |parent| Entry
- * of the destination directory. |newName| Name of the new entry. It must not
- * contain '/'. |callback| Completion callback.
- * @param {!Entry} entry
- * @param {!DirectoryEntry} parentEntry
- * @param {string} newName
- * @param {function((number|undefined))} callback |copyId| ID of the copy task.
- * Can be used to identify the progress, and to cancel the task.
- */
- chrome.fileManagerPrivate.startCopy = function(entry, parentEntry, newName,
- callback) {};
- /**
- * Cancels the running copy task. |copyId| ID of the copy task to be cancelled.
- * |callback| Completion callback of the cancel.
- * @param {number} copyId
- * @param {function()} callback Callback that does not take arguments.
- */
- chrome.fileManagerPrivate.cancelCopy = function(copyId, callback) {};
- /**
- * Retrieves total and remaining size of a mount point. |volumeId| ID of the
- * volume to be checked. |callback|
- * @param {string} volumeId
- * @param {function((!chrome.fileManagerPrivate.MountPointSizeStats|undefined))}
- * callback Name/value pairs of size stats. Will be undefined if stats could
- * not be determined.
- */
- chrome.fileManagerPrivate.getSizeStats = function(volumeId, callback) {};
- /**
- * Retrieves drive quota metadata.
- * @param {function((!chrome.fileManagerPrivate.DriveQuotaMetadata|undefined))}
- * callback Name/value pairs of drive quota metadata. Will be undefined if
- * quota metadata could not be determined.
- */
- chrome.fileManagerPrivate.getDriveQuotaMetadata = function(callback) {};
- /**
- * Formats a mounted volume. |volumeId| ID of the volume to be formatted.
- * @param {string} volumeId
- * @param {chrome.fileManagerPrivate.FormatFileSystemType} filesystem
- * @param {string} volumeLabel
- */
- chrome.fileManagerPrivate.formatVolume = function(volumeId, filesystem,
- volumeLabel) {};
- /**
- * Deletes partitions of removable device, creates a single partition
- * and format it.
- * @param {string} devicePath
- * @param {chrome.fileManagerPrivate.FormatFileSystemType} filesystem
- * @param {string} volumeLabel
- */
- chrome.fileManagerPrivate.singlePartitionFormat = function(devicePath,
- filesystem, volumeLabel) {};
- /**
- * Renames a mounted volume. |volumeId| ID of the volume to be renamed to
- * |newName|.
- * @param {string} volumeId
- * @param {string} newName
- */
- chrome.fileManagerPrivate.renameVolume = function(volumeId, newName) {};
- /**
- * Retrieves file manager preferences. |callback|
- * @param {function((!chrome.fileManagerPrivate.Preferences|undefined))}
- * callback
- */
- chrome.fileManagerPrivate.getPreferences = function(callback) {};
- /**
- * Sets file manager preferences. |changeInfo|
- * @param {chrome.fileManagerPrivate.PreferencesChange} changeInfo
- */
- chrome.fileManagerPrivate.setPreferences = function(changeInfo) {};
- /**
- * Performs drive content search. |searchParams| |callback|
- * @param {chrome.fileManagerPrivate.SearchParams} searchParams
- * @param {function((!Array<Entry>|undefined), (string|undefined))} callback
- * Entries and ID of the feed that contains next chunk of the search result.
- * Should be sent to the next searchDrive request to perform incremental search.
- */
- chrome.fileManagerPrivate.searchDrive = function(searchParams, callback) {};
- /**
- * Performs drive metadata search. |searchParams| |callback|
- * @param {!chrome.fileManagerPrivate.SearchMetadataParams} searchParams
- * @param {function(!Array<!chrome.fileManagerPrivate.DriveMetadataSearchResult>): void}
- * callback
- */
- chrome.fileManagerPrivate.searchDriveMetadata = function(searchParams, callback) {};
- /**
- * Search for files in the given volume, whose content hash matches the list of
- * given hashes.
- * @param {string} volumeId
- * @param {!Array<string>} hashes
- * @param {function((!Object<string, !Array<string>>|undefined))} callback
- */
- chrome.fileManagerPrivate.searchFilesByHashes = function(volumeId, hashes,
- callback) {};
- /**
- * Search files in My Files.
- * @param {!chrome.fileManagerPrivate.SearchMetadataParams} searchParams
- * @param {function(!Array<Object>): void} callback
- */
- chrome.fileManagerPrivate.searchFiles = function(searchParams, callback) {};
- /**
- * Creates a ZIP file for the selected files and folders. Folders are
- * recursively explored and zipped. Hidden files and folders (with names
- * starting with a dot) found during recursive exploration are included too.
- * @param {!Array<!Entry>} entries Entries of the selected files and folders to
- * zip. They must be under the |parentEntry| directory.
- * @param {!DirectoryEntry} parentEntry Entry of the directory containing the
- * selected files and folders. This is where the ZIP file will be created,
- * too.
- * @param {string} destName Name of the destination ZIP file. The ZIP file will
- * be created in the directory specified by |parentEntry|.
- * @param {function(number, number)} callback called with (zipId, totalBytes)
- * where |zipId| is the ID of the ZIP operation, and |totalBytes| is the
- * total number of bytes in all the files that are going to be zipped.
- */
- chrome.fileManagerPrivate.zipSelection = function(
- entries, parentEntry, destName, callback) {};
- /**
- * Cancels an ongoing ZIP operation.
- * Does nothing if there is no matching ongoing ZIP operation.
- * @param {number} zipId ID of the ZIP operation.
- */
- chrome.fileManagerPrivate.cancelZip = function(zipId) {};
- /**
- * Gets the progress of an ongoing ZIP operation.
- * @param {number} zipId ID of the ZIP operation.
- * @param {function(number, number)} callback called with progress information
- * (result, bytes), where |result| is less than 0 if the operation is still
- * in progress, 0 if the operation finished successfully, or greater than 0
- * if the operation finished with an error, and |bytes| is the total number
- * of bytes having been zipped so far.
- */
- chrome.fileManagerPrivate.getZipProgress = function(zipId, callback) {};
- /**
- * Retrieves the state of the current drive connection. |callback|
- * @param {function(!chrome.fileManagerPrivate.DriveConnectionState): void}
- * callback
- */
- chrome.fileManagerPrivate.getDriveConnectionState = function(callback) {};
- /**
- * Checks whether the path name length fits in the limit of the filesystem.
- * |parentEntry| The parent directory entry. |name| The name of the file.
- * |callback| Called back when the check is finished.
- * @param {!DirectoryEntry} parentEntry
- * @param {string} name
- * @param {function((boolean|undefined))} callback |result| true if the length
- * is in the valid range, false otherwise.
- */
- chrome.fileManagerPrivate.validatePathNameLength = function(
- parentEntry, name, callback) {};
- /**
- * Changes the zoom factor of the Files app. |operation| Zooming mode.
- * @param {string} operation
- */
- chrome.fileManagerPrivate.zoom = function(operation) {};
- /**
- * Requests a Webstore API OAuth2 access token. |callback|
- * @param {function((string|undefined))} callback |accessToken| OAuth2 access
- * token, or an empty string if failed to fetch.
- */
- chrome.fileManagerPrivate.requestWebStoreAccessToken = function(callback) {};
- /**
- * Requests a download url to download the file contents.
- * @param {!Entry} entry
- * @param {function((string|undefined))} callback Callback with the result url.
- */
- chrome.fileManagerPrivate.getDownloadUrl = function(entry, callback) {};
- /**
- * Obtains a list of profiles that are logged-in.
- * @param {function((!Array<!chrome.fileManagerPrivate.ProfileInfo>|undefined),
- * (string|undefined), (string|undefined))} callback Callback with list of
- * profile information, |runningProfile| ID of the profile that runs the
- * application instance. |showingProfile| ID of the profile that shows the
- * application window.
- */
- chrome.fileManagerPrivate.getProfiles = function(callback) {};
- /**
- * Opens inspector window. |type| InspectionType which specifies how to open
- * inspector.
- * @param {string} type
- */
- chrome.fileManagerPrivate.openInspector = function(type) {};
- /**
- * Opens settings sub page. |sub_page| Name of a sub page.
- * @param {string} sub_page
- */
- chrome.fileManagerPrivate.openSettingsSubpage = function(sub_page) {};
- /**
- * Computes an MD5 checksum for the given file.
- * @param {!Entry} entry
- * @param {function((string|undefined))} callback
- */
- chrome.fileManagerPrivate.computeChecksum = function(entry, callback) {};
- /**
- * Returns list of available providers.
- * @param {function((!Array<!chrome.fileManagerPrivate.Provider>|undefined))}
- * callback
- */
- chrome.fileManagerPrivate.getProviders = function(callback) {};
- /**
- * Requests adding a new provided file system. If not possible, then an error
- * via chrome.runtime.lastError is returned.
- * @param {string} providerId
- * @param {function()} callback
- */
- chrome.fileManagerPrivate.addProvidedFileSystem =
- function(providerId, callback) {};
- /**
- * Requests configuring an existing file system. If not possible, then returns
- * an error via chrome.runtime.lastError.
- * @param {string} volumeId
- * @param {function()} callback
- */
- chrome.fileManagerPrivate.configureVolume = function(volumeId, callback) {};
- /**
- * Requests fetching list of actions for the specified set of entries. If not
- * possible, then returns an error via chrome.runtime.lastError.
- * @param {!Array<!Entry>} entries
- * @param {function((!Array<!chrome.fileSystemProvider.Action>|undefined))}
- * callback
- */
- chrome.fileManagerPrivate.getCustomActions = function(entries, callback) {};
- /**
- * Executes the action on the specified set of entries. If not possible, then
- * returns an error via chrome.runtime.lastError.
- * @param {!Array<!Entry>} entries
- * @param {string} actionId
- * @param {function()} callback
- */
- chrome.fileManagerPrivate.executeCustomAction = function(
- entries, actionId, callback) {};
- /**
- * Get the total size of a directory. |entry| Entry of the target directory.
- * |callback|
- * @param {!DirectoryEntry} entry
- * @param {function(number)} callback
- */
- chrome.fileManagerPrivate.getDirectorySize = function(entry, callback) {};
- /**
- * Gets recently modified files across file systems.
- * @param {string} restriction
- * @param {string} fileType
- * @param {boolean} invalidateCache
- * @param {function((!Array<!FileEntry>))} callback
- */
- chrome.fileManagerPrivate.getRecentFiles = function(restriction, fileType, invalidateCache, callback) {};
- /**
- * Requests the root directory of a volume. The ID of the volume must be
- * specified as |volumeId| of the |options| paramter.
- * @param {!chrome.fileManagerPrivate.GetVolumeRootOptions} options
- * @param {function(!DirectoryEntry)} callback
- */
- chrome.fileManagerPrivate.getVolumeRoot = function(options, callback) {};
- /**
- * Starts and mounts crostini container.
- * @param {function()} callback Callback called after the crostini container
- * is started and mounted.
- * chrome.runtime.lastError will be set if there was an error.
- */
- chrome.fileManagerPrivate.mountCrostini = function(callback) {};
- /**
- * Lists guests
- * @param {function((!Array<!chrome.fileManagerPrivate.MountableGuest>))} callback
- * chrome.runtime.lastError will be set if there was an error.
- */
- chrome.fileManagerPrivate.listMountableGuests = function(callback) {};
- /**
- * Starts and mounts target guest
- * @param {!number} id Id of the mount provider to use
- * @param {function()} callback Callback called after the requests completes
- * (either successfully or with an error).
- * chrome.runtime.lastError will be set if there was an error.
- */
- chrome.fileManagerPrivate.mountGuest = function(id, callback) {};
- /**
- * Shares paths with crostini container.
- * @param {string} vmName VM to share path with.
- * @param {!Array<!Entry>} entries Entries of the files and directories to
- * share.
- * @param {boolean} persist If true, share will persist across restarts.
- * @param {function()} callback Callback called after the paths are shared.
- * chrome.runtime.lastError will be set if there was an error.
- */
- chrome.fileManagerPrivate.sharePathsWithCrostini = function(
- vmName, entries, persist, callback) {};
- /**
- * Unshares path with crostini container.
- * @param {string} vmName VM to unshare path from.
- * @param {!Entry} entry Entry of the file or directory to unshare.
- * @param {function()} callback Callback called after the path is unshared.
- * chrome.runtime.lastError will be set if there was an error.
- */
- chrome.fileManagerPrivate.unsharePathWithCrostini = function(
- vmName, entry, callback) {};
- /**
- * Returns list of paths shared with the crostini container, and whether this is
- * the first time this function is called for this session.
- * @param {boolean} observeFirstForSession If true, callback provides whether
- * this is the first time this function has been called with
- * observeFirstForSession true.
- * @param {string} vmName VM to get shared paths of.
- * @param {function(!Array<!Entry>, boolean)} callback
- */
- chrome.fileManagerPrivate.getCrostiniSharedPaths = function(
- observeFirstForSession, vmName, callback) {};
- /**
- * Requests information about a Linux package.
- * @param {!Entry} entry
- * @param {function((!chrome.fileManagerPrivate.LinuxPackageInfo|undefined))}
- * callback
- * Called when package information is retrieved.
- * chrome.runtime.lastError will be set if there was an error.
- */
- chrome.fileManagerPrivate.getLinuxPackageInfo = function(entry, callback) {};
- /**
- * Starts installation of a Linux package.
- * @param {!Entry} entry
- * @param {function(!chrome.fileManagerPrivate.InstallLinuxPackageResponse,
- * string)} callback
- * Called when the installation is either started or fails to start.
- */
- chrome.fileManagerPrivate.installLinuxPackage = function(entry, callback) {};
- /**
- * Imports a Crostini Image File (.tini). This overrides the existing Linux apps
- * and files.
- * @param {!Entry} entry
- */
- chrome.fileManagerPrivate.importCrostiniImage = function(entry) {};
- /**
- * For a file in DriveFS, retrieves its thumbnail. If |cropToSquare| is true,
- * returns a thumbnail appropriate for file list or grid views; otherwise,
- * returns a thumbnail appropriate for quickview.
- * @param {!FileEntry} entry
- * @param {boolean} cropToSquare
- * @param {function(string): void} callback |thumbnailDataUrl| A data URL for
- * the thumbnail as a PNG; |thumbnailDataUrl| is empty if no thumbnail was
- * available.
- */
- chrome.fileManagerPrivate.getDriveThumbnail = function(entry, cropToSquare, callback) {};
- /**
- * For a local PDF file, retrieves its thumbnail with a given |width| and
- * |height|.
- * @param {!FileEntry} entry
- * @param {number} width
- * @param {number} height
- * @param {function(string): void} callback |thumbnailDataUrl| A data URL for
- * the thumbnail as a PNG; |thumbnailDataUrl| is empty if no thumbnail was
- * available.
- */
- chrome.fileManagerPrivate.getPdfThumbnail = function(entry, width, height, callback) {};
- /**
- Retrieves a thumbnail of an ARC DocumentsProvider file, close in size to
- |widthHint| and |heightHint|, but not necessarily exactly this size.
- * @param {!FileEntry} entry
- * @param {number} widthHint
- * @param {number} heightHint
- * @param {function(string): void} callback |thumbnailDataUrl| A data URL for the
- * thumbnail; |thumbnailDataUrl| is empty if no thumbnail was available.
- * Note: The thumbnail data may originate from third-party application code,
- * and is untrustworthy (Security).
- */
- chrome.fileManagerPrivate.getArcDocumentsProviderThumbnail = function(entry, widthHint, heightHint, callback) {};
- /**
- * @param {!Array<string>} extensions
- * @param {function(!Array<chrome.fileManagerPrivate.AndroidApp>): void} callback
- * Completion callback.
- */
- chrome.fileManagerPrivate.getAndroidPickerApps = function(extensions, callback) {};
- /**
- * @param {chrome.fileManagerPrivate.AndroidApp} androidApp
- * @param {function()} callback Completion callback.
- */
- chrome.fileManagerPrivate.selectAndroidPickerApp = function(androidApp, callback) {};
- /**
- * Return true if sharesheet contains share targets for entries.
- * @param {!Array<!Entry>} entries
- * @param {function((boolean|undefined))} callback
- */
- chrome.fileManagerPrivate.sharesheetHasTargets = function(entries, callback) {};
- /**
- * Invoke Sharesheet for selected files. If not possible, then returns
- * an error via chrome.runtime.lastError. |entries| Array of selected entries.
- * @param {!Array<!Entry>} entries
- * @param {chrome.fileManagerPrivate.SharesheetLaunchSource} launchSource
- * @param {function()} callback
- */
- chrome.fileManagerPrivate.invokeSharesheet = function(
- entries, launchSource, callback) {};
- /**
- * Adds or removes a list of entries to temporary holding space. Any entries
- * whose current holding space state matches the intended state will be skipped.
- * |entries| The list of entries whose holding space needs to be updated. |add|
- * Whether items should be added or removed from the holding space. |callback|
- * Completion callback.
- * @param {!Array<!Entry>} entries
- * @param {boolean} added
- * @param {function(): void=} callback Callback that does not take arguments.
- */
- chrome.fileManagerPrivate.toggleAddedToHoldingSpace = function(entries, added, callback) {};
- /**
- * Retrieves the current holding space state, for example the list of items the
- * holding space currently contains. |callback| The result callback.
- * @param {function(!chrome.fileManagerPrivate.HoldingSpaceState): void}
- * callback |state| Describes the current holding space state.
- */
- chrome.fileManagerPrivate.getHoldingSpaceState = function(callback) {};
- /**
- * Returns true via `callback` if tablet mode is enabled, false otherwise.
- * @param {function(boolean): void} callback
- */
- chrome.fileManagerPrivate.isTabletModeEnabled = function(callback) {};
- /**
- * Notifies Drive about the result of the last dialog shown.
- * @param {chrome.fileManagerPrivate.DriveDialogResult} result
- */
- chrome.fileManagerPrivate.notifyDriveDialogResult = function(result) {};
- /**
- * Opens a new browser tab and navigates to `URL`.
- * @param {!string} URL
- */
- chrome.fileManagerPrivate.openURL = function(URL) {};
- /**
- * Creates a new Files app window in the directory provided in `params`.
- * @param {!chrome.fileManagerPrivate.OpenWindowParams} params
- * @param {function(boolean): void} callback |result| Boolean result returned by
- * the invoked function.
- */
- chrome.fileManagerPrivate.openWindow = function(params, callback) {};
- /**
- * Opens the feedback report window.
- */
- chrome.fileManagerPrivate.sendFeedback = function() {};
- /**
- * Starts an I/O task of type |type| on |entries|. Task type specific parameters
- * passed via |params|.
- * @param {!chrome.fileManagerPrivate.IOTaskType} type
- * @param {!Array<!Entry>} entries
- * @param {!chrome.fileManagerPrivate.IOTaskParams} params
- * @param {(function(number): void)=} callback Returns the task ID.
- */
- chrome.fileManagerPrivate.startIOTask = function(
- type, entries, params, callback) {};
- /**
- * Cancels an I/O task by id. Task ids are communicated to the Files App in
- * each I/O task's progress status.
- * @param {number} taskId
- */
- chrome.fileManagerPrivate.cancelIOTask = function (taskId) { };
- /**
- * Tells DriveFS to update its cached pin states of hosted files (once).
- */
- chrome.fileManagerPrivate.pollDriveHostedFilePinStates = function() {};
- /**
- * Opens the page to manage currently syncing folders.
- */
- chrome.fileManagerPrivate.openManageSyncSettings = function() {};
- /**
- * Returns color via `callback` for Files app foreground window frame.
- * @param {function(string): void} callback |color| String containing the color
- * of the title bar.
- */
- chrome.fileManagerPrivate.getFrameColor = function(callback) {};
- /**
- * Parses the supplied .trashinfo files and returns the successfully parsed
- * data.
- * @param {!Array<!Entry>} entries
- * @param {function(!Array<!chrome.fileManagerPrivate.ParsedTrashInfoFile>):
- * void} callback
- */
- chrome.fileManagerPrivate.parseTrashInfoFiles = function(entries, callback) {};
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onMountCompleted;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onFileTransfersUpdated;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onPinTransfersUpdated;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onCopyProgress;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onDirectoryChanged;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onPreferencesChanged;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onDriveConnectionStatusChanged;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onDeviceChanged;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onDriveSyncError;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onDriveConfirmDialog;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onAppsUpdated;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onCrostiniChanged;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onTabletModeChanged;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onIOTaskProgressStatus;
- /** @type {!ChromeEvent} */
- chrome.fileManagerPrivate.onMountableGuestsChanged;
|