filebrowserhandler

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncHasOnExecute

func FuncHasOnExecute() (fn js.Func[func(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]) bool])

FuncHasOnExecute returns the function "WEBEXT.fileBrowserHandler.onExecute.hasListener".

func FuncOffExecute

func FuncOffExecute() (fn js.Func[func(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)])])

FuncOffExecute returns the function "WEBEXT.fileBrowserHandler.onExecute.removeListener".

func FuncOnExecute

func FuncOnExecute() (fn js.Func[func(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)])])

FuncOnExecute returns the function "WEBEXT.fileBrowserHandler.onExecute.addListener".

func HasFuncHasOnExecute

func HasFuncHasOnExecute() bool

HasFuncHasOnExecute returns true if the function "WEBEXT.fileBrowserHandler.onExecute.hasListener" exists.

func HasFuncOffExecute

func HasFuncOffExecute() bool

HasFuncOffExecute returns true if the function "WEBEXT.fileBrowserHandler.onExecute.removeListener" exists.

func HasFuncOnExecute

func HasFuncOnExecute() bool

HasFuncOnExecute returns true if the function "WEBEXT.fileBrowserHandler.onExecute.addListener" exists.

func HasOnExecute

func HasOnExecute(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]) (ret bool)

HasOnExecute calls the function "WEBEXT.fileBrowserHandler.onExecute.hasListener" directly.

func OffExecute

func OffExecute(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]) (ret js.Void)

OffExecute calls the function "WEBEXT.fileBrowserHandler.onExecute.removeListener" directly.

func OnExecute

func OnExecute(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]) (ret js.Void)

OnExecute calls the function "WEBEXT.fileBrowserHandler.onExecute.addListener" directly.

func TryHasOnExecute

func TryHasOnExecute(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]) (ret bool, exception js.Any, ok bool)

TryHasOnExecute calls the function "WEBEXT.fileBrowserHandler.onExecute.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryOffExecute

func TryOffExecute(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]) (ret js.Void, exception js.Any, ok bool)

TryOffExecute calls the function "WEBEXT.fileBrowserHandler.onExecute.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

func TryOnExecute

func TryOnExecute(callback js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]) (ret js.Void, exception js.Any, ok bool)

TryOnExecute calls the function "WEBEXT.fileBrowserHandler.onExecute.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.

Types

type FileHandlerExecuteEventDetails

type FileHandlerExecuteEventDetails struct {
	// Entries is "FileHandlerExecuteEventDetails.entries"
	//
	// Required
	Entries js.Array[js.Any]
	// TabId is "FileHandlerExecuteEventDetails.tab_id"
	//
	// Optional
	//
	// NOTE: FFI_USE_TabId MUST be set to true to make this field effective.
	TabId int64

	FFI_USE_TabId bool // for TabId.

	FFI_USE bool
}

func (*FileHandlerExecuteEventDetails) FreeMembers

func (p *FileHandlerExecuteEventDetails) FreeMembers(recursive bool)

FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.

func (FileHandlerExecuteEventDetails) FromRef

FromRef calls UpdateFrom and returns a FileHandlerExecuteEventDetails with all fields set.

func (FileHandlerExecuteEventDetails) New

New creates a new FileHandlerExecuteEventDetails in the application heap.

func (*FileHandlerExecuteEventDetails) Update

func (p *FileHandlerExecuteEventDetails) Update(ref js.Ref)

Update writes all fields of the p to the heap object referenced by ref.

func (*FileHandlerExecuteEventDetails) UpdateFrom

func (p *FileHandlerExecuteEventDetails) UpdateFrom(ref js.Ref)

UpdateFrom copies value of all fields of the heap object to p.

type OnExecuteEventCallback

type OnExecuteEventCallback[T any] struct {
	Fn  func(arg T, this js.Ref, id js.String, details *FileHandlerExecuteEventDetails) js.Ref
	Arg T
}

func (*OnExecuteEventCallback[T]) DispatchCallback

func (cb *OnExecuteEventCallback[T]) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (*OnExecuteEventCallback[T]) Register

func (cb *OnExecuteEventCallback[T]) Register() js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]

type OnExecuteEventCallbackFunc

type OnExecuteEventCallbackFunc func(this js.Ref, id js.String, details *FileHandlerExecuteEventDetails) js.Ref

func (OnExecuteEventCallbackFunc) DispatchCallback

func (fn OnExecuteEventCallbackFunc) DispatchCallback(
	targetPC uintptr, ctx *js.CallbackContext,
)

func (OnExecuteEventCallbackFunc) Register

func (fn OnExecuteEventCallbackFunc) Register() js.Func[func(id js.String, details *FileHandlerExecuteEventDetails)]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL