Documentation
¶
Index ¶
- func FuncGet() (fn js.Func[func(groupId int64) js.Promise[TabGroup]])
- func FuncHasOnCreated() (fn js.Func[func(callback js.Func[func(group *TabGroup)]) bool])
- func FuncHasOnMoved() (fn js.Func[func(callback js.Func[func(group *TabGroup)]) bool])
- func FuncHasOnRemoved() (fn js.Func[func(callback js.Func[func(group *TabGroup)]) bool])
- func FuncHasOnUpdated() (fn js.Func[func(callback js.Func[func(group *TabGroup)]) bool])
- func FuncMove() (...)
- func FuncOffCreated() (fn js.Func[func(callback js.Func[func(group *TabGroup)])])
- func FuncOffMoved() (fn js.Func[func(callback js.Func[func(group *TabGroup)])])
- func FuncOffRemoved() (fn js.Func[func(callback js.Func[func(group *TabGroup)])])
- func FuncOffUpdated() (fn js.Func[func(callback js.Func[func(group *TabGroup)])])
- func FuncOnCreated() (fn js.Func[func(callback js.Func[func(group *TabGroup)])])
- func FuncOnMoved() (fn js.Func[func(callback js.Func[func(group *TabGroup)])])
- func FuncOnRemoved() (fn js.Func[func(callback js.Func[func(group *TabGroup)])])
- func FuncOnUpdated() (fn js.Func[func(callback js.Func[func(group *TabGroup)])])
- func FuncQuery() (fn js.Func[func(queryInfo QueryArgQueryInfo) js.Promise[js.Array[TabGroup]]])
- func FuncUpdate() (...)
- func Get(groupId int64) (ret js.Promise[TabGroup])
- func HasFuncGet() bool
- func HasFuncHasOnCreated() bool
- func HasFuncHasOnMoved() bool
- func HasFuncHasOnRemoved() bool
- func HasFuncHasOnUpdated() bool
- func HasFuncMove() bool
- func HasFuncOffCreated() bool
- func HasFuncOffMoved() bool
- func HasFuncOffRemoved() bool
- func HasFuncOffUpdated() bool
- func HasFuncOnCreated() bool
- func HasFuncOnMoved() bool
- func HasFuncOnRemoved() bool
- func HasFuncOnUpdated() bool
- func HasFuncQuery() bool
- func HasFuncUpdate() bool
- func HasOnCreated(callback js.Func[func(group *TabGroup)]) (ret bool)
- func HasOnMoved(callback js.Func[func(group *TabGroup)]) (ret bool)
- func HasOnRemoved(callback js.Func[func(group *TabGroup)]) (ret bool)
- func HasOnUpdated(callback js.Func[func(group *TabGroup)]) (ret bool)
- func Move(groupId int64, moveProperties MoveArgMoveProperties) (ret js.Promise[TabGroup])
- func OffCreated(callback js.Func[func(group *TabGroup)]) (ret js.Void)
- func OffMoved(callback js.Func[func(group *TabGroup)]) (ret js.Void)
- func OffRemoved(callback js.Func[func(group *TabGroup)]) (ret js.Void)
- func OffUpdated(callback js.Func[func(group *TabGroup)]) (ret js.Void)
- func OnCreated(callback js.Func[func(group *TabGroup)]) (ret js.Void)
- func OnMoved(callback js.Func[func(group *TabGroup)]) (ret js.Void)
- func OnRemoved(callback js.Func[func(group *TabGroup)]) (ret js.Void)
- func OnUpdated(callback js.Func[func(group *TabGroup)]) (ret js.Void)
- func Query(queryInfo QueryArgQueryInfo) (ret js.Promise[js.Array[TabGroup]])
- func SetTAB_GROUP_ID_NONE(val js.String) bool
- func TAB_GROUP_ID_NONE() (ret js.String, ok bool)
- func TryGet(groupId int64) (ret js.Promise[TabGroup], exception js.Any, ok bool)
- func TryHasOnCreated(callback js.Func[func(group *TabGroup)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnMoved(callback js.Func[func(group *TabGroup)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnRemoved(callback js.Func[func(group *TabGroup)]) (ret bool, exception js.Any, ok bool)
- func TryHasOnUpdated(callback js.Func[func(group *TabGroup)]) (ret bool, exception js.Any, ok bool)
- func TryMove(groupId int64, moveProperties MoveArgMoveProperties) (ret js.Promise[TabGroup], exception js.Any, ok bool)
- func TryOffCreated(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffMoved(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffRemoved(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
- func TryOffUpdated(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnCreated(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnMoved(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnRemoved(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
- func TryOnUpdated(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
- func TryQuery(queryInfo QueryArgQueryInfo) (ret js.Promise[js.Array[TabGroup]], exception js.Any, ok bool)
- func TryUpdate(groupId int64, updateProperties UpdateArgUpdateProperties) (ret js.Promise[TabGroup], exception js.Any, ok bool)
- func Update(groupId int64, updateProperties UpdateArgUpdateProperties) (ret js.Promise[TabGroup])
- type Color
- type MoveArgMoveProperties
- type OnCreatedEventCallback
- type OnCreatedEventCallbackFunc
- type OnMovedEventCallback
- type OnMovedEventCallbackFunc
- type OnRemovedEventCallback
- type OnRemovedEventCallbackFunc
- type OnUpdatedEventCallback
- type OnUpdatedEventCallbackFunc
- type QueryArgQueryInfo
- type TabGroup
- type UpdateArgUpdateProperties
- func (p *UpdateArgUpdateProperties) FreeMembers(recursive bool)
- func (p UpdateArgUpdateProperties) FromRef(ref js.Ref) UpdateArgUpdateProperties
- func (p UpdateArgUpdateProperties) New() js.Ref
- func (p *UpdateArgUpdateProperties) Update(ref js.Ref)
- func (p *UpdateArgUpdateProperties) UpdateFrom(ref js.Ref)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncHasOnCreated ¶
FuncHasOnCreated returns the function "WEBEXT.tabGroups.onCreated.hasListener".
func FuncHasOnMoved ¶
FuncHasOnMoved returns the function "WEBEXT.tabGroups.onMoved.hasListener".
func FuncHasOnRemoved ¶
FuncHasOnRemoved returns the function "WEBEXT.tabGroups.onRemoved.hasListener".
func FuncHasOnUpdated ¶
FuncHasOnUpdated returns the function "WEBEXT.tabGroups.onUpdated.hasListener".
func FuncMove ¶
func FuncMove() (fn js.Func[func(groupId int64, moveProperties MoveArgMoveProperties) js.Promise[TabGroup]])
FuncMove returns the function "WEBEXT.tabGroups.move".
func FuncOffCreated ¶
FuncOffCreated returns the function "WEBEXT.tabGroups.onCreated.removeListener".
func FuncOffMoved ¶
FuncOffMoved returns the function "WEBEXT.tabGroups.onMoved.removeListener".
func FuncOffRemoved ¶
FuncOffRemoved returns the function "WEBEXT.tabGroups.onRemoved.removeListener".
func FuncOffUpdated ¶
FuncOffUpdated returns the function "WEBEXT.tabGroups.onUpdated.removeListener".
func FuncOnCreated ¶
FuncOnCreated returns the function "WEBEXT.tabGroups.onCreated.addListener".
func FuncOnMoved ¶
FuncOnMoved returns the function "WEBEXT.tabGroups.onMoved.addListener".
func FuncOnRemoved ¶
FuncOnRemoved returns the function "WEBEXT.tabGroups.onRemoved.addListener".
func FuncOnUpdated ¶
FuncOnUpdated returns the function "WEBEXT.tabGroups.onUpdated.addListener".
func FuncUpdate ¶
func FuncUpdate() (fn js.Func[func(groupId int64, updateProperties UpdateArgUpdateProperties) js.Promise[TabGroup]])
FuncUpdate returns the function "WEBEXT.tabGroups.update".
func HasFuncGet ¶
func HasFuncGet() bool
HasFuncGet returns true if the function "WEBEXT.tabGroups.get" exists.
func HasFuncHasOnCreated ¶
func HasFuncHasOnCreated() bool
HasFuncHasOnCreated returns true if the function "WEBEXT.tabGroups.onCreated.hasListener" exists.
func HasFuncHasOnMoved ¶
func HasFuncHasOnMoved() bool
HasFuncHasOnMoved returns true if the function "WEBEXT.tabGroups.onMoved.hasListener" exists.
func HasFuncHasOnRemoved ¶
func HasFuncHasOnRemoved() bool
HasFuncHasOnRemoved returns true if the function "WEBEXT.tabGroups.onRemoved.hasListener" exists.
func HasFuncHasOnUpdated ¶
func HasFuncHasOnUpdated() bool
HasFuncHasOnUpdated returns true if the function "WEBEXT.tabGroups.onUpdated.hasListener" exists.
func HasFuncMove ¶
func HasFuncMove() bool
HasFuncMove returns true if the function "WEBEXT.tabGroups.move" exists.
func HasFuncOffCreated ¶
func HasFuncOffCreated() bool
HasFuncOffCreated returns true if the function "WEBEXT.tabGroups.onCreated.removeListener" exists.
func HasFuncOffMoved ¶
func HasFuncOffMoved() bool
HasFuncOffMoved returns true if the function "WEBEXT.tabGroups.onMoved.removeListener" exists.
func HasFuncOffRemoved ¶
func HasFuncOffRemoved() bool
HasFuncOffRemoved returns true if the function "WEBEXT.tabGroups.onRemoved.removeListener" exists.
func HasFuncOffUpdated ¶
func HasFuncOffUpdated() bool
HasFuncOffUpdated returns true if the function "WEBEXT.tabGroups.onUpdated.removeListener" exists.
func HasFuncOnCreated ¶
func HasFuncOnCreated() bool
HasFuncOnCreated returns true if the function "WEBEXT.tabGroups.onCreated.addListener" exists.
func HasFuncOnMoved ¶
func HasFuncOnMoved() bool
HasFuncOnMoved returns true if the function "WEBEXT.tabGroups.onMoved.addListener" exists.
func HasFuncOnRemoved ¶
func HasFuncOnRemoved() bool
HasFuncOnRemoved returns true if the function "WEBEXT.tabGroups.onRemoved.addListener" exists.
func HasFuncOnUpdated ¶
func HasFuncOnUpdated() bool
HasFuncOnUpdated returns true if the function "WEBEXT.tabGroups.onUpdated.addListener" exists.
func HasFuncQuery ¶
func HasFuncQuery() bool
HasFuncQuery returns true if the function "WEBEXT.tabGroups.query" exists.
func HasFuncUpdate ¶
func HasFuncUpdate() bool
HasFuncUpdate returns true if the function "WEBEXT.tabGroups.update" exists.
func HasOnCreated ¶
HasOnCreated calls the function "WEBEXT.tabGroups.onCreated.hasListener" directly.
func HasOnMoved ¶
HasOnMoved calls the function "WEBEXT.tabGroups.onMoved.hasListener" directly.
func HasOnRemoved ¶
HasOnRemoved calls the function "WEBEXT.tabGroups.onRemoved.hasListener" directly.
func HasOnUpdated ¶
HasOnUpdated calls the function "WEBEXT.tabGroups.onUpdated.hasListener" directly.
func Move ¶
func Move(groupId int64, moveProperties MoveArgMoveProperties) (ret js.Promise[TabGroup])
Move calls the function "WEBEXT.tabGroups.move" directly.
func OffCreated ¶
OffCreated calls the function "WEBEXT.tabGroups.onCreated.removeListener" directly.
func OffRemoved ¶
OffRemoved calls the function "WEBEXT.tabGroups.onRemoved.removeListener" directly.
func OffUpdated ¶
OffUpdated calls the function "WEBEXT.tabGroups.onUpdated.removeListener" directly.
func SetTAB_GROUP_ID_NONE ¶
SetTAB_GROUP_ID_NONE sets the value of property "WEBEXT.tabGroups.TAB_GROUP_ID_NONE" to val.
It returns false if the property cannot be set.
func TAB_GROUP_ID_NONE ¶
TAB_GROUP_ID_NONE returns the value of property "WEBEXT.tabGroups.TAB_GROUP_ID_NONE".
The returned bool will be false if there is no such property.
func TryGet ¶
TryGet calls the function "WEBEXT.tabGroups.get" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnCreated ¶
TryHasOnCreated calls the function "WEBEXT.tabGroups.onCreated.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnMoved ¶
TryHasOnMoved calls the function "WEBEXT.tabGroups.onMoved.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnRemoved ¶
TryHasOnRemoved calls the function "WEBEXT.tabGroups.onRemoved.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryHasOnUpdated ¶
TryHasOnUpdated calls the function "WEBEXT.tabGroups.onUpdated.hasListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryMove ¶
func TryMove(groupId int64, moveProperties MoveArgMoveProperties) (ret js.Promise[TabGroup], exception js.Any, ok bool)
TryMove calls the function "WEBEXT.tabGroups.move" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffCreated ¶
func TryOffCreated(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
TryOffCreated calls the function "WEBEXT.tabGroups.onCreated.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffMoved ¶
TryOffMoved calls the function "WEBEXT.tabGroups.onMoved.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffRemoved ¶
func TryOffRemoved(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
TryOffRemoved calls the function "WEBEXT.tabGroups.onRemoved.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOffUpdated ¶
func TryOffUpdated(callback js.Func[func(group *TabGroup)]) (ret js.Void, exception js.Any, ok bool)
TryOffUpdated calls the function "WEBEXT.tabGroups.onUpdated.removeListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnCreated ¶
TryOnCreated calls the function "WEBEXT.tabGroups.onCreated.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnMoved ¶
TryOnMoved calls the function "WEBEXT.tabGroups.onMoved.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnRemoved ¶
TryOnRemoved calls the function "WEBEXT.tabGroups.onRemoved.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryOnUpdated ¶
TryOnUpdated calls the function "WEBEXT.tabGroups.onUpdated.addListener" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
func TryQuery ¶
func TryQuery(queryInfo QueryArgQueryInfo) (ret js.Promise[js.Array[TabGroup]], exception js.Any, ok bool)
TryQuery calls the function "WEBEXT.tabGroups.query" in a try/catch block and returns (_, err, ok = false) when it went through the catch clause.
Types ¶
type Color ¶
type Color uint32
const ( Color_GREY Color Color_BLUE Color_RED Color_YELLOW Color_GREEN Color_PINK Color_PURPLE Color_CYAN Color_ORANGE )
type MoveArgMoveProperties ¶
type MoveArgMoveProperties struct {
// Index is "MoveArgMoveProperties.index"
//
// Required
Index int64
// WindowId is "MoveArgMoveProperties.windowId"
//
// Optional
//
// NOTE: FFI_USE_WindowId MUST be set to true to make this field effective.
WindowId int64
FFI_USE_WindowId bool // for WindowId.
FFI_USE bool
}
func (*MoveArgMoveProperties) FreeMembers ¶
func (p *MoveArgMoveProperties) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (MoveArgMoveProperties) FromRef ¶
func (p MoveArgMoveProperties) FromRef(ref js.Ref) MoveArgMoveProperties
FromRef calls UpdateFrom and returns a MoveArgMoveProperties with all fields set.
func (MoveArgMoveProperties) New ¶
func (p MoveArgMoveProperties) New() js.Ref
New creates a new MoveArgMoveProperties in the application heap.
func (*MoveArgMoveProperties) Update ¶
func (p *MoveArgMoveProperties) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*MoveArgMoveProperties) UpdateFrom ¶
func (p *MoveArgMoveProperties) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type OnCreatedEventCallback ¶
type OnCreatedEventCallback[T any] struct { Fn func(arg T, this js.Ref, group *TabGroup) js.Ref Arg T }
func (*OnCreatedEventCallback[T]) DispatchCallback ¶
func (cb *OnCreatedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnCreatedEventCallbackFunc ¶
func (OnCreatedEventCallbackFunc) DispatchCallback ¶
func (fn OnCreatedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnMovedEventCallback ¶
type OnMovedEventCallback[T any] struct { Fn func(arg T, this js.Ref, group *TabGroup) js.Ref Arg T }
func (*OnMovedEventCallback[T]) DispatchCallback ¶
func (cb *OnMovedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnMovedEventCallbackFunc ¶
func (OnMovedEventCallbackFunc) DispatchCallback ¶
func (fn OnMovedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnRemovedEventCallback ¶
type OnRemovedEventCallback[T any] struct { Fn func(arg T, this js.Ref, group *TabGroup) js.Ref Arg T }
func (*OnRemovedEventCallback[T]) DispatchCallback ¶
func (cb *OnRemovedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnRemovedEventCallbackFunc ¶
func (OnRemovedEventCallbackFunc) DispatchCallback ¶
func (fn OnRemovedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnUpdatedEventCallback ¶
type OnUpdatedEventCallback[T any] struct { Fn func(arg T, this js.Ref, group *TabGroup) js.Ref Arg T }
func (*OnUpdatedEventCallback[T]) DispatchCallback ¶
func (cb *OnUpdatedEventCallback[T]) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type OnUpdatedEventCallbackFunc ¶
func (OnUpdatedEventCallbackFunc) DispatchCallback ¶
func (fn OnUpdatedEventCallbackFunc) DispatchCallback( targetPC uintptr, ctx *js.CallbackContext, )
type QueryArgQueryInfo ¶
type QueryArgQueryInfo struct {
// Collapsed is "QueryArgQueryInfo.collapsed"
//
// Optional
//
// NOTE: FFI_USE_Collapsed MUST be set to true to make this field effective.
Collapsed bool
// Color is "QueryArgQueryInfo.color"
//
// Optional
Color Color
// Title is "QueryArgQueryInfo.title"
//
// Optional
Title js.String
// WindowId is "QueryArgQueryInfo.windowId"
//
// Optional
//
// NOTE: FFI_USE_WindowId MUST be set to true to make this field effective.
WindowId int64
FFI_USE_Collapsed bool // for Collapsed.
FFI_USE_WindowId bool // for WindowId.
FFI_USE bool
}
func (*QueryArgQueryInfo) FreeMembers ¶
func (p *QueryArgQueryInfo) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (QueryArgQueryInfo) FromRef ¶
func (p QueryArgQueryInfo) FromRef(ref js.Ref) QueryArgQueryInfo
FromRef calls UpdateFrom and returns a QueryArgQueryInfo with all fields set.
func (QueryArgQueryInfo) New ¶
func (p QueryArgQueryInfo) New() js.Ref
New creates a new QueryArgQueryInfo in the application heap.
func (*QueryArgQueryInfo) Update ¶
func (p *QueryArgQueryInfo) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*QueryArgQueryInfo) UpdateFrom ¶
func (p *QueryArgQueryInfo) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type TabGroup ¶
type TabGroup struct {
// Collapsed is "TabGroup.collapsed"
//
// Required
Collapsed bool
// Color is "TabGroup.color"
//
// Required
Color Color
// Id is "TabGroup.id"
//
// Required
Id int64
// Title is "TabGroup.title"
//
// Optional
Title js.String
// WindowId is "TabGroup.windowId"
//
// Required
WindowId int64
FFI_USE bool
}
func (*TabGroup) FreeMembers ¶
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (*TabGroup) UpdateFrom ¶
UpdateFrom copies value of all fields of the heap object to p.
type UpdateArgUpdateProperties ¶
type UpdateArgUpdateProperties struct {
// Collapsed is "UpdateArgUpdateProperties.collapsed"
//
// Optional
//
// NOTE: FFI_USE_Collapsed MUST be set to true to make this field effective.
Collapsed bool
// Color is "UpdateArgUpdateProperties.color"
//
// Optional
Color Color
// Title is "UpdateArgUpdateProperties.title"
//
// Optional
Title js.String
FFI_USE_Collapsed bool // for Collapsed.
FFI_USE bool
}
func (*UpdateArgUpdateProperties) FreeMembers ¶
func (p *UpdateArgUpdateProperties) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (UpdateArgUpdateProperties) FromRef ¶
func (p UpdateArgUpdateProperties) FromRef(ref js.Ref) UpdateArgUpdateProperties
FromRef calls UpdateFrom and returns a UpdateArgUpdateProperties with all fields set.
func (UpdateArgUpdateProperties) New ¶
func (p UpdateArgUpdateProperties) New() js.Ref
New creates a new UpdateArgUpdateProperties in the application heap.
func (*UpdateArgUpdateProperties) Update ¶
func (p *UpdateArgUpdateProperties) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*UpdateArgUpdateProperties) UpdateFrom ¶
func (p *UpdateArgUpdateProperties) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.