htmlmisc

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 30 Imported by: 1

Documentation

Overview

Pacakge htmlmisc is the unsorted collection of types.

Source: HTML Standard (https://html.spec.whatwg.org/)

Index

Constants

View Source
const (
	UNCACHED    int = 0
	IDLE        int = 1
	CHECKING    int = 2
	DOWNLOADING int = 3
	UPDATEREADY int = 4
	OBSOLETE    int = 5
)
View Source
const (
	CONNECTING int = 0
	OPEN       int = 1
	CLOSED     int = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationCache

type ApplicationCache struct {
	domcore.EventTarget
}

class: ApplicationCache

func ApplicationCacheFromJS

func ApplicationCacheFromJS(value js.Value) *ApplicationCache

ApplicationCacheFromJS is casting a js.Value into ApplicationCache.

func ApplicationCacheFromWrapper

func ApplicationCacheFromWrapper(input core.Wrapper) *ApplicationCache

ApplicationCacheFromJS is casting from something that holds a js.Value into ApplicationCache.

func (*ApplicationCache) Abort

func (_this *ApplicationCache) Abort()

func (*ApplicationCache) AddEventCached

func (_this *ApplicationCache) AddEventCached(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

AddCached is adding doing AddEventListener for 'Cached' on target. This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) AddEventChecking

func (_this *ApplicationCache) AddEventChecking(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

AddChecking is adding doing AddEventListener for 'Checking' on target. This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) AddEventDownloading

func (_this *ApplicationCache) AddEventDownloading(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

AddDownloading is adding doing AddEventListener for 'Downloading' on target. This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) AddEventError

func (_this *ApplicationCache) AddEventError(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) AddEventNoupdate

func (_this *ApplicationCache) AddEventNoupdate(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

AddNoupdate is adding doing AddEventListener for 'Noupdate' on target. This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) AddEventObsolete

func (_this *ApplicationCache) AddEventObsolete(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

AddObsolete is adding doing AddEventListener for 'Obsolete' on target. This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) AddEventProgress

func (_this *ApplicationCache) AddEventProgress(listener func(event *xhr.ProgressEvent, currentTarget *ApplicationCache)) js.Func

AddProgress is adding doing AddEventListener for 'Progress' on target. This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) AddEventUpdateready

func (_this *ApplicationCache) AddEventUpdateready(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

AddUpdateready is adding doing AddEventListener for 'Updateready' on target. This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) OnCached

func (_this *ApplicationCache) OnCached() domcore.EventHandlerFunc

OnCached returning attribute 'oncached' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ApplicationCache) OnChecking

func (_this *ApplicationCache) OnChecking() domcore.EventHandlerFunc

OnChecking returning attribute 'onchecking' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ApplicationCache) OnDownloading

func (_this *ApplicationCache) OnDownloading() domcore.EventHandlerFunc

OnDownloading returning attribute 'ondownloading' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ApplicationCache) OnError

func (_this *ApplicationCache) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ApplicationCache) OnNoupdate

func (_this *ApplicationCache) OnNoupdate() domcore.EventHandlerFunc

OnNoupdate returning attribute 'onnoupdate' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ApplicationCache) OnObsolete

func (_this *ApplicationCache) OnObsolete() domcore.EventHandlerFunc

OnObsolete returning attribute 'onobsolete' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ApplicationCache) OnProgress

func (_this *ApplicationCache) OnProgress() domcore.EventHandlerFunc

OnProgress returning attribute 'onprogress' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ApplicationCache) OnUpdateready

func (_this *ApplicationCache) OnUpdateready() domcore.EventHandlerFunc

OnUpdateready returning attribute 'onupdateready' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*ApplicationCache) SetOnCached

func (_this *ApplicationCache) SetOnCached(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

SetOnCached is assigning a function to 'oncached'. This This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) SetOnChecking

func (_this *ApplicationCache) SetOnChecking(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

SetOnChecking is assigning a function to 'onchecking'. This This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) SetOnDownloading

func (_this *ApplicationCache) SetOnDownloading(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

SetOnDownloading is assigning a function to 'ondownloading'. This This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) SetOnError

func (_this *ApplicationCache) SetOnError(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) SetOnNoupdate

