Documentation
¶
Index ¶
- func AddHostPermission(extensionId js.String, host js.String) (ret js.Promise[js.Void])
- func AddUserSpecifiedSites(options UserSiteSettingsOptions) (ret js.Promise[js.Void])
- func AutoUpdate() (ret js.Promise[js.Void])
- func ChoosePath(selectType SelectType, fileType FileType) (ret js.Promise[js.String])
- func DeleteExtensionErrors(properties DeleteExtensionErrorsProperties) (ret js.Promise[js.Void])
- func FuncAddHostPermission() (fn js.Func[func(extensionId js.String, host js.String) js.Promise[js.Void]])
- func FuncAddUserSpecifiedSites() (fn js.Func[func(options UserSiteSettingsOptions) js.Promise[js.Void]])
- func FuncAutoUpdate() (fn js.Func[func() js.Promise[js.Void]])
- func FuncChoosePath() (...)
- func FuncDeleteExtensionErrors() (...)
- func FuncGetExtensionInfo() (fn js.Func[func(id js.String) js.Promise[ExtensionInfo]])
- func FuncGetExtensionSize() (fn js.Func[func(id js.String) js.Promise[js.String]])
- func FuncGetExtensionsInfo() (...)
- func FuncGetMatchingExtensionsForSite() (fn js.Func[func(site js.String) js.Promise[js.Array[MatchingExtensionInfo]]])
- func FuncGetProfileConfiguration() (fn js.Func[func() js.Promise[ProfileInfo]])
- func FuncGetUserAndExtensionSitesByEtld() (fn js.Func[func() js.Promise[js.Array[SiteGroup]]])
- func FuncGetUserSiteSettings() (fn js.Func[func() js.Promise[UserSiteSettings]])
- func FuncHasOnItemStateChanged() (fn js.Func[func(callback js.Func[func(response *EventData)]) bool])
- func FuncHasOnProfileStateChanged() (fn js.Func[func(callback js.Func[func(info *ProfileInfo)]) bool])
- func FuncHasOnUserSiteSettingsChanged() (fn js.Func[func(callback js.Func[func(settings *UserSiteSettings)]) bool])
- func FuncInspect() (fn js.Func[func(options InspectOptions, callback js.Func[func()])])
- func FuncInstallDroppedFile() (fn js.Func[func() js.Promise[js.Void]])
- func FuncIsProfileManaged() (fn js.Func[func() js.Promise[js.Boolean]])
- func FuncLoadDirectory() (fn js.Func[func(directory js.Object) js.Promise[js.String]])
- func FuncLoadUnpacked() (fn js.Func[func(options LoadUnpackedOptions) js.Promise[LoadError]])
- func FuncNotifyDragInstallInProgress() (fn js.Func[func()])
- func FuncOffItemStateChanged() (fn js.Func[func(callback js.Func[func(response *EventData)])])
- func FuncOffProfileStateChanged() (fn js.Func[func(callback js.Func[func(info *ProfileInfo)])])
- func FuncOffUserSiteSettingsChanged() (fn js.Func[func(callback js.Func[func(settings *UserSiteSettings)])])
- func FuncOnItemStateChanged() (fn js.Func[func(callback js.Func[func(response *EventData)])])
- func FuncOnProfileStateChanged() (fn js.Func[func(callback js.Func[func(info *ProfileInfo)])])
- func FuncOnUserSiteSettingsChanged() (fn js.Func[func(callback js.Func[func(settings *UserSiteSettings)])])
- func FuncOpenDevTools() (fn js.Func[func(properties OpenDevToolsProperties) js.Promise[js.Void]])
- func FuncPackDirectory() (...)
- func FuncReload() (...)
- func FuncRemoveHostPermission() (fn js.Func[func(extensionId js.String, host js.String) js.Promise[js.Void]])
- func FuncRemoveMultipleExtensions() (fn js.Func[func(extensionIds js.Array[js.String]) js.Promise[js.Void]])
- func FuncRemoveUserSpecifiedSites() (fn js.Func[func(options UserSiteSettingsOptions) js.Promise[js.Void]])
- func FuncRepairExtension() (fn js.Func[func(extensionId js.String) js.Promise[js.Void]])
- func FuncRequestFileSource() (...)
- func FuncSetShortcutHandlingSuspended() (fn js.Func[func(isSuspended bool) js.Promise[js.Void]])
- func FuncShowOptions() (fn js.Func[func(extensionId js.String) js.Promise[js.Void]])
- func FuncShowPath() (fn js.Func[func(extensionId js.String) js.Promise[js.Void]])
- func FuncUpdateExtensionCommand() (fn js.Func[func(update ExtensionCommandUpdate) js.Promise[js.Void]])
- func FuncUpdateExtensionConfiguration() (fn js.Func[func(update ExtensionConfigurationUpdate) js.Promise[js.Void]])
- func FuncUpdateProfileConfiguration() (fn js.Func[func(update ProfileConfigurationUpdate) js.Promise[js.Void]])
- func FuncUpdateSiteAccess() (...)
- func GetExtensionInfo(id js.String) (ret js.Promise[ExtensionInfo])
- func GetExtensionSize(id js.String) (ret js.Promise[js.String])
- func GetExtensionsInfo(options GetExtensionsInfoOptions) (ret js.Promise[js.Array[ExtensionInfo]])
- func GetMatchingExtensionsForSite(site js.String) (ret js.Promise[js.Array[MatchingExtensionInfo]])
- func GetProfileConfiguration() (ret js.Promise[ProfileInfo])
- func GetUserAndExtensionSitesByEtld() (ret js.Promise[js.Array[SiteGroup]])
- func GetUserSiteSettings() (ret js.Promise[UserSiteSettings])
- func HasFuncAddHostPermission() bool
- func HasFuncAddUserSpecifiedSites() bool
- func HasFuncAutoUpdate() bool
- func HasFuncChoosePath() bool
- func HasFuncDeleteExtensionErrors() bool
- func HasFuncGetExtensionInfo() bool
- func HasFuncGetExtensionSize() bool
- func HasFuncGetExtensionsInfo() bool
- func HasFuncGetMatchingExtensionsForSite() bool
- func HasFuncGetProfileConfiguration() bool
- func HasFuncGetUserAndExtensionSitesByEtld() bool
- func HasFuncGetUserSiteSettings() bool
- func HasFuncHasOnItemStateChanged() bool
- func HasFuncHasOnProfileStateChanged() bool
- func HasFuncHasOnUserSiteSettingsChanged() bool
- func HasFuncInspect() bool
- func HasFuncInstallDroppedFile() bool
- func HasFuncIsProfileManaged() bool
- func HasFuncLoadDirectory() bool
- func HasFuncLoadUnpacked() bool
- func HasFuncNotifyDragInstallInProgress() bool
- func HasFuncOffItemStateChanged() bool
- func HasFuncOffProfileStateChanged() bool
- func HasFuncOffUserSiteSettingsChanged() bool
- func HasFuncOnItemStateChanged() bool
- func HasFuncOnProfileStateChanged() bool
- func HasFuncOnUserSiteSettingsChanged() bool
- func HasFuncOpenDevTools() bool
- func HasFuncPackDirectory() bool
- func HasFuncReload() bool
- func HasFuncRemoveHostPermission() bool
- func HasFuncRemoveMultipleExtensions() bool
- func HasFuncRemoveUserSpecifiedSites() bool
- func HasFuncRepairExtension() bool
- func HasFuncRequestFileSource() bool
- func HasFuncSetShortcutHandlingSuspended() bool
- func HasFuncShowOptions() bool
- func HasFuncShowPath() bool
- func HasFuncUpdateExtensionCommand() bool
- func HasFuncUpdateExtensionConfiguration() bool
- func HasFuncUpdateProfileConfiguration() bool
- func HasFuncUpdateSiteAccess() bool
- func HasOnItemStateChanged(callback js.Func[func(response *EventData)]) (ret bool)
- func HasOnProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret bool)
- func HasOnUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret bool)
- func Inspect(options InspectOptions, callback js.Func[func()]) (ret js.Void)
- func InstallDroppedFile() (ret js.Promise[js.Void])
- func IsProfileManaged() (ret js.Promise[js.Boolean])
- func LoadDirectory(directory js.Object) (ret js.Promise[js.String])
- func LoadUnpacked(options LoadUnpackedOptions) (ret js.Promise[LoadError])
- func NotifyDragInstallInProgress() (ret js.Void)
- func OffItemStateChanged(callback js.Func[func(response *EventData)]) (ret js.Void)
- func OffProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret js.Void)
- func OffUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret js.Void)
- func OnItemStateChanged(callback js.Func[func(response *EventData)]) (ret js.Void)
- func OnProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret js.Void)
- func OnUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret js.Void)
- func OpenDevTools(properties OpenDevToolsProperties) (ret js.Promise[js.Void])
- func PackDirectory(path js.String, privateKeyPath js.String, flags int32) (ret js.Promise[PackDirectoryResponse])
- func Reload(extensionId js.String, options ReloadOptions) (ret js.Promise[LoadError])
- func RemoveHostPermission(extensionId js.String, host js.String) (ret js.Promise[js.Void])
- func RemoveMultipleExtensions(extensionIds js.Array[js.String]) (ret js.Promise[js.Void])
- func RemoveUserSpecifiedSites(options UserSiteSettingsOptions) (ret js.Promise[js.Void])
- func RepairExtension(extensionId js.String) (ret js.Promise[js.Void])
- func RequestFileSource(properties RequestFileSourceProperties) (ret js.Promise[RequestFileSourceResponse])
- func SetShortcutHandlingSuspended(isSuspended bool) (ret js.Promise[js.Void])
- func ShowOptions(extensionId js.String) (ret js.Promise[js.Void])
- func ShowPath(extensionId js.String) (ret js.Promise[js.Void])
- func TryAddHostPermission(extensionId js.String, host js.String) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryAddUserSpecifiedSites(options UserSiteSettingsOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryAutoUpdate() (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryChoosePath(selectType SelectType, fileType FileType) (ret js.Promise[js.String], exception js.Any, ok bool)
- func TryDeleteExtensionErrors(properties DeleteExtensionErrorsProperties) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryGetExtensionInfo(id js.String) (ret js.Promise[ExtensionInfo], exception js.Any, ok bool)
- func TryGetExtensionSize(id js.String) (ret js.Promise[js.String], exception js.Any, ok bool)
- func TryGetExtensionsInfo(options GetExtensionsInfoOptions) (ret js.Promise[js.Array[ExtensionInfo]], exception js.Any, ok bool)
- func TryGetMatchingExtensionsForSite(site js.String) (ret js.Promise[js.Array[MatchingExtensionInfo]], exception js.Any, ok bool)
- func TryGetProfileConfiguration() (ret js.Promise[ProfileInfo], exception js.Any, ok bool)
- func TryGetUserAndExtensionSitesByEtld() (ret js.Promise[js.Array[SiteGroup]], exception js.Any, ok bool)
- func TryGetUserSiteSettings() (ret js.Promise[UserSiteSettings], exception js.Any, ok bool)
- func TryHasOnItemStateChanged(callback js.Func[func(response *EventData)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret bool, exception js.Any, ok bool)
- func TryInspect(options InspectOptions, callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool)
- func TryInstallDroppedFile() (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryIsProfileManaged() (ret js.Promise[js.Boolean], exception js.Any, ok bool)
- func TryLoadDirectory(directory js.Object) (ret js.Promise[js.String], exception js.Any, ok bool)
- func TryLoadUnpacked(options LoadUnpackedOptions) (ret js.Promise[LoadError], exception js.Any, ok bool)
- func TryNotifyDragInstallInProgress() (ret js.Void, exception js.Any, ok bool)
- func TryOffItemStateChanged(callback js.Func[func(response *EventData)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnItemStateChanged(callback js.Func[func(response *EventData)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret js.Void, exception js.Any, ok bool)
- func TryOpenDevTools(properties OpenDevToolsProperties) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryPackDirectory(path js.String, privateKeyPath js.String, flags int32) (ret js.Promise[PackDirectoryResponse], exception js.Any, ok bool)
- func TryReload(extensionId js.String, options ReloadOptions) (ret js.Promise[LoadError], exception js.Any, ok bool)
- func TryRemoveHostPermission(extensionId js.String, host js.String) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryRemoveMultipleExtensions(extensionIds js.Array[js.String]) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryRemoveUserSpecifiedSites(options UserSiteSettingsOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryRepairExtension(extensionId js.String) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryRequestFileSource(properties RequestFileSourceProperties) (ret js.Promise[RequestFileSourceResponse], exception js.Any, ok bool)
- func TrySetShortcutHandlingSuspended(isSuspended bool) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryShowOptions(extensionId js.String) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryShowPath(extensionId js.String) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryUpdateExtensionCommand(update ExtensionCommandUpdate) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryUpdateExtensionConfiguration(update ExtensionConfigurationUpdate) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryUpdateProfileConfiguration(update ProfileConfigurationUpdate) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func TryUpdateSiteAccess(site js.String, updates js.Array[ExtensionSiteAccessUpdate]) (ret js.Promise[js.Void], exception js.Any, ok bool)
- func UpdateExtensionCommand(update ExtensionCommandUpdate) (ret js.Promise[js.Void])
- func UpdateExtensionConfiguration(update ExtensionConfigurationUpdate) (ret js.Promise[js.Void])
- func UpdateProfileConfiguration(update ProfileConfigurationUpdate) (ret js.Promise[js.Void])
- func UpdateSiteAccess(site js.String, updates js.Array[ExtensionSiteAccessUpdate]) (ret js.Promise[js.Void])
- type AccessModifier
- type BooleanCallback
- type BooleanCallbackFunc
- type Command
- type CommandScope
- type ControlledInfo
- type DeleteExtensionErrorsProperties
- func (p *DeleteExtensionErrorsProperties) FreeMembers(recursive bool)
- func (p DeleteExtensionErrorsProperties) FromRef(ref js.Ref) DeleteExtensionErrorsProperties
- func (p DeleteExtensionErrorsProperties) New() js.Ref
- func (p *DeleteExtensionErrorsProperties) Update(ref js.Ref)
- func (p *DeleteExtensionErrorsProperties) UpdateFrom(ref js.Ref)
- type DependentExtension
- type DisableReasons
- type DragInstallInProgressCallback
- type DragInstallInProgressCallbackFunc
- type ErrorFileSource
- type ErrorLevel
- type ErrorType
- type EventData
- type EventType
- type ExtensionCommandUpdate
- type ExtensionConfigurationUpdate
- func (p *ExtensionConfigurationUpdate) FreeMembers(recursive bool)
- func (p ExtensionConfigurationUpdate) FromRef(ref js.Ref) ExtensionConfigurationUpdate
- func (p ExtensionConfigurationUpdate) New() js.Ref
- func (p *ExtensionConfigurationUpdate) Update(ref js.Ref)
- func (p *ExtensionConfigurationUpdate) UpdateFrom(ref js.Ref)
- type ExtensionInfo
- type ExtensionInfoCallback
- type ExtensionInfoCallbackFunc
- type ExtensionInfosCallback
- type ExtensionInfosCallbackFunc
- type ExtensionSiteAccessUpdate
- func (p *ExtensionSiteAccessUpdate) FreeMembers(recursive bool)
- func (p ExtensionSiteAccessUpdate) FromRef(ref js.Ref) ExtensionSiteAccessUpdate
- func (p ExtensionSiteAccessUpdate) New() js.Ref
- func (p *ExtensionSiteAccessUpdate) Update(ref js.Ref)
- func (p *ExtensionSiteAccessUpdate) UpdateFrom(ref js.Ref)
- type ExtensionState
- type ExtensionType
- type ExtensionView
- type FileType
- type GetExtensionsInfoOptions
- func (p *GetExtensionsInfoOptions) FreeMembers(recursive bool)
- func (p GetExtensionsInfoOptions) FromRef(ref js.Ref) GetExtensionsInfoOptions
- func (p GetExtensionsInfoOptions) New() js.Ref
- func (p *GetExtensionsInfoOptions) Update(ref js.Ref)
- func (p *GetExtensionsInfoOptions) UpdateFrom(ref js.Ref)
- type GetMatchingExtensionsForSiteCallback
- type GetMatchingExtensionsForSiteCallbackFunc
- type GetProjectsInfoCallback
- type GetProjectsInfoCallbackFunc
- type HomePage
- type HostAccess
- type InspectOptions
- type InstallWarning
- type ItemInfo
- type ItemInspectView
- type ItemType
- type ItemsInfoCallback
- type ItemsInfoCallbackFunc
- type LoadError
- type LoadErrorCallback
- type LoadErrorCallbackFunc
- type LoadUnpackedOptions
- type Location
- type ManifestError
- type MatchingExtensionInfo
- type OnItemStateChangedEventCallback
- type OnItemStateChangedEventCallbackFunc
- type OnProfileStateChangedEventCallback
- type OnProfileStateChangedEventCallbackFunc
- type OnUserSiteSettingsChangedEventCallback
- type OnUserSiteSettingsChangedEventCallbackFunc
- type OneOf_String_Int32
- type OpenDevToolsProperties
- type OptionsPage
- type PackCallback
- type PackCallbackFunc
- type PackDirectoryResponse
- type PackStatus
- type Permission
- type Permissions
- type ProfileConfigurationUpdate
- func (p *ProfileConfigurationUpdate) FreeMembers(recursive bool)
- func (p ProfileConfigurationUpdate) FromRef(ref js.Ref) ProfileConfigurationUpdate
- func (p ProfileConfigurationUpdate) New() js.Ref
- func (p *ProfileConfigurationUpdate) Update(ref js.Ref)
- func (p *ProfileConfigurationUpdate) UpdateFrom(ref js.Ref)
- type ProfileInfo
- type ProfileInfoCallback
- type ProfileInfoCallbackFunc
- type ProjectInfo
- type ReloadOptions
- type RequestFileSourceCallback
- type RequestFileSourceCallbackFunc
- type RequestFileSourceProperties
- func (p *RequestFileSourceProperties) FreeMembers(recursive bool)
- func (p RequestFileSourceProperties) FromRef(ref js.Ref) RequestFileSourceProperties
- func (p RequestFileSourceProperties) New() js.Ref
- func (p *RequestFileSourceProperties) Update(ref js.Ref)
- func (p *RequestFileSourceProperties) UpdateFrom(ref js.Ref)
- type RequestFileSourceResponse
- func (p *RequestFileSourceResponse) FreeMembers(recursive bool)
- func (p RequestFileSourceResponse) FromRef(ref js.Ref) RequestFileSourceResponse
- func (p RequestFileSourceResponse) New() js.Ref
- func (p *RequestFileSourceResponse) Update(ref js.Ref)
- func (p *RequestFileSourceResponse) UpdateFrom(ref js.Ref)
- type RuntimeError
- type RuntimeHostPermissions
- type SafetyCheckStrings
- type SelectType
- type SiteControl
- type SiteGroup
- type SiteInfo
- type SiteSet
- type StackFrame
- type StringCallback
- type StringCallbackFunc
- type UserAndExtensionSitesByEtldCallback
- type UserAndExtensionSitesByEtldCallbackFunc
- type UserSiteSettings
- type UserSiteSettingsCallback
- type UserSiteSettingsCallbackFunc
- type UserSiteSettingsOptions
- type ViewType
- type VoidCallback
- type VoidCallbackFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddHostPermission ¶
AddHostPermission calls the function "WEBEXT.developerPrivate.addHostPermission" directly.
func AddUserSpecifiedSites ¶
func AddUserSpecifiedSites(options UserSiteSettingsOptions) (ret js.Promise[js.Void])
AddUserSpecifiedSites calls the function "WEBEXT.developerPrivate.addUserSpecifiedSites" directly.
func AutoUpdate ¶
AutoUpdate calls the function "WEBEXT.developerPrivate.autoUpdate" directly.
func ChoosePath ¶
ChoosePath calls the function "WEBEXT.developerPrivate.choosePath" directly.
func DeleteExtensionErrors ¶
func DeleteExtensionErrors(properties DeleteExtensionErrorsProperties) (ret js.Promise[js.Void])
DeleteExtensionErrors calls the function "WEBEXT.developerPrivate.deleteExtensionErrors" directly.
func FuncAddHostPermission ¶
func FuncAddHostPermission() (fn js.Func[func(extensionId js.String, host js.String) js.Promise[js.Void]])
FuncAddHostPermission returns the function "WEBEXT.developerPrivate.addHostPermission".
func FuncAddUserSpecifiedSites ¶
func FuncAddUserSpecifiedSites() (fn js.Func[func(options UserSiteSettingsOptions) js.Promise[js.Void]])
FuncAddUserSpecifiedSites returns the function "WEBEXT.developerPrivate.addUserSpecifiedSites".
func FuncAutoUpdate ¶
FuncAutoUpdate returns the function "WEBEXT.developerPrivate.autoUpdate".
func FuncChoosePath ¶
func FuncChoosePath() (fn js.Func[func(selectType SelectType, fileType FileType) js.Promise[js.String]])
FuncChoosePath returns the function "WEBEXT.developerPrivate.choosePath".
func FuncDeleteExtensionErrors ¶
func FuncDeleteExtensionErrors() (fn js.Func[func(properties DeleteExtensionErrorsProperties) js.Promise[js.Void]])
FuncDeleteExtensionErrors returns the function "WEBEXT.developerPrivate.deleteExtensionErrors".
func FuncGetExtensionInfo ¶
FuncGetExtensionInfo returns the function "WEBEXT.developerPrivate.getExtensionInfo".
func FuncGetExtensionSize ¶
FuncGetExtensionSize returns the function "WEBEXT.developerPrivate.getExtensionSize".
func FuncGetExtensionsInfo ¶
func FuncGetExtensionsInfo() (fn js.Func[func(options GetExtensionsInfoOptions) js.Promise[js.Array[ExtensionInfo]]])
FuncGetExtensionsInfo returns the function "WEBEXT.developerPrivate.getExtensionsInfo".
func FuncGetMatchingExtensionsForSite ¶
func FuncGetMatchingExtensionsForSite() (fn js.Func[func(site js.String) js.Promise[js.Array[MatchingExtensionInfo]]])
FuncGetMatchingExtensionsForSite returns the function "WEBEXT.developerPrivate.getMatchingExtensionsForSite".
func FuncGetProfileConfiguration ¶
func FuncGetProfileConfiguration() (fn js.Func[func() js.Promise[ProfileInfo]])
FuncGetProfileConfiguration returns the function "WEBEXT.developerPrivate.getProfileConfiguration".
func FuncGetUserAndExtensionSitesByEtld ¶
FuncGetUserAndExtensionSitesByEtld returns the function "WEBEXT.developerPrivate.getUserAndExtensionSitesByEtld".
func FuncGetUserSiteSettings ¶
func FuncGetUserSiteSettings() (fn js.Func[func() js.Promise[UserSiteSettings]])
FuncGetUserSiteSettings returns the function "WEBEXT.developerPrivate.getUserSiteSettings".
func FuncHasOnItemStateChanged ¶
func FuncHasOnItemStateChanged() (fn js.Func[func(callback js.Func[func(response *EventData)]) bool])
FuncHasOnItemStateChanged returns the function "WEBEXT.developerPrivate.onItemStateChanged.hasListener".
func FuncHasOnProfileStateChanged ¶
func FuncHasOnProfileStateChanged() (fn js.Func[func(callback js.Func[func(info *ProfileInfo)]) bool])
FuncHasOnProfileStateChanged returns the function "WEBEXT.developerPrivate.onProfileStateChanged.hasListener".
func FuncHasOnUserSiteSettingsChanged ¶
func FuncHasOnUserSiteSettingsChanged() (fn js.Func[func(callback js.Func[func(settings *UserSiteSettings)]) bool])
FuncHasOnUserSiteSettingsChanged returns the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.hasListener".
func FuncInspect ¶
func FuncInspect() (fn js.Func[func(options InspectOptions, callback js.Func[func()])])
FuncInspect returns the function "WEBEXT.developerPrivate.inspect".
func FuncInstallDroppedFile ¶
FuncInstallDroppedFile returns the function "WEBEXT.developerPrivate.installDroppedFile".
func FuncIsProfileManaged ¶
FuncIsProfileManaged returns the function "WEBEXT.developerPrivate.isProfileManaged".
func FuncLoadDirectory ¶
FuncLoadDirectory returns the function "WEBEXT.developerPrivate.loadDirectory".
func FuncLoadUnpacked ¶
FuncLoadUnpacked returns the function "WEBEXT.developerPrivate.loadUnpacked".
func FuncNotifyDragInstallInProgress ¶
FuncNotifyDragInstallInProgress returns the function "WEBEXT.developerPrivate.notifyDragInstallInProgress".
func FuncOffItemStateChanged ¶
FuncOffItemStateChanged returns the function "WEBEXT.developerPrivate.onItemStateChanged.removeListener".
func FuncOffProfileStateChanged ¶
func FuncOffProfileStateChanged() (fn js.Func[func(callback js.Func[func(info *ProfileInfo)])])
FuncOffProfileStateChanged returns the function "WEBEXT.developerPrivate.onProfileStateChanged.removeListener".
func FuncOffUserSiteSettingsChanged ¶
func FuncOffUserSiteSettingsChanged() (fn js.Func[func(callback js.Func[func(settings *UserSiteSettings)])])
FuncOffUserSiteSettingsChanged returns the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.removeListener".
func FuncOnItemStateChanged ¶
FuncOnItemStateChanged returns the function "WEBEXT.developerPrivate.onItemStateChanged.addListener".
func FuncOnProfileStateChanged ¶
func FuncOnProfileStateChanged() (fn js.Func[func(callback js.Func[func(info *ProfileInfo)])])
FuncOnProfileStateChanged returns the function "WEBEXT.developerPrivate.onProfileStateChanged.addListener".
func FuncOnUserSiteSettingsChanged ¶
func FuncOnUserSiteSettingsChanged() (fn js.Func[func(callback js.Func[func(settings *UserSiteSettings)])])
FuncOnUserSiteSettingsChanged returns the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.addListener".
func FuncOpenDevTools ¶
FuncOpenDevTools returns the function "WEBEXT.developerPrivate.openDevTools".
func FuncPackDirectory ¶
func FuncPackDirectory() (fn js.Func[func(path js.String, privateKeyPath js.String, flags int32) js.Promise[PackDirectoryResponse]])
FuncPackDirectory returns the function "WEBEXT.developerPrivate.packDirectory".
func FuncReload ¶
func FuncReload() (fn js.Func[func(extensionId js.String, options ReloadOptions) js.Promise[LoadError]])
FuncReload returns the function "WEBEXT.developerPrivate.reload".
func FuncRemoveHostPermission ¶
func FuncRemoveHostPermission() (fn js.Func[func(extensionId js.String, host js.String) js.Promise[js.Void]])
FuncRemoveHostPermission returns the function "WEBEXT.developerPrivate.removeHostPermission".
func FuncRemoveMultipleExtensions ¶
func FuncRemoveMultipleExtensions() (fn js.Func[func(extensionIds js.Array[js.String]) js.Promise[js.Void]])
FuncRemoveMultipleExtensions returns the function "WEBEXT.developerPrivate.removeMultipleExtensions".
func FuncRemoveUserSpecifiedSites ¶
func FuncRemoveUserSpecifiedSites() (fn js.Func[func(options UserSiteSettingsOptions) js.Promise[js.Void]])
FuncRemoveUserSpecifiedSites returns the function "WEBEXT.developerPrivate.removeUserSpecifiedSites".
func FuncRepairExtension ¶
FuncRepairExtension returns the function "WEBEXT.developerPrivate.repairExtension".
func FuncRequestFileSource ¶
func FuncRequestFileSource() (fn js.Func[func(properties RequestFileSourceProperties) js.Promise[RequestFileSourceResponse]])
FuncRequestFileSource returns the function "WEBEXT.developerPrivate.requestFileSource".
func FuncSetShortcutHandlingSuspended ¶
FuncSetShortcutHandlingSuspended returns the function "WEBEXT.developerPrivate.setShortcutHandlingSuspended".
func FuncShowOptions ¶
FuncShowOptions returns the function "WEBEXT.developerPrivate.showOptions".
func FuncShowPath ¶
FuncShowPath returns the function "WEBEXT.developerPrivate.showPath".
func FuncUpdateExtensionCommand ¶
func FuncUpdateExtensionCommand() (fn js.Func[func(update ExtensionCommandUpdate) js.Promise[js.Void]])
FuncUpdateExtensionCommand returns the function "WEBEXT.developerPrivate.updateExtensionCommand".
func FuncUpdateExtensionConfiguration ¶
func FuncUpdateExtensionConfiguration() (fn js.Func[func(update ExtensionConfigurationUpdate) js.Promise[js.Void]])
FuncUpdateExtensionConfiguration returns the function "WEBEXT.developerPrivate.updateExtensionConfiguration".
func FuncUpdateProfileConfiguration ¶
func FuncUpdateProfileConfiguration() (fn js.Func[func(update ProfileConfigurationUpdate) js.Promise[js.Void]])
FuncUpdateProfileConfiguration returns the function "WEBEXT.developerPrivate.updateProfileConfiguration".
func FuncUpdateSiteAccess ¶
func FuncUpdateSiteAccess() (fn js.Func[func(site js.String, updates js.Array[ExtensionSiteAccessUpdate]) js.Promise[js.Void]])
FuncUpdateSiteAccess returns the function "WEBEXT.developerPrivate.updateSiteAccess".
func GetExtensionInfo ¶
func GetExtensionInfo(id js.String) (ret js.Promise[ExtensionInfo])
GetExtensionInfo calls the function "WEBEXT.developerPrivate.getExtensionInfo" directly.
func GetExtensionSize ¶
GetExtensionSize calls the function "WEBEXT.developerPrivate.getExtensionSize" directly.
func GetExtensionsInfo ¶
func GetExtensionsInfo(options GetExtensionsInfoOptions) (ret js.Promise[js.Array[ExtensionInfo]])
GetExtensionsInfo calls the function "WEBEXT.developerPrivate.getExtensionsInfo" directly.
func GetMatchingExtensionsForSite ¶
GetMatchingExtensionsForSite calls the function "WEBEXT.developerPrivate.getMatchingExtensionsForSite" directly.
func GetProfileConfiguration ¶
func GetProfileConfiguration() (ret js.Promise[ProfileInfo])
GetProfileConfiguration calls the function "WEBEXT.developerPrivate.getProfileConfiguration" directly.
func GetUserAndExtensionSitesByEtld ¶
GetUserAndExtensionSitesByEtld calls the function "WEBEXT.developerPrivate.getUserAndExtensionSitesByEtld" directly.
func GetUserSiteSettings ¶
func GetUserSiteSettings() (ret js.Promise[UserSiteSettings])
GetUserSiteSettings calls the function "WEBEXT.developerPrivate.getUserSiteSettings" directly.
func HasFuncAddHostPermission ¶
func HasFuncAddHostPermission() bool
HasFuncAddHostPermission returns true if the function "WEBEXT.developerPrivate.addHostPermission" exists.
func HasFuncAddUserSpecifiedSites ¶
func HasFuncAddUserSpecifiedSites() bool
HasFuncAddUserSpecifiedSites returns true if the function "WEBEXT.developerPrivate.addUserSpecifiedSites" exists.
func HasFuncAutoUpdate ¶
func HasFuncAutoUpdate() bool
HasFuncAutoUpdate returns true if the function "WEBEXT.developerPrivate.autoUpdate" exists.
func HasFuncChoosePath ¶
func HasFuncChoosePath() bool
HasFuncChoosePath returns true if the function "WEBEXT.developerPrivate.choosePath" exists.
func HasFuncDeleteExtensionErrors ¶
func HasFuncDeleteExtensionErrors() bool
HasFuncDeleteExtensionErrors returns true if the function "WEBEXT.developerPrivate.deleteExtensionErrors" exists.
func HasFuncGetExtensionInfo ¶
func HasFuncGetExtensionInfo() bool
HasFuncGetExtensionInfo returns true if the function "WEBEXT.developerPrivate.getExtensionInfo" exists.
func HasFuncGetExtensionSize ¶
func HasFuncGetExtensionSize() bool
HasFuncGetExtensionSize returns true if the function "WEBEXT.developerPrivate.getExtensionSize" exists.
func HasFuncGetExtensionsInfo ¶
func HasFuncGetExtensionsInfo() bool
HasFuncGetExtensionsInfo returns true if the function "WEBEXT.developerPrivate.getExtensionsInfo" exists.
func HasFuncGetMatchingExtensionsForSite ¶
func HasFuncGetMatchingExtensionsForSite() bool
HasFuncGetMatchingExtensionsForSite returns true if the function "WEBEXT.developerPrivate.getMatchingExtensionsForSite" exists.
func HasFuncGetProfileConfiguration ¶
func HasFuncGetProfileConfiguration() bool
HasFuncGetProfileConfiguration returns true if the function "WEBEXT.developerPrivate.getProfileConfiguration" exists.
func HasFuncGetUserAndExtensionSitesByEtld ¶
func HasFuncGetUserAndExtensionSitesByEtld() bool
HasFuncGetUserAndExtensionSitesByEtld returns true if the function "WEBEXT.developerPrivate.getUserAndExtensionSitesByEtld" exists.
func HasFuncGetUserSiteSettings ¶
func HasFuncGetUserSiteSettings() bool
HasFuncGetUserSiteSettings returns true if the function "WEBEXT.developerPrivate.getUserSiteSettings" exists.
func HasFuncHasOnItemStateChanged ¶
func HasFuncHasOnItemStateChanged() bool
HasFuncHasOnItemStateChanged returns true if the function "WEBEXT.developerPrivate.onItemStateChanged.hasListener" exists.
func HasFuncHasOnProfileStateChanged ¶
func HasFuncHasOnProfileStateChanged() bool
HasFuncHasOnProfileStateChanged returns true if the function "WEBEXT.developerPrivate.onProfileStateChanged.hasListener" exists.
func HasFuncHasOnUserSiteSettingsChanged ¶
func HasFuncHasOnUserSiteSettingsChanged() bool
HasFuncHasOnUserSiteSettingsChanged returns true if the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.hasListener" exists.
func HasFuncInspect ¶
func HasFuncInspect() bool
HasFuncInspect returns true if the function "WEBEXT.developerPrivate.inspect" exists.
func HasFuncInstallDroppedFile ¶
func HasFuncInstallDroppedFile() bool
HasFuncInstallDroppedFile returns true if the function "WEBEXT.developerPrivate.installDroppedFile" exists.
func HasFuncIsProfileManaged ¶
func HasFuncIsProfileManaged() bool
HasFuncIsProfileManaged returns true if the function "WEBEXT.developerPrivate.isProfileManaged" exists.
func HasFuncLoadDirectory ¶
func HasFuncLoadDirectory() bool
HasFuncLoadDirectory returns true if the function "WEBEXT.developerPrivate.loadDirectory" exists.
func HasFuncLoadUnpacked ¶
func HasFuncLoadUnpacked() bool
HasFuncLoadUnpacked returns true if the function "WEBEXT.developerPrivate.loadUnpacked" exists.
func HasFuncNotifyDragInstallInProgress ¶
func HasFuncNotifyDragInstallInProgress() bool
HasFuncNotifyDragInstallInProgress returns true if the function "WEBEXT.developerPrivate.notifyDragInstallInProgress" exists.
func HasFuncOffItemStateChanged ¶
func HasFuncOffItemStateChanged() bool
HasFuncOffItemStateChanged returns true if the function "WEBEXT.developerPrivate.onItemStateChanged.removeListener" exists.
func HasFuncOffProfileStateChanged ¶
func HasFuncOffProfileStateChanged() bool
HasFuncOffProfileStateChanged returns true if the function "WEBEXT.developerPrivate.onProfileStateChanged.removeListener" exists.
func HasFuncOffUserSiteSettingsChanged ¶
func HasFuncOffUserSiteSettingsChanged() bool
HasFuncOffUserSiteSettingsChanged returns true if the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.removeListener" exists.
func HasFuncOnItemStateChanged ¶
func HasFuncOnItemStateChanged() bool
HasFuncOnItemStateChanged returns true if the function "WEBEXT.developerPrivate.onItemStateChanged.addListener" exists.
func HasFuncOnProfileStateChanged ¶
func HasFuncOnProfileStateChanged() bool
HasFuncOnProfileStateChanged returns true if the function "WEBEXT.developerPrivate.onProfileStateChanged.addListener" exists.
func HasFuncOnUserSiteSettingsChanged ¶
func HasFuncOnUserSiteSettingsChanged() bool
HasFuncOnUserSiteSettingsChanged returns true if the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.addListener" exists.
func HasFuncOpenDevTools ¶
func HasFuncOpenDevTools() bool
HasFuncOpenDevTools returns true if the function "WEBEXT.developerPrivate.openDevTools" exists.
func HasFuncPackDirectory ¶
func HasFuncPackDirectory() bool
HasFuncPackDirectory returns true if the function "WEBEXT.developerPrivate.packDirectory" exists.
func HasFuncReload ¶
func HasFuncReload() bool
HasFuncReload returns true if the function "WEBEXT.developerPrivate.reload" exists.
func HasFuncRemoveHostPermission ¶
func HasFuncRemoveHostPermission() bool
HasFuncRemoveHostPermission returns true if the function "WEBEXT.developerPrivate.removeHostPermission" exists.
func HasFuncRemoveMultipleExtensions ¶
func HasFuncRemoveMultipleExtensions() bool
HasFuncRemoveMultipleExtensions returns true if the function "WEBEXT.developerPrivate.removeMultipleExtensions" exists.
func HasFuncRemoveUserSpecifiedSites ¶
func HasFuncRemoveUserSpecifiedSites() bool
HasFuncRemoveUserSpecifiedSites returns true if the function "WEBEXT.developerPrivate.removeUserSpecifiedSites" exists.
func HasFuncRepairExtension ¶
func HasFuncRepairExtension() bool
HasFuncRepairExtension returns true if the function "WEBEXT.developerPrivate.repairExtension" exists.
func HasFuncRequestFileSource ¶
func HasFuncRequestFileSource() bool
HasFuncRequestFileSource returns true if the function "WEBEXT.developerPrivate.requestFileSource" exists.
func HasFuncSetShortcutHandlingSuspended ¶
func HasFuncSetShortcutHandlingSuspended() bool
HasFuncSetShortcutHandlingSuspended returns true if the function "WEBEXT.developerPrivate.setShortcutHandlingSuspended" exists.
func HasFuncShowOptions ¶
func HasFuncShowOptions() bool
HasFuncShowOptions returns true if the function "WEBEXT.developerPrivate.showOptions" exists.
func HasFuncShowPath ¶
func HasFuncShowPath() bool
HasFuncShowPath returns true if the function "WEBEXT.developerPrivate.showPath" exists.
func HasFuncUpdateExtensionCommand ¶
func HasFuncUpdateExtensionCommand() bool
HasFuncUpdateExtensionCommand returns true if the function "WEBEXT.developerPrivate.updateExtensionCommand" exists.
func HasFuncUpdateExtensionConfiguration ¶
func HasFuncUpdateExtensionConfiguration() bool
HasFuncUpdateExtensionConfiguration returns true if the function "WEBEXT.developerPrivate.updateExtensionConfiguration" exists.
func HasFuncUpdateProfileConfiguration ¶
func HasFuncUpdateProfileConfiguration() bool
HasFuncUpdateProfileConfiguration returns true if the function "WEBEXT.developerPrivate.updateProfileConfiguration" exists.
func HasFuncUpdateSiteAccess ¶
func HasFuncUpdateSiteAccess() bool
HasFuncUpdateSiteAccess returns true if the function "WEBEXT.developerPrivate.updateSiteAccess" exists.
func HasOnItemStateChanged ¶
HasOnItemStateChanged calls the function "WEBEXT.developerPrivate.onItemStateChanged.hasListener" directly.
func HasOnProfileStateChanged ¶
func HasOnProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret bool)
HasOnProfileStateChanged calls the function "WEBEXT.developerPrivate.onProfileStateChanged.hasListener" directly.
func HasOnUserSiteSettingsChanged ¶
func HasOnUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret bool)
HasOnUserSiteSettingsChanged calls the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.hasListener" directly.
func Inspect ¶
func Inspect(options InspectOptions, callback js.Func[func()]) (ret js.Void)
Inspect calls the function "WEBEXT.developerPrivate.inspect" directly.
func InstallDroppedFile ¶
InstallDroppedFile calls the function "WEBEXT.developerPrivate.installDroppedFile" directly.
func IsProfileManaged ¶
IsProfileManaged calls the function "WEBEXT.developerPrivate.isProfileManaged" directly.
func LoadDirectory ¶
LoadDirectory calls the function "WEBEXT.developerPrivate.loadDirectory" directly.
func LoadUnpacked ¶
func LoadUnpacked(options LoadUnpackedOptions) (ret js.Promise[LoadError])
LoadUnpacked calls the function "WEBEXT.developerPrivate.loadUnpacked" directly.
func NotifyDragInstallInProgress ¶
NotifyDragInstallInProgress calls the function "WEBEXT.developerPrivate.notifyDragInstallInProgress" directly.
func OffItemStateChanged ¶
OffItemStateChanged calls the function "WEBEXT.developerPrivate.onItemStateChanged.removeListener" directly.
func OffProfileStateChanged ¶
func OffProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret js.Void)
OffProfileStateChanged calls the function "WEBEXT.developerPrivate.onProfileStateChanged.removeListener" directly.
func OffUserSiteSettingsChanged ¶
func OffUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret js.Void)
OffUserSiteSettingsChanged calls the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.removeListener" directly.
func OnItemStateChanged ¶
OnItemStateChanged calls the function "WEBEXT.developerPrivate.onItemStateChanged.addListener" directly.
func OnProfileStateChanged ¶
func OnProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret js.Void)
OnProfileStateChanged calls the function "WEBEXT.developerPrivate.onProfileStateChanged.addListener" directly.
func OnUserSiteSettingsChanged ¶
func OnUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret js.Void)
OnUserSiteSettingsChanged calls the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.addListener" directly.
func OpenDevTools ¶
func OpenDevTools(properties OpenDevToolsProperties) (ret js.Promise[js.Void])
OpenDevTools calls the function "WEBEXT.developerPrivate.openDevTools" directly.
func PackDirectory ¶
func PackDirectory(path js.String, privateKeyPath js.String, flags int32) (ret js.Promise[PackDirectoryResponse])
PackDirectory calls the function "WEBEXT.developerPrivate.packDirectory" directly.
func RemoveHostPermission ¶
RemoveHostPermission calls the function "WEBEXT.developerPrivate.removeHostPermission" directly.
func RemoveMultipleExtensions ¶
RemoveMultipleExtensions calls the function "WEBEXT.developerPrivate.removeMultipleExtensions" directly.
func RemoveUserSpecifiedSites ¶
func RemoveUserSpecifiedSites(options UserSiteSettingsOptions) (ret js.Promise[js.Void])
RemoveUserSpecifiedSites calls the function "WEBEXT.developerPrivate.removeUserSpecifiedSites" directly.
func RepairExtension ¶
RepairExtension calls the function "WEBEXT.developerPrivate.repairExtension" directly.
func RequestFileSource ¶
func RequestFileSource(properties RequestFileSourceProperties) (ret js.Promise[RequestFileSourceResponse])
RequestFileSource calls the function "WEBEXT.developerPrivate.requestFileSource" directly.
func SetShortcutHandlingSuspended ¶
SetShortcutHandlingSuspended calls the function "WEBEXT.developerPrivate.setShortcutHandlingSuspended" directly.
func ShowOptions ¶
ShowOptions calls the function "WEBEXT.developerPrivate.showOptions" directly.
func TryAddHostPermission ¶
func TryAddHostPermission(extensionId js.String, host js.String) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryAddHostPermission calls the function "WEBEXT.developerPrivate.addHostPermission" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryAddUserSpecifiedSites ¶
func TryAddUserSpecifiedSites(options UserSiteSettingsOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryAddUserSpecifiedSites calls the function "WEBEXT.developerPrivate.addUserSpecifiedSites" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryAutoUpdate ¶
TryAutoUpdate calls the function "WEBEXT.developerPrivate.autoUpdate" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryChoosePath ¶
func TryChoosePath(selectType SelectType, fileType FileType) (ret js.Promise[js.String], exception js.Any, ok bool)
TryChoosePath calls the function "WEBEXT.developerPrivate.choosePath" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryDeleteExtensionErrors ¶
func TryDeleteExtensionErrors(properties DeleteExtensionErrorsProperties) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryDeleteExtensionErrors calls the function "WEBEXT.developerPrivate.deleteExtensionErrors" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryGetExtensionInfo ¶
TryGetExtensionInfo calls the function "WEBEXT.developerPrivate.getExtensionInfo" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryGetExtensionSize ¶
TryGetExtensionSize calls the function "WEBEXT.developerPrivate.getExtensionSize" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryGetExtensionsInfo ¶
func TryGetExtensionsInfo(options GetExtensionsInfoOptions) (ret js.Promise[js.Array[ExtensionInfo]], exception js.Any, ok bool)
TryGetExtensionsInfo calls the function "WEBEXT.developerPrivate.getExtensionsInfo" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryGetMatchingExtensionsForSite ¶
func TryGetMatchingExtensionsForSite(site js.String) (ret js.Promise[js.Array[MatchingExtensionInfo]], exception js.Any, ok bool)
TryGetMatchingExtensionsForSite calls the function "WEBEXT.developerPrivate.getMatchingExtensionsForSite" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryGetProfileConfiguration ¶
TryGetProfileConfiguration calls the function "WEBEXT.developerPrivate.getProfileConfiguration" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryGetUserAndExtensionSitesByEtld ¶
func TryGetUserAndExtensionSitesByEtld() (ret js.Promise[js.Array[SiteGroup]], exception js.Any, ok bool)
TryGetUserAndExtensionSitesByEtld calls the function "WEBEXT.developerPrivate.getUserAndExtensionSitesByEtld" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryGetUserSiteSettings ¶
TryGetUserSiteSettings calls the function "WEBEXT.developerPrivate.getUserSiteSettings" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnItemStateChanged ¶
func TryHasOnItemStateChanged(callback js.Func[func(response *EventData)]) (ret bool, exception js.Any, ok bool)
TryHasOnItemStateChanged calls the function "WEBEXT.developerPrivate.onItemStateChanged.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnProfileStateChanged ¶
func TryHasOnProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret bool, exception js.Any, ok bool)
TryHasOnProfileStateChanged calls the function "WEBEXT.developerPrivate.onProfileStateChanged.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnUserSiteSettingsChanged ¶
func TryHasOnUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret bool, exception js.Any, ok bool)
TryHasOnUserSiteSettingsChanged calls the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryInspect ¶
func TryInspect(options InspectOptions, callback js.Func[func()]) (ret js.Void, exception js.Any, ok bool)
TryInspect calls the function "WEBEXT.developerPrivate.inspect" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryInstallDroppedFile ¶
TryInstallDroppedFile calls the function "WEBEXT.developerPrivate.installDroppedFile" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryIsProfileManaged ¶
TryIsProfileManaged calls the function "WEBEXT.developerPrivate.isProfileManaged" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryLoadDirectory ¶
TryLoadDirectory calls the function "WEBEXT.developerPrivate.loadDirectory" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryLoadUnpacked ¶
func TryLoadUnpacked(options LoadUnpackedOptions) (ret js.Promise[LoadError], exception js.Any, ok bool)
TryLoadUnpacked calls the function "WEBEXT.developerPrivate.loadUnpacked" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryNotifyDragInstallInProgress ¶
TryNotifyDragInstallInProgress calls the function "WEBEXT.developerPrivate.notifyDragInstallInProgress" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffItemStateChanged ¶
func TryOffItemStateChanged(callback js.Func[func(response *EventData)]) (ret js.Void, exception js.Any, ok bool)
TryOffItemStateChanged calls the function "WEBEXT.developerPrivate.onItemStateChanged.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffProfileStateChanged ¶
func TryOffProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret js.Void, exception js.Any, ok bool)
TryOffProfileStateChanged calls the function "WEBEXT.developerPrivate.onProfileStateChanged.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffUserSiteSettingsChanged ¶
func TryOffUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret js.Void, exception js.Any, ok bool)
TryOffUserSiteSettingsChanged calls the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnItemStateChanged ¶
func TryOnItemStateChanged(callback js.Func[func(response *EventData)]) (ret js.Void, exception js.Any, ok bool)
TryOnItemStateChanged calls the function "WEBEXT.developerPrivate.onItemStateChanged.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnProfileStateChanged ¶
func TryOnProfileStateChanged(callback js.Func[func(info *ProfileInfo)]) (ret js.Void, exception js.Any, ok bool)
TryOnProfileStateChanged calls the function "WEBEXT.developerPrivate.onProfileStateChanged.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnUserSiteSettingsChanged ¶
func TryOnUserSiteSettingsChanged(callback js.Func[func(settings *UserSiteSettings)]) (ret js.Void, exception js.Any, ok bool)
TryOnUserSiteSettingsChanged calls the function "WEBEXT.developerPrivate.onUserSiteSettingsChanged.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOpenDevTools ¶
func TryOpenDevTools(properties OpenDevToolsProperties) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryOpenDevTools calls the function "WEBEXT.developerPrivate.openDevTools" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryPackDirectory ¶
func TryPackDirectory(path js.String, privateKeyPath js.String, flags int32) (ret js.Promise[PackDirectoryResponse], exception js.Any, ok bool)
TryPackDirectory calls the function "WEBEXT.developerPrivate.packDirectory" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryReload ¶
func TryReload(extensionId js.String, options ReloadOptions) (ret js.Promise[LoadError], exception js.Any, ok bool)
TryReload calls the function "WEBEXT.developerPrivate.reload" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryRemoveHostPermission ¶
func TryRemoveHostPermission(extensionId js.String, host js.String) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryRemoveHostPermission calls the function "WEBEXT.developerPrivate.removeHostPermission" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryRemoveMultipleExtensions ¶
func TryRemoveMultipleExtensions(extensionIds js.Array[js.String]) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryRemoveMultipleExtensions calls the function "WEBEXT.developerPrivate.removeMultipleExtensions" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryRemoveUserSpecifiedSites ¶
func TryRemoveUserSpecifiedSites(options UserSiteSettingsOptions) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryRemoveUserSpecifiedSites calls the function "WEBEXT.developerPrivate.removeUserSpecifiedSites" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryRepairExtension ¶
TryRepairExtension calls the function "WEBEXT.developerPrivate.repairExtension" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryRequestFileSource ¶
func TryRequestFileSource(properties RequestFileSourceProperties) (ret js.Promise[RequestFileSourceResponse], exception js.Any, ok bool)
TryRequestFileSource calls the function "WEBEXT.developerPrivate.requestFileSource" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TrySetShortcutHandlingSuspended ¶
func TrySetShortcutHandlingSuspended(isSuspended bool) (ret js.Promise[js.Void], exception js.Any, ok bool)
TrySetShortcutHandlingSuspended calls the function "WEBEXT.developerPrivate.setShortcutHandlingSuspended" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryShowOptions ¶
TryShowOptions calls the function "WEBEXT.developerPrivate.showOptions" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryShowPath ¶
TryShowPath calls the function "WEBEXT.developerPrivate.showPath" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryUpdateExtensionCommand ¶
func TryUpdateExtensionCommand(update ExtensionCommandUpdate) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryUpdateExtensionCommand calls the function "WEBEXT.developerPrivate.updateExtensionCommand" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryUpdateExtensionConfiguration ¶
func TryUpdateExtensionConfiguration(update ExtensionConfigurationUpdate) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryUpdateExtensionConfiguration calls the function "WEBEXT.developerPrivate.updateExtensionConfiguration" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryUpdateProfileConfiguration ¶
func TryUpdateProfileConfiguration(update ProfileConfigurationUpdate) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryUpdateProfileConfiguration calls the function "WEBEXT.developerPrivate.updateProfileConfiguration" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryUpdateSiteAccess ¶
func TryUpdateSiteAccess(site js.String, updates js.Array[ExtensionSiteAccessUpdate]) (ret js.Promise[js.Void], exception js.Any, ok bool)
TryUpdateSiteAccess calls the function "WEBEXT.developerPrivate.updateSiteAccess" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func UpdateExtensionCommand ¶
func UpdateExtensionCommand(update ExtensionCommandUpdate) (ret js.Promise[js.Void])
UpdateExtensionCommand calls the function "WEBEXT.developerPrivate.updateExtensionCommand" directly.
func UpdateExtensionConfiguration ¶
func UpdateExtensionConfiguration(update ExtensionConfigurationUpdate) (ret js.Promise[js.Void])
UpdateExtensionConfiguration calls the function "WEBEXT.developerPrivate.updateExtensionConfiguration" directly.
func UpdateProfileConfiguration ¶
func UpdateProfileConfiguration(update ProfileConfigurationUpdate) (ret js.Promise[js.Void])
UpdateProfileConfiguration calls the function "WEBEXT.developerPrivate.updateProfileConfiguration" directly.
Types ¶
type AccessModifier ¶
type AccessModifier struct {
// IsEnabled is "AccessModifier.isEnabled"
//
// Optional
//
// NOTE: FFI_USE_IsEnabled MUST be set to true to make this field effective.
IsEnabled bool
// IsActive is "AccessModifier.isActive"
//
// Optional
//
// NOTE: FFI_USE_IsActive MUST be set to true to make this field effective.
IsActive bool
FFI_USE_IsEnabled bool // for IsEnabled.
FFI_USE_IsActive bool // for IsActive.
FFI_USE bool
}
func (*AccessModifier) FreeMembers ¶
func (p *AccessModifier) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (AccessModifier) FromRef ¶
func (p AccessModifier) FromRef(ref js.Ref) AccessModifier
FromRef calls UpdateFrom and returns a AccessModifier with all fields set.
func (AccessModifier) New ¶
func (p AccessModifier) New() js.Ref
New creates a new AccessModifier in the application heap.
func (*AccessModifier) Update ¶
func (p *AccessModifier) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*AccessModifier) UpdateFrom ¶
func (p *AccessModifier) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type BooleanCallback ¶
func (*BooleanCallback[T]) DispatchCallback ¶
func (cb *BooleanCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type BooleanCallbackFunc ¶
func (BooleanCallbackFunc) DispatchCallback ¶
func (fn BooleanCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type Command ¶
type Command struct {
// Description is "Command.description"
//
// Optional
Description js.String
// Keybinding is "Command.keybinding"
//
// Optional
Keybinding js.String
// Name is "Command.name"
//
// Optional
Name js.String
// IsActive is "Command.isActive"
//
// Optional
//
// NOTE: FFI_USE_IsActive MUST be set to true to make this field effective.
IsActive bool
// Scope is "Command.scope"
//
// Optional
Scope CommandScope
// IsExtensionAction is "Command.isExtensionAction"
//
// Optional
//
// NOTE: FFI_USE_IsExtensionAction MUST be set to true to make this field effective.
IsExtensionAction bool
FFI_USE_IsActive bool // for IsActive.
FFI_USE_IsExtensionAction bool // for IsExtensionAction.
FFI_USE bool
}
func (*Command) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*Command) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type CommandScope ¶
type CommandScope uint32
const ( CommandScope_GLOBAL CommandScope CommandScope_CHROME )
func (CommandScope) FromRef ¶
func (CommandScope) FromRef(str js.Ref) CommandScope
func (CommandScope) String ¶
func (x CommandScope) String() (string, bool)
type ControlledInfo ¶
type ControlledInfo struct {
// Text is "ControlledInfo.text"
//
// Optional
Text js.String
FFI_USE bool
}
func (*ControlledInfo) FreeMembers ¶
func (p *ControlledInfo) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ControlledInfo) FromRef ¶
func (p ControlledInfo) FromRef(ref js.Ref) ControlledInfo
FromRef calls UpdateFrom and returns a ControlledInfo with all fields set.
func (ControlledInfo) New ¶
func (p ControlledInfo) New() js.Ref
New creates a new ControlledInfo in the application heap.
func (*ControlledInfo) Update ¶
func (p *ControlledInfo) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ControlledInfo) UpdateFrom ¶
func (p *ControlledInfo) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type DeleteExtensionErrorsProperties ¶
type DeleteExtensionErrorsProperties struct {
// ExtensionId is "DeleteExtensionErrorsProperties.extensionId"
//
// Optional
ExtensionId js.String
// ErrorIds is "DeleteExtensionErrorsProperties.errorIds"
//
// Optional
ErrorIds js.Array[int32]
// Type is "DeleteExtensionErrorsProperties.type"
//
// Optional
Type ErrorType
FFI_USE bool
}
func (*DeleteExtensionErrorsProperties) FreeMembers ¶
func (p *DeleteExtensionErrorsProperties) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (DeleteExtensionErrorsProperties) FromRef ¶
func (p DeleteExtensionErrorsProperties) FromRef(ref js.Ref) DeleteExtensionErrorsProperties
FromRef calls UpdateFrom and returns a DeleteExtensionErrorsProperties with all fields set.
func (DeleteExtensionErrorsProperties) New ¶
func (p DeleteExtensionErrorsProperties) New() js.Ref
New creates a new DeleteExtensionErrorsProperties in the application heap.
func (*DeleteExtensionErrorsProperties) Update ¶
func (p *DeleteExtensionErrorsProperties) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*DeleteExtensionErrorsProperties) UpdateFrom ¶
func (p *DeleteExtensionErrorsProperties) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type DependentExtension ¶
type DependentExtension struct {
// Id is "DependentExtension.id"
//
// Optional
Id js.String
// Name is "DependentExtension.name"
//
// Optional
Name js.String
FFI_USE bool
}
func (*DependentExtension) FreeMembers ¶
func (p *DependentExtension) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (DependentExtension) FromRef ¶
func (p DependentExtension) FromRef(ref js.Ref) DependentExtension
FromRef calls UpdateFrom and returns a DependentExtension with all fields set.
func (DependentExtension) New ¶
func (p DependentExtension) New() js.Ref
New creates a new DependentExtension in the application heap.
func (*DependentExtension) Update ¶
func (p *DependentExtension) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*DependentExtension) UpdateFrom ¶
func (p *DependentExtension) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type DisableReasons ¶
type DisableReasons struct {
// SuspiciousInstall is "DisableReasons.suspiciousInstall"
//
// Optional
//
// NOTE: FFI_USE_SuspiciousInstall MUST be set to true to make this field effective.
SuspiciousInstall bool
// CorruptInstall is "DisableReasons.corruptInstall"
//
// Optional
//
// NOTE: FFI_USE_CorruptInstall MUST be set to true to make this field effective.
CorruptInstall bool
// UpdateRequired is "DisableReasons.updateRequired"
//
// Optional
//
// NOTE: FFI_USE_UpdateRequired MUST be set to true to make this field effective.
UpdateRequired bool
// PublishedInStoreRequired is "DisableReasons.publishedInStoreRequired"
//
// Optional
//
// NOTE: FFI_USE_PublishedInStoreRequired MUST be set to true to make this field effective.
PublishedInStoreRequired bool
// BlockedByPolicy is "DisableReasons.blockedByPolicy"
//
// Optional
//
// NOTE: FFI_USE_BlockedByPolicy MUST be set to true to make this field effective.
BlockedByPolicy bool
// Reloading is "DisableReasons.reloading"
//
// Optional
//
// NOTE: FFI_USE_Reloading MUST be set to true to make this field effective.
Reloading bool
// CustodianApprovalRequired is "DisableReasons.custodianApprovalRequired"
//
// Optional
//
// NOTE: FFI_USE_CustodianApprovalRequired MUST be set to true to make this field effective.
CustodianApprovalRequired bool
// ParentDisabledPermissions is "DisableReasons.parentDisabledPermissions"
//
// Optional
//
// NOTE: FFI_USE_ParentDisabledPermissions MUST be set to true to make this field effective.
ParentDisabledPermissions bool
FFI_USE_SuspiciousInstall bool // for SuspiciousInstall.
FFI_USE_CorruptInstall bool // for CorruptInstall.
FFI_USE_UpdateRequired bool // for UpdateRequired.
FFI_USE_PublishedInStoreRequired bool // for PublishedInStoreRequired.
FFI_USE_BlockedByPolicy bool // for BlockedByPolicy.
FFI_USE_Reloading bool // for Reloading.
FFI_USE_CustodianApprovalRequired bool // for CustodianApprovalRequired.
FFI_USE_ParentDisabledPermissions bool // for ParentDisabledPermissions.
FFI_USE bool
}
func (*DisableReasons) FreeMembers ¶
func (p *DisableReasons) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (DisableReasons) FromRef ¶
func (p DisableReasons) FromRef(ref js.Ref) DisableReasons
FromRef calls UpdateFrom and returns a DisableReasons with all fields set.
func (DisableReasons) New ¶
func (p DisableReasons) New() js.Ref
New creates a new DisableReasons in the application heap.
func (*DisableReasons) Update ¶
func (p *DisableReasons) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*DisableReasons) UpdateFrom ¶
func (p *DisableReasons) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type DragInstallInProgressCallback ¶
type DragInstallInProgressCallback[T any] struct { Fn func(arg T, this js.Ref, loadGuid js.String) js.Ref Arg T }
func (*DragInstallInProgressCallback[T]) DispatchCallback ¶
func (cb *DragInstallInProgressCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type DragInstallInProgressCallbackFunc ¶
func (DragInstallInProgressCallbackFunc) DispatchCallback ¶
func (fn DragInstallInProgressCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type ErrorFileSource ¶
type ErrorFileSource struct {
// BeforeHighlight is "ErrorFileSource.beforeHighlight"
//
// Optional
BeforeHighlight js.String
// Highlight is "ErrorFileSource.highlight"
//
// Optional
Highlight js.String
// AfterHighlight is "ErrorFileSource.afterHighlight"
//
// Optional
AfterHighlight js.String
FFI_USE bool
}
func (*ErrorFileSource) FreeMembers ¶
func (p *ErrorFileSource) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ErrorFileSource) FromRef ¶
func (p ErrorFileSource) FromRef(ref js.Ref) ErrorFileSource
FromRef calls UpdateFrom and returns a ErrorFileSource with all fields set.
func (ErrorFileSource) New ¶
func (p ErrorFileSource) New() js.Ref
New creates a new ErrorFileSource in the application heap.
func (*ErrorFileSource) Update ¶
func (p *ErrorFileSource) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ErrorFileSource) UpdateFrom ¶
func (p *ErrorFileSource) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ErrorLevel ¶
type ErrorLevel uint32
const ( ErrorLevel_LOG ErrorLevel ErrorLevel_WARN ErrorLevel_ERROR )
func (ErrorLevel) FromRef ¶
func (ErrorLevel) FromRef(str js.Ref) ErrorLevel
func (ErrorLevel) String ¶
func (x ErrorLevel) String() (string, bool)
type EventData ¶
type EventData struct {
// EventType is "EventData.event_type"
//
// Optional
EventType EventType
// ItemId is "EventData.item_id"
//
// Optional
ItemId js.String
// ExtensionInfo is "EventData.extensionInfo"
//
// Optional
//
// NOTE: ExtensionInfo.FFI_USE MUST be set to true to get ExtensionInfo used.
ExtensionInfo ExtensionInfo
FFI_USE bool
}
func (*EventData) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*EventData) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type EventType ¶
type EventType uint32
const ( EventType_INSTALLED EventType EventType_UNINSTALLED EventType_LOADED EventType_UNLOADED EventType_VIEW_REGISTERED EventType_VIEW_UNREGISTERED EventType_ERROR_ADDED EventType_ERRORS_REMOVED EventType_PREFS_CHANGED EventType_WARNINGS_CHANGED EventType_COMMAND_ADDED EventType_COMMAND_REMOVED EventType_PERMISSIONS_CHANGED EventType_SERVICE_WORKER_STARTED EventType_SERVICE_WORKER_STOPPED EventType_CONFIGURATION_CHANGED EventType_PINNED_ACTIONS_CHANGED )
type ExtensionCommandUpdate ¶
type ExtensionCommandUpdate struct {
// ExtensionId is "ExtensionCommandUpdate.extensionId"
//
// Optional
ExtensionId js.String
// CommandName is "ExtensionCommandUpdate.commandName"
//
// Optional
CommandName js.String
// Scope is "ExtensionCommandUpdate.scope"
//
// Optional
Scope CommandScope
// Keybinding is "ExtensionCommandUpdate.keybinding"
//
// Optional
Keybinding js.String
FFI_USE bool
}
func (*ExtensionCommandUpdate) FreeMembers ¶
func (p *ExtensionCommandUpdate) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ExtensionCommandUpdate) FromRef ¶
func (p ExtensionCommandUpdate) FromRef(ref js.Ref) ExtensionCommandUpdate
FromRef calls UpdateFrom and returns a ExtensionCommandUpdate with all fields set.
func (ExtensionCommandUpdate) New ¶
func (p ExtensionCommandUpdate) New() js.Ref
New creates a new ExtensionCommandUpdate in the application heap.
func (*ExtensionCommandUpdate) Update ¶
func (p *ExtensionCommandUpdate) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ExtensionCommandUpdate) UpdateFrom ¶
func (p *ExtensionCommandUpdate) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ExtensionConfigurationUpdate ¶
type ExtensionConfigurationUpdate struct {
// ExtensionId is "ExtensionConfigurationUpdate.extensionId"
//
// Optional
ExtensionId js.String
// FileAccess is "ExtensionConfigurationUpdate.fileAccess"
//
// Optional
//
// NOTE: FFI_USE_FileAccess MUST be set to true to make this field effective.
FileAccess bool
// IncognitoAccess is "ExtensionConfigurationUpdate.incognitoAccess"
//
// Optional
//
// NOTE: FFI_USE_IncognitoAccess MUST be set to true to make this field effective.
IncognitoAccess bool
// ErrorCollection is "ExtensionConfigurationUpdate.errorCollection"
//
// Optional
//
// NOTE: FFI_USE_ErrorCollection MUST be set to true to make this field effective.
ErrorCollection bool
// HostAccess is "ExtensionConfigurationUpdate.hostAccess"
//
// Optional
HostAccess HostAccess
// ShowAccessRequestsInToolbar is "ExtensionConfigurationUpdate.showAccessRequestsInToolbar"
//
// Optional
//
// NOTE: FFI_USE_ShowAccessRequestsInToolbar MUST be set to true to make this field effective.
ShowAccessRequestsInToolbar bool
// AcknowledgeSafetyCheckWarning is "ExtensionConfigurationUpdate.acknowledgeSafetyCheckWarning"
//
// Optional
//
// NOTE: FFI_USE_AcknowledgeSafetyCheckWarning MUST be set to true to make this field effective.
AcknowledgeSafetyCheckWarning bool
// PinnedToToolbar is "ExtensionConfigurationUpdate.pinnedToToolbar"
//
// Optional
//
// NOTE: FFI_USE_PinnedToToolbar MUST be set to true to make this field effective.
PinnedToToolbar bool
FFI_USE_FileAccess bool // for FileAccess.
FFI_USE_IncognitoAccess bool // for IncognitoAccess.
FFI_USE_ErrorCollection bool // for ErrorCollection.
FFI_USE_ShowAccessRequestsInToolbar bool // for ShowAccessRequestsInToolbar.
FFI_USE_AcknowledgeSafetyCheckWarning bool // for AcknowledgeSafetyCheckWarning.
FFI_USE_PinnedToToolbar bool // for PinnedToToolbar.
FFI_USE bool
}
func (*ExtensionConfigurationUpdate) FreeMembers ¶
func (p *ExtensionConfigurationUpdate) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ExtensionConfigurationUpdate) FromRef ¶
func (p ExtensionConfigurationUpdate) FromRef(ref js.Ref) ExtensionConfigurationUpdate
FromRef calls UpdateFrom and returns a ExtensionConfigurationUpdate with all fields set.
func (ExtensionConfigurationUpdate) New ¶
func (p ExtensionConfigurationUpdate) New() js.Ref
New creates a new ExtensionConfigurationUpdate in the application heap.
func (*ExtensionConfigurationUpdate) Update ¶
func (p *ExtensionConfigurationUpdate) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ExtensionConfigurationUpdate) UpdateFrom ¶
func (p *ExtensionConfigurationUpdate) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ExtensionInfo ¶
type ExtensionInfo struct {
// BlacklistText is "ExtensionInfo.blacklistText"
//
// Optional
BlacklistText js.String
// SafetyCheckText is "ExtensionInfo.safetyCheckText"
//
// Optional
//
// NOTE: SafetyCheckText.FFI_USE MUST be set to true to get SafetyCheckText used.
SafetyCheckText SafetyCheckStrings
// Commands is "ExtensionInfo.commands"
//
// Optional
Commands js.Array[Command]
// ControlledInfo is "ExtensionInfo.controlledInfo"
//
// Optional
//
// NOTE: ControlledInfo.FFI_USE MUST be set to true to get ControlledInfo used.
ControlledInfo ControlledInfo
// DependentExtensions is "ExtensionInfo.dependentExtensions"
//
// Optional
DependentExtensions js.Array[DependentExtension]
// Description is "ExtensionInfo.description"
//
// Optional
Description js.String
// DisableReasons is "ExtensionInfo.disableReasons"
//
// Optional
//
// NOTE: DisableReasons.FFI_USE MUST be set to true to get DisableReasons used.
DisableReasons DisableReasons
// ErrorCollection is "ExtensionInfo.errorCollection"
//
// Optional
//
// NOTE: ErrorCollection.FFI_USE MUST be set to true to get ErrorCollection used.
ErrorCollection AccessModifier
// FileAccess is "ExtensionInfo.fileAccess"
//
// Optional
//
// NOTE: FileAccess.FFI_USE MUST be set to true to get FileAccess used.
FileAccess AccessModifier
// HomePage is "ExtensionInfo.homePage"
//
// Optional
//
// NOTE: HomePage.FFI_USE MUST be set to true to get HomePage used.
HomePage HomePage
// IconUrl is "ExtensionInfo.iconUrl"
//
// Optional
IconUrl js.String
// Id is "ExtensionInfo.id"
//
// Optional
Id js.String
// IncognitoAccess is "ExtensionInfo.incognitoAccess"
//
// Optional
//
// NOTE: IncognitoAccess.FFI_USE MUST be set to true to get IncognitoAccess used.
IncognitoAccess AccessModifier
// InstallWarnings is "ExtensionInfo.installWarnings"
//
// Optional
InstallWarnings js.Array[js.String]
// LaunchUrl is "ExtensionInfo.launchUrl"
//
// Optional
LaunchUrl js.String
// Location is "ExtensionInfo.location"
//
// Optional
Location Location
// LocationText is "ExtensionInfo.locationText"
//
// Optional
LocationText js.String
// ManifestErrors is "ExtensionInfo.manifestErrors"
//
// Optional
ManifestErrors js.Array[ManifestError]
// ManifestHomePageUrl is "ExtensionInfo.manifestHomePageUrl"
//
// Optional
ManifestHomePageUrl js.String
// MustRemainInstalled is "ExtensionInfo.mustRemainInstalled"
//
// Optional
//
// NOTE: FFI_USE_MustRemainInstalled MUST be set to true to make this field effective.
MustRemainInstalled bool
// Name is "ExtensionInfo.name"
//
// Optional
Name js.String
// OfflineEnabled is "ExtensionInfo.offlineEnabled"
//
// Optional
//
// NOTE: FFI_USE_OfflineEnabled MUST be set to true to make this field effective.
OfflineEnabled bool
// OptionsPage is "ExtensionInfo.optionsPage"
//
// Optional
//
// NOTE: OptionsPage.FFI_USE MUST be set to true to get OptionsPage used.
OptionsPage OptionsPage
// Path is "ExtensionInfo.path"
//
// Optional
Path js.String
// Permissions is "ExtensionInfo.permissions"
//
// Optional
//
// NOTE: Permissions.FFI_USE MUST be set to true to get Permissions used.
Permissions Permissions
// PrettifiedPath is "ExtensionInfo.prettifiedPath"
//
// Optional
PrettifiedPath js.String
// RuntimeErrors is "ExtensionInfo.runtimeErrors"
//
// Optional
RuntimeErrors js.Array[RuntimeError]
// RuntimeWarnings is "ExtensionInfo.runtimeWarnings"
//
// Optional
RuntimeWarnings js.Array[js.String]
// State is "ExtensionInfo.state"
//
// Optional
State ExtensionState
// Type is "ExtensionInfo.type"
//
// Optional
Type ExtensionType
// UpdateUrl is "ExtensionInfo.updateUrl"
//
// Optional
UpdateUrl js.String
// UserMayModify is "ExtensionInfo.userMayModify"
//
// Optional
//
// NOTE: FFI_USE_UserMayModify MUST be set to true to make this field effective.
UserMayModify bool
// Version is "ExtensionInfo.version"
//
// Optional
Version js.String
// Views is "ExtensionInfo.views"
//
// Optional
Views js.Array[ExtensionView]
// WebStoreUrl is "ExtensionInfo.webStoreUrl"
//
// Optional
WebStoreUrl js.String
// ShowSafeBrowsingAllowlistWarning is "ExtensionInfo.showSafeBrowsingAllowlistWarning"
//
// Optional
//
// NOTE: FFI_USE_ShowSafeBrowsingAllowlistWarning MUST be set to true to make this field effective.
ShowSafeBrowsingAllowlistWarning bool
// ShowAccessRequestsInToolbar is "ExtensionInfo.showAccessRequestsInToolbar"
//
// Optional
//
// NOTE: FFI_USE_ShowAccessRequestsInToolbar MUST be set to true to make this field effective.
ShowAccessRequestsInToolbar bool
// AcknowledgeSafetyCheckWarning is "ExtensionInfo.acknowledgeSafetyCheckWarning"
//
// Optional
//
// NOTE: FFI_USE_AcknowledgeSafetyCheckWarning MUST be set to true to make this field effective.
AcknowledgeSafetyCheckWarning bool
// PinnedToToolbar is "ExtensionInfo.pinnedToToolbar"
//
// Optional
//
// NOTE: FFI_USE_PinnedToToolbar MUST be set to true to make this field effective.
PinnedToToolbar bool
FFI_USE_MustRemainInstalled bool // for MustRemainInstalled.
FFI_USE_OfflineEnabled bool // for OfflineEnabled.
FFI_USE_UserMayModify bool // for UserMayModify.
FFI_USE_ShowSafeBrowsingAllowlistWarning bool // for ShowSafeBrowsingAllowlistWarning.
FFI_USE_ShowAccessRequestsInToolbar bool // for ShowAccessRequestsInToolbar.
FFI_USE_AcknowledgeSafetyCheckWarning bool // for AcknowledgeSafetyCheckWarning.
FFI_USE_PinnedToToolbar bool // for PinnedToToolbar.
FFI_USE bool
}
func (*ExtensionInfo) FreeMembers ¶
func (p *ExtensionInfo) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ExtensionInfo) FromRef ¶
func (p ExtensionInfo) FromRef(ref js.Ref) ExtensionInfo
FromRef calls UpdateFrom and returns a ExtensionInfo with all fields set.
func (ExtensionInfo) New ¶
func (p ExtensionInfo) New() js.Ref
New creates a new ExtensionInfo in the application heap.
func (*ExtensionInfo) Update ¶
func (p *ExtensionInfo) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ExtensionInfo) UpdateFrom ¶
func (p *ExtensionInfo) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ExtensionInfoCallback ¶
type ExtensionInfoCallback[T any] struct { Fn func(arg T, this js.Ref, result *ExtensionInfo) js.Ref Arg T }
func (*ExtensionInfoCallback[T]) DispatchCallback ¶
func (cb *ExtensionInfoCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*ExtensionInfoCallback[T]) Register ¶
func (cb *ExtensionInfoCallback[T]) Register() js.Func[func(result *ExtensionInfo)]
type ExtensionInfoCallbackFunc ¶
type ExtensionInfoCallbackFunc func(this js.Ref, result *ExtensionInfo) js.Ref
func (ExtensionInfoCallbackFunc) DispatchCallback ¶
func (fn ExtensionInfoCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (ExtensionInfoCallbackFunc) Register ¶
func (fn ExtensionInfoCallbackFunc) Register() js.Func[func(result *ExtensionInfo)]
type ExtensionInfosCallback ¶
type ExtensionInfosCallback[T any] struct { Fn func(arg T, this js.Ref, result js.Array[ExtensionInfo]) js.Ref Arg T }
func (*ExtensionInfosCallback[T]) DispatchCallback ¶
func (cb *ExtensionInfosCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*ExtensionInfosCallback[T]) Register ¶
func (cb *ExtensionInfosCallback[T]) Register() js.Func[func(result js.Array[ExtensionInfo])]
type ExtensionInfosCallbackFunc ¶
func (ExtensionInfosCallbackFunc) DispatchCallback ¶
func (fn ExtensionInfosCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (ExtensionInfosCallbackFunc) Register ¶
func (fn ExtensionInfosCallbackFunc) Register() js.Func[func(result js.Array[ExtensionInfo])]
type ExtensionSiteAccessUpdate ¶
type ExtensionSiteAccessUpdate struct {
// Id is "ExtensionSiteAccessUpdate.id"
//
// Optional
Id js.String
// SiteAccess is "ExtensionSiteAccessUpdate.siteAccess"
//
// Optional
SiteAccess HostAccess
FFI_USE bool
}
func (*ExtensionSiteAccessUpdate) FreeMembers ¶
func (p *ExtensionSiteAccessUpdate) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ExtensionSiteAccessUpdate) FromRef ¶
func (p ExtensionSiteAccessUpdate) FromRef(ref js.Ref) ExtensionSiteAccessUpdate
FromRef calls UpdateFrom and returns a ExtensionSiteAccessUpdate with all fields set.
func (ExtensionSiteAccessUpdate) New ¶
func (p ExtensionSiteAccessUpdate) New() js.Ref
New creates a new ExtensionSiteAccessUpdate in the application heap.
func (*ExtensionSiteAccessUpdate) Update ¶
func (p *ExtensionSiteAccessUpdate) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ExtensionSiteAccessUpdate) UpdateFrom ¶
func (p *ExtensionSiteAccessUpdate) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ExtensionState ¶
type ExtensionState uint32
const ( ExtensionState_ENABLED ExtensionState ExtensionState_DISABLED ExtensionState_TERMINATED ExtensionState_BLACKLISTED )
func (ExtensionState) FromRef ¶
func (ExtensionState) FromRef(str js.Ref) ExtensionState
func (ExtensionState) String ¶
func (x ExtensionState) String() (string, bool)
type ExtensionType ¶
type ExtensionType uint32
const ( ExtensionType_HOSTED_APP ExtensionType ExtensionType_PLATFORM_APP ExtensionType_LEGACY_PACKAGED_APP ExtensionType_EXTENSION ExtensionType_THEME ExtensionType_SHARED_MODULE )
func (ExtensionType) FromRef ¶
func (ExtensionType) FromRef(str js.Ref) ExtensionType
func (ExtensionType) String ¶
func (x ExtensionType) String() (string, bool)
type ExtensionView ¶
type ExtensionView struct {
// Url is "ExtensionView.url"
//
// Optional
Url js.String
// RenderProcessId is "ExtensionView.renderProcessId"
//
// Optional
//
// NOTE: FFI_USE_RenderProcessId MUST be set to true to make this field effective.
RenderProcessId int32
// RenderViewId is "ExtensionView.renderViewId"
//
// Optional
//
// NOTE: FFI_USE_RenderViewId MUST be set to true to make this field effective.
RenderViewId int32
// Incognito is "ExtensionView.incognito"
//
// Optional
//
// NOTE: FFI_USE_Incognito MUST be set to true to make this field effective.
Incognito bool
// IsIframe is "ExtensionView.isIframe"
//
// Optional
//
// NOTE: FFI_USE_IsIframe MUST be set to true to make this field effective.
IsIframe bool
// Type is "ExtensionView.type"
//
// Optional
Type ViewType
FFI_USE_RenderProcessId bool // for RenderProcessId.
FFI_USE_RenderViewId bool // for RenderViewId.
FFI_USE_Incognito bool // for Incognito.
FFI_USE_IsIframe bool // for IsIframe.
FFI_USE bool
}
func (*ExtensionView) FreeMembers ¶
func (p *ExtensionView) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ExtensionView) FromRef ¶
func (p ExtensionView) FromRef(ref js.Ref) ExtensionView
FromRef calls UpdateFrom and returns a ExtensionView with all fields set.
func (ExtensionView) New ¶
func (p ExtensionView) New() js.Ref
New creates a new ExtensionView in the application heap.
func (*ExtensionView) Update ¶
func (p *ExtensionView) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ExtensionView) UpdateFrom ¶
func (p *ExtensionView) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type GetExtensionsInfoOptions ¶
type GetExtensionsInfoOptions struct {
// IncludeDisabled is "GetExtensionsInfoOptions.includeDisabled"
//
// Optional
//
// NOTE: FFI_USE_IncludeDisabled MUST be set to true to make this field effective.
IncludeDisabled bool
// IncludeTerminated is "GetExtensionsInfoOptions.includeTerminated"
//
// Optional
//
// NOTE: FFI_USE_IncludeTerminated MUST be set to true to make this field effective.
IncludeTerminated bool
FFI_USE_IncludeDisabled bool // for IncludeDisabled.
FFI_USE_IncludeTerminated bool // for IncludeTerminated.
FFI_USE bool
}
func (*GetExtensionsInfoOptions) FreeMembers ¶
func (p *GetExtensionsInfoOptions) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (GetExtensionsInfoOptions) FromRef ¶
func (p GetExtensionsInfoOptions) FromRef(ref js.Ref) GetExtensionsInfoOptions
FromRef calls UpdateFrom and returns a GetExtensionsInfoOptions with all fields set.
func (GetExtensionsInfoOptions) New ¶
func (p GetExtensionsInfoOptions) New() js.Ref
New creates a new GetExtensionsInfoOptions in the application heap.
func (*GetExtensionsInfoOptions) Update ¶
func (p *GetExtensionsInfoOptions) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*GetExtensionsInfoOptions) UpdateFrom ¶
func (p *GetExtensionsInfoOptions) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type GetMatchingExtensionsForSiteCallback ¶
type GetMatchingExtensionsForSiteCallback[T any] struct { Fn func(arg T, this js.Ref, matchingExtensions js.Array[MatchingExtensionInfo]) js.Ref Arg T }
func (*GetMatchingExtensionsForSiteCallback[T]) DispatchCallback ¶
func (cb *GetMatchingExtensionsForSiteCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*GetMatchingExtensionsForSiteCallback[T]) Register ¶
func (cb *GetMatchingExtensionsForSiteCallback[T]) Register() js.Func[func(matchingExtensions js.Array[MatchingExtensionInfo])]
type GetMatchingExtensionsForSiteCallbackFunc ¶
type GetMatchingExtensionsForSiteCallbackFunc func(this js.Ref, matchingExtensions js.Array[MatchingExtensionInfo]) js.Ref
func (GetMatchingExtensionsForSiteCallbackFunc) DispatchCallback ¶
func (fn GetMatchingExtensionsForSiteCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (GetMatchingExtensionsForSiteCallbackFunc) Register ¶
func (fn GetMatchingExtensionsForSiteCallbackFunc) Register() js.Func[func(matchingExtensions js.Array[MatchingExtensionInfo])]
type GetProjectsInfoCallback ¶
type GetProjectsInfoCallback[T any] struct { Fn func(arg T, this js.Ref, result js.Array[ProjectInfo]) js.Ref Arg T }
func (*GetProjectsInfoCallback[T]) DispatchCallback ¶
func (cb *GetProjectsInfoCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*GetProjectsInfoCallback[T]) Register ¶
func (cb *GetProjectsInfoCallback[T]) Register() js.Func[func(result js.Array[ProjectInfo])]
type GetProjectsInfoCallbackFunc ¶
func (GetProjectsInfoCallbackFunc) DispatchCallback ¶
func (fn GetProjectsInfoCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (GetProjectsInfoCallbackFunc) Register ¶
func (fn GetProjectsInfoCallbackFunc) Register() js.Func[func(result js.Array[ProjectInfo])]
type HomePage ¶
type HomePage struct {
// Url is "HomePage.url"
//
// Optional
Url js.String
// Specified is "HomePage.specified"
//
// Optional
//
// NOTE: FFI_USE_Specified MUST be set to true to make this field effective.
Specified bool
FFI_USE_Specified bool // for Specified.
FFI_USE bool
}
func (*HomePage) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*HomePage) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type HostAccess ¶
type HostAccess uint32
const ( HostAccess_ON_CLICK HostAccess HostAccess_ON_SPECIFIC_SITES HostAccess_ON_ALL_SITES )
func (HostAccess) FromRef ¶
func (HostAccess) FromRef(str js.Ref) HostAccess
func (HostAccess) String ¶
func (x HostAccess) String() (string, bool)
type InspectOptions ¶
type InspectOptions struct {
// ExtensionId is "InspectOptions.extension_id"
//
// Optional
ExtensionId js.String
// RenderProcessId is "InspectOptions.render_process_id"
//
// Optional
RenderProcessId OneOf_String_Int32
// RenderViewId is "InspectOptions.render_view_id"
//
// Optional
RenderViewId OneOf_String_Int32
// Incognito is "InspectOptions.incognito"
//
// Optional
//
// NOTE: FFI_USE_Incognito MUST be set to true to make this field effective.
Incognito bool
FFI_USE_Incognito bool // for Incognito.
FFI_USE bool
}
func (*InspectOptions) FreeMembers ¶
func (p *InspectOptions) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (InspectOptions) FromRef ¶
func (p InspectOptions) FromRef(ref js.Ref) InspectOptions
FromRef calls UpdateFrom and returns a InspectOptions with all fields set.
func (InspectOptions) New ¶
func (p InspectOptions) New() js.Ref
New creates a new InspectOptions in the application heap.
func (*InspectOptions) Update ¶
func (p *InspectOptions) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*InspectOptions) UpdateFrom ¶
func (p *InspectOptions) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type InstallWarning ¶
type InstallWarning struct {
// Message is "InstallWarning.message"
//
// Optional
Message js.String
FFI_USE bool
}
func (*InstallWarning) FreeMembers ¶
func (p *InstallWarning) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (InstallWarning) FromRef ¶
func (p InstallWarning) FromRef(ref js.Ref) InstallWarning
FromRef calls UpdateFrom and returns a InstallWarning with all fields set.
func (InstallWarning) New ¶
func (p InstallWarning) New() js.Ref
New creates a new InstallWarning in the application heap.
func (*InstallWarning) Update ¶
func (p *InstallWarning) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*InstallWarning) UpdateFrom ¶
func (p *InstallWarning) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ItemInfo ¶
type ItemInfo struct {
// Id is "ItemInfo.id"
//
// Optional
Id js.String
// Name is "ItemInfo.name"
//
// Optional
Name js.String
// Version is "ItemInfo.version"
//
// Optional
Version js.String
// Description is "ItemInfo.description"
//
// Optional
Description js.String
// MayDisable is "ItemInfo.may_disable"
//
// Optional
//
// NOTE: FFI_USE_MayDisable MUST be set to true to make this field effective.
MayDisable bool
// Enabled is "ItemInfo.enabled"
//
// Optional
//
// NOTE: FFI_USE_Enabled MUST be set to true to make this field effective.
Enabled bool
// IsApp is "ItemInfo.isApp"
//
// Optional
//
// NOTE: FFI_USE_IsApp MUST be set to true to make this field effective.
IsApp bool
// Type is "ItemInfo.type"
//
// Optional
Type ItemType
// AllowActivity is "ItemInfo.allow_activity"
//
// Optional
//
// NOTE: FFI_USE_AllowActivity MUST be set to true to make this field effective.
AllowActivity bool
// AllowFileAccess is "ItemInfo.allow_file_access"
//
// Optional
//
// NOTE: FFI_USE_AllowFileAccess MUST be set to true to make this field effective.
AllowFileAccess bool
// WantsFileAccess is "ItemInfo.wants_file_access"
//
// Optional
//
// NOTE: FFI_USE_WantsFileAccess MUST be set to true to make this field effective.
WantsFileAccess bool
// IncognitoEnabled is "ItemInfo.incognito_enabled"
//
// Optional
//
// NOTE: FFI_USE_IncognitoEnabled MUST be set to true to make this field effective.
IncognitoEnabled bool
// IsUnpacked is "ItemInfo.is_unpacked"
//
// Optional
//
// NOTE: FFI_USE_IsUnpacked MUST be set to true to make this field effective.
IsUnpacked bool
// AllowReload is "ItemInfo.allow_reload"
//
// Optional
//
// NOTE: FFI_USE_AllowReload MUST be set to true to make this field effective.
AllowReload bool
// Terminated is "ItemInfo.terminated"
//
// Optional
//
// NOTE: FFI_USE_Terminated MUST be set to true to make this field effective.
Terminated bool
// AllowIncognito is "ItemInfo.allow_incognito"
//
// Optional
//
// NOTE: FFI_USE_AllowIncognito MUST be set to true to make this field effective.
AllowIncognito bool
// IconUrl is "ItemInfo.icon_url"
//
// Optional
IconUrl js.String
// Path is "ItemInfo.path"
//
// Optional
Path js.String
// OptionsUrl is "ItemInfo.options_url"
//
// Optional
OptionsUrl js.String
// AppLaunchUrl is "ItemInfo.app_launch_url"
//
// Optional
AppLaunchUrl js.String
// HomepageUrl is "ItemInfo.homepage_url"
//
// Optional
HomepageUrl js.String
// UpdateUrl is "ItemInfo.update_url"
//
// Optional
UpdateUrl js.String
// InstallWarnings is "ItemInfo.install_warnings"
//
// Optional
InstallWarnings js.Array[InstallWarning]
// ManifestErrors is "ItemInfo.manifest_errors"
//
// Optional
ManifestErrors js.Array[js.Any]
// RuntimeErrors is "ItemInfo.runtime_errors"
//
// Optional
RuntimeErrors js.Array[js.Any]
// OfflineEnabled is "ItemInfo.offline_enabled"
//
// Optional
//
// NOTE: FFI_USE_OfflineEnabled MUST be set to true to make this field effective.
OfflineEnabled bool
// Views is "ItemInfo.views"
//
// Optional
Views js.Array[ItemInspectView]
FFI_USE_MayDisable bool // for MayDisable.
FFI_USE_Enabled bool // for Enabled.
FFI_USE_IsApp bool // for IsApp.
FFI_USE_AllowActivity bool // for AllowActivity.
FFI_USE_AllowFileAccess bool // for AllowFileAccess.
FFI_USE_WantsFileAccess bool // for WantsFileAccess.
FFI_USE_IncognitoEnabled bool // for IncognitoEnabled.
FFI_USE_IsUnpacked bool // for IsUnpacked.
FFI_USE_AllowReload bool // for AllowReload.
FFI_USE_Terminated bool // for Terminated.
FFI_USE_AllowIncognito bool // for AllowIncognito.
FFI_USE_OfflineEnabled bool // for OfflineEnabled.
FFI_USE bool
}
func (*ItemInfo) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*ItemInfo) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type ItemInspectView ¶
type ItemInspectView struct {
// Path is "ItemInspectView.path"
//
// Optional
Path js.String
// RenderProcessId is "ItemInspectView.render_process_id"
//
// Optional
//
// NOTE: FFI_USE_RenderProcessId MUST be set to true to make this field effective.
RenderProcessId int32
// RenderViewId is "ItemInspectView.render_view_id"
//
// Optional
//
// NOTE: FFI_USE_RenderViewId MUST be set to true to make this field effective.
RenderViewId int32
// Incognito is "ItemInspectView.incognito"
//
// Optional
//
// NOTE: FFI_USE_Incognito MUST be set to true to make this field effective.
Incognito bool
// GeneratedBackgroundPage is "ItemInspectView.generatedBackgroundPage"
//
// Optional
//
// NOTE: FFI_USE_GeneratedBackgroundPage MUST be set to true to make this field effective.
GeneratedBackgroundPage bool
FFI_USE_RenderProcessId bool // for RenderProcessId.
FFI_USE_RenderViewId bool // for RenderViewId.
FFI_USE_Incognito bool // for Incognito.
FFI_USE_GeneratedBackgroundPage bool // for GeneratedBackgroundPage.
FFI_USE bool
}
func (*ItemInspectView) FreeMembers ¶
func (p *ItemInspectView) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ItemInspectView) FromRef ¶
func (p ItemInspectView) FromRef(ref js.Ref) ItemInspectView
FromRef calls UpdateFrom and returns a ItemInspectView with all fields set.
func (ItemInspectView) New ¶
func (p ItemInspectView) New() js.Ref
New creates a new ItemInspectView in the application heap.
func (*ItemInspectView) Update ¶
func (p *ItemInspectView) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ItemInspectView) UpdateFrom ¶
func (p *ItemInspectView) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ItemType ¶
type ItemType uint32
const ( ItemType_HOSTED_APP ItemType ItemType_PACKAGED_APP ItemType_LEGACY_PACKAGED_APP ItemType_EXTENSION ItemType_THEME )
type ItemsInfoCallback ¶
type ItemsInfoCallback[T any] struct { Fn func(arg T, this js.Ref, result js.Array[ItemInfo]) js.Ref Arg T }
func (*ItemsInfoCallback[T]) DispatchCallback ¶
func (cb *ItemsInfoCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type ItemsInfoCallbackFunc ¶
func (ItemsInfoCallbackFunc) DispatchCallback ¶
func (fn ItemsInfoCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type LoadError ¶
type LoadError struct {
// Error is "LoadError.error"
//
// Optional
Error js.String
// Path is "LoadError.path"
//
// Optional
Path js.String
// Source is "LoadError.source"
//
// Optional
//
// NOTE: Source.FFI_USE MUST be set to true to get Source used.
Source ErrorFileSource
// RetryGuid is "LoadError.retryGuid"
//
// Optional
RetryGuid js.String
FFI_USE bool
}
func (*LoadError) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*LoadError) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type LoadErrorCallback ¶
func (*LoadErrorCallback[T]) DispatchCallback ¶
func (cb *LoadErrorCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type LoadErrorCallbackFunc ¶
func (LoadErrorCallbackFunc) DispatchCallback ¶
func (fn LoadErrorCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type LoadUnpackedOptions ¶
type LoadUnpackedOptions struct {
// FailQuietly is "LoadUnpackedOptions.failQuietly"
//
// Optional
//
// NOTE: FFI_USE_FailQuietly MUST be set to true to make this field effective.
FailQuietly bool
// PopulateError is "LoadUnpackedOptions.populateError"
//
// Optional
//
// NOTE: FFI_USE_PopulateError MUST be set to true to make this field effective.
PopulateError bool
// RetryGuid is "LoadUnpackedOptions.retryGuid"
//
// Optional
RetryGuid js.String
// UseDraggedPath is "LoadUnpackedOptions.useDraggedPath"
//
// Optional
//
// NOTE: FFI_USE_UseDraggedPath MUST be set to true to make this field effective.
UseDraggedPath bool
FFI_USE_FailQuietly bool // for FailQuietly.
FFI_USE_PopulateError bool // for PopulateError.
FFI_USE_UseDraggedPath bool // for UseDraggedPath.
FFI_USE bool
}
func (*LoadUnpackedOptions) FreeMembers ¶
func (p *LoadUnpackedOptions) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (LoadUnpackedOptions) FromRef ¶
func (p LoadUnpackedOptions) FromRef(ref js.Ref) LoadUnpackedOptions
FromRef calls UpdateFrom and returns a LoadUnpackedOptions with all fields set.
func (LoadUnpackedOptions) New ¶
func (p LoadUnpackedOptions) New() js.Ref
New creates a new LoadUnpackedOptions in the application heap.
func (*LoadUnpackedOptions) Update ¶
func (p *LoadUnpackedOptions) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*LoadUnpackedOptions) UpdateFrom ¶
func (p *LoadUnpackedOptions) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type Location ¶
type Location uint32
const ( Location_FROM_STORE Location Location_UNPACKED Location_THIRD_PARTY Location_INSTALLED_BY_DEFAULT Location_UNKNOWN )
type ManifestError ¶
type ManifestError struct {
// Type is "ManifestError.type"
//
// Optional
Type ErrorType
// ExtensionId is "ManifestError.extensionId"
//
// Optional
ExtensionId js.String
// FromIncognito is "ManifestError.fromIncognito"
//
// Optional
//
// NOTE: FFI_USE_FromIncognito MUST be set to true to make this field effective.
FromIncognito bool
// Source is "ManifestError.source"
//
// Optional
Source js.String
// Message is "ManifestError.message"
//
// Optional
Message js.String
// Id is "ManifestError.id"
//
// Optional
//
// NOTE: FFI_USE_Id MUST be set to true to make this field effective.
Id int32
// ManifestKey is "ManifestError.manifestKey"
//
// Optional
ManifestKey js.String
// ManifestSpecific is "ManifestError.manifestSpecific"
//
// Optional
ManifestSpecific js.String
FFI_USE_FromIncognito bool // for FromIncognito.
FFI_USE_Id bool // for Id.
FFI_USE bool
}
func (*ManifestError) FreeMembers ¶
func (p *ManifestError) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ManifestError) FromRef ¶
func (p ManifestError) FromRef(ref js.Ref) ManifestError
FromRef calls UpdateFrom and returns a ManifestError with all fields set.
func (ManifestError) New ¶
func (p ManifestError) New() js.Ref
New creates a new ManifestError in the application heap.
func (*ManifestError) Update ¶
func (p *ManifestError) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ManifestError) UpdateFrom ¶
func (p *ManifestError) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type MatchingExtensionInfo ¶
type MatchingExtensionInfo struct {
// Id is "MatchingExtensionInfo.id"
//
// Optional
Id js.String
// SiteAccess is "MatchingExtensionInfo.siteAccess"
//
// Optional
SiteAccess HostAccess
// CanRequestAllSites is "MatchingExtensionInfo.canRequestAllSites"
//
// Optional
//
// NOTE: FFI_USE_CanRequestAllSites MUST be set to true to make this field effective.
CanRequestAllSites bool
FFI_USE_CanRequestAllSites bool // for CanRequestAllSites.
FFI_USE bool
}
func (*MatchingExtensionInfo) FreeMembers ¶
func (p *MatchingExtensionInfo) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (MatchingExtensionInfo) FromRef ¶
func (p MatchingExtensionInfo) FromRef(ref js.Ref) MatchingExtensionInfo
FromRef calls UpdateFrom and returns a MatchingExtensionInfo with all fields set.
func (MatchingExtensionInfo) New ¶
func (p MatchingExtensionInfo) New() js.Ref
New creates a new MatchingExtensionInfo in the application heap.
func (*MatchingExtensionInfo) Update ¶
func (p *MatchingExtensionInfo) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*MatchingExtensionInfo) UpdateFrom ¶
func (p *MatchingExtensionInfo) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type OnItemStateChangedEventCallback ¶
type OnItemStateChangedEventCallback[T any] struct { Fn func(arg T, this js.Ref, response *EventData) js.Ref Arg T }
func (*OnItemStateChangedEventCallback[T]) DispatchCallback ¶
func (cb *OnItemStateChangedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnItemStateChangedEventCallbackFunc ¶
func (OnItemStateChangedEventCallbackFunc) DispatchCallback ¶
func (fn OnItemStateChangedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnProfileStateChangedEventCallback ¶
type OnProfileStateChangedEventCallback[T any] struct { Fn func(arg T, this js.Ref, info *ProfileInfo) js.Ref Arg T }
func (*OnProfileStateChangedEventCallback[T]) DispatchCallback ¶
func (cb *OnProfileStateChangedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*OnProfileStateChangedEventCallback[T]) Register ¶
func (cb *OnProfileStateChangedEventCallback[T]) Register() js.Func[func(info *ProfileInfo)]
type OnProfileStateChangedEventCallbackFunc ¶
type OnProfileStateChangedEventCallbackFunc func(this js.Ref, info *ProfileInfo) js.Ref
func (OnProfileStateChangedEventCallbackFunc) DispatchCallback ¶
func (fn OnProfileStateChangedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (OnProfileStateChangedEventCallbackFunc) Register ¶
func (fn OnProfileStateChangedEventCallbackFunc) Register() js.Func[func(info *ProfileInfo)]
type OnUserSiteSettingsChangedEventCallback ¶
type OnUserSiteSettingsChangedEventCallback[T any] struct { Fn func(arg T, this js.Ref, settings *UserSiteSettings) js.Ref Arg T }
func (*OnUserSiteSettingsChangedEventCallback[T]) DispatchCallback ¶
func (cb *OnUserSiteSettingsChangedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*OnUserSiteSettingsChangedEventCallback[T]) Register ¶
func (cb *OnUserSiteSettingsChangedEventCallback[T]) Register() js.Func[func(settings *UserSiteSettings)]
type OnUserSiteSettingsChangedEventCallbackFunc ¶
type OnUserSiteSettingsChangedEventCallbackFunc func(this js.Ref, settings *UserSiteSettings) js.Ref
func (OnUserSiteSettingsChangedEventCallbackFunc) DispatchCallback ¶
func (fn OnUserSiteSettingsChangedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (OnUserSiteSettingsChangedEventCallbackFunc) Register ¶
func (fn OnUserSiteSettingsChangedEventCallbackFunc) Register() js.Func[func(settings *UserSiteSettings)]
type OneOf_String_Int32 ¶
type OneOf_String_Int32 struct {
// contains filtered or unexported fields
}
func (OneOf_String_Int32) Free ¶
func (x OneOf_String_Int32) Free()
func (OneOf_String_Int32) FromRef ¶
func (x OneOf_String_Int32) FromRef(ref js.Ref) OneOf_String_Int32
func (OneOf_String_Int32) Int32 ¶
func (x OneOf_String_Int32) Int32() int32
func (OneOf_String_Int32) Ref ¶
func (x OneOf_String_Int32) Ref() js.Ref
func (OneOf_String_Int32) String ¶
func (x OneOf_String_Int32) String() js.String
type OpenDevToolsProperties ¶
type OpenDevToolsProperties struct {
// ExtensionId is "OpenDevToolsProperties.extensionId"
//
// Optional
ExtensionId js.String
// RenderViewId is "OpenDevToolsProperties.renderViewId"
//
// Optional
//
// NOTE: FFI_USE_RenderViewId MUST be set to true to make this field effective.
RenderViewId int32
// RenderProcessId is "OpenDevToolsProperties.renderProcessId"
//
// Optional
//
// NOTE: FFI_USE_RenderProcessId MUST be set to true to make this field effective.
RenderProcessId int32
// IsServiceWorker is "OpenDevToolsProperties.isServiceWorker"
//
// Optional
//
// NOTE: FFI_USE_IsServiceWorker MUST be set to true to make this field effective.
IsServiceWorker bool
// Incognito is "OpenDevToolsProperties.incognito"
//
// Optional
//
// NOTE: FFI_USE_Incognito MUST be set to true to make this field effective.
Incognito bool
// Url is "OpenDevToolsProperties.url"
//
// Optional
Url js.String
// LineNumber is "OpenDevToolsProperties.lineNumber"
//
// Optional
//
// NOTE: FFI_USE_LineNumber MUST be set to true to make this field effective.
LineNumber int32
// ColumnNumber is "OpenDevToolsProperties.columnNumber"
//
// Optional
//
// NOTE: FFI_USE_ColumnNumber MUST be set to true to make this field effective.
ColumnNumber int32
FFI_USE_RenderViewId bool // for RenderViewId.
FFI_USE_RenderProcessId bool // for RenderProcessId.
FFI_USE_IsServiceWorker bool // for IsServiceWorker.
FFI_USE_Incognito bool // for Incognito.
FFI_USE_LineNumber bool // for LineNumber.
FFI_USE_ColumnNumber bool // for ColumnNumber.
FFI_USE bool
}
func (*OpenDevToolsProperties) FreeMembers ¶
func (p *OpenDevToolsProperties) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (OpenDevToolsProperties) FromRef ¶
func (p OpenDevToolsProperties) FromRef(ref js.Ref) OpenDevToolsProperties
FromRef calls UpdateFrom and returns a OpenDevToolsProperties with all fields set.
func (OpenDevToolsProperties) New ¶
func (p OpenDevToolsProperties) New() js.Ref
New creates a new OpenDevToolsProperties in the application heap.
func (*OpenDevToolsProperties) Update ¶
func (p *OpenDevToolsProperties) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*OpenDevToolsProperties) UpdateFrom ¶
func (p *OpenDevToolsProperties) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type OptionsPage ¶
type OptionsPage struct {
// OpenInTab is "OptionsPage.openInTab"
//
// Optional
//
// NOTE: FFI_USE_OpenInTab MUST be set to true to make this field effective.
OpenInTab bool
// Url is "OptionsPage.url"
//
// Optional
Url js.String
FFI_USE_OpenInTab bool // for OpenInTab.
FFI_USE bool
}
func (*OptionsPage) FreeMembers ¶
func (p *OptionsPage) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (OptionsPage) FromRef ¶
func (p OptionsPage) FromRef(ref js.Ref) OptionsPage
FromRef calls UpdateFrom and returns a OptionsPage with all fields set.
func (OptionsPage) New ¶
func (p OptionsPage) New() js.Ref
New creates a new OptionsPage in the application heap.
func (*OptionsPage) Update ¶
func (p *OptionsPage) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*OptionsPage) UpdateFrom ¶
func (p *OptionsPage) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type PackCallback ¶
type PackCallback[T any] struct { Fn func(arg T, this js.Ref, response *PackDirectoryResponse) js.Ref Arg T }
func (*PackCallback[T]) DispatchCallback ¶
func (cb *PackCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*PackCallback[T]) Register ¶
func (cb *PackCallback[T]) Register() js.Func[func(response *PackDirectoryResponse)]
type PackCallbackFunc ¶
type PackCallbackFunc func(this js.Ref, response *PackDirectoryResponse) js.Ref
func (PackCallbackFunc) DispatchCallback ¶
func (fn PackCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (PackCallbackFunc) Register ¶
func (fn PackCallbackFunc) Register() js.Func[func(response *PackDirectoryResponse)]
type PackDirectoryResponse ¶
type PackDirectoryResponse struct {
// Message is "PackDirectoryResponse.message"
//
// Optional
Message js.String
// ItemPath is "PackDirectoryResponse.item_path"
//
// Optional
ItemPath js.String
// PemPath is "PackDirectoryResponse.pem_path"
//
// Optional
PemPath js.String
// OverrideFlags is "PackDirectoryResponse.override_flags"
//
// Optional
//
// NOTE: FFI_USE_OverrideFlags MUST be set to true to make this field effective.
OverrideFlags int32
// Status is "PackDirectoryResponse.status"
//
// Optional
Status PackStatus
FFI_USE_OverrideFlags bool // for OverrideFlags.
FFI_USE bool
}
func (*PackDirectoryResponse) FreeMembers ¶
func (p *PackDirectoryResponse) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (PackDirectoryResponse) FromRef ¶
func (p PackDirectoryResponse) FromRef(ref js.Ref) PackDirectoryResponse
FromRef calls UpdateFrom and returns a PackDirectoryResponse with all fields set.
func (PackDirectoryResponse) New ¶
func (p PackDirectoryResponse) New() js.Ref
New creates a new PackDirectoryResponse in the application heap.
func (*PackDirectoryResponse) Update ¶
func (p *PackDirectoryResponse) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*PackDirectoryResponse) UpdateFrom ¶
func (p *PackDirectoryResponse) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type PackStatus ¶
type PackStatus uint32
const ( PackStatus_SUCCESS PackStatus PackStatus_ERROR PackStatus_WARNING )
func (PackStatus) FromRef ¶
func (PackStatus) FromRef(str js.Ref) PackStatus
func (PackStatus) String ¶
func (x PackStatus) String() (string, bool)
type Permission ¶
type Permission struct {
// Message is "Permission.message"
//
// Optional
Message js.String
// Submessages is "Permission.submessages"
//
// Optional
Submessages js.Array[js.String]
FFI_USE bool
}
func (*Permission) FreeMembers ¶
func (p *Permission) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (Permission) FromRef ¶
func (p Permission) FromRef(ref js.Ref) Permission
FromRef calls UpdateFrom and returns a Permission with all fields set.
func (Permission) New ¶
func (p Permission) New() js.Ref
New creates a new Permission in the application heap.
func (*Permission) Update ¶
func (p *Permission) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*Permission) UpdateFrom ¶
func (p *Permission) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type Permissions ¶
type Permissions struct {
// SimplePermissions is "Permissions.simplePermissions"
//
// Optional
SimplePermissions js.Array[Permission]
// RuntimeHostPermissions is "Permissions.runtimeHostPermissions"
//
// Optional
//
// NOTE: RuntimeHostPermissions.FFI_USE MUST be set to true to get RuntimeHostPermissions used.
RuntimeHostPermissions RuntimeHostPermissions
// CanAccessSiteData is "Permissions.canAccessSiteData"
//
// Optional
//
// NOTE: FFI_USE_CanAccessSiteData MUST be set to true to make this field effective.
CanAccessSiteData bool
FFI_USE_CanAccessSiteData bool // for CanAccessSiteData.
FFI_USE bool
}
func (*Permissions) FreeMembers ¶
func (p *Permissions) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (Permissions) FromRef ¶
func (p Permissions) FromRef(ref js.Ref) Permissions
FromRef calls UpdateFrom and returns a Permissions with all fields set.
func (Permissions) New ¶
func (p Permissions) New() js.Ref
New creates a new Permissions in the application heap.
func (*Permissions) Update ¶
func (p *Permissions) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*Permissions) UpdateFrom ¶
func (p *Permissions) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ProfileConfigurationUpdate ¶
type ProfileConfigurationUpdate struct {
// InDeveloperMode is "ProfileConfigurationUpdate.inDeveloperMode"
//
// Optional
//
// NOTE: FFI_USE_InDeveloperMode MUST be set to true to make this field effective.
InDeveloperMode bool
FFI_USE_InDeveloperMode bool // for InDeveloperMode.
FFI_USE bool
}
func (*ProfileConfigurationUpdate) FreeMembers ¶
func (p *ProfileConfigurationUpdate) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ProfileConfigurationUpdate) FromRef ¶
func (p ProfileConfigurationUpdate) FromRef(ref js.Ref) ProfileConfigurationUpdate
FromRef calls UpdateFrom and returns a ProfileConfigurationUpdate with all fields set.
func (ProfileConfigurationUpdate) New ¶
func (p ProfileConfigurationUpdate) New() js.Ref
New creates a new ProfileConfigurationUpdate in the application heap.
func (*ProfileConfigurationUpdate) Update ¶
func (p *ProfileConfigurationUpdate) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ProfileConfigurationUpdate) UpdateFrom ¶
func (p *ProfileConfigurationUpdate) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ProfileInfo ¶
type ProfileInfo struct {
// CanLoadUnpacked is "ProfileInfo.canLoadUnpacked"
//
// Optional
//
// NOTE: FFI_USE_CanLoadUnpacked MUST be set to true to make this field effective.
CanLoadUnpacked bool
// InDeveloperMode is "ProfileInfo.inDeveloperMode"
//
// Optional
//
// NOTE: FFI_USE_InDeveloperMode MUST be set to true to make this field effective.
InDeveloperMode bool
// IsDeveloperModeControlledByPolicy is "ProfileInfo.isDeveloperModeControlledByPolicy"
//
// Optional
//
// NOTE: FFI_USE_IsDeveloperModeControlledByPolicy MUST be set to true to make this field effective.
IsDeveloperModeControlledByPolicy bool
// IsIncognitoAvailable is "ProfileInfo.isIncognitoAvailable"
//
// Optional
//
// NOTE: FFI_USE_IsIncognitoAvailable MUST be set to true to make this field effective.
IsIncognitoAvailable bool
// IsChildAccount is "ProfileInfo.isChildAccount"
//
// Optional
//
// NOTE: FFI_USE_IsChildAccount MUST be set to true to make this field effective.
IsChildAccount bool
FFI_USE_CanLoadUnpacked bool // for CanLoadUnpacked.
FFI_USE_InDeveloperMode bool // for InDeveloperMode.
FFI_USE_IsDeveloperModeControlledByPolicy bool // for IsDeveloperModeControlledByPolicy.
FFI_USE_IsIncognitoAvailable bool // for IsIncognitoAvailable.
FFI_USE_IsChildAccount bool // for IsChildAccount.
FFI_USE bool
}
func (*ProfileInfo) FreeMembers ¶
func (p *ProfileInfo) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ProfileInfo) FromRef ¶
func (p ProfileInfo) FromRef(ref js.Ref) ProfileInfo
FromRef calls UpdateFrom and returns a ProfileInfo with all fields set.
func (ProfileInfo) New ¶
func (p ProfileInfo) New() js.Ref
New creates a new ProfileInfo in the application heap.
func (*ProfileInfo) Update ¶
func (p *ProfileInfo) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ProfileInfo) UpdateFrom ¶
func (p *ProfileInfo) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ProfileInfoCallback ¶
type ProfileInfoCallback[T any] struct { Fn func(arg T, this js.Ref, info *ProfileInfo) js.Ref Arg T }
func (*ProfileInfoCallback[T]) DispatchCallback ¶
func (cb *ProfileInfoCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*ProfileInfoCallback[T]) Register ¶
func (cb *ProfileInfoCallback[T]) Register() js.Func[func(info *ProfileInfo)]
type ProfileInfoCallbackFunc ¶
type ProfileInfoCallbackFunc func(this js.Ref, info *ProfileInfo) js.Ref
func (ProfileInfoCallbackFunc) DispatchCallback ¶
func (fn ProfileInfoCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (ProfileInfoCallbackFunc) Register ¶
func (fn ProfileInfoCallbackFunc) Register() js.Func[func(info *ProfileInfo)]
type ProjectInfo ¶
type ProjectInfo struct {
// Name is "ProjectInfo.name"
//
// Optional
Name js.String
FFI_USE bool
}
func (*ProjectInfo) FreeMembers ¶
func (p *ProjectInfo) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ProjectInfo) FromRef ¶
func (p ProjectInfo) FromRef(ref js.Ref) ProjectInfo
FromRef calls UpdateFrom and returns a ProjectInfo with all fields set.
func (ProjectInfo) New ¶
func (p ProjectInfo) New() js.Ref
New creates a new ProjectInfo in the application heap.
func (*ProjectInfo) Update ¶
func (p *ProjectInfo) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ProjectInfo) UpdateFrom ¶
func (p *ProjectInfo) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ReloadOptions ¶
type ReloadOptions struct {
// FailQuietly is "ReloadOptions.failQuietly"
//
// Optional
//
// NOTE: FFI_USE_FailQuietly MUST be set to true to make this field effective.
FailQuietly bool
// PopulateErrorForUnpacked is "ReloadOptions.populateErrorForUnpacked"
//
// Optional
//
// NOTE: FFI_USE_PopulateErrorForUnpacked MUST be set to true to make this field effective.
PopulateErrorForUnpacked bool
FFI_USE_FailQuietly bool // for FailQuietly.
FFI_USE_PopulateErrorForUnpacked bool // for PopulateErrorForUnpacked.
FFI_USE bool
}
func (*ReloadOptions) FreeMembers ¶
func (p *ReloadOptions) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ReloadOptions) FromRef ¶
func (p ReloadOptions) FromRef(ref js.Ref) ReloadOptions
FromRef calls UpdateFrom and returns a ReloadOptions with all fields set.
func (ReloadOptions) New ¶
func (p ReloadOptions) New() js.Ref
New creates a new ReloadOptions in the application heap.
func (*ReloadOptions) Update ¶
func (p *ReloadOptions) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ReloadOptions) UpdateFrom ¶
func (p *ReloadOptions) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type RequestFileSourceCallback ¶
type RequestFileSourceCallback[T any] struct { Fn func(arg T, this js.Ref, response *RequestFileSourceResponse) js.Ref Arg T }
func (*RequestFileSourceCallback[T]) DispatchCallback ¶
func (cb *RequestFileSourceCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*RequestFileSourceCallback[T]) Register ¶
func (cb *RequestFileSourceCallback[T]) Register() js.Func[func(response *RequestFileSourceResponse)]
type RequestFileSourceCallbackFunc ¶
type RequestFileSourceCallbackFunc func(this js.Ref, response *RequestFileSourceResponse) js.Ref
func (RequestFileSourceCallbackFunc) DispatchCallback ¶
func (fn RequestFileSourceCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (RequestFileSourceCallbackFunc) Register ¶
func (fn RequestFileSourceCallbackFunc) Register() js.Func[func(response *RequestFileSourceResponse)]
type RequestFileSourceProperties ¶
type RequestFileSourceProperties struct {
// ExtensionId is "RequestFileSourceProperties.extensionId"
//
// Optional
ExtensionId js.String
// PathSuffix is "RequestFileSourceProperties.pathSuffix"
//
// Optional
PathSuffix js.String
// Message is "RequestFileSourceProperties.message"
//
// Optional
Message js.String
// ManifestKey is "RequestFileSourceProperties.manifestKey"
//
// Optional
ManifestKey js.String
// ManifestSpecific is "RequestFileSourceProperties.manifestSpecific"
//
// Optional
ManifestSpecific js.String
// LineNumber is "RequestFileSourceProperties.lineNumber"
//
// Optional
//
// NOTE: FFI_USE_LineNumber MUST be set to true to make this field effective.
LineNumber int32
FFI_USE_LineNumber bool // for LineNumber.
FFI_USE bool
}
func (*RequestFileSourceProperties) FreeMembers ¶
func (p *RequestFileSourceProperties) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (RequestFileSourceProperties) FromRef ¶
func (p RequestFileSourceProperties) FromRef(ref js.Ref) RequestFileSourceProperties
FromRef calls UpdateFrom and returns a RequestFileSourceProperties with all fields set.
func (RequestFileSourceProperties) New ¶
func (p RequestFileSourceProperties) New() js.Ref
New creates a new RequestFileSourceProperties in the application heap.
func (*RequestFileSourceProperties) Update ¶
func (p *RequestFileSourceProperties) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*RequestFileSourceProperties) UpdateFrom ¶
func (p *RequestFileSourceProperties) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type RequestFileSourceResponse ¶
type RequestFileSourceResponse struct {
// Highlight is "RequestFileSourceResponse.highlight"
//
// Optional
Highlight js.String
// BeforeHighlight is "RequestFileSourceResponse.beforeHighlight"
//
// Optional
BeforeHighlight js.String
// AfterHighlight is "RequestFileSourceResponse.afterHighlight"
//
// Optional
AfterHighlight js.String
// Title is "RequestFileSourceResponse.title"
//
// Optional
Title js.String
// Message is "RequestFileSourceResponse.message"
//
// Optional
Message js.String
FFI_USE bool
}
func (*RequestFileSourceResponse) FreeMembers ¶
func (p *RequestFileSourceResponse) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (RequestFileSourceResponse) FromRef ¶
func (p RequestFileSourceResponse) FromRef(ref js.Ref) RequestFileSourceResponse
FromRef calls UpdateFrom and returns a RequestFileSourceResponse with all fields set.
func (RequestFileSourceResponse) New ¶
func (p RequestFileSourceResponse) New() js.Ref
New creates a new RequestFileSourceResponse in the application heap.
func (*RequestFileSourceResponse) Update ¶
func (p *RequestFileSourceResponse) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*RequestFileSourceResponse) UpdateFrom ¶
func (p *RequestFileSourceResponse) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type RuntimeError ¶
type RuntimeError struct {
// Type is "RuntimeError.type"
//
// Optional
Type ErrorType
// ExtensionId is "RuntimeError.extensionId"
//
// Optional
ExtensionId js.String
// FromIncognito is "RuntimeError.fromIncognito"
//
// Optional
//
// NOTE: FFI_USE_FromIncognito MUST be set to true to make this field effective.
FromIncognito bool
// Source is "RuntimeError.source"
//
// Optional
Source js.String
// Message is "RuntimeError.message"
//
// Optional
Message js.String
// Id is "RuntimeError.id"
//
// Optional
//
// NOTE: FFI_USE_Id MUST be set to true to make this field effective.
Id int32
// Severity is "RuntimeError.severity"
//
// Optional
Severity ErrorLevel
// ContextUrl is "RuntimeError.contextUrl"
//
// Optional
ContextUrl js.String
// Occurrences is "RuntimeError.occurrences"
//
// Optional
//
// NOTE: FFI_USE_Occurrences MUST be set to true to make this field effective.
Occurrences int32
// RenderViewId is "RuntimeError.renderViewId"
//
// Optional
//
// NOTE: FFI_USE_RenderViewId MUST be set to true to make this field effective.
RenderViewId int32
// RenderProcessId is "RuntimeError.renderProcessId"
//
// Optional
//
// NOTE: FFI_USE_RenderProcessId MUST be set to true to make this field effective.
RenderProcessId int32
// CanInspect is "RuntimeError.canInspect"
//
// Optional
//
// NOTE: FFI_USE_CanInspect MUST be set to true to make this field effective.
CanInspect bool
// StackTrace is "RuntimeError.stackTrace"
//
// Optional
StackTrace js.Array[StackFrame]
FFI_USE_FromIncognito bool // for FromIncognito.
FFI_USE_Id bool // for Id.
FFI_USE_Occurrences bool // for Occurrences.
FFI_USE_RenderViewId bool // for RenderViewId.
FFI_USE_RenderProcessId bool // for RenderProcessId.
FFI_USE_CanInspect bool // for CanInspect.
FFI_USE bool
}
func (*RuntimeError) FreeMembers ¶
func (p *RuntimeError) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (RuntimeError) FromRef ¶
func (p RuntimeError) FromRef(ref js.Ref) RuntimeError
FromRef calls UpdateFrom and returns a RuntimeError with all fields set.
func (RuntimeError) New ¶
func (p RuntimeError) New() js.Ref
New creates a new RuntimeError in the application heap.
func (*RuntimeError) Update ¶
func (p *RuntimeError) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*RuntimeError) UpdateFrom ¶
func (p *RuntimeError) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type RuntimeHostPermissions ¶
type RuntimeHostPermissions struct {
// HasAllHosts is "RuntimeHostPermissions.hasAllHosts"
//
// Optional
//
// NOTE: FFI_USE_HasAllHosts MUST be set to true to make this field effective.
HasAllHosts bool
// HostAccess is "RuntimeHostPermissions.hostAccess"
//
// Optional
HostAccess HostAccess
// Hosts is "RuntimeHostPermissions.hosts"
//
// Optional
Hosts js.Array[SiteControl]
FFI_USE_HasAllHosts bool // for HasAllHosts.
FFI_USE bool
}
func (*RuntimeHostPermissions) FreeMembers ¶
func (p *RuntimeHostPermissions) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (RuntimeHostPermissions) FromRef ¶
func (p RuntimeHostPermissions) FromRef(ref js.Ref) RuntimeHostPermissions
FromRef calls UpdateFrom and returns a RuntimeHostPermissions with all fields set.
func (RuntimeHostPermissions) New ¶
func (p RuntimeHostPermissions) New() js.Ref
New creates a new RuntimeHostPermissions in the application heap.
func (*RuntimeHostPermissions) Update ¶
func (p *RuntimeHostPermissions) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*RuntimeHostPermissions) UpdateFrom ¶
func (p *RuntimeHostPermissions) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type SafetyCheckStrings ¶
type SafetyCheckStrings struct {
// PanelString is "SafetyCheckStrings.panelString"
//
// Optional
PanelString js.String
// DetailString is "SafetyCheckStrings.detailString"
//
// Optional
DetailString js.String
FFI_USE bool
}
func (*SafetyCheckStrings) FreeMembers ¶
func (p *SafetyCheckStrings) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (SafetyCheckStrings) FromRef ¶
func (p SafetyCheckStrings) FromRef(ref js.Ref) SafetyCheckStrings
FromRef calls UpdateFrom and returns a SafetyCheckStrings with all fields set.
func (SafetyCheckStrings) New ¶
func (p SafetyCheckStrings) New() js.Ref
New creates a new SafetyCheckStrings in the application heap.
func (*SafetyCheckStrings) Update ¶
func (p *SafetyCheckStrings) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*SafetyCheckStrings) UpdateFrom ¶
func (p *SafetyCheckStrings) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type SelectType ¶
type SelectType uint32
const ( SelectType_FILE SelectType SelectType_FOLDER )
func (SelectType) FromRef ¶
func (SelectType) FromRef(str js.Ref) SelectType
func (SelectType) String ¶
func (x SelectType) String() (string, bool)
type SiteControl ¶
type SiteControl struct {
// Host is "SiteControl.host"
//
// Optional
Host js.String
// Granted is "SiteControl.granted"
//
// Optional
//
// NOTE: FFI_USE_Granted MUST be set to true to make this field effective.
Granted bool
FFI_USE_Granted bool // for Granted.
FFI_USE bool
}
func (*SiteControl) FreeMembers ¶
func (p *SiteControl) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (SiteControl) FromRef ¶
func (p SiteControl) FromRef(ref js.Ref) SiteControl
FromRef calls UpdateFrom and returns a SiteControl with all fields set.
func (SiteControl) New ¶
func (p SiteControl) New() js.Ref
New creates a new SiteControl in the application heap.
func (*SiteControl) Update ¶
func (p *SiteControl) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*SiteControl) UpdateFrom ¶
func (p *SiteControl) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type SiteGroup ¶
type SiteGroup struct {
// EtldPlusOne is "SiteGroup.etldPlusOne"
//
// Optional
EtldPlusOne js.String
// NumExtensions is "SiteGroup.numExtensions"
//
// Optional
//
// NOTE: FFI_USE_NumExtensions MUST be set to true to make this field effective.
NumExtensions int32
// Sites is "SiteGroup.sites"
//
// Optional
Sites js.Array[SiteInfo]
FFI_USE_NumExtensions bool // for NumExtensions.
FFI_USE bool
}
func (*SiteGroup) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*SiteGroup) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type SiteInfo ¶
type SiteInfo struct {
// SiteSet is "SiteInfo.siteSet"
//
// Optional
SiteSet SiteSet
// NumExtensions is "SiteInfo.numExtensions"
//
// Optional
//
// NOTE: FFI_USE_NumExtensions MUST be set to true to make this field effective.
NumExtensions int32
// Site is "SiteInfo.site"
//
// Optional
Site js.String
FFI_USE_NumExtensions bool // for NumExtensions.
FFI_USE bool
}
func (*SiteInfo) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*SiteInfo) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type SiteSet ¶
type SiteSet uint32
const ( SiteSet_USER_PERMITTED SiteSet SiteSet_USER_RESTRICTED SiteSet_EXTENSION_SPECIFIED )
type StackFrame ¶
type StackFrame struct {
// LineNumber is "StackFrame.lineNumber"
//
// Optional
//
// NOTE: FFI_USE_LineNumber MUST be set to true to make this field effective.
LineNumber int32
// ColumnNumber is "StackFrame.columnNumber"
//
// Optional
//
// NOTE: FFI_USE_ColumnNumber MUST be set to true to make this field effective.
ColumnNumber int32
// Url is "StackFrame.url"
//
// Optional
Url js.String
// FunctionName is "StackFrame.functionName"
//
// Optional
FunctionName js.String
FFI_USE_LineNumber bool // for LineNumber.
FFI_USE_ColumnNumber bool // for ColumnNumber.
FFI_USE bool
}
func (*StackFrame) FreeMembers ¶
func (p *StackFrame) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (StackFrame) FromRef ¶
func (p StackFrame) FromRef(ref js.Ref) StackFrame
FromRef calls UpdateFrom and returns a StackFrame with all fields set.
func (StackFrame) New ¶
func (p StackFrame) New() js.Ref
New creates a new StackFrame in the application heap.
func (*StackFrame) Update ¶
func (p *StackFrame) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*StackFrame) UpdateFrom ¶
func (p *StackFrame) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type StringCallback ¶
func (*StringCallback[T]) DispatchCallback ¶
func (cb *StringCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type StringCallbackFunc ¶
func (StringCallbackFunc) DispatchCallback ¶
func (fn StringCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type UserAndExtensionSitesByEtldCallback ¶
type UserAndExtensionSitesByEtldCallback[T any] struct { Fn func(arg T, this js.Ref, siteGroups js.Array[SiteGroup]) js.Ref Arg T }
func (*UserAndExtensionSitesByEtldCallback[T]) DispatchCallback ¶
func (cb *UserAndExtensionSitesByEtldCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type UserAndExtensionSitesByEtldCallbackFunc ¶
type UserAndExtensionSitesByEtldCallbackFunc func(this js.Ref, siteGroups js.Array[SiteGroup]) js.Ref
func (UserAndExtensionSitesByEtldCallbackFunc) DispatchCallback ¶
func (fn UserAndExtensionSitesByEtldCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type UserSiteSettings ¶
type UserSiteSettings struct {
// PermittedSites is "UserSiteSettings.permittedSites"
//
// Optional
PermittedSites js.Array[js.String]
// RestrictedSites is "UserSiteSettings.restrictedSites"
//
// Optional
RestrictedSites js.Array[js.String]
FFI_USE bool
}
func (*UserSiteSettings) FreeMembers ¶
func (p *UserSiteSettings) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (UserSiteSettings) FromRef ¶
func (p UserSiteSettings) FromRef(ref js.Ref) UserSiteSettings
FromRef calls UpdateFrom and returns a UserSiteSettings with all fields set.
func (UserSiteSettings) New ¶
func (p UserSiteSettings) New() js.Ref
New creates a new UserSiteSettings in the application heap.
func (*UserSiteSettings) Update ¶
func (p *UserSiteSettings) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*UserSiteSettings) UpdateFrom ¶
func (p *UserSiteSettings) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type UserSiteSettingsCallback ¶
type UserSiteSettingsCallback[T any] struct { Fn func(arg T, this js.Ref, settings *UserSiteSettings) js.Ref Arg T }
func (*UserSiteSettingsCallback[T]) DispatchCallback ¶
func (cb *UserSiteSettingsCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*UserSiteSettingsCallback[T]) Register ¶
func (cb *UserSiteSettingsCallback[T]) Register() js.Func[func(settings *UserSiteSettings)]
type UserSiteSettingsCallbackFunc ¶
type UserSiteSettingsCallbackFunc func(this js.Ref, settings *UserSiteSettings) js.Ref
func (UserSiteSettingsCallbackFunc) DispatchCallback ¶
func (fn UserSiteSettingsCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (UserSiteSettingsCallbackFunc) Register ¶
func (fn UserSiteSettingsCallbackFunc) Register() js.Func[func(settings *UserSiteSettings)]
type UserSiteSettingsOptions ¶
type UserSiteSettingsOptions struct {
// SiteSet is "UserSiteSettingsOptions.siteSet"
//
// Optional
SiteSet SiteSet
// Hosts is "UserSiteSettingsOptions.hosts"
//
// Optional
Hosts js.Array[js.String]
FFI_USE bool
}
func (*UserSiteSettingsOptions) FreeMembers ¶
func (p *UserSiteSettingsOptions) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (UserSiteSettingsOptions) FromRef ¶
func (p UserSiteSettingsOptions) FromRef(ref js.Ref) UserSiteSettingsOptions
FromRef calls UpdateFrom and returns a UserSiteSettingsOptions with all fields set.
func (UserSiteSettingsOptions) New ¶
func (p UserSiteSettingsOptions) New() js.Ref
New creates a new UserSiteSettingsOptions in the application heap.
func (*UserSiteSettingsOptions) Update ¶
func (p *UserSiteSettingsOptions) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*UserSiteSettingsOptions) UpdateFrom ¶
func (p *UserSiteSettingsOptions) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ViewType ¶
type ViewType uint32
const ( ViewType_APP_WINDOW ViewType ViewType_BACKGROUND_CONTENTS ViewType_COMPONENT ViewType_EXTENSION_BACKGROUND_PAGE ViewType_EXTENSION_DIALOG ViewType_EXTENSION_GUEST ViewType_EXTENSION_POPUP ViewType_EXTENSION_SERVICE_WORKER_BACKGROUND ViewType_TAB_CONTENTS ViewType_OFFSCREEN_DOCUMENT ViewType_EXTENSION_SIDE_PANEL )
type VoidCallback ¶
func (*VoidCallback[T]) DispatchCallback ¶
func (cb *VoidCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (*VoidCallback[T]) Register ¶
func (cb *VoidCallback[T]) Register() js.Func[func()]
type VoidCallbackFunc ¶
func (VoidCallbackFunc) DispatchCallback ¶
func (fn VoidCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
func (VoidCallbackFunc) Register ¶
func (fn VoidCallbackFunc) Register() js.Func[func()]