Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentScript ¶
type ContentScript struct {
// Matches is "ContentScript.matches"
//
// Optional
Matches js.Array[js.String]
// ExcludeMatches is "ContentScript.exclude_matches"
//
// Optional
ExcludeMatches js.Array[js.String]
// Css is "ContentScript.css"
//
// Optional
Css js.Array[js.String]
// Js is "ContentScript.js"
//
// Optional
Js js.Array[js.String]
// AllFrames is "ContentScript.all_frames"
//
// Optional
//
// NOTE: FFI_USE_AllFrames MUST be set to true to make this field effective.
AllFrames bool
// MatchOriginAsFallback is "ContentScript.match_origin_as_fallback"
//
// Optional
//
// NOTE: FFI_USE_MatchOriginAsFallback MUST be set to true to make this field effective.
MatchOriginAsFallback bool
// MatchAboutBlank is "ContentScript.match_about_blank"
//
// Optional
//
// NOTE: FFI_USE_MatchAboutBlank MUST be set to true to make this field effective.
MatchAboutBlank bool
// IncludeGlobs is "ContentScript.include_globs"
//
// Optional
IncludeGlobs js.Array[js.String]
// ExcludeGlobs is "ContentScript.exclude_globs"
//
// Optional
ExcludeGlobs js.Array[js.String]
// RunAt is "ContentScript.run_at"
//
// Optional
RunAt RunAt
// World is "ContentScript.world"
//
// Optional
World extensiontypes.ExecutionWorld
FFI_USE_AllFrames bool // for AllFrames.
FFI_USE_MatchOriginAsFallback bool // for MatchOriginAsFallback.
FFI_USE_MatchAboutBlank bool // for MatchAboutBlank.
FFI_USE bool
}
func (*ContentScript) FreeMembers ¶
func (p *ContentScript) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ContentScript) FromRef ¶
func (p ContentScript) FromRef(ref js.Ref) ContentScript
FromRef calls UpdateFrom and returns a ContentScript with all fields set.
func (ContentScript) New ¶
func (p ContentScript) New() js.Ref
New creates a new ContentScript in the application heap.
func (*ContentScript) Update ¶
func (p *ContentScript) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ContentScript) UpdateFrom ¶
func (p *ContentScript) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.
type ManifestKeys ¶
type ManifestKeys struct {
// ContentScripts is "ManifestKeys.content_scripts"
//
// Optional
ContentScripts js.Array[ContentScript]
FFI_USE bool
}
func (*ManifestKeys) FreeMembers ¶
func (p *ManifestKeys) FreeMembers(recursive bool)
FreeMembers frees fields with heap reference, if recursive is true free all heap references reachable from p.
func (ManifestKeys) FromRef ¶
func (p ManifestKeys) FromRef(ref js.Ref) ManifestKeys
FromRef calls UpdateFrom and returns a ManifestKeys with all fields set.
func (ManifestKeys) New ¶
func (p ManifestKeys) New() js.Ref
New creates a new ManifestKeys in the application heap.
func (*ManifestKeys) Update ¶
func (p *ManifestKeys) Update(ref js.Ref)
Update writes all fields of the p to the heap object referenced by ref.
func (*ManifestKeys) UpdateFrom ¶
func (p *ManifestKeys) UpdateFrom(ref js.Ref)
UpdateFrom copies value of all fields of the heap object to p.