func (_this *ApplicationCache) SetOnNoupdate(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

SetOnNoupdate is assigning a function to 'onnoupdate'. This This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) SetOnObsolete

func (_this *ApplicationCache) SetOnObsolete(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

SetOnObsolete is assigning a function to 'onobsolete'. This This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) SetOnProgress

func (_this *ApplicationCache) SetOnProgress(listener func(event *xhr.ProgressEvent, currentTarget *ApplicationCache)) js.Func

SetOnProgress is assigning a function to 'onprogress'. This This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) SetOnUpdateready

func (_this *ApplicationCache) SetOnUpdateready(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func

SetOnUpdateready is assigning a function to 'onupdateready'. This This method is returning allocated javascript function that need to be released.

func (*ApplicationCache) Status

func (_this *ApplicationCache) Status() int

Status returning attribute 'status' with type int (idl: unsigned short).

func (*ApplicationCache) SwapCache

func (_this *ApplicationCache) SwapCache()

func (*ApplicationCache) Update

func (_this *ApplicationCache) Update()

type BarProp

type BarProp struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: BarProp

func BarPropFromJS

func BarPropFromJS(value js.Value) *BarProp

BarPropFromJS is casting a js.Value into BarProp.

func BarPropFromWrapper

func BarPropFromWrapper(input core.Wrapper) *BarProp

BarPropFromJS is casting from something that holds a js.Value into BarProp.

func (*BarProp) JSValue

func (_this *BarProp) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*BarProp) Visible

func (_this *BarProp) Visible() bool

Visible returning attribute 'visible' with type bool (idl: boolean).

type CustomElementConstructor

type CustomElementConstructor js.Func

CustomElementConstructor is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func CustomElementConstructorToJS

func CustomElementConstructorToJS(callback CustomElementConstructorFunc) *CustomElementConstructor

type CustomElementConstructorFunc

type CustomElementConstructorFunc func() interface{}

callback: CustomElementConstructor

func CustomElementConstructorFromJS

func CustomElementConstructorFromJS(_value js.Value) CustomElementConstructorFunc

type CustomElementRegistry

type CustomElementRegistry struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: CustomElementRegistry

func CustomElementRegistryFromJS

func CustomElementRegistryFromJS(value js.Value) *CustomElementRegistry

CustomElementRegistryFromJS is casting a js.Value into CustomElementRegistry.

func CustomElementRegistryFromWrapper

func CustomElementRegistryFromWrapper(input core.Wrapper) *CustomElementRegistry

CustomElementRegistryFromJS is casting from something that holds a js.Value into CustomElementRegistry.

func (*CustomElementRegistry) Define

func (_this *CustomElementRegistry) Define(name string, constructor *CustomElementConstructor, options *ElementDefinitionOptions)

func (*CustomElementRegistry) Get

func (_this *CustomElementRegistry) Get(name string) (_result js.Value)

func (*CustomElementRegistry) JSValue

func (_this *CustomElementRegistry) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*CustomElementRegistry) Upgrade

func (_this *CustomElementRegistry) Upgrade(root *dom.Node)

func (*CustomElementRegistry) WhenDefined

func (_this *CustomElementRegistry) WhenDefined(name string) (_result *javascript.PromiseVoid)

type ElementDefinitionOptions

type ElementDefinitionOptions struct {
	Extends string
}

dictionary: ElementDefinitionOptions

func ElementDefinitionOptionsFromJS

func ElementDefinitionOptionsFromJS(value js.Value) *ElementDefinitionOptions

ElementDefinitionOptionsFromJS is allocating a new ElementDefinitionOptions object and copy all values in the value javascript object.

func (*ElementDefinitionOptions) JSValue

func (_this *ElementDefinitionOptions) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type EventSource

type EventSource struct {
	domcore.EventTarget
}

class: EventSource

func EventSourceFromJS

func EventSourceFromJS(value js.Value) *EventSource

EventSourceFromJS is casting a js.Value into EventSource.

func EventSourceFromWrapper

func EventSourceFromWrapper(input core.Wrapper) *EventSource

EventSourceFromJS is casting from something that holds a js.Value into EventSource.

func NewEventSource

func NewEventSource(url string, eventSourceInitDict *EventSourceInit) (_result *EventSource)

func (*EventSource) AddEventError

