Documentation ¶
Overview ¶
Pacakge htmlmisc is the unsorted collection of types.
Source: HTML Standard (https://html.spec.whatwg.org/)
Index ¶
- Constants
- type ApplicationCache
- func (_this *ApplicationCache) Abort()
- func (_this *ApplicationCache) AddEventCached(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) AddEventChecking(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) AddEventDownloading(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) AddEventError(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) AddEventNoupdate(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) AddEventObsolete(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) AddEventProgress(listener func(event *xhr.ProgressEvent, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) AddEventUpdateready(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) OnCached() domcore.EventHandlerFunc
- func (_this *ApplicationCache) OnChecking() domcore.EventHandlerFunc
- func (_this *ApplicationCache) OnDownloading() domcore.EventHandlerFunc
- func (_this *ApplicationCache) OnError() domcore.EventHandlerFunc
- func (_this *ApplicationCache) OnNoupdate() domcore.EventHandlerFunc
- func (_this *ApplicationCache) OnObsolete() domcore.EventHandlerFunc
- func (_this *ApplicationCache) OnProgress() domcore.EventHandlerFunc
- func (_this *ApplicationCache) OnUpdateready() domcore.EventHandlerFunc
- func (_this *ApplicationCache) SetOnCached(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) SetOnChecking(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) SetOnDownloading(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) SetOnError(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) SetOnNoupdate(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) SetOnObsolete(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) SetOnProgress(listener func(event *xhr.ProgressEvent, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) SetOnUpdateready(listener func(event *domcore.Event, currentTarget *ApplicationCache)) js.Func
- func (_this *ApplicationCache) Status() int
- func (_this *ApplicationCache) SwapCache()
- func (_this *ApplicationCache) Update()
- type BarProp
- type CustomElementConstructor
- type CustomElementConstructorFunc
- type CustomElementRegistry
- func (_this *CustomElementRegistry) Define(name string, constructor *CustomElementConstructor, ...)
- func (_this *CustomElementRegistry) Get(name string) (_result js.Value)
- func (_this *CustomElementRegistry) JSValue() js.Value
- func (_this *CustomElementRegistry) Upgrade(root *dom.Node)
- func (_this *CustomElementRegistry) WhenDefined(name string) (_result *javascript.PromiseVoid)
- type ElementDefinitionOptions
- type EventSource
- func (_this *EventSource) AddEventError(listener func(event *htmlevent.ErrorEvent, currentTarget *EventSource)) js.Func
- func (_this *EventSource) AddEventMessage(listener func(event *channel.MessageEvent, currentTarget *EventSource)) js.Func
- func (_this *EventSource) AddEventOpen(listener func(event *domcore.Event, currentTarget *EventSource)) js.Func
- func (_this *EventSource) Close()
- func (_this *EventSource) OnError() domcore.EventHandlerFunc
- func (_this *EventSource) OnMessage() domcore.EventHandlerFunc
- func (_this *EventSource) OnOpen() domcore.EventHandlerFunc
- func (_this *EventSource) ReadyState() int
- func (_this *EventSource) SetOnError(listener func(event *htmlevent.ErrorEvent, currentTarget *EventSource)) js.Func
- func (_this *EventSource) SetOnMessage(listener func(event *channel.MessageEvent, currentTarget *EventSource)) js.Func
- func (_this *EventSource) SetOnOpen(listener func(event *domcore.Event, currentTarget *EventSource)) js.Func
- func (_this *EventSource) Url() string
- func (_this *EventSource) WithCredentials() bool
- type EventSourceInit
- type External
- type History
- func (_this *History) Back()
- func (_this *History) Forward()
- func (_this *History) Go(delta *int)
- func (_this *History) JSValue() js.Value
- func (_this *History) Length() uint
- func (_this *History) PushState(data interface{}, title string, url *string)
- func (_this *History) ReplaceState(data interface{}, title string, url *string)
- func (_this *History) ScrollRestoration() ScrollRestoration
- func (_this *History) SetScrollRestoration(value ScrollRestoration)
- func (_this *History) State() js.Value
- type ImageBitmapRenderingContextSettings
- type Location
- func (_this *Location) AncestorOrigins() *domcore.DOMStringList
- func (_this *Location) Assign(url string)
- func (_this *Location) Hash() string
- func (_this *Location) Host() string
- func (_this *Location) Hostname() string
- func (_this *Location) Href() string
- func (_this *Location) JSValue() js.Value
- func (_this *Location) Origin() string
- func (_this *Location) Pathname() string
- func (_this *Location) Port() string
- func (_this *Location) Protocol() string
- func (_this *Location) Reload()
- func (_this *Location) Replace(url string)
- func (_this *Location) Search() string
- func (_this *Location) SetHash(value string)
- func (_this *Location) SetHost(value string)
- func (_this *Location) SetHostname(value string)
- func (_this *Location) SetHref(value string)
- func (_this *Location) SetPathname(value string)
- func (_this *Location) SetPort(value string)
- func (_this *Location) SetProtocol(value string)
- func (_this *Location) SetSearch(value string)
- func (_this *Location) ToString() string
- type MimeType
- type MimeTypeArray
- func (_this *MimeTypeArray) Get(name string) (_result *MimeType)
- func (_this *MimeTypeArray) Index(index uint) (_result *MimeType)
- func (_this *MimeTypeArray) Item(index uint) (_result *MimeType)
- func (_this *MimeTypeArray) JSValue() js.Value
- func (_this *MimeTypeArray) Length() uint
- func (_this *MimeTypeArray) NamedItem(name string) (_result *MimeType)
- type Navigator
- func (_this *Navigator) ActiveVRDisplays() *javascript.FrozenArray
- func (_this *Navigator) AppCodeName() string
- func (_this *Navigator) AppName() string
- func (_this *Navigator) AppVersion() string
- func (_this *Navigator) Bluetooth() *bluetooth.Bluetooth
- func (_this *Navigator) Clipboard() *clipboard.Clipboard
- func (_this *Navigator) Connection() *netinfo.NetworkInformation
- func (_this *Navigator) CookieEnabled() bool
- func (_this *Navigator) Credentials() *credential.CredentialsContainer
- func (_this *Navigator) Geolocation() *sensor.Geolocation
- func (_this *Navigator) GetBattery() (_result *battery.PromiseBatteryManager)
- func (_this *Navigator) GetGamepads() (_result []*gamepad.Gamepad)
- func (_this *Navigator) GetUserMedia(constraints *local.MediaStreamConstraints, ...)
- func (_this *Navigator) GetVRDisplays() (_result *webvr.PromiseSequenceDisplay)
- func (_this *Navigator) GetWakeLock(_type wakelock.WakeLockType) (_result *wakelock.PromiseWakeLock)
- func (_this *Navigator) HardwareConcurrency() int
- func (_this *Navigator) JSValue() js.Value
- func (_this *Navigator) JavaEnabled() (_result bool)
- func (_this *Navigator) Keyboard() *keyboard.Keyboard
- func (_this *Navigator) Language() string
- func (_this *Navigator) Languages() *javascript.FrozenArray
- func (_this *Navigator) MaxTouchPoints() int
- func (_this *Navigator) MediaCapabilities() *capabilities.MediaCapabilities
- func (_this *Navigator) MediaDevices() *local.MediaDevices
- func (_this *Navigator) MediaSession() *session.MediaSession
- func (_this *Navigator) MimeTypes() *MimeTypeArray
- func (_this *Navigator) OnLine() bool
- func (_this *Navigator) Oscpu() string
- func (_this *Navigator) Permissions() *permissions.Permissions
- func (_this *Navigator) Platform() string
- func (_this *Navigator) Plugins() *PluginArray
- func (_this *Navigator) Presentation() *presentation.Presentation
- func (_this *Navigator) Product() string
- func (_this *Navigator) ProductSub() string
- 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, ...) (_result *encrypted.PromiseMediaKeySystemAccess)
- func (_this *Navigator) SendBeacon(url string, data *Union) (_result bool)
- func (_this *Navigator) ServiceWorker() *serviceworker.ServiceWorkerContainer
- func (_this *Navigator) Share(data *share.ShareData) (_result *javascript.PromiseVoid)
- func (_this *Navigator) Storage() *storage.StorageManager
- func (_this *Navigator) TaintEnabled() (_result bool)
- func (_this *Navigator) UnregisterProtocolHandler(scheme string, url string)
- func (_this *Navigator) Usb() *usb.USB
- func (_this *Navigator) UserAgent() string
- func (_this *Navigator) Vendor() string
- func (_this *Navigator) VendorSub() string
- func (_this *Navigator) Vibrate(pattern *Union) (_result bool)
- func (_this *Navigator) Webdriver() bool
- func (_this *Navigator) Xr() *webxr.XR
- type Plugin
- func (_this *Plugin) Description() string
- func (_this *Plugin) Filename() string
- func (_this *Plugin) Get(name string) (_result *MimeType)
- func (_this *Plugin) Index(index uint) (_result *MimeType)
- func (_this *Plugin) Item(index uint) (_result *MimeType)
- func (_this *Plugin) JSValue() js.Value
- func (_this *Plugin) Length() uint
- func (_this *Plugin) Name() string
- func (_this *Plugin) NamedItem(name string) (_result *MimeType)
- type PluginArray
- func (_this *PluginArray) Get(name string) (_result *Plugin)
- func (_this *PluginArray) Index(index uint) (_result *Plugin)
- func (_this *PluginArray) Item(index uint) (_result *Plugin)
- func (_this *PluginArray) JSValue() js.Value
- func (_this *PluginArray) Length() uint
- func (_this *PluginArray) NamedItem(name string) (_result *Plugin)
- func (_this *PluginArray) Refresh(reload *bool)
- type RadioNodeList
- type ScrollRestoration
- type Union
Constants ¶
const ( UNCACHED int = 0 IDLE int = 1 CHECKING int = 2 DOWNLOADING int = 3 UPDATEREADY int = 4 OBSOLETE int = 5 )
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 ¶
class: BarProp
func BarPropFromJS ¶
BarPropFromJS is casting a js.Value into BarProp.
func BarPropFromWrapper ¶
BarPropFromJS is casting from something that holds a js.Value into BarProp.
type CustomElementConstructor ¶
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 ¶
class: External
func ExternalFromJS ¶
ExternalFromJS is casting a js.Value into External.
func ExternalFromWrapper ¶
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()
type History ¶
class: History
func HistoryFromJS ¶
HistoryFromJS is casting a js.Value into History.
func HistoryFromWrapper ¶
HistoryFromJS is casting from something that holds a js.Value into History.
func (*History) ReplaceState ¶
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).
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 ¶
class: Location
func LocationFromJS ¶
LocationFromJS is casting a js.Value into Location.
func LocationFromWrapper ¶
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) Hostname ¶
Hostname returning attribute 'hostname' with type string (idl: USVString).
func (*Location) Pathname ¶
Pathname returning attribute 'pathname' with type string (idl: USVString).
func (*Location) Protocol ¶
Protocol returning attribute 'protocol' with type string (idl: USVString).
func (*Location) SetHostname ¶
SetHostname setting attribute 'hostname' with type string (idl: USVString).
func (*Location) SetPathname ¶
SetPathname setting attribute 'pathname' with type string (idl: USVString).
func (*Location) SetProtocol ¶
SetProtocol setting attribute 'protocol' with type string (idl: USVString).
type MimeType ¶
class: MimeType
func MimeTypeFromJS ¶
MimeTypeFromJS is casting a js.Value into MimeType.
func MimeTypeFromWrapper ¶
MimeTypeFromJS is casting from something that holds a js.Value into MimeType.
func (*MimeType) Description ¶
Description returning attribute 'description' with type string (idl: DOMString).
func (*MimeType) EnabledPlugin ¶
EnabledPlugin returning attribute 'enabledPlugin' with type Plugin (idl: Plugin).
type MimeTypeArray ¶
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 ¶
class: Navigator
func NavigatorFromJS ¶
NavigatorFromJS is casting a js.Value into Navigator.
func NavigatorFromWrapper ¶
NavigatorFromJS is casting from something that holds a js.Value into Navigator.
func (*Navigator) ActiveVRDisplays ¶
func (_this *Navigator) ActiveVRDisplays() *javascript.FrozenArray
ActiveVRDisplays returning attribute 'activeVRDisplays' with type javascript.FrozenArray (idl: FrozenArray).
func (*Navigator) AppCodeName ¶
AppCodeName returning attribute 'appCodeName' with type string (idl: DOMString).
func (*Navigator) AppName ¶
AppName returning attribute 'appName' with type string (idl: DOMString).
func (*Navigator) AppVersion ¶
AppVersion returning attribute 'appVersion' with type string (idl: DOMString).
func (*Navigator) Bluetooth ¶
Bluetooth returning attribute 'bluetooth' with type bluetooth.Bluetooth (idl: Bluetooth).
func (*Navigator) Clipboard ¶
Clipboard returning attribute 'clipboard' with type clipboard.Clipboard (idl: Clipboard).
func (*Navigator) Connection ¶
func (_this *Navigator) Connection() *netinfo.NetworkInformation
Connection returning attribute 'connection' with type netinfo.NetworkInformation (idl: NetworkInformation).
func (*Navigator) CookieEnabled ¶
CookieEnabled returning attribute 'cookieEnabled' with type bool (idl: boolean).
func (*Navigator) Credentials ¶
func (_this *Navigator) Credentials() *credential.CredentialsContainer
Credentials returning attribute 'credentials' with type credential.CredentialsContainer (idl: CredentialsContainer).
func (*Navigator) Geolocation ¶
func (_this *Navigator) Geolocation() *sensor.Geolocation
Geolocation returning attribute 'geolocation' with type sensor.Geolocation (idl: Geolocation).
func (*Navigator) GetBattery ¶
func (_this *Navigator) GetBattery() (_result *battery.PromiseBatteryManager)
func (*Navigator) GetGamepads ¶
func (*Navigator) GetUserMedia ¶
func (_this *Navigator) GetUserMedia(constraints *local.MediaStreamConstraints, successCallback *local.NavigatorUserMediaSuccessCallback, errorCallback *local.NavigatorUserMediaErrorCallback)
func (*Navigator) GetVRDisplays ¶
func (_this *Navigator) GetVRDisplays() (_result *webvr.PromiseSequenceDisplay)
func (*Navigator) GetWakeLock ¶
func (_this *Navigator) GetWakeLock(_type wakelock.WakeLockType) (_result *wakelock.PromiseWakeLock)
func (*Navigator) HardwareConcurrency ¶
HardwareConcurrency returning attribute 'hardwareConcurrency' with type int (idl: unsigned long long).
func (*Navigator) JavaEnabled ¶
func (*Navigator) Keyboard ¶
Keyboard returning attribute 'keyboard' with type keyboard.Keyboard (idl: Keyboard).
func (*Navigator) Language ¶
Language returning attribute 'language' with type string (idl: DOMString).
func (*Navigator) Languages ¶
func (_this *Navigator) Languages() *javascript.FrozenArray
Languages returning attribute 'languages' with type javascript.FrozenArray (idl: FrozenArray).
func (*Navigator) MaxTouchPoints ¶
MaxTouchPoints returning attribute 'maxTouchPoints' with type int (idl: long).
func (*Navigator) MediaCapabilities ¶
func (_this *Navigator) MediaCapabilities() *capabilities.MediaCapabilities
MediaCapabilities returning attribute 'mediaCapabilities' with type capabilities.MediaCapabilities (idl: MediaCapabilities).
func (*Navigator) MediaDevices ¶
func (_this *Navigator) MediaDevices() *local.MediaDevices
MediaDevices returning attribute 'mediaDevices' with type local.MediaDevices (idl: MediaDevices).
func (*Navigator) MediaSession ¶
func (_this *Navigator) MediaSession() *session.MediaSession
MediaSession returning attribute 'mediaSession' with type session.MediaSession (idl: MediaSession).
func (*Navigator) MimeTypes ¶
func (_this *Navigator) MimeTypes() *MimeTypeArray
MimeTypes returning attribute 'mimeTypes' with type MimeTypeArray (idl: MimeTypeArray).
func (*Navigator) Permissions ¶
func (_this *Navigator) Permissions() *permissions.Permissions
Permissions returning attribute 'permissions' with type permissions.Permissions (idl: Permissions).
func (*Navigator) Platform ¶
Platform returning attribute 'platform' with type string (idl: DOMString).
func (*Navigator) Plugins ¶
func (_this *Navigator) Plugins() *PluginArray
Plugins returning attribute 'plugins' with type PluginArray (idl: PluginArray).
func (*Navigator) Presentation ¶
func (_this *Navigator) Presentation() *presentation.Presentation
Presentation returning attribute 'presentation' with type presentation.Presentation (idl: Presentation).
func (*Navigator) Product ¶
Product returning attribute 'product' with type string (idl: DOMString).
func (*Navigator) ProductSub ¶
ProductSub returning attribute 'productSub' with type string (idl: DOMString).
func (*Navigator) RegisterProtocolHandler ¶
func (*Navigator) RequestMIDIAccess ¶
func (_this *Navigator) RequestMIDIAccess(options *midi.Options) (_result *midi.PromiseAccess)
func (*Navigator) RequestMediaKeySystemAccess ¶
func (_this *Navigator) RequestMediaKeySystemAccess(keySystem string, supportedConfigurations []*encrypted.MediaKeySystemConfiguration) (_result *encrypted.PromiseMediaKeySystemAccess)
func (*Navigator) SendBeacon ¶
func (*Navigator) ServiceWorker ¶
func (_this *Navigator) ServiceWorker() *serviceworker.ServiceWorkerContainer
ServiceWorker returning attribute 'serviceWorker' with type serviceworker.ServiceWorkerContainer (idl: ServiceWorkerContainer).
func (*Navigator) Share ¶
func (_this *Navigator) Share(data *share.ShareData) (_result *javascript.PromiseVoid)
func (*Navigator) Storage ¶
func (_this *Navigator) Storage() *storage.StorageManager
Storage returning attribute 'storage' with type storage.StorageManager (idl: StorageManager).
func (*Navigator) TaintEnabled ¶
func (*Navigator) UnregisterProtocolHandler ¶
func (*Navigator) UserAgent ¶
UserAgent returning attribute 'userAgent' with type string (idl: DOMString).
func (*Navigator) VendorSub ¶
VendorSub returning attribute 'vendorSub' with type string (idl: DOMString).
type Plugin ¶
class: Plugin
func PluginFromJS ¶
PluginFromJS is casting a js.Value into Plugin.
func PluginFromWrapper ¶
PluginFromJS is casting from something that holds a js.Value into Plugin.
func (*Plugin) Description ¶
Description returning attribute 'description' with type string (idl: DOMString).
func (*Plugin) Filename ¶
Filename returning attribute 'filename' with type string (idl: DOMString).
type PluginArray ¶
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 ¶
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