func (_this *EventSource) AddEventError(listener func(event *htmlevent.ErrorEvent, currentTarget *EventSource)) js.Func

AddError is adding doing AddEventListener for 'Error' on target. This method is returning allocated javascript function that need to be released.

func (*EventSource) AddEventMessage

func (_this *EventSource) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *EventSource)) js.Func

AddMessage is adding doing AddEventListener for 'Message' on target. This method is returning allocated javascript function that need to be released.

func (*EventSource) AddEventOpen

func (_this *EventSource) AddEventOpen(listener func(event *domcore.Event, currentTarget *EventSource)) js.Func

AddOpen is adding doing AddEventListener for 'Open' on target. This method is returning allocated javascript function that need to be released.

func (*EventSource) Close

func (_this *EventSource) Close()

func (*EventSource) OnError

func (_this *EventSource) OnError() domcore.EventHandlerFunc

OnError returning attribute 'onerror' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*EventSource) OnMessage

func (_this *EventSource) OnMessage() domcore.EventHandlerFunc

OnMessage returning attribute 'onmessage' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*EventSource) OnOpen

func (_this *EventSource) OnOpen() domcore.EventHandlerFunc

OnOpen returning attribute 'onopen' with type domcore.EventHandler (idl: EventHandlerNonNull).

func (*EventSource) ReadyState

func (_this *EventSource) ReadyState() int

ReadyState returning attribute 'readyState' with type int (idl: unsigned short).

func (*EventSource) SetOnError

func (_this *EventSource) SetOnError(listener func(event *htmlevent.ErrorEvent, currentTarget *EventSource)) js.Func

SetOnError is assigning a function to 'onerror'. This This method is returning allocated javascript function that need to be released.

func (*EventSource) SetOnMessage

func (_this *EventSource) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *EventSource)) js.Func

SetOnMessage is assigning a function to 'onmessage'. This This method is returning allocated javascript function that need to be released.

func (*EventSource) SetOnOpen

func (_this *EventSource) SetOnOpen(listener func(event *domcore.Event, currentTarget *EventSource)) js.Func

SetOnOpen is assigning a function to 'onopen'. This This method is returning allocated javascript function that need to be released.

func (*EventSource) Url

func (_this *EventSource) Url() string

Url returning attribute 'url' with type string (idl: USVString).

func (*EventSource) WithCredentials

func (_this *EventSource) WithCredentials() bool

WithCredentials returning attribute 'withCredentials' with type bool (idl: boolean).

type EventSourceInit

type EventSourceInit struct {
	WithCredentials bool
}

dictionary: EventSourceInit

func EventSourceInitFromJS

func EventSourceInitFromJS(value js.Value) *EventSourceInit

EventSourceInitFromJS is allocating a new EventSourceInit object and copy all values in the value javascript object.

func (*EventSourceInit) JSValue

func (_this *EventSourceInit) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type External

type External struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: External

func ExternalFromJS

func ExternalFromJS(value js.Value) *External

ExternalFromJS is casting a js.Value into External.

func ExternalFromWrapper

func ExternalFromWrapper(input core.Wrapper) *External

ExternalFromJS is casting from something that holds a js.Value into External.

func (*External) AddSearchProvider

func (_this *External) AddSearchProvider()

func (*External) IsSearchProviderInstalled

func (_this *External) IsSearchProviderInstalled()

func (*External) JSValue

func (_this *External) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

type History

type History struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: History

func HistoryFromJS

func HistoryFromJS(value js.Value) *History

HistoryFromJS is casting a js.Value into History.

func HistoryFromWrapper

func HistoryFromWrapper(input core.Wrapper) *History

HistoryFromJS is casting from something that holds a js.Value into History.

func (*History) Back

func (_this *History) Back()

func (*History) Forward

func (_this *History) Forward()

func (*History) Go

func (_this *History) Go(delta *int)

func (*History) JSValue

func (_this *History) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*History) Length

func (_this *History) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*History) PushState

func (_this *History) PushState(data interface{}, title string, url *string)

func (*History) ReplaceState

func (_this *History) ReplaceState(data interface{}, title string, url *string)

func (*History) ScrollRestoration

func (_this *History) ScrollRestoration() ScrollRestoration

ScrollRestoration returning attribute 'scrollRestoration' with type ScrollRestoration (idl: ScrollRestoration).

func (*History) SetScrollRestoration

func (_this *History) SetScrollRestoration(value ScrollRestoration)

SetScrollRestoration setting attribute 'scrollRestoration' with type ScrollRestoration (idl: ScrollRestoration).

func (*History) State

func (_this *History) State() js.Value

State returning attribute 'state' with type Any (idl: any).

type ImageBitmapRenderingContextSettings

type ImageBitmapRenderingContextSettings struct {
	Alpha bool
}

dictionary: ImageBitmapRenderingContextSettings

func ImageBitmapRenderingContextSettingsFromJS

func ImageBitmapRenderingContextSettingsFromJS(value js.Value) *ImageBitmapRenderingContextSettings

ImageBitmapRenderingContextSettingsFromJS is allocating a new ImageBitmapRenderingContextSettings object and copy all values in the value javascript object.

func (*ImageBitmapRenderingContextSettings) JSValue

func (_this *ImageBitmapRenderingContextSettings) JSValue() js.Value

JSValue is allocating a new javascript object and copy all values

type Location

type Location struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Location

func LocationFromJS

func LocationFromJS(value js.Value) *Location

LocationFromJS is casting a js.Value into Location.

func LocationFromWrapper

func LocationFromWrapper(input core.Wrapper) *Location

LocationFromJS is casting from something that holds a js.Value into Location.

func (*Location) AncestorOrigins

func (_this *Location) AncestorOrigins() *domcore.DOMStringList

AncestorOrigins returning attribute 'ancestorOrigins' with type domcore.DOMStringList (idl: DOMStringList).

func (*Location) Assign

func (_this *Location) Assign(url string)

func (*Location) Hash

func (_this *Location) Hash() string

Hash returning attribute 'hash' with type string (idl: USVString).

func (*Location) Host

func (_this *Location) Host() string

Host returning attribute 'host' with type string (idl: USVString).

func (*Location) Hostname

func (_this *Location) Hostname() string

Hostname returning attribute 'hostname' with type string (idl: USVString).

func (*Location) Href

func (_this *Location) Href() string

Href returning attribute 'href' with type string (idl: USVString).

func (*Location) JSValue

func (_this *Location) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Location) Origin

func (_this *Location) Origin() string

Origin returning attribute 'origin' with type string (idl: USVString).

func (*Location) Pathname

func (_this *Location) Pathname() string

Pathname returning attribute 'pathname' with type string (idl: USVString).

func (*Location) Port

func (_this *Location) Port() string

Port returning attribute 'port' with type string (idl: USVString).

func (*Location) Protocol

func (_this *Location) Protocol() string

Protocol returning attribute 'protocol' with type string (idl: USVString).

func (*Location) Reload

func (_this *Location) Reload()

func (*Location) Replace

func (_this *Location) Replace(url string)

func (*Location) Search

func (_this *Location) Search() string

Search returning attribute 'search' with type string (idl: USVString).

func (*Location) SetHash

func (_this *Location) SetHash(value string)

SetHash setting attribute 'hash' with type string (idl: USVString).

func (*Location) SetHost

func (_this *Location) SetHost(value string)

SetHost setting attribute 'host' with type string (idl: USVString).

func (*Location) SetHostname

func (_this *Location) SetHostname(value string)

SetHostname setting attribute 'hostname' with type string (idl: USVString).

func (*Location) SetHref

func (_this *Location) SetHref(value string)

SetHref setting attribute 'href' with type string (idl: USVString).

func (*Location) SetPathname

func (_this *Location) SetPathname(value string)

SetPathname setting attribute 'pathname' with type string (idl: USVString).

func (*Location) SetPort

func (_this *Location) SetPort(value string)

SetPort setting attribute 'port' with type string (idl: USVString).

func (*Location) SetProtocol

func (_this *Location) SetProtocol(value string)

SetProtocol setting attribute 'protocol' with type string (idl: USVString).

func (*Location) SetSearch

func (_this *Location) SetSearch(value string)

SetSearch setting attribute 'search' with type string (idl: USVString).

func (*Location) ToString

func (_this *Location) ToString() string

ToString is an alias for Href.

type MimeType

type MimeType struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: MimeType

func MimeTypeFromJS

func MimeTypeFromJS(value js.Value) *MimeType

MimeTypeFromJS is casting a js.Value into MimeType.

func MimeTypeFromWrapper

func MimeTypeFromWrapper(input core.Wrapper) *MimeType

MimeTypeFromJS is casting from something that holds a js.Value into MimeType.

func (*MimeType) Description

func (_this *MimeType) Description() string

Description returning attribute 'description' with type string (idl: DOMString).

func (*MimeType) EnabledPlugin

func (_this *MimeType) EnabledPlugin() *Plugin

EnabledPlugin returning attribute 'enabledPlugin' with type Plugin (idl: Plugin).

func (*MimeType) JSValue

func (_this *MimeType) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*MimeType) Suffixes

func (_this *MimeType) Suffixes() string

Suffixes returning attribute 'suffixes' with type string (idl: DOMString).

func (*MimeType) Type

func (_this *MimeType) Type() string

Type returning attribute 'type' with type string (idl: DOMString).

type MimeTypeArray

type MimeTypeArray struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: MimeTypeArray

func MimeTypeArrayFromJS

func MimeTypeArrayFromJS(value js.Value) *MimeTypeArray

MimeTypeArrayFromJS is casting a js.Value into MimeTypeArray.

func MimeTypeArrayFromWrapper

func MimeTypeArrayFromWrapper(input core.Wrapper) *MimeTypeArray

MimeTypeArrayFromJS is casting from something that holds a js.Value into MimeTypeArray.

func (*MimeTypeArray) Get

func (_this *MimeTypeArray) Get(name string) (_result *MimeType)

func (*MimeTypeArray) Index

func (_this *MimeTypeArray) Index(index uint) (_result *MimeType)

func (*MimeTypeArray) Item

func (_this *MimeTypeArray) Item(index uint) (_result *MimeType)

func (*MimeTypeArray) JSValue

func (_this *MimeTypeArray) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*MimeTypeArray) Length

func (_this *MimeTypeArray) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*MimeTypeArray) NamedItem

func (_this *MimeTypeArray) NamedItem(name string) (_result *MimeType)
type Navigator struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Navigator

func NavigatorFromJS(value js.Value) *Navigator

NavigatorFromJS is casting a js.Value into Navigator.

func NavigatorFromWrapper(input core.Wrapper) *Navigator

NavigatorFromJS is casting from something that holds a js.Value into Navigator.

func (_this *Navigator) ActiveVRDisplays() *javascript.FrozenArray

ActiveVRDisplays returning attribute 'activeVRDisplays' with type javascript.FrozenArray (idl: FrozenArray).

func (_this *Navigator) AppCodeName() string

AppCodeName returning attribute 'appCodeName' with type string (idl: DOMString).

func (_this *Navigator) AppName() string

AppName returning attribute 'appName' with type string (idl: DOMString).

func (_this *Navigator) AppVersion() string

AppVersion returning attribute 'appVersion' with type string (idl: DOMString).

func (_this *Navigator) Bluetooth() *bluetooth.Bluetooth

Bluetooth returning attribute 'bluetooth' with type bluetooth.Bluetooth (idl: Bluetooth).

func (_this *Navigator) Clipboard() *clipboard.Clipboard

Clipboard returning attribute 'clipboard' with type clipboard.Clipboard (idl: Clipboard).

func (_this *Navigator) Connection() *netinfo.NetworkInformation

Connection returning attribute 'connection' with type netinfo.NetworkInformation (idl: NetworkInformation).

func (_this *Navigator) CookieEnabled() bool

CookieEnabled returning attribute 'cookieEnabled' with type bool (idl: boolean).

func (_this *Navigator) Credentials() *credential.CredentialsContainer

Credentials returning attribute 'credentials' with type credential.CredentialsContainer (idl: CredentialsContainer).

func (_this *Navigator) Geolocation() *sensor.Geolocation

Geolocation returning attribute 'geolocation' with type sensor.Geolocation (idl: Geolocation).

func (_this *Navigator) GetBattery() (_result *battery.PromiseBatteryManager)
func (_this *Navigator) GetGamepads() (_result []*gamepad.Gamepad)
func (_this *Navigator) GetUserMedia(constraints *local.MediaStreamConstraints, successCallback *local.NavigatorUserMediaSuccessCallback, errorCallback *local.NavigatorUserMediaErrorCallback)
func (_this *Navigator) GetVRDisplays() (_result *webvr.PromiseSequenceDisplay)
func (_this *Navigator) GetWakeLock(_type wakelock.WakeLockType) (_result *wakelock.PromiseWakeLock)
func (_this *Navigator) HardwareConcurrency() int

HardwareConcurrency returning attribute 'hardwareConcurrency' with type int (idl: unsigned long long).

func (_this *Navigator) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (_this *Navigator) JavaEnabled() (_result bool)
func (_this *Navigator) Keyboard() *keyboard.Keyboard

Keyboard returning attribute 'keyboard' with type keyboard.Keyboard (idl: Keyboard).

func (_this *Navigator) Language() string

Language returning attribute 'language' with type string (idl: DOMString).

func (_this *Navigator) Languages() *javascript.FrozenArray

Languages returning attribute 'languages' with type javascript.FrozenArray (idl: FrozenArray).

func (_this *Navigator) MaxTouchPoints() int

MaxTouchPoints returning attribute 'maxTouchPoints' with type int (idl: long).

func (_this *Navigator) MediaCapabilities() *capabilities.MediaCapabilities

MediaCapabilities returning attribute 'mediaCapabilities' with type capabilities.MediaCapabilities (idl: MediaCapabilities).

func (_this *Navigator) MediaDevices() *local.MediaDevices

MediaDevices returning attribute 'mediaDevices' with type local.MediaDevices (idl: MediaDevices).

func (_this *Navigator) MediaSession() *session.MediaSession

MediaSession returning attribute 'mediaSession' with type session.MediaSession (idl: MediaSession).

func (_this *Navigator) MimeTypes() *MimeTypeArray

MimeTypes returning attribute 'mimeTypes' with type MimeTypeArray (idl: MimeTypeArray).

func (_this *Navigator) OnLine() bool

OnLine returning attribute 'onLine' with type bool (idl: boolean).

func (_this *Navigator) Oscpu() string

Oscpu returning attribute 'oscpu' with type string (idl: DOMString).

func (_this *Navigator) Permissions() *permissions.Permissions

Permissions returning attribute 'permissions' with type permissions.Permissions (idl: Permissions).

func (_this *Navigator) Platform() string

Platform returning attribute 'platform' with type string (idl: DOMString).

func (_this *Navigator) Plugins() *PluginArray

Plugins returning attribute 'plugins' with type PluginArray (idl: PluginArray).

func (_this *Navigator) Presentation() *presentation.Presentation

Presentation returning attribute 'presentation' with type presentation.Presentation (idl: Presentation).

func (_this *Navigator) Product() string

Product returning attribute 'product' with type string (idl: DOMString).

func (_this *Navigator) ProductSub() string

ProductSub returning attribute 'productSub' with type string (idl: DOMString).

func (_this *Navigator) RegisterProtocolHandler(scheme string, url string, title string)
func (_this *Navigator) RequestMIDIAccess(options *midi.Options) (_result *midi.PromiseAccess)
func (_this *Navigator) RequestMediaKeySystemAccess(keySystem string, supportedConfigurations []*encrypted.MediaKeySystemConfiguration) (_result *encrypted.PromiseMediaKeySystemAccess)
func (_this *Navigator) SendBeacon(url string, data *Union) (_result bool)
func (_this *Navigator) ServiceWorker() *serviceworker.ServiceWorkerContainer

ServiceWorker returning attribute 'serviceWorker' with type serviceworker.ServiceWorkerContainer (idl: ServiceWorkerContainer).

func (_this *Navigator) Share(data *share.ShareData) (_result *javascript.PromiseVoid)
func (_this *Navigator) Storage() *storage.StorageManager

Storage returning attribute 'storage' with type storage.StorageManager (idl: StorageManager).

func (_this *Navigator) TaintEnabled() (_result bool)
func (_this *Navigator) UnregisterProtocolHandler(scheme string, url string)
func (_this *Navigator) Usb() *usb.USB

Usb returning attribute 'usb' with type usb.USB (idl: USB).

func (_this *Navigator) UserAgent() string

UserAgent returning attribute 'userAgent' with type string (idl: DOMString).

func (_this *Navigator) Vendor() string

Vendor returning attribute 'vendor' with type string (idl: DOMString).

func (_this *Navigator) VendorSub() string

VendorSub returning attribute 'vendorSub' with type string (idl: DOMString).

func (_this *Navigator) Vibrate(pattern *Union) (_result bool)
func (_this *Navigator) Webdriver() bool

Webdriver returning attribute 'webdriver' with type bool (idl: boolean).

func (_this *Navigator) Xr() *webxr.XR

Xr returning attribute 'xr' with type webxr.XR (idl: XR).

type Plugin

type Plugin struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: Plugin

func PluginFromJS

func PluginFromJS(value js.Value) *Plugin

PluginFromJS is casting a js.Value into Plugin.

func PluginFromWrapper

func PluginFromWrapper(input core.Wrapper) *Plugin

PluginFromJS is casting from something that holds a js.Value into Plugin.

func (*Plugin) Description

func (_this *Plugin) Description() string

Description returning attribute 'description' with type string (idl: DOMString).

func (*Plugin) Filename

func (_this *Plugin) Filename() string

Filename returning attribute 'filename' with type string (idl: DOMString).

func (*Plugin) Get

func (_this *Plugin) Get(name string) (_result *MimeType)

func (*Plugin) Index

func (_this *Plugin) Index(index uint) (_result *MimeType)

func (*Plugin) Item

func (_this *Plugin) Item(index uint) (_result *MimeType)

func (*Plugin) JSValue

func (_this *Plugin) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*Plugin) Length

func (_this *Plugin) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*Plugin) Name

func (_this *Plugin) Name() string

Name returning attribute 'name' with type string (idl: DOMString).

func (*Plugin) NamedItem

func (_this *Plugin) NamedItem(name string) (_result *MimeType)

type PluginArray

type PluginArray struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

class: PluginArray

func PluginArrayFromJS

func PluginArrayFromJS(value js.Value) *PluginArray

PluginArrayFromJS is casting a js.Value into PluginArray.

func PluginArrayFromWrapper

func PluginArrayFromWrapper(input core.Wrapper) *PluginArray

PluginArrayFromJS is casting from something that holds a js.Value into PluginArray.

func (*PluginArray) Get

func (_this *PluginArray) Get(name string) (_result *Plugin)

func (*PluginArray) Index

func (_this *PluginArray) Index(index uint) (_result *Plugin)

func (*PluginArray) Item

func (_this *PluginArray) Item(index uint) (_result *Plugin)

func (*PluginArray) JSValue

func (_this *PluginArray) JSValue() js.Value

JSValue returns the js.Value or js.Null() if _this is nil

func (*PluginArray) Length

func (_this *PluginArray) Length() uint

Length returning attribute 'length' with type uint (idl: unsigned long).

func (*PluginArray) NamedItem

func (_this *PluginArray) NamedItem(name string) (_result *Plugin)

func (*PluginArray) Refresh

func (_this *PluginArray) Refresh(reload *bool)

type RadioNodeList

type RadioNodeList struct {
	dom.NodeList
}

class: RadioNodeList

func RadioNodeListFromJS

func RadioNodeListFromJS(value js.Value) *RadioNodeList

RadioNodeListFromJS is casting a js.Value into RadioNodeList.

func RadioNodeListFromWrapper

func RadioNodeListFromWrapper(input core.Wrapper) *RadioNodeList

RadioNodeListFromJS is casting from something that holds a js.Value into RadioNodeList.

func (*RadioNodeList) SetValue

func (_this *RadioNodeList) SetValue(value string)

SetValue setting attribute 'value' with type string (idl: DOMString).

func (*RadioNodeList) Value

func (_this *RadioNodeList) Value() string

Value returning attribute 'value' with type string (idl: DOMString).

type ScrollRestoration

type ScrollRestoration int

enum: ScrollRestoration

const (
	AutoScrollRestoration ScrollRestoration = iota
	ManualScrollRestoration
)

func ScrollRestorationFromJS

func ScrollRestorationFromJS(value js.Value) ScrollRestoration

ScrollRestorationFromJS is converting a javascript value into a ScrollRestoration enum value.

func (*ScrollRestoration) JSValue

func (this *ScrollRestoration) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (ScrollRestoration) Value

func (this ScrollRestoration) Value() string

Value is converting this into javascript defined string value

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

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