Documentation
¶
Overview ¶
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Code generated by puregotk-webkit extras; DO NOT EDIT.
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Code generated by puregotk-webkit extras; DO NOT EDIT.
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Package webkit was automatically generated by github.com/jwijenbergh/puregotk DO NOT EDIT
Index ¶
- Constants
- Variables
- func ApplicationInfoGLibType() types.GType
- func AuthenticationRequestGLibType() types.GType
- func AuthenticationSchemeGLibType() types.GType
- func AutomationBrowsingContextPresentationGLibType() types.GType
- func AutomationSessionGLibType() types.GType
- func AutoplayPolicyGLibType() types.GType
- func BackForwardListGLibType() types.GType
- func BackForwardListItemGLibType() types.GType
- func CacheModelGLibType() types.GType
- func ClipboardPermissionRequestGLibType() types.GType
- func ColorChooserRequestGLibType() types.GType
- func ContextMenuActionGLibType() types.GType
- func ContextMenuGLibType() types.GType
- func ContextMenuItemGLibType() types.GType
- func CookieAcceptPolicyGLibType() types.GType
- func CookieManagerGLibType() types.GType
- func CookiePersistentStorageGLibType() types.GType
- func CredentialGLibType() types.GType
- func CredentialPersistenceGLibType() types.GType
- func DeviceInfoPermissionRequestGLibType() types.GType
- func DownloadErrorGLibType() types.GType
- func DownloadErrorQuark() glib.Quark
- func DownloadGLibType() types.GType
- func EditorStateGLibType() types.GType
- func EditorTypingAttributesGLibType() types.GType
- func FaviconDatabaseErrorGLibType() types.GType
- func FaviconDatabaseErrorQuark() glib.Quark
- func FaviconDatabaseGLibType() types.GType
- func FeatureGLibType() types.GType
- func FeatureListGLibType() types.GType
- func FeatureStatusGLibType() types.GType
- func FileChooserRequestGLibType() types.GType
- func FindControllerGLibType() types.GType
- func FindOptionsGLibType() types.GType
- func FormSubmissionRequestGLibType() types.GType
- func GeolocationManagerGLibType() types.GType
- func GeolocationPermissionRequestGLibType() types.GType
- func GeolocationPositionGLibType() types.GType
- func GetMajorVersion() uint
- func GetMicroVersion() uint
- func GetMinorVersion() uint
- func HardwareAccelerationPolicyGLibType() types.GType
- func HitTestResultContextGLibType() types.GType
- func HitTestResultGLibType() types.GType
- func ITPFirstPartyGLibType() types.GType
- func ITPThirdPartyGLibType() types.GType
- func InputHintsGLibType() types.GType
- func InputMethodContextGLibType() types.GType
- func InputMethodUnderlineGLibType() types.GType
- func InputPurposeGLibType() types.GType
- func InsecureContentEventGLibType() types.GType
- func JavascriptErrorGLibType() types.GType
- func JavascriptErrorQuark() glib.Quark
- func LoadEventGLibType() types.GType
- func MediaCaptureStateGLibType() types.GType
- func MediaErrorGLibType() types.GType
- func MediaErrorQuark() glib.Quark
- func MediaKeySystemPermissionGetName(RequestVar *MediaKeySystemPermissionRequest) string
- func MediaKeySystemPermissionRequestGLibType() types.GType
- func MemoryPressureSettingsGLibType() types.GType
- func NavigationActionGLibType() types.GType
- func NavigationPolicyDecisionGLibType() types.GType
- func NavigationTypeGLibType() types.GType
- func NetworkErrorGLibType() types.GType
- func NetworkErrorQuark() glib.Quark
- func NetworkProxyModeGLibType() types.GType
- func NetworkProxySettingsGLibType() types.GType
- func NetworkSessionGLibType() types.GType
- func NetworkSessionSetMemoryPressureSettings(SettingsVar *MemoryPressureSettings)
- func NotificationGLibType() types.GType
- func NotificationPermissionRequestGLibType() types.GType
- func OptionMenuGLibType() types.GType
- func OptionMenuItemGLibType() types.GType
- func PermissionRequestGLibType() types.GType
- func PermissionStateGLibType() types.GType
- func PermissionStateQueryGLibType() types.GType
- func PointerLockPermissionRequestGLibType() types.GType
- func PolicyDecisionGLibType() types.GType
- func PolicyDecisionTypeGLibType() types.GType
- func PolicyErrorGLibType() types.GType
- func PolicyErrorQuark() glib.Quark
- func PrintErrorGLibType() types.GType
- func PrintErrorQuark() glib.Quark
- func PrintOperationGLibType() types.GType
- func PrintOperationResponseGLibType() types.GType
- func ResponsePolicyDecisionGLibType() types.GType
- func SaveModeGLibType() types.GType
- func ScriptDialogGLibType() types.GType
- func ScriptDialogTypeGLibType() types.GType
- func ScriptMessageReplyGLibType() types.GType
- func SecurityManagerGLibType() types.GType
- func SecurityOriginGLibType() types.GType
- func SettingsFontSizeToPixels(PointsVar uint32) uint32
- func SettingsFontSizeToPoints(PixelsVar uint32) uint32
- func SettingsGLibType() types.GType
- func SnapshotErrorGLibType() types.GType
- func SnapshotErrorQuark() glib.Quark
- func SnapshotOptionsGLibType() types.GType
- func SnapshotRegionGLibType() types.GType
- func TLSErrorsPolicyGLibType() types.GType
- func URIRequestGLibType() types.GType
- func URIResponseGLibType() types.GType
- func URISchemeRequestGLibType() types.GType
- func URISchemeResponseGLibType() types.GType
- func UriForDisplay(UriVar string) string
- func UserContentFilterErrorGLibType() types.GType
- func UserContentFilterErrorQuark() glib.Quark
- func UserContentFilterGLibType() types.GType
- func UserContentFilterStoreGLibType() types.GType
- func UserContentInjectedFramesGLibType() types.GType
- func UserContentManagerGLibType() types.GType
- func UserMediaPermissionIsForAudioDevice(RequestVar *UserMediaPermissionRequest) bool
- func UserMediaPermissionIsForDisplayDevice(RequestVar *UserMediaPermissionRequest) bool
- func UserMediaPermissionIsForVideoDevice(RequestVar *UserMediaPermissionRequest) bool
- func UserMediaPermissionRequestGLibType() types.GType
- func UserMessageErrorGLibType() types.GType
- func UserMessageErrorQuark() glib.Quark
- func UserMessageGLibType() types.GType
- func UserScriptGLibType() types.GType
- func UserScriptInjectionTimeGLibType() types.GType
- func UserStyleLevelGLibType() types.GType
- func UserStyleSheetGLibType() types.GType
- func WebContextGLibType() types.GType
- func WebExtensionMatchPatternErrorGLibType() types.GType
- func WebExtensionMatchPatternErrorQuark() glib.Quark
- func WebExtensionMatchPatternGLibType() types.GType
- func WebExtensionMatchPatternOptionsGLibType() types.GType
- func WebExtensionMatchPatternRegisterCustomURLScheme(UrlSchemeVar string)
- func WebExtensionModeGLibType() types.GType
- func WebInspectorGLibType() types.GType
- func WebProcessTerminationReasonGLibType() types.GType
- func WebResourceGLibType() types.GType
- func WebViewBaseGLibType() types.GType
- func WebViewGLibType() types.GType
- func WebViewSessionStateGLibType() types.GType
- func WebsiteDataAccessPermissionRequestGLibType() types.GType
- func WebsiteDataGLibType() types.GType
- func WebsiteDataManagerGLibType() types.GType
- func WebsiteDataTypesGLibType() types.GType
- func WebsitePoliciesGLibType() types.GType
- func WindowPropertiesGLibType() types.GType
- type ApplicationInfo
- func (x *ApplicationInfo) GetName() string
- func (x *ApplicationInfo) GetVersion(MajorVar *uint64, MinorVar *uint64, MicroVar *uint64)
- func (x *ApplicationInfo) GoPointer() uintptr
- func (x *ApplicationInfo) Ref() *ApplicationInfo
- func (x *ApplicationInfo) SetName(NameVar string)
- func (x *ApplicationInfo) SetVersion(MajorVar uint64, MinorVar uint64, MicroVar uint64)
- func (x *ApplicationInfo) Unref()
- type AuthenticationRequest
- func (x *AuthenticationRequest) Authenticate(CredentialVar *Credential)
- func (x *AuthenticationRequest) CanSaveCredentials() bool
- func (x *AuthenticationRequest) Cancel()
- func (x *AuthenticationRequest) ConnectAuthenticated(cb *func(AuthenticationRequest, uintptr)) uint
- func (x *AuthenticationRequest) ConnectCancelled(cb *func(AuthenticationRequest)) uint
- func (x *AuthenticationRequest) GetCertificatePinFlags() gio.TlsPasswordFlags
- func (x *AuthenticationRequest) GetHost() string
- func (x *AuthenticationRequest) GetPort() uint
- func (x *AuthenticationRequest) GetProposedCredential() *Credential
- func (x *AuthenticationRequest) GetRealm() string
- func (x *AuthenticationRequest) GetScheme() AuthenticationScheme
- func (x *AuthenticationRequest) GetSecurityOrigin() *SecurityOrigin
- func (c *AuthenticationRequest) GoPointer() uintptr
- func (x *AuthenticationRequest) IsForProxy() bool
- func (x *AuthenticationRequest) IsRetry() bool
- func (x *AuthenticationRequest) SetCanSaveCredentials(EnabledVar bool)
- func (c *AuthenticationRequest) SetGoPointer(ptr uintptr)
- func (x *AuthenticationRequest) SetProposedCredential(CredentialVar *Credential)
- type AuthenticationRequestClass
- type AuthenticationScheme
- type AutomationBrowsingContextPresentation
- type AutomationSession
- func (x *AutomationSession) ConnectCreateWebView(cb *func(AutomationSession) WebView) uint
- func (x *AutomationSession) ConnectCreateWebViewWithDetail(detail string, cb *func(AutomationSession) WebView) uint
- func (x *AutomationSession) ConnectWillClose(cb *func(AutomationSession)) uint
- func (x *AutomationSession) GetApplicationInfo() *ApplicationInfo
- func (x *AutomationSession) GetId() string
- func (x *AutomationSession) GetPropertyId() string
- func (c *AutomationSession) GoPointer() uintptr
- func (x *AutomationSession) SetApplicationInfo(InfoVar *ApplicationInfo)
- func (c *AutomationSession) SetGoPointer(ptr uintptr)
- func (x *AutomationSession) SetPropertyId(value string)
- type AutomationSessionClass
- type AutoplayPolicy
- type BackForwardList
- func (x *BackForwardList) ConnectChanged(cb *func(BackForwardList, uintptr, uintptr)) uint
- func (x *BackForwardList) GetBackItem() *BackForwardListItem
- func (x *BackForwardList) GetBackList() *glib.List
- func (x *BackForwardList) GetBackListWithLimit(LimitVar uint) *glib.List
- func (x *BackForwardList) GetCurrentItem() *BackForwardListItem
- func (x *BackForwardList) GetForwardItem() *BackForwardListItem
- func (x *BackForwardList) GetForwardList() *glib.List
- func (x *BackForwardList) GetForwardListWithLimit(LimitVar uint) *glib.List
- func (x *BackForwardList) GetLength() uint
- func (x *BackForwardList) GetNthItem(IndexVar int) *BackForwardListItem
- func (c *BackForwardList) GoPointer() uintptr
- func (c *BackForwardList) SetGoPointer(ptr uintptr)
- type BackForwardListClass
- type BackForwardListItem
- type BackForwardListItemClass
- type CacheModel
- type ClipboardPermissionRequest
- type ClipboardPermissionRequestClass
- type ColorChooserRequest
- func (x *ColorChooserRequest) Cancel()
- func (x *ColorChooserRequest) ConnectFinished(cb *func(ColorChooserRequest)) uint
- func (x *ColorChooserRequest) Finish()
- func (x *ColorChooserRequest) GetElementRectangle(RectVar *gdk.Rectangle)
- func (x *ColorChooserRequest) GetPropertyRgba() uintptr
- func (x *ColorChooserRequest) GetRgba(RgbaVar *gdk.RGBA)
- func (c *ColorChooserRequest) GoPointer() uintptr
- func (c *ColorChooserRequest) SetGoPointer(ptr uintptr)
- func (x *ColorChooserRequest) SetPropertyRgba(value uintptr)
- func (x *ColorChooserRequest) SetRgba(RgbaVar *gdk.RGBA)
- type ColorChooserRequestClass
- type ContextMenu
- func (x *ContextMenu) Append(ItemVar *ContextMenuItem)
- func (x *ContextMenu) First() *ContextMenuItem
- func (x *ContextMenu) GetEvent() *gdk.Event
- func (x *ContextMenu) GetItemAtPosition(PositionVar uint) *ContextMenuItem
- func (x *ContextMenu) GetItems() *glib.List
- func (x *ContextMenu) GetNItems() uint
- func (x *ContextMenu) GetUserData() *glib.Variant
- func (c *ContextMenu) GoPointer() uintptr
- func (x *ContextMenu) Insert(ItemVar *ContextMenuItem, PositionVar int)
- func (x *ContextMenu) Last() *ContextMenuItem
- func (x *ContextMenu) MoveItem(ItemVar *ContextMenuItem, PositionVar int)
- func (x *ContextMenu) Prepend(ItemVar *ContextMenuItem)
- func (x *ContextMenu) Remove(ItemVar *ContextMenuItem)
- func (x *ContextMenu) RemoveAll()
- func (c *ContextMenu) SetGoPointer(ptr uintptr)
- func (x *ContextMenu) SetUserData(UserDataVar *glib.Variant)
- type ContextMenuAction
- type ContextMenuClass
- type ContextMenuItem
- func ContextMenuItemNewFromInternalPtr(ptr uintptr) *ContextMenuItem
- func NewContextMenuItemFromGaction(ActionVar gio.Action, LabelVar string, TargetVar *glib.Variant) *ContextMenuItem
- func NewContextMenuItemFromStockAction(ActionVar ContextMenuAction) *ContextMenuItem
- func NewContextMenuItemFromStockActionWithLabel(ActionVar ContextMenuAction, LabelVar string) *ContextMenuItem
- func NewContextMenuItemSeparator() *ContextMenuItem
- func NewContextMenuItemWithSubmenu(LabelVar string, SubmenuVar *ContextMenu) *ContextMenuItem
- func (x *ContextMenuItem) GetGaction() *gio.ActionBase
- func (x *ContextMenuItem) GetStockAction() ContextMenuAction
- func (x *ContextMenuItem) GetSubmenu() *ContextMenu
- func (c *ContextMenuItem) GoPointer() uintptr
- func (x *ContextMenuItem) IsSeparator() bool
- func (c *ContextMenuItem) SetGoPointer(ptr uintptr)
- func (x *ContextMenuItem) SetSubmenu(SubmenuVar *ContextMenu)
- type ContextMenuItemClass
- type CookieAcceptPolicy
- type CookieManager
- func (x *CookieManager) AddCookie(CookieVar *soup.Cookie, CancellableVar *gio.Cancellable, ...)
- func (x *CookieManager) AddCookieFinish(ResultVar gio.AsyncResult) (bool, error)
- func (x *CookieManager) ConnectChanged(cb *func(CookieManager)) uint
- func (x *CookieManager) DeleteCookie(CookieVar *soup.Cookie, CancellableVar *gio.Cancellable, ...)
- func (x *CookieManager) DeleteCookieFinish(ResultVar gio.AsyncResult) (bool, error)
- func (x *CookieManager) GetAcceptPolicy(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, ...)
- func (x *CookieManager) GetAcceptPolicyFinish(ResultVar gio.AsyncResult) (CookieAcceptPolicy, error)
- func (x *CookieManager) GetAllCookies(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, ...)
- func (x *CookieManager) GetAllCookiesFinish(ResultVar gio.AsyncResult) (*glib.List, error)
- func (x *CookieManager) GetCookies(UriVar string, CancellableVar *gio.Cancellable, ...)
- func (x *CookieManager) GetCookiesFinish(ResultVar gio.AsyncResult) (*glib.List, error)
- func (c *CookieManager) GoPointer() uintptr
- func (x *CookieManager) ReplaceCookies(CookiesVar *glib.List, CancellableVar *gio.Cancellable, ...)
- func (x *CookieManager) ReplaceCookiesFinish(ResultVar gio.AsyncResult) (bool, error)
- func (x *CookieManager) SetAcceptPolicy(PolicyVar CookieAcceptPolicy)
- func (c *CookieManager) SetGoPointer(ptr uintptr)
- func (x *CookieManager) SetPersistentStorage(FilenameVar string, StorageVar CookiePersistentStorage)
- type CookieManagerClass
- type CookiePersistentStorage
- type Credential
- func NewCredential(UsernameVar string, PasswordVar string, PersistenceVar CredentialPersistence) *Credential
- func NewCredentialForCertificate(CertificateVar *gio.TlsCertificate, PersistenceVar CredentialPersistence) *Credential
- func NewCredentialForCertificatePin(PinVar string, PersistenceVar CredentialPersistence) *Credential
- func (x *Credential) Copy() *Credential
- func (x *Credential) Free()
- func (x *Credential) GetCertificate() *gio.TlsCertificate
- func (x *Credential) GetPassword() string
- func (x *Credential) GetPersistence() CredentialPersistence
- func (x *Credential) GetUsername() string
- func (x *Credential) GoPointer() uintptr
- func (x *Credential) HasPassword() bool
- type CredentialPersistence
- type DeviceInfoPermissionRequest
- type DeviceInfoPermissionRequestClass
- type Download
- func (x *Download) Cancel()
- func (x *Download) ConnectCreatedDestination(cb *func(Download, string)) uint
- func (x *Download) ConnectDecideDestination(cb *func(Download, string) bool) uint
- func (x *Download) ConnectFailed(cb *func(Download, uintptr)) uint
- func (x *Download) ConnectFinished(cb *func(Download)) uint
- func (x *Download) ConnectReceivedData(cb *func(Download, uint64)) uint
- func (x *Download) GetAllowOverwrite() bool
- func (x *Download) GetDestination() string
- func (x *Download) GetElapsedTime() float64
- func (x *Download) GetEstimatedProgress() float64
- func (x *Download) GetPropertyAllowOverwrite() bool
- func (x *Download) GetPropertyDestination() string
- func (x *Download) GetPropertyEstimatedProgress() float64
- func (x *Download) GetReceivedDataLength() uint64
- func (x *Download) GetRequest() *URIRequest
- func (x *Download) GetResponse() *URIResponse
- func (x *Download) GetWebView() *WebView
- func (c *Download) GoPointer() uintptr
- func (x *Download) SetAllowOverwrite(AllowedVar bool)
- func (x *Download) SetDestination(DestinationVar string)
- func (c *Download) SetGoPointer(ptr uintptr)
- func (x *Download) SetPropertyAllowOverwrite(value bool)
- type DownloadClass
- type DownloadError
- type EditorState
- func (x *EditorState) ConnectChanged(cb *func(EditorState)) uint
- func (x *EditorState) GetPropertyTypingAttributes() uint
- func (x *EditorState) GetTypingAttributes() uint
- func (c *EditorState) GoPointer() uintptr
- func (x *EditorState) IsCopyAvailable() bool
- func (x *EditorState) IsCutAvailable() bool
- func (x *EditorState) IsPasteAvailable() bool
- func (x *EditorState) IsRedoAvailable() bool
- func (x *EditorState) IsUndoAvailable() bool
- func (c *EditorState) SetGoPointer(ptr uintptr)
- type EditorStateClass
- type EditorTypingAttributes
- type FaviconDatabase
- func (x *FaviconDatabase) Clear()
- func (x *FaviconDatabase) ConnectFaviconChanged(cb *func(FaviconDatabase, string, string)) uint
- func (x *FaviconDatabase) GetFavicon(PageUriVar string, CancellableVar *gio.Cancellable, ...)
- func (x *FaviconDatabase) GetFaviconFinish(ResultVar gio.AsyncResult) (*gdk.Texture, error)
- func (x *FaviconDatabase) GetFaviconUri(PageUriVar string) string
- func (c *FaviconDatabase) GoPointer() uintptr
- func (c *FaviconDatabase) SetGoPointer(ptr uintptr)
- type FaviconDatabaseClass
- type FaviconDatabaseError
- type Feature
- func (x *Feature) GetCategory() string
- func (x *Feature) GetDefaultValue() bool
- func (x *Feature) GetDetails() string
- func (x *Feature) GetIdentifier() string
- func (x *Feature) GetName() string
- func (x *Feature) GetStatus() FeatureStatus
- func (x *Feature) GoPointer() uintptr
- func (x *Feature) Ref() *Feature
- func (x *Feature) Unref()
- type FeatureList
- type FeatureStatus
- type FileChooserRequest
- func (x *FileChooserRequest) Cancel()
- func (x *FileChooserRequest) GetMimeTypes() []string
- func (x *FileChooserRequest) GetMimeTypesFilter() *gtk.FileFilter
- func (x *FileChooserRequest) GetPropertyMimeTypes() []string
- func (x *FileChooserRequest) GetPropertySelectMultiple() bool
- func (x *FileChooserRequest) GetPropertySelectedFiles() []string
- func (x *FileChooserRequest) GetSelectMultiple() bool
- func (x *FileChooserRequest) GetSelectedFiles() []string
- func (c *FileChooserRequest) GoPointer() uintptr
- func (x *FileChooserRequest) SelectFiles(FilesVar []string)
- func (c *FileChooserRequest) SetGoPointer(ptr uintptr)
- type FileChooserRequestClass
- type FindController
- func (x *FindController) ConnectCountedMatches(cb *func(FindController, uint)) uint
- func (x *FindController) ConnectFailedToFindText(cb *func(FindController)) uint
- func (x *FindController) ConnectFoundText(cb *func(FindController, uint)) uint
- func (x *FindController) CountMatches(SearchTextVar string, FindOptionsVar uint32, MaxMatchCountVar uint)
- func (x *FindController) GetMaxMatchCount() uint
- func (x *FindController) GetOptions() uint32
- func (x *FindController) GetPropertyMaxMatchCount() uint
- func (x *FindController) GetPropertyText() string
- func (x *FindController) GetSearchText() string
- func (x *FindController) GetWebView() *WebView
- func (c *FindController) GoPointer() uintptr
- func (x *FindController) Search(SearchTextVar string, FindOptionsVar uint32, MaxMatchCountVar uint)
- func (x *FindController) SearchFinish()
- func (x *FindController) SearchNext()
- func (x *FindController) SearchPrevious()
- func (c *FindController) SetGoPointer(ptr uintptr)
- type FindControllerClass
- type FindOptions
- type FormSubmissionRequest
- type FormSubmissionRequestClass
- type GeolocationManager
- func (x *GeolocationManager) ConnectStart(cb *func(GeolocationManager) bool) uint
- func (x *GeolocationManager) ConnectStop(cb *func(GeolocationManager)) uint
- func (x *GeolocationManager) Failed(ErrorMessageVar string)
- func (x *GeolocationManager) GetEnableHighAccuracy() bool
- func (x *GeolocationManager) GetPropertyEnableHighAccuracy() bool
- func (c *GeolocationManager) GoPointer() uintptr
- func (c *GeolocationManager) SetGoPointer(ptr uintptr)
- func (x *GeolocationManager) UpdatePosition(PositionVar *GeolocationPosition)
- type GeolocationManagerClass
- type GeolocationPermissionRequest
- type GeolocationPermissionRequestClass
- type GeolocationPosition
- func (x *GeolocationPosition) Copy() *GeolocationPosition
- func (x *GeolocationPosition) Free()
- func (x *GeolocationPosition) GoPointer() uintptr
- func (x *GeolocationPosition) SetAltitude(AltitudeVar float64)
- func (x *GeolocationPosition) SetAltitudeAccuracy(AltitudeAccuracyVar float64)
- func (x *GeolocationPosition) SetHeading(HeadingVar float64)
- func (x *GeolocationPosition) SetSpeed(SpeedVar float64)
- func (x *GeolocationPosition) SetTimestamp(TimestampVar uint64)
- type HardwareAccelerationPolicy
- type HitTestResult
- func (x *HitTestResult) ContextIsEditable() bool
- func (x *HitTestResult) ContextIsImage() bool
- func (x *HitTestResult) ContextIsLink() bool
- func (x *HitTestResult) ContextIsMedia() bool
- func (x *HitTestResult) ContextIsScrollbar() bool
- func (x *HitTestResult) ContextIsSelection() bool
- func (x *HitTestResult) GetContext() uint
- func (x *HitTestResult) GetImageUri() string
- func (x *HitTestResult) GetLinkLabel() string
- func (x *HitTestResult) GetLinkTitle() string
- func (x *HitTestResult) GetLinkUri() string
- func (x *HitTestResult) GetMediaUri() string
- func (x *HitTestResult) GetPropertyContext() uint
- func (x *HitTestResult) GetPropertyImageUri() string
- func (x *HitTestResult) GetPropertyLinkLabel() string
- func (x *HitTestResult) GetPropertyLinkTitle() string
- func (x *HitTestResult) GetPropertyLinkUri() string
- func (x *HitTestResult) GetPropertyMediaUri() string
- func (c *HitTestResult) GoPointer() uintptr
- func (c *HitTestResult) SetGoPointer(ptr uintptr)
- func (x *HitTestResult) SetPropertyContext(value uint)
- func (x *HitTestResult) SetPropertyImageUri(value string)
- func (x *HitTestResult) SetPropertyLinkLabel(value string)
- func (x *HitTestResult) SetPropertyLinkTitle(value string)
- func (x *HitTestResult) SetPropertyLinkUri(value string)
- func (x *HitTestResult) SetPropertyMediaUri(value string)
- type HitTestResultClass
- type HitTestResultContext
- type ITPFirstParty
- type ITPThirdParty
- type InputHints
- type InputMethodContext
- func (x *InputMethodContext) ConnectCommitted(cb *func(InputMethodContext, string)) uint
- func (x *InputMethodContext) ConnectDeleteSurrounding(cb *func(InputMethodContext, int, uint)) uint
- func (x *InputMethodContext) ConnectPreeditChanged(cb *func(InputMethodContext)) uint
- func (x *InputMethodContext) ConnectPreeditFinished(cb *func(InputMethodContext)) uint
- func (x *InputMethodContext) ConnectPreeditStarted(cb *func(InputMethodContext)) uint
- func (x *InputMethodContext) FilterKeyEvent(KeyEventVar *gdk.Event) bool
- func (x *InputMethodContext) GetInputHints() InputHints
- func (x *InputMethodContext) GetInputPurpose() InputPurpose
- func (x *InputMethodContext) GetPreedit(TextVar *string, UnderlinesVar **glib.List, CursorOffsetVar *uint)
- func (c *InputMethodContext) GoPointer() uintptr
- func (x *InputMethodContext) NotifyCursorArea(XVar int, YVar int, WidthVar int, HeightVar int)
- func (x *InputMethodContext) NotifyFocusIn()
- func (x *InputMethodContext) NotifyFocusOut()
- func (x *InputMethodContext) NotifySurrounding(TextVar string, LengthVar int, CursorIndexVar uint, SelectionIndexVar uint)
- func (x *InputMethodContext) Reset()
- func (x *InputMethodContext) SetEnablePreedit(EnabledVar bool)
- func (c *InputMethodContext) SetGoPointer(ptr uintptr)
- func (x *InputMethodContext) SetInputHints(HintsVar InputHints)
- func (x *InputMethodContext) SetInputPurpose(PurposeVar InputPurpose)
- type InputMethodContextClass
- func (x *InputMethodContextClass) GetCommitted() func(*InputMethodContext, string)
- func (x *InputMethodContextClass) GetDeleteSurrounding() func(*InputMethodContext, int, uint)
- func (x *InputMethodContextClass) GetFilterKeyEvent() func(*InputMethodContext, *gdk.Event) bool
- func (x *InputMethodContextClass) GetGetPreedit() func(*InputMethodContext, *string, **glib.List, *uint)
- func (x *InputMethodContextClass) GetNotifyCursorArea() func(*InputMethodContext, int, int, int, int)
- func (x *InputMethodContextClass) GetNotifyFocusIn() func(*InputMethodContext)
- func (x *InputMethodContextClass) GetNotifyFocusOut() func(*InputMethodContext)
- func (x *InputMethodContextClass) GetNotifySurrounding() func(*InputMethodContext, string, uint, uint, uint)
- func (x *InputMethodContextClass) GetPreeditChanged() func(*InputMethodContext)
- func (x *InputMethodContextClass) GetPreeditFinished() func(*InputMethodContext)
- func (x *InputMethodContextClass) GetPreeditStarted() func(*InputMethodContext)
- func (x *InputMethodContextClass) GetReset() func(*InputMethodContext)
- func (x *InputMethodContextClass) GetSetEnablePreedit() func(*InputMethodContext, bool)
- func (x *InputMethodContextClass) GetWebkitReserved0() func()
- func (x *InputMethodContextClass) GetWebkitReserved1() func()
- func (x *InputMethodContextClass) GetWebkitReserved2() func()
- func (x *InputMethodContextClass) GetWebkitReserved3() func()
- func (x *InputMethodContextClass) GetWebkitReserved4() func()
- func (x *InputMethodContextClass) GetWebkitReserved5() func()
- func (x *InputMethodContextClass) GetWebkitReserved6() func()
- func (x *InputMethodContextClass) GetWebkitReserved7() func()
- func (x *InputMethodContextClass) GetWebkitReserved8() func()
- func (x *InputMethodContextClass) GetWebkitReserved9() func()
- func (x *InputMethodContextClass) GetWebkitReserved10() func()
- func (x *InputMethodContextClass) GetWebkitReserved11() func()
- func (x *InputMethodContextClass) GetWebkitReserved12() func()
- func (x *InputMethodContextClass) GetWebkitReserved13() func()
- func (x *InputMethodContextClass) GetWebkitReserved14() func()
- func (x *InputMethodContextClass) GetWebkitReserved15() func()
- func (x *InputMethodContextClass) GoPointer() uintptr
- func (x *InputMethodContextClass) OverrideCommitted(cb func(*InputMethodContext, string))
- func (x *InputMethodContextClass) OverrideDeleteSurrounding(cb func(*InputMethodContext, int, uint))
- func (x *InputMethodContextClass) OverrideFilterKeyEvent(cb func(*InputMethodContext, *gdk.Event) bool)
- func (x *InputMethodContextClass) OverrideGetPreedit(cb func(*InputMethodContext, *string, **glib.List, *uint))
- func (x *InputMethodContextClass) OverrideNotifyCursorArea(cb func(*InputMethodContext, int, int, int, int))
- func (x *InputMethodContextClass) OverrideNotifyFocusIn(cb func(*InputMethodContext))
- func (x *InputMethodContextClass) OverrideNotifyFocusOut(cb func(*InputMethodContext))
- func (x *InputMethodContextClass) OverrideNotifySurrounding(cb func(*InputMethodContext, string, uint, uint, uint))
- func (x *InputMethodContextClass) OverridePreeditChanged(cb func(*InputMethodContext))
- func (x *InputMethodContextClass) OverridePreeditFinished(cb func(*InputMethodContext))
- func (x *InputMethodContextClass) OverridePreeditStarted(cb func(*InputMethodContext))
- func (x *InputMethodContextClass) OverrideReset(cb func(*InputMethodContext))
- func (x *InputMethodContextClass) OverrideSetEnablePreedit(cb func(*InputMethodContext, bool))
- func (x *InputMethodContextClass) OverrideWebkitReserved0(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved1(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved2(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved3(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved4(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved5(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved6(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved7(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved8(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved9(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved10(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved11(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved12(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved13(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved14(cb func())
- func (x *InputMethodContextClass) OverrideWebkitReserved15(cb func())
- type InputMethodContextPrivate
- type InputMethodUnderline
- type InputPurpose
- type InsecureContentEvent
- type JavascriptError
- type LoadEvent
- type MediaCaptureState
- type MediaError
- type MediaKeySystemPermissionRequest
- type MediaKeySystemPermissionRequestClass
- type MemoryPressureSettings
- func (x *MemoryPressureSettings) Copy() *MemoryPressureSettings
- func (x *MemoryPressureSettings) Free()
- func (x *MemoryPressureSettings) GetConservativeThreshold() float64
- func (x *MemoryPressureSettings) GetKillThreshold() float64
- func (x *MemoryPressureSettings) GetMemoryLimit() uint
- func (x *MemoryPressureSettings) GetPollInterval() float64
- func (x *MemoryPressureSettings) GetStrictThreshold() float64
- func (x *MemoryPressureSettings) GoPointer() uintptr
- func (x *MemoryPressureSettings) SetConservativeThreshold(ValueVar float64)
- func (x *MemoryPressureSettings) SetKillThreshold(ValueVar float64)
- func (x *MemoryPressureSettings) SetMemoryLimit(MemoryLimitVar uint)
- func (x *MemoryPressureSettings) SetPollInterval(ValueVar float64)
- func (x *MemoryPressureSettings) SetStrictThreshold(ValueVar float64)
- type NavigationAction
- func (x *NavigationAction) Copy() *NavigationAction
- func (x *NavigationAction) Free()
- func (x *NavigationAction) GetFrameName() string
- func (x *NavigationAction) GetModifiers() uint
- func (x *NavigationAction) GetMouseButton() uint
- func (x *NavigationAction) GetNavigationType() NavigationType
- func (x *NavigationAction) GetRequest() *URIRequest
- func (x *NavigationAction) GoPointer() uintptr
- func (x *NavigationAction) IsRedirect() bool
- func (x *NavigationAction) IsUserGesture() bool
- type NavigationPolicyDecision
- type NavigationPolicyDecisionClass
- type NavigationType
- type NetworkError
- type NetworkProxyMode
- type NetworkProxySettings
- type NetworkSession
- func (x *NetworkSession) AllowTlsCertificateForHost(CertificateVar *gio.TlsCertificate, HostVar string)
- func (x *NetworkSession) ConnectDownloadStarted(cb *func(NetworkSession, uintptr)) uint
- func (x *NetworkSession) DownloadUri(UriVar string) *Download
- func (x *NetworkSession) GetCookieManager() *CookieManager
- func (x *NetworkSession) GetItpEnabled() bool
- func (x *NetworkSession) GetItpSummary(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, ...)
- func (x *NetworkSession) GetItpSummaryFinish(ResultVar gio.AsyncResult) (*glib.List, error)
- func (x *NetworkSession) GetPersistentCredentialStorageEnabled() bool
- func (x *NetworkSession) GetPropertyIsEphemeral() bool
- func (x *NetworkSession) GetTlsErrorsPolicy() TLSErrorsPolicy
- func (x *NetworkSession) GetWebsiteDataManager() *WebsiteDataManager
- func (c *NetworkSession) GoPointer() uintptr
- func (x *NetworkSession) IsEphemeral() bool
- func (x *NetworkSession) PrefetchDns(HostnameVar string)
- func (c *NetworkSession) SetGoPointer(ptr uintptr)
- func (x *NetworkSession) SetItpEnabled(EnabledVar bool)
- func (x *NetworkSession) SetPersistentCredentialStorageEnabled(EnabledVar bool)
- func (x *NetworkSession) SetPropertyCacheDirectory(value string)
- func (x *NetworkSession) SetPropertyDataDirectory(value string)
- func (x *NetworkSession) SetPropertyIsEphemeral(value bool)
- func (x *NetworkSession) SetProxySettings(ProxyModeVar NetworkProxyMode, ProxySettingsVar *NetworkProxySettings)
- func (x *NetworkSession) SetTlsErrorsPolicy(PolicyVar TLSErrorsPolicy)
- type NetworkSessionClass
- type Notification
- func (x *Notification) Clicked()
- func (x *Notification) Close()
- func (x *Notification) ConnectClicked(cb *func(Notification)) uint
- func (x *Notification) ConnectClosed(cb *func(Notification)) uint
- func (x *Notification) GetBody() string
- func (x *Notification) GetId() uint64
- func (x *Notification) GetPropertyBody() string
- func (x *Notification) GetPropertyId() uint64
- func (x *Notification) GetPropertyTag() string
- func (x *Notification) GetPropertyTitle() string
- func (x *Notification) GetTag() string
- func (x *Notification) GetTitle() string
- func (c *Notification) GoPointer() uintptr
- func (c *Notification) SetGoPointer(ptr uintptr)
- type NotificationClass
- type NotificationPermissionRequest
- type NotificationPermissionRequestClass
- type OptionMenu
- func (x *OptionMenu) ActivateItem(IndexVar uint)
- func (x *OptionMenu) Close()
- func (x *OptionMenu) ConnectClose(cb *func(OptionMenu)) uint
- func (x *OptionMenu) GetEvent() *gdk.Event
- func (x *OptionMenu) GetItem(IndexVar uint) *OptionMenuItem
- func (x *OptionMenu) GetNItems() uint
- func (c *OptionMenu) GoPointer() uintptr
- func (x *OptionMenu) SelectItem(IndexVar uint)
- func (c *OptionMenu) SetGoPointer(ptr uintptr)
- type OptionMenuClass
- type OptionMenuItem
- func (x *OptionMenuItem) Copy() *OptionMenuItem
- func (x *OptionMenuItem) Free()
- func (x *OptionMenuItem) GetLabel() string
- func (x *OptionMenuItem) GetTooltip() string
- func (x *OptionMenuItem) GoPointer() uintptr
- func (x *OptionMenuItem) IsEnabled() bool
- func (x *OptionMenuItem) IsGroupChild() bool
- func (x *OptionMenuItem) IsGroupLabel() bool
- func (x *OptionMenuItem) IsSelected() bool
- type PermissionRequest
- type PermissionRequestBase
- type PermissionRequestInterface
- func (x *PermissionRequestInterface) GetAllow() func(PermissionRequest)
- func (x *PermissionRequestInterface) GetDeny() func(PermissionRequest)
- func (x *PermissionRequestInterface) GoPointer() uintptr
- func (x *PermissionRequestInterface) OverrideAllow(cb func(PermissionRequest))
- func (x *PermissionRequestInterface) OverrideDeny(cb func(PermissionRequest))
- type PermissionState
- type PermissionStateQuery
- func (x *PermissionStateQuery) Finish(StateVar PermissionState)
- func (x *PermissionStateQuery) GetName() string
- func (x *PermissionStateQuery) GetSecurityOrigin() *SecurityOrigin
- func (x *PermissionStateQuery) GoPointer() uintptr
- func (x *PermissionStateQuery) Ref() *PermissionStateQuery
- func (x *PermissionStateQuery) Unref()
- type PointerLockPermissionRequest
- type PointerLockPermissionRequestClass
- type PolicyDecision
- type PolicyDecisionClass
- func (x *PolicyDecisionClass) GetWebkitReserved0() func()
- func (x *PolicyDecisionClass) GetWebkitReserved1() func()
- func (x *PolicyDecisionClass) GetWebkitReserved2() func()
- func (x *PolicyDecisionClass) GetWebkitReserved3() func()
- func (x *PolicyDecisionClass) GetWebkitReserved4() func()
- func (x *PolicyDecisionClass) GetWebkitReserved5() func()
- func (x *PolicyDecisionClass) GetWebkitReserved6() func()
- func (x *PolicyDecisionClass) GetWebkitReserved7() func()
- func (x *PolicyDecisionClass) GoPointer() uintptr
- func (x *PolicyDecisionClass) OverrideWebkitReserved0(cb func())
- func (x *PolicyDecisionClass) OverrideWebkitReserved1(cb func())
- func (x *PolicyDecisionClass) OverrideWebkitReserved2(cb func())
- func (x *PolicyDecisionClass) OverrideWebkitReserved3(cb func())
- func (x *PolicyDecisionClass) OverrideWebkitReserved4(cb func())
- func (x *PolicyDecisionClass) OverrideWebkitReserved5(cb func())
- func (x *PolicyDecisionClass) OverrideWebkitReserved6(cb func())
- func (x *PolicyDecisionClass) OverrideWebkitReserved7(cb func())
- type PolicyDecisionPrivate
- type PolicyDecisionType
- type PolicyError
- type PrintError
- type PrintOperation
- func (x *PrintOperation) ConnectFailed(cb *func(PrintOperation, uintptr)) uint
- func (x *PrintOperation) ConnectFinished(cb *func(PrintOperation)) uint
- func (x *PrintOperation) GetPageSetup() *gtk.PageSetup
- func (x *PrintOperation) GetPrintSettings() *gtk.PrintSettings
- func (c *PrintOperation) GoPointer() uintptr
- func (x *PrintOperation) Print()
- func (x *PrintOperation) RunDialog(ParentVar *gtk.Window) PrintOperationResponse
- func (c *PrintOperation) SetGoPointer(ptr uintptr)
- func (x *PrintOperation) SetPageSetup(PageSetupVar *gtk.PageSetup)
- func (x *PrintOperation) SetPrintSettings(PrintSettingsVar *gtk.PrintSettings)
- type PrintOperationClass
- type PrintOperationResponse
- type ResponsePolicyDecision
- func (x *ResponsePolicyDecision) GetRequest() *URIRequest
- func (x *ResponsePolicyDecision) GetResponse() *URIResponse
- func (c *ResponsePolicyDecision) GoPointer() uintptr
- func (x *ResponsePolicyDecision) IsMainFrameMainResource() bool
- func (x *ResponsePolicyDecision) IsMimeTypeSupported() bool
- func (c *ResponsePolicyDecision) SetGoPointer(ptr uintptr)
- type ResponsePolicyDecisionClass
- type SaveMode
- type ScriptDialog
- func (x *ScriptDialog) Close()
- func (x *ScriptDialog) ConfirmSetConfirmed(ConfirmedVar bool)
- func (x *ScriptDialog) GetDialogType() ScriptDialogType
- func (x *ScriptDialog) GetMessage() string
- func (x *ScriptDialog) GoPointer() uintptr
- func (x *ScriptDialog) PromptGetDefaultText() string
- func (x *ScriptDialog) PromptSetText(TextVar string)
- func (x *ScriptDialog) Ref() *ScriptDialog
- func (x *ScriptDialog) Unref()
- type ScriptDialogType
- type ScriptMessageReply
- type SecurityManager
- func (c *SecurityManager) GoPointer() uintptr
- func (x *SecurityManager) RegisterUriSchemeAsCorsEnabled(SchemeVar string)
- func (x *SecurityManager) RegisterUriSchemeAsDisplayIsolated(SchemeVar string)
- func (x *SecurityManager) RegisterUriSchemeAsEmptyDocument(SchemeVar string)
- func (x *SecurityManager) RegisterUriSchemeAsLocal(SchemeVar string)
- func (x *SecurityManager) RegisterUriSchemeAsNoAccess(SchemeVar string)
- func (x *SecurityManager) RegisterUriSchemeAsSecure(SchemeVar string)
- func (c *SecurityManager) SetGoPointer(ptr uintptr)
- func (x *SecurityManager) UriSchemeIsCorsEnabled(SchemeVar string) bool
- func (x *SecurityManager) UriSchemeIsDisplayIsolated(SchemeVar string) bool
- func (x *SecurityManager) UriSchemeIsEmptyDocument(SchemeVar string) bool
- func (x *SecurityManager) UriSchemeIsLocal(SchemeVar string) bool
- func (x *SecurityManager) UriSchemeIsNoAccess(SchemeVar string) bool
- func (x *SecurityManager) UriSchemeIsSecure(SchemeVar string) bool
- type SecurityManagerClass
- type SecurityOrigin
- type Settings
- func (x *Settings) ApplyFromKeyFile(KeyFileVar *glib.KeyFile, GroupNameVar string) (bool, error)
- func (x *Settings) GetAllowFileAccessFromFileUrls() bool
- func (x *Settings) GetAllowModalDialogs() bool
- func (x *Settings) GetAllowTopNavigationToDataUrls() bool
- func (x *Settings) GetAllowUniversalAccessFromFileUrls() bool
- func (x *Settings) GetAutoLoadImages() bool
- func (x *Settings) GetCursiveFontFamily() string
- func (x *Settings) GetDefaultCharset() string
- func (x *Settings) GetDefaultFontFamily() string
- func (x *Settings) GetDefaultFontSize() uint32
- func (x *Settings) GetDefaultMonospaceFontSize() uint32
- func (x *Settings) GetDisableWebSecurity() bool
- func (x *Settings) GetDrawCompositingIndicators() bool
- func (x *Settings) GetEnable2dCanvasAcceleration() bool
- func (x *Settings) GetEnableBackForwardNavigationGestures() bool
- func (x *Settings) GetEnableCaretBrowsing() bool
- func (x *Settings) GetEnableDeveloperExtras() bool
- func (x *Settings) GetEnableDnsPrefetching() bool
- func (x *Settings) GetEnableEncryptedMedia() bool
- func (x *Settings) GetEnableFullscreen() bool
- func (x *Settings) GetEnableHtml5Database() bool
- func (x *Settings) GetEnableHtml5LocalStorage() bool
- func (x *Settings) GetEnableHyperlinkAuditing() bool
- func (x *Settings) GetEnableJavascript() bool
- func (x *Settings) GetEnableJavascriptMarkup() bool
- func (x *Settings) GetEnableMedia() bool
- func (x *Settings) GetEnableMediaCapabilities() bool
- func (x *Settings) GetEnableMediaStream() bool
- func (x *Settings) GetEnableMediasource() bool
- func (x *Settings) GetEnableMockCaptureDevices() bool
- func (x *Settings) GetEnableOfflineWebApplicationCache() bool
- func (x *Settings) GetEnablePageCache() bool
- func (x *Settings) GetEnableResizableTextAreas() bool
- func (x *Settings) GetEnableSiteSpecificQuirks() bool
- func (x *Settings) GetEnableSmoothScrolling() bool
- func (x *Settings) GetEnableSpatialNavigation() bool
- func (x *Settings) GetEnableTabsToLinks() bool
- func (x *Settings) GetEnableWebaudio() bool
- func (x *Settings) GetEnableWebgl() bool
- func (x *Settings) GetEnableWebrtc() bool
- func (x *Settings) GetEnableWriteConsoleMessagesToStdout() bool
- func (x *Settings) GetFantasyFontFamily() string
- func (x *Settings) GetFeatureEnabled(FeatureVar *Feature) bool
- func (x *Settings) GetHardwareAccelerationPolicy() HardwareAccelerationPolicy
- func (x *Settings) GetJavascriptCanAccessClipboard() bool
- func (x *Settings) GetJavascriptCanOpenWindowsAutomatically() bool
- func (x *Settings) GetLoadIconsIgnoringImageLoadSetting() bool
- func (x *Settings) GetMediaContentTypesRequiringHardwareSupport() string
- func (x *Settings) GetMediaPlaybackAllowsInline() bool
- func (x *Settings) GetMediaPlaybackRequiresUserGesture() bool
- func (x *Settings) GetMinimumFontSize() uint32
- func (x *Settings) GetMonospaceFontFamily() string
- func (x *Settings) GetPictographFontFamily() string
- func (x *Settings) GetPrintBackgrounds() bool
- func (x *Settings) GetPropertyAllowFileAccessFromFileUrls() bool
- func (x *Settings) GetPropertyAllowModalDialogs() bool
- func (x *Settings) GetPropertyAllowTopNavigationToDataUrls() bool
- func (x *Settings) GetPropertyAllowUniversalAccessFromFileUrls() bool
- func (x *Settings) GetPropertyAutoLoadImages() bool
- func (x *Settings) GetPropertyCursiveFontFamily() string
- func (x *Settings) GetPropertyDefaultCharset() string
- func (x *Settings) GetPropertyDefaultFontFamily() string
- func (x *Settings) GetPropertyDefaultFontSize() uint
- func (x *Settings) GetPropertyDefaultMonospaceFontSize() uint
- func (x *Settings) GetPropertyDisableWebSecurity() bool
- func (x *Settings) GetPropertyDrawCompositingIndicators() bool
- func (x *Settings) GetPropertyEnable2dCanvasAcceleration() bool
- func (x *Settings) GetPropertyEnableBackForwardNavigationGestures() bool
- func (x *Settings) GetPropertyEnableCaretBrowsing() bool
- func (x *Settings) GetPropertyEnableDeveloperExtras() bool
- func (x *Settings) GetPropertyEnableDnsPrefetching() bool
- func (x *Settings) GetPropertyEnableEncryptedMedia() bool
- func (x *Settings) GetPropertyEnableFullscreen() bool
- func (x *Settings) GetPropertyEnableHtml5Database() bool
- func (x *Settings) GetPropertyEnableHtml5LocalStorage() bool
- func (x *Settings) GetPropertyEnableHyperlinkAuditing() bool
- func (x *Settings) GetPropertyEnableJavascript() bool
- func (x *Settings) GetPropertyEnableJavascriptMarkup() bool
- func (x *Settings) GetPropertyEnableMedia() bool
- func (x *Settings) GetPropertyEnableMediaCapabilities() bool
- func (x *Settings) GetPropertyEnableMediaStream() bool
- func (x *Settings) GetPropertyEnableMediasource() bool
- func (x *Settings) GetPropertyEnableMockCaptureDevices() bool
- func (x *Settings) GetPropertyEnableOfflineWebApplicationCache() bool
- func (x *Settings) GetPropertyEnablePageCache() bool
- func (x *Settings) GetPropertyEnableResizableTextAreas() bool
- func (x *Settings) GetPropertyEnableSiteSpecificQuirks() bool
- func (x *Settings) GetPropertyEnableSmoothScrolling() bool
- func (x *Settings) GetPropertyEnableSpatialNavigation() bool
- func (x *Settings) GetPropertyEnableTabsToLinks() bool
- func (x *Settings) GetPropertyEnableWebaudio() bool
- func (x *Settings) GetPropertyEnableWebgl() bool
- func (x *Settings) GetPropertyEnableWebrtc() bool
- func (x *Settings) GetPropertyEnableWriteConsoleMessagesToStdout() bool
- func (x *Settings) GetPropertyFantasyFontFamily() string
- func (x *Settings) GetPropertyJavascriptCanAccessClipboard() bool
- func (x *Settings) GetPropertyJavascriptCanOpenWindowsAutomatically() bool
- func (x *Settings) GetPropertyLoadIconsIgnoringImageLoadSetting() bool
- func (x *Settings) GetPropertyMediaContentTypesRequiringHardwareSupport() string
- func (x *Settings) GetPropertyMediaPlaybackAllowsInline() bool
- func (x *Settings) GetPropertyMediaPlaybackRequiresUserGesture() bool
- func (x *Settings) GetPropertyMinimumFontSize() uint
- func (x *Settings) GetPropertyMonospaceFontFamily() string
- func (x *Settings) GetPropertyPictographFontFamily() string
- func (x *Settings) GetPropertyPrintBackgrounds() bool
- func (x *Settings) GetPropertySansSerifFontFamily() string
- func (x *Settings) GetPropertySerifFontFamily() string
- func (x *Settings) GetPropertyUserAgent() string
- func (x *Settings) GetPropertyWebrtcUdpPortsRange() string
- func (x *Settings) GetPropertyZoomTextOnly() bool
- func (x *Settings) GetSansSerifFontFamily() string
- func (x *Settings) GetSerifFontFamily() string
- func (x *Settings) GetUserAgent() string
- func (x *Settings) GetWebrtcUdpPortsRange() string
- func (x *Settings) GetZoomTextOnly() bool
- func (c *Settings) GoPointer() uintptr
- func (x *Settings) SetAllowFileAccessFromFileUrls(AllowedVar bool)
- func (x *Settings) SetAllowModalDialogs(AllowedVar bool)
- func (x *Settings) SetAllowTopNavigationToDataUrls(AllowedVar bool)
- func (x *Settings) SetAllowUniversalAccessFromFileUrls(AllowedVar bool)
- func (x *Settings) SetAutoLoadImages(EnabledVar bool)
- func (x *Settings) SetCursiveFontFamily(CursiveFontFamilyVar string)
- func (x *Settings) SetDefaultCharset(DefaultCharsetVar string)
- func (x *Settings) SetDefaultFontFamily(DefaultFontFamilyVar string)
- func (x *Settings) SetDefaultFontSize(FontSizeVar uint32)
- func (x *Settings) SetDefaultMonospaceFontSize(FontSizeVar uint32)
- func (x *Settings) SetDisableWebSecurity(DisabledVar bool)
- func (x *Settings) SetDrawCompositingIndicators(EnabledVar bool)
- func (x *Settings) SetEnable2dCanvasAcceleration(EnabledVar bool)
- func (x *Settings) SetEnableBackForwardNavigationGestures(EnabledVar bool)
- func (x *Settings) SetEnableCaretBrowsing(EnabledVar bool)
- func (x *Settings) SetEnableDeveloperExtras(EnabledVar bool)
- func (x *Settings) SetEnableDnsPrefetching(EnabledVar bool)
- func (x *Settings) SetEnableEncryptedMedia(EnabledVar bool)
- func (x *Settings) SetEnableFullscreen(EnabledVar bool)
- func (x *Settings) SetEnableHtml5Database(EnabledVar bool)
- func (x *Settings) SetEnableHtml5LocalStorage(EnabledVar bool)
- func (x *Settings) SetEnableHyperlinkAuditing(EnabledVar bool)
- func (x *Settings) SetEnableJavascript(EnabledVar bool)
- func (x *Settings) SetEnableJavascriptMarkup(EnabledVar bool)
- func (x *Settings) SetEnableMedia(EnabledVar bool)
- func (x *Settings) SetEnableMediaCapabilities(EnabledVar bool)
- func (x *Settings) SetEnableMediaStream(EnabledVar bool)
- func (x *Settings) SetEnableMediasource(EnabledVar bool)
- func (x *Settings) SetEnableMockCaptureDevices(EnabledVar bool)
- func (x *Settings) SetEnableOfflineWebApplicationCache(EnabledVar bool)
- func (x *Settings) SetEnablePageCache(EnabledVar bool)
- func (x *Settings) SetEnableResizableTextAreas(EnabledVar bool)
- func (x *Settings) SetEnableSiteSpecificQuirks(EnabledVar bool)
- func (x *Settings) SetEnableSmoothScrolling(EnabledVar bool)
- func (x *Settings) SetEnableSpatialNavigation(EnabledVar bool)
- func (x *Settings) SetEnableTabsToLinks(EnabledVar bool)
- func (x *Settings) SetEnableWebaudio(EnabledVar bool)
- func (x *Settings) SetEnableWebgl(EnabledVar bool)
- func (x *Settings) SetEnableWebrtc(EnabledVar bool)
- func (x *Settings) SetEnableWriteConsoleMessagesToStdout(EnabledVar bool)
- func (x *Settings) SetFantasyFontFamily(FantasyFontFamilyVar string)
- func (x *Settings) SetFeatureEnabled(FeatureVar *Feature, EnabledVar bool)
- func (c *Settings) SetGoPointer(ptr uintptr)
- func (x *Settings) SetHardwareAccelerationPolicy(PolicyVar HardwareAccelerationPolicy)
- func (x *Settings) SetJavascriptCanAccessClipboard(EnabledVar bool)
- func (x *Settings) SetJavascriptCanOpenWindowsAutomatically(EnabledVar bool)
- func (x *Settings) SetLoadIconsIgnoringImageLoadSetting(EnabledVar bool)
- func (x *Settings) SetMediaContentTypesRequiringHardwareSupport(ContentTypesVar *string)
- func (x *Settings) SetMediaPlaybackAllowsInline(EnabledVar bool)
- func (x *Settings) SetMediaPlaybackRequiresUserGesture(EnabledVar bool)
- func (x *Settings) SetMinimumFontSize(FontSizeVar uint32)
- func (x *Settings) SetMonospaceFontFamily(MonospaceFontFamilyVar string)
- func (x *Settings) SetPictographFontFamily(PictographFontFamilyVar string)
- func (x *Settings) SetPrintBackgrounds(PrintBackgroundsVar bool)
- func (x *Settings) SetPropertyAllowFileAccessFromFileUrls(value bool)
- func (x *Settings) SetPropertyAllowModalDialogs(value bool)
- func (x *Settings) SetPropertyAllowTopNavigationToDataUrls(value bool)
- func (x *Settings) SetPropertyAllowUniversalAccessFromFileUrls(value bool)
- func (x *Settings) SetPropertyAutoLoadImages(value bool)
- func (x *Settings) SetPropertyCursiveFontFamily(value string)
- func (x *Settings) SetPropertyDefaultCharset(value string)
- func (x *Settings) SetPropertyDefaultFontFamily(value string)
- func (x *Settings) SetPropertyDefaultFontSize(value uint)
- func (x *Settings) SetPropertyDefaultMonospaceFontSize(value uint)
- func (x *Settings) SetPropertyDisableWebSecurity(value bool)
- func (x *Settings) SetPropertyDrawCompositingIndicators(value bool)
- func (x *Settings) SetPropertyEnable2dCanvasAcceleration(value bool)
- func (x *Settings) SetPropertyEnableBackForwardNavigationGestures(value bool)
- func (x *Settings) SetPropertyEnableCaretBrowsing(value bool)
- func (x *Settings) SetPropertyEnableDeveloperExtras(value bool)
- func (x *Settings) SetPropertyEnableDnsPrefetching(value bool)
- func (x *Settings) SetPropertyEnableEncryptedMedia(value bool)
- func (x *Settings) SetPropertyEnableFullscreen(value bool)
- func (x *Settings) SetPropertyEnableHtml5Database(value bool)
- func (x *Settings) SetPropertyEnableHtml5LocalStorage(value bool)
- func (x *Settings) SetPropertyEnableHyperlinkAuditing(value bool)
- func (x *Settings) SetPropertyEnableJavascript(value bool)
- func (x *Settings) SetPropertyEnableJavascriptMarkup(value bool)
- func (x *Settings) SetPropertyEnableMedia(value bool)
- func (x *Settings) SetPropertyEnableMediaCapabilities(value bool)
- func (x *Settings) SetPropertyEnableMediaStream(value bool)
- func (x *Settings) SetPropertyEnableMediasource(value bool)
- func (x *Settings) SetPropertyEnableMockCaptureDevices(value bool)
- func (x *Settings) SetPropertyEnableOfflineWebApplicationCache(value bool)
- func (x *Settings) SetPropertyEnablePageCache(value bool)
- func (x *Settings) SetPropertyEnableResizableTextAreas(value bool)
- func (x *Settings) SetPropertyEnableSiteSpecificQuirks(value bool)
- func (x *Settings) SetPropertyEnableSmoothScrolling(value bool)
- func (x *Settings) SetPropertyEnableSpatialNavigation(value bool)
- func (x *Settings) SetPropertyEnableTabsToLinks(value bool)
- func (x *Settings) SetPropertyEnableWebaudio(value bool)
- func (x *Settings) SetPropertyEnableWebgl(value bool)
- func (x *Settings) SetPropertyEnableWebrtc(value bool)
- func (x *Settings) SetPropertyEnableWriteConsoleMessagesToStdout(value bool)
- func (x *Settings) SetPropertyFantasyFontFamily(value string)
- func (x *Settings) SetPropertyJavascriptCanAccessClipboard(value bool)
- func (x *Settings) SetPropertyJavascriptCanOpenWindowsAutomatically(value bool)
- func (x *Settings) SetPropertyLoadIconsIgnoringImageLoadSetting(value bool)
- func (x *Settings) SetPropertyMediaContentTypesRequiringHardwareSupport(value string)
- func (x *Settings) SetPropertyMediaPlaybackAllowsInline(value bool)
- func (x *Settings) SetPropertyMediaPlaybackRequiresUserGesture(value bool)
- func (x *Settings) SetPropertyMinimumFontSize(value uint)
- func (x *Settings) SetPropertyMonospaceFontFamily(value string)
- func (x *Settings) SetPropertyPictographFontFamily(value string)
- func (x *Settings) SetPropertyPrintBackgrounds(value bool)
- func (x *Settings) SetPropertySansSerifFontFamily(value string)
- func (x *Settings) SetPropertySerifFontFamily(value string)
- func (x *Settings) SetPropertyUserAgent(value string)
- func (x *Settings) SetPropertyWebrtcUdpPortsRange(value string)
- func (x *Settings) SetPropertyZoomTextOnly(value bool)
- func (x *Settings) SetSansSerifFontFamily(SansSerifFontFamilyVar string)
- func (x *Settings) SetSerifFontFamily(SerifFontFamilyVar string)
- func (x *Settings) SetUserAgent(UserAgentVar *string)
- func (x *Settings) SetUserAgentWithApplicationDetails(ApplicationNameVar *string, ApplicationVersionVar *string)
- func (x *Settings) SetWebrtcUdpPortsRange(UdpPortRangeVar string)
- func (x *Settings) SetZoomTextOnly(ZoomTextOnlyVar bool)
- type SettingsClass
- type SnapshotError
- type SnapshotOptions
- type SnapshotRegion
- type TLSErrorsPolicy
- type URIRequest
- func (x *URIRequest) GetHttpHeaders() *soup.MessageHeaders
- func (x *URIRequest) GetHttpMethod() string
- func (x *URIRequest) GetPropertyUri() string
- func (x *URIRequest) GetUri() string
- func (c *URIRequest) GoPointer() uintptr
- func (c *URIRequest) SetGoPointer(ptr uintptr)
- func (x *URIRequest) SetPropertyUri(value string)
- func (x *URIRequest) SetUri(UriVar string)
- type URIRequestClass
- type URIResponse
- func (x *URIResponse) GetContentLength() uint64
- func (x *URIResponse) GetHttpHeaders() *soup.MessageHeaders
- func (x *URIResponse) GetMimeType() string
- func (x *URIResponse) GetPropertyContentLength() uint64
- func (x *URIResponse) GetPropertyHttpHeaders() uintptr
- func (x *URIResponse) GetPropertyMimeType() string
- func (x *URIResponse) GetPropertyStatusCode() uint
- func (x *URIResponse) GetPropertySuggestedFilename() string
- func (x *URIResponse) GetPropertyUri() string
- func (x *URIResponse) GetStatusCode() uint
- func (x *URIResponse) GetSuggestedFilename() string
- func (x *URIResponse) GetUri() string
- func (c *URIResponse) GoPointer() uintptr
- func (c *URIResponse) SetGoPointer(ptr uintptr)
- type URIResponseClass
- type URISchemeRequest
- func (x *URISchemeRequest) Finish(StreamVar *gio.InputStream, StreamLengthVar int64, ContentTypeVar *string)
- func (x *URISchemeRequest) FinishError(ErrorVar *glib.Error)
- func (x *URISchemeRequest) FinishWithResponse(ResponseVar *URISchemeResponse)
- func (x *URISchemeRequest) GetHttpBody() *gio.InputStream
- func (x *URISchemeRequest) GetHttpHeaders() *soup.MessageHeaders
- func (x *URISchemeRequest) GetHttpMethod() string
- func (x *URISchemeRequest) GetPath() string
- func (x *URISchemeRequest) GetScheme() string
- func (x *URISchemeRequest) GetUri() string
- func (x *URISchemeRequest) GetWebView() *WebView
- func (c *URISchemeRequest) GoPointer() uintptr
- func (c *URISchemeRequest) SetGoPointer(ptr uintptr)
- type URISchemeRequestCallback
- type URISchemeRequestClass
- type URISchemeResponse
- func (c *URISchemeResponse) GoPointer() uintptr
- func (x *URISchemeResponse) SetContentType(ContentTypeVar string)
- func (c *URISchemeResponse) SetGoPointer(ptr uintptr)
- func (x *URISchemeResponse) SetHttpHeaders(HeadersVar *soup.MessageHeaders)
- func (x *URISchemeResponse) SetPropertyStreamLength(value int64)
- func (x *URISchemeResponse) SetStatus(StatusCodeVar uint, ReasonPhraseVar *string)
- type URISchemeResponseClass
- type UserContentFilter
- type UserContentFilterError
- type UserContentFilterStore
- func (x *UserContentFilterStore) FetchIdentifiers(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, ...)
- func (x *UserContentFilterStore) FetchIdentifiersFinish(ResultVar gio.AsyncResult) []string
- func (x *UserContentFilterStore) GetPath() string
- func (x *UserContentFilterStore) GetPropertyPath() string
- func (c *UserContentFilterStore) GoPointer() uintptr
- func (x *UserContentFilterStore) Load(IdentifierVar string, CancellableVar *gio.Cancellable, ...)
- func (x *UserContentFilterStore) LoadFinish(ResultVar gio.AsyncResult) (*UserContentFilter, error)
- func (x *UserContentFilterStore) Remove(IdentifierVar string, CancellableVar *gio.Cancellable, ...)
- func (x *UserContentFilterStore) RemoveFinish(ResultVar gio.AsyncResult) (bool, error)
- func (x *UserContentFilterStore) Save(IdentifierVar string, SourceVar *glib.Bytes, CancellableVar *gio.Cancellable, ...)
- func (x *UserContentFilterStore) SaveFinish(ResultVar gio.AsyncResult) (*UserContentFilter, error)
- func (x *UserContentFilterStore) SaveFromFile(IdentifierVar string, FileVar gio.File, CancellableVar *gio.Cancellable, ...)
- func (x *UserContentFilterStore) SaveFromFileFinish(ResultVar gio.AsyncResult) (*UserContentFilter, error)
- func (c *UserContentFilterStore) SetGoPointer(ptr uintptr)
- func (x *UserContentFilterStore) SetPropertyPath(value string)
- type UserContentFilterStoreClass
- type UserContentInjectedFrames
- type UserContentManager
- func (x *UserContentManager) AddFilter(FilterVar *UserContentFilter)
- func (x *UserContentManager) AddScript(ScriptVar *UserScript)
- func (x *UserContentManager) AddStyleSheet(StylesheetVar *UserStyleSheet)
- func (x *UserContentManager) ConnectScriptMessageReceived(cb *func(UserContentManager, uintptr)) uint
- func (x *UserContentManager) ConnectScriptMessageReceivedWithDetail(detail string, cb *func(UserContentManager, uintptr)) uint
- func (x *UserContentManager) ConnectScriptMessageWithReplyReceived(cb *func(UserContentManager, uintptr, uintptr) bool) uint
- func (x *UserContentManager) ConnectScriptMessageWithReplyReceivedWithDetail(detail string, cb *func(UserContentManager, uintptr, uintptr) bool) uint
- func (c *UserContentManager) GoPointer() uintptr
- func (x *UserContentManager) RegisterScriptMessageHandler(NameVar string, WorldNameVar *string) bool
- func (x *UserContentManager) RegisterScriptMessageHandlerWithReply(NameVar string, WorldNameVar *string) bool
- func (x *UserContentManager) RemoveAllFilters()
- func (x *UserContentManager) RemoveAllScripts()
- func (x *UserContentManager) RemoveAllStyleSheets()
- func (x *UserContentManager) RemoveFilter(FilterVar *UserContentFilter)
- func (x *UserContentManager) RemoveFilterById(FilterIdVar string)
- func (x *UserContentManager) RemoveScript(ScriptVar *UserScript)
- func (x *UserContentManager) RemoveStyleSheet(StylesheetVar *UserStyleSheet)
- func (c *UserContentManager) SetGoPointer(ptr uintptr)
- func (x *UserContentManager) UnregisterScriptMessageHandler(NameVar string, WorldNameVar *string)
- type UserContentManagerClass
- type UserMediaPermissionRequest
- func (x *UserMediaPermissionRequest) Allow()
- func (x *UserMediaPermissionRequest) Deny()
- func (x *UserMediaPermissionRequest) GetPropertyIsForAudioDevice() bool
- func (x *UserMediaPermissionRequest) GetPropertyIsForVideoDevice() bool
- func (c *UserMediaPermissionRequest) GoPointer() uintptr
- func (c *UserMediaPermissionRequest) SetGoPointer(ptr uintptr)
- type UserMediaPermissionRequestClass
- type UserMessage
- func (x *UserMessage) GetFdList() *gio.UnixFDList
- func (x *UserMessage) GetName() string
- func (x *UserMessage) GetParameters() *glib.Variant
- func (x *UserMessage) GetPropertyName() string
- func (x *UserMessage) GetPropertyParameters() uintptr
- func (c *UserMessage) GoPointer() uintptr
- func (x *UserMessage) SendReply(ReplyVar *UserMessage)
- func (c *UserMessage) SetGoPointer(ptr uintptr)
- func (x *UserMessage) SetPropertyName(value string)
- func (x *UserMessage) SetPropertyParameters(value uintptr)
- type UserMessageClass
- type UserMessageError
- type UserScript
- type UserScriptInjectionTime
- type UserStyleLevel
- type UserStyleSheet
- type WebContext
- func (x *WebContext) AddPathToSandbox(PathVar string, ReadOnlyVar bool)
- func (x *WebContext) ConnectAutomationStarted(cb *func(WebContext, uintptr)) uint
- func (x *WebContext) ConnectInitializeNotificationPermissions(cb *func(WebContext)) uint
- func (x *WebContext) ConnectInitializeWebProcessExtensions(cb *func(WebContext)) uint
- func (x *WebContext) ConnectUserMessageReceived(cb *func(WebContext, uintptr) bool) uint
- func (x *WebContext) GetCacheModel() CacheModel
- func (x *WebContext) GetGeolocationManager() *GeolocationManager
- func (x *WebContext) GetNetworkSessionForAutomation() *NetworkSession
- func (x *WebContext) GetPropertyTimeZoneOverride() string
- func (x *WebContext) GetSecurityManager() *SecurityManager
- func (x *WebContext) GetSpellCheckingEnabled() bool
- func (x *WebContext) GetSpellCheckingLanguages() []string
- func (x *WebContext) GetTimeZoneOverride() string
- func (c *WebContext) GoPointer() uintptr
- func (x *WebContext) InitializeNotificationPermissions(AllowedOriginsVar *glib.List, DisallowedOriginsVar *glib.List)
- func (x *WebContext) IsAutomationAllowed() bool
- func (x *WebContext) RegisterUriScheme(SchemeVar string, CallbackVar *URISchemeRequestCallback, UserDataVar uintptr, ...)
- func (x *WebContext) SendMessageToAllExtensions(MessageVar *UserMessage)
- func (x *WebContext) SetAutomationAllowed(AllowedVar bool)
- func (x *WebContext) SetCacheModel(CacheModelVar CacheModel)
- func (c *WebContext) SetGoPointer(ptr uintptr)
- func (x *WebContext) SetPreferredLanguages(LanguagesVar []string)
- func (x *WebContext) SetPropertyMemoryPressureSettings(value uintptr)
- func (x *WebContext) SetPropertyTimeZoneOverride(value string)
- func (x *WebContext) SetSpellCheckingEnabled(EnabledVar bool)
- func (x *WebContext) SetSpellCheckingLanguages(LanguagesVar []string)
- func (x *WebContext) SetWebProcessExtensionsDirectory(DirectoryVar string)
- func (x *WebContext) SetWebProcessExtensionsInitializationUserData(UserDataVar *glib.Variant)
- type WebContextClass
- type WebContextOptions
- type WebExtensionMatchPattern
- func NewWebExtensionMatchPatternAllHostsAndSchemes() *WebExtensionMatchPattern
- func NewWebExtensionMatchPatternAllUrls() *WebExtensionMatchPattern
- func NewWebExtensionMatchPatternWithScheme(SchemeVar string, HostVar string, PathVar string) (*WebExtensionMatchPattern, error)
- func NewWebExtensionMatchPatternWithString(StringVar string) (*WebExtensionMatchPattern, error)
- func (x *WebExtensionMatchPattern) GetHost() string
- func (x *WebExtensionMatchPattern) GetMatchesAllHosts() bool
- func (x *WebExtensionMatchPattern) GetMatchesAllUrls() bool
- func (x *WebExtensionMatchPattern) GetPath() string
- func (x *WebExtensionMatchPattern) GetScheme() string
- func (x *WebExtensionMatchPattern) GetString() string
- func (x *WebExtensionMatchPattern) GoPointer() uintptr
- func (x *WebExtensionMatchPattern) MatchesPattern(PatternVar *WebExtensionMatchPattern, ...) bool
- func (x *WebExtensionMatchPattern) MatchesUrl(UrlVar string, OptionsVar WebExtensionMatchPatternOptions) bool
- func (x *WebExtensionMatchPattern) Ref() *WebExtensionMatchPattern
- func (x *WebExtensionMatchPattern) Unref()
- type WebExtensionMatchPatternError
- type WebExtensionMatchPatternOptions
- type WebExtensionMode
- type WebInspector
- func (x *WebInspector) Attach()
- func (x *WebInspector) Close()
- func (x *WebInspector) ConnectAttach(cb *func(WebInspector) bool) uint
- func (x *WebInspector) ConnectBringToFront(cb *func(WebInspector) bool) uint
- func (x *WebInspector) ConnectClosed(cb *func(WebInspector)) uint
- func (x *WebInspector) ConnectDetach(cb *func(WebInspector) bool) uint
- func (x *WebInspector) ConnectOpenWindow(cb *func(WebInspector) bool) uint
- func (x *WebInspector) Detach()
- func (x *WebInspector) GetAttachedHeight() uint
- func (x *WebInspector) GetCanAttach() bool
- func (x *WebInspector) GetInspectedUri() string
- func (x *WebInspector) GetPropertyAttachedHeight() uint
- func (x *WebInspector) GetPropertyCanAttach() bool
- func (x *WebInspector) GetPropertyInspectedUri() string
- func (x *WebInspector) GetWebView() *WebViewBase
- func (c *WebInspector) GoPointer() uintptr
- func (x *WebInspector) IsAttached() bool
- func (c *WebInspector) SetGoPointer(ptr uintptr)
- func (x *WebInspector) Show()
- type WebInspectorClass
- type WebProcessTerminationReason
- type WebResource
- func (x *WebResource) ConnectFailed(cb *func(WebResource, uintptr)) uint
- func (x *WebResource) ConnectFailedWithTlsErrors(cb *func(WebResource, uintptr, gio.TlsCertificateFlags)) uint
- func (x *WebResource) ConnectFinished(cb *func(WebResource)) uint
- func (x *WebResource) ConnectSentRequest(cb *func(WebResource, uintptr, uintptr)) uint
- func (x *WebResource) GetData(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, ...)
- func (x *WebResource) GetDataFinish(ResultVar gio.AsyncResult, LengthVar *uint) (uintptr, error)
- func (x *WebResource) GetPropertyUri() string
- func (x *WebResource) GetResponse() *URIResponse
- func (x *WebResource) GetUri() string
- func (c *WebResource) GoPointer() uintptr
- func (c *WebResource) SetGoPointer(ptr uintptr)
- type WebResourceClass
- type WebView
- func (x *WebView) Announce(MessageVar string, PriorityVar gtk.AccessibleAnnouncementPriority)
- func (x *WebView) CallAsyncJavascriptFunction(BodyVar string, LengthVar int, ArgumentsVar *glib.Variant, ...)
- func (x *WebView) CallAsyncJavascriptFunctionFinish(ResultVar gio.AsyncResult) (*javascriptcore.Value, error)
- func (x *WebView) CanExecuteEditingCommand(CommandVar string, CancellableVar *gio.Cancellable, ...)
- func (x *WebView) CanExecuteEditingCommandFinish(ResultVar gio.AsyncResult) (bool, error)
- func (x *WebView) CanGoBack() bool
- func (x *WebView) CanGoForward() bool
- func (x *WebView) CanShowMimeType(MimeTypeVar string) bool
- func (x *WebView) ConnectAuthenticate(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectClose(cb *func(WebView)) uint
- func (x *WebView) ConnectContextMenu(cb *func(WebView, uintptr, uintptr) bool) uint
- func (x *WebView) ConnectContextMenuDismissed(cb *func(WebView)) uint
- func (x *WebView) ConnectCreate(cb *func(WebView, uintptr) gtk.Widget) uint
- func (x *WebView) ConnectDecidePolicy(cb *func(WebView, uintptr, PolicyDecisionType) bool) uint
- func (x *WebView) ConnectEnterFullscreen(cb *func(WebView) bool) uint
- func (x *WebView) ConnectInsecureContentDetected(cb *func(WebView, InsecureContentEvent)) uint
- func (x *WebView) ConnectLeaveFullscreen(cb *func(WebView) bool) uint
- func (x *WebView) ConnectLoadChanged(cb *func(WebView, LoadEvent)) uint
- func (x *WebView) ConnectLoadFailed(cb *func(WebView, LoadEvent, string, uintptr) bool) uint
- func (x *WebView) ConnectLoadFailedWithTlsErrors(cb *func(WebView, string, uintptr, gio.TlsCertificateFlags) bool) uint
- func (x *WebView) ConnectMouseTargetChanged(cb *func(WebView, uintptr, uint)) uint
- func (x *WebView) ConnectPermissionRequest(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectPrint(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectQueryPermissionState(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectReadyToShow(cb *func(WebView)) uint
- func (x *WebView) ConnectResourceLoadStarted(cb *func(WebView, uintptr, uintptr)) uint
- func (x *WebView) ConnectRunAsModal(cb *func(WebView)) uint
- func (x *WebView) ConnectRunColorChooser(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectRunFileChooser(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectScriptDialog(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectShowNotification(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectShowOptionMenu(cb *func(WebView, uintptr, uintptr) bool) uint
- func (x *WebView) ConnectSubmitForm(cb *func(WebView, uintptr)) uint
- func (x *WebView) ConnectUserMessageReceived(cb *func(WebView, uintptr) bool) uint
- func (x *WebView) ConnectWebProcessTerminated(cb *func(WebView, WebProcessTerminationReason)) uint
- func (x *WebView) DownloadUri(UriVar string) *Download
- func (x *WebView) EvaluateJavascript(ScriptVar string, LengthVar int, WorldNameVar *string, SourceUriVar *string, ...)
- func (x *WebView) EvaluateJavascriptFinish(ResultVar gio.AsyncResult) (*javascriptcore.Value, error)
- func (x *WebView) ExecuteEditingCommand(CommandVar string)
- func (x *WebView) ExecuteEditingCommandWithArgument(CommandVar string, ArgumentVar string)
- func (x *WebView) GetAccessibleParent() *gtk.AccessibleBase
- func (x *WebView) GetAccessibleRole() gtk.AccessibleRole
- func (x *WebView) GetAtContext() *gtk.ATContext
- func (x *WebView) GetAutomationPresentationType() AutomationBrowsingContextPresentation
- func (x *WebView) GetBackForwardList() *BackForwardList
- func (x *WebView) GetBackgroundColor(RgbaVar *gdk.RGBA)
- func (x *WebView) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool
- func (x *WebView) GetBuildableId() string
- func (x *WebView) GetCameraCaptureState() MediaCaptureState
- func (x *WebView) GetContext() *WebContext
- func (x *WebView) GetCustomCharset() string
- func (x *WebView) GetDefaultContentSecurityPolicy() string
- func (x *WebView) GetDisplayCaptureState() MediaCaptureState
- func (x *WebView) GetEditorState() *EditorState
- func (x *WebView) GetEstimatedLoadProgress() float64
- func (x *WebView) GetFavicon() *gdk.Texture
- func (x *WebView) GetFindController() *FindController
- func (x *WebView) GetFirstAccessibleChild() *gtk.AccessibleBase
- func (x *WebView) GetInputMethodContext() *InputMethodContext
- func (x *WebView) GetInspector() *WebInspector
- func (x *WebView) GetIsMuted() bool
- func (x *WebView) GetIsWebProcessResponsive() bool
- func (x *WebView) GetMainResource() *WebResource
- func (x *WebView) GetMicrophoneCaptureState() MediaCaptureState
- func (x *WebView) GetNetworkSession() *NetworkSession
- func (x *WebView) GetNextAccessibleSibling() *gtk.AccessibleBase
- func (x *WebView) GetPageId() uint64
- func (x *WebView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool
- func (x *WebView) GetPropertyDefaultContentSecurityPolicy() string
- func (x *WebView) GetPropertyEditable() bool
- func (x *WebView) GetPropertyEstimatedLoadProgress() float64
- func (x *WebView) GetPropertyIsControlledByAutomation() bool
- func (x *WebView) GetPropertyIsLoading() bool
- func (x *WebView) GetPropertyIsMuted() bool
- func (x *WebView) GetPropertyIsPlayingAudio() bool
- func (x *WebView) GetPropertyIsWebProcessResponsive() bool
- func (x *WebView) GetPropertyPageId() uint64
- func (x *WebView) GetPropertyThemeColor() uintptr
- func (x *WebView) GetPropertyTitle() string
- func (x *WebView) GetPropertyUri() string
- func (x *WebView) GetPropertyZoomLevel() float64
- func (x *WebView) GetSessionState() *WebViewSessionState
- func (x *WebView) GetSettings() *Settings
- func (x *WebView) GetSnapshot(RegionVar SnapshotRegion, OptionsVar SnapshotOptions, ...)
- func (x *WebView) GetSnapshotFinish(ResultVar gio.AsyncResult) (*gdk.Texture, error)
- func (x *WebView) GetThemeColor(RgbaVar *gdk.RGBA) bool
- func (x *WebView) GetTitle() string
- func (x *WebView) GetTlsInfo(CertificateVar **gio.TlsCertificate, ErrorsVar *gio.TlsCertificateFlags) bool
- func (x *WebView) GetUri() string
- func (x *WebView) GetUserContentManager() *UserContentManager
- func (x *WebView) GetWebExtensionMode() WebExtensionMode
- func (x *WebView) GetWebsitePolicies() *WebsitePolicies
- func (x *WebView) GetWindowProperties() *WindowProperties
- func (x *WebView) GetZoomLevel() float64
- func (x *WebView) GoBack()
- func (x *WebView) GoForward()
- func (c *WebView) GoPointer() uintptr
- func (x *WebView) GoToBackForwardListItem(ListItemVar *BackForwardListItem)
- func (x *WebView) IsControlledByAutomation() bool
- func (x *WebView) IsEditable() bool
- func (x *WebView) IsLoading() bool
- func (x *WebView) IsPlayingAudio() bool
- func (x *WebView) LoadAlternateHtml(ContentVar string, ContentUriVar string, BaseUriVar *string)
- func (x *WebView) LoadBytes(BytesVar *glib.Bytes, MimeTypeVar *string, EncodingVar *string, ...)
- func (x *WebView) LoadHtml(ContentVar string, BaseUriVar *string)
- func (x *WebView) LoadPlainText(PlainTextVar string)
- func (x *WebView) LoadRequest(RequestVar *URIRequest)
- func (x *WebView) LoadUri(UriVar string)
- func (x *WebView) Reload()
- func (x *WebView) ReloadBypassCache()
- func (x *WebView) ResetProperty(PropertyVar gtk.AccessibleProperty)
- func (x *WebView) ResetRelation(RelationVar gtk.AccessibleRelation)
- func (x *WebView) ResetState(StateVar gtk.AccessibleState)
- func (x *WebView) RestoreSessionState(StateVar *WebViewSessionState)
- func (x *WebView) Save(SaveModeVar SaveMode, CancellableVar *gio.Cancellable, ...)
- func (x *WebView) SaveFinish(ResultVar gio.AsyncResult) (*gio.InputStream, error)
- func (x *WebView) SaveToFile(FileVar gio.File, SaveModeVar SaveMode, CancellableVar *gio.Cancellable, ...)
- func (x *WebView) SaveToFileFinish(ResultVar gio.AsyncResult) (bool, error)
- func (x *WebView) SendMessageToPage(MessageVar *UserMessage, CancellableVar *gio.Cancellable, ...)
- func (x *WebView) SendMessageToPageFinish(ResultVar gio.AsyncResult) (*UserMessage, error)
- func (x *WebView) SetAccessibleParent(ParentVar gtk.Accessible, NextSiblingVar gtk.Accessible)
- func (x *WebView) SetBackgroundColor(RgbaVar *gdk.RGBA)
- func (x *WebView) SetCameraCaptureState(StateVar MediaCaptureState)
- func (x *WebView) SetCorsAllowlist(AllowlistVar []string)
- func (x *WebView) SetCustomCharset(CharsetVar *string)
- func (x *WebView) SetDisplayCaptureState(StateVar MediaCaptureState)
- func (x *WebView) SetEditable(EditableVar bool)
- func (c *WebView) SetGoPointer(ptr uintptr)
- func (x *WebView) SetInputMethodContext(ContextVar *InputMethodContext)
- func (x *WebView) SetIsMuted(MutedVar bool)
- func (x *WebView) SetMicrophoneCaptureState(StateVar MediaCaptureState)
- func (x *WebView) SetPropertyDefaultContentSecurityPolicy(value string)
- func (x *WebView) SetPropertyEditable(value bool)
- func (x *WebView) SetPropertyIsControlledByAutomation(value bool)
- func (x *WebView) SetPropertyIsMuted(value bool)
- func (x *WebView) SetPropertyZoomLevel(value float64)
- func (x *WebView) SetSettings(SettingsVar *Settings)
- func (x *WebView) SetZoomLevel(ZoomLevelVar float64)
- func (x *WebView) StopLoading()
- func (x *WebView) TerminateWebProcess()
- func (x *WebView) TryClose()
- func (x *WebView) UpdateNextAccessibleSibling(NewSiblingVar gtk.Accessible)
- func (x *WebView) UpdatePlatformState(StateVar gtk.AccessiblePlatformState)
- func (x *WebView) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs ...interface{})
- func (x *WebView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ...)
- func (x *WebView) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs ...interface{})
- func (x *WebView) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ...)
- func (x *WebView) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interface{})
- func (x *WebView) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value)
- type WebViewBase
- func (x *WebViewBase) Announce(MessageVar string, PriorityVar gtk.AccessibleAnnouncementPriority)
- func (x *WebViewBase) GetAccessibleParent() *gtk.AccessibleBase
- func (x *WebViewBase) GetAccessibleRole() gtk.AccessibleRole
- func (x *WebViewBase) GetAtContext() *gtk.ATContext
- func (x *WebViewBase) GetBounds(XVar *int, YVar *int, WidthVar *int, HeightVar *int) bool
- func (x *WebViewBase) GetBuildableId() string
- func (x *WebViewBase) GetFirstAccessibleChild() *gtk.AccessibleBase
- func (x *WebViewBase) GetNextAccessibleSibling() *gtk.AccessibleBase
- func (x *WebViewBase) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool
- func (c *WebViewBase) GoPointer() uintptr
- func (x *WebViewBase) ResetProperty(PropertyVar gtk.AccessibleProperty)
- func (x *WebViewBase) ResetRelation(RelationVar gtk.AccessibleRelation)
- func (x *WebViewBase) ResetState(StateVar gtk.AccessibleState)
- func (x *WebViewBase) SetAccessibleParent(ParentVar gtk.Accessible, NextSiblingVar gtk.Accessible)
- func (c *WebViewBase) SetGoPointer(ptr uintptr)
- func (x *WebViewBase) UpdateNextAccessibleSibling(NewSiblingVar gtk.Accessible)
- func (x *WebViewBase) UpdatePlatformState(StateVar gtk.AccessiblePlatformState)
- func (x *WebViewBase) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs ...interface{})
- func (x *WebViewBase) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ...)
- func (x *WebViewBase) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs ...interface{})
- func (x *WebViewBase) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ...)
- func (x *WebViewBase) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interface{})
- func (x *WebViewBase) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value)
- type WebViewBaseClass
- func (x *WebViewBaseClass) GetWebkitReserved0() func()
- func (x *WebViewBaseClass) GetWebkitReserved1() func()
- func (x *WebViewBaseClass) GetWebkitReserved2() func()
- func (x *WebViewBaseClass) GetWebkitReserved3() func()
- func (x *WebViewBaseClass) GoPointer() uintptr
- func (x *WebViewBaseClass) OverrideWebkitReserved0(cb func())
- func (x *WebViewBaseClass) OverrideWebkitReserved1(cb func())
- func (x *WebViewBaseClass) OverrideWebkitReserved2(cb func())
- func (x *WebViewBaseClass) OverrideWebkitReserved3(cb func())
- type WebViewBasePrivate
- type WebViewClass
- func (x *WebViewClass) GetAuthenticate() func(*WebView, *AuthenticationRequest) bool
- func (x *WebViewClass) GetClose() func(*WebView)
- func (x *WebViewClass) GetContextMenu() func(*WebView, *ContextMenu, *HitTestResult) bool
- func (x *WebViewClass) GetContextMenuDismissed() func(*WebView)
- func (x *WebViewClass) GetCreate() func(*WebView, *NavigationAction) *gtk.Widget
- func (x *WebViewClass) GetDecidePolicy() func(*WebView, *PolicyDecision, PolicyDecisionType) bool
- func (x *WebViewClass) GetEnterFullscreen() func(*WebView) bool
- func (x *WebViewClass) GetInsecureContentDetected() func(*WebView, InsecureContentEvent)
- func (x *WebViewClass) GetLeaveFullscreen() func(*WebView) bool
- func (x *WebViewClass) GetLoadChanged() func(*WebView, LoadEvent)
- func (x *WebViewClass) GetLoadFailed() func(*WebView, LoadEvent, string, *glib.Error) bool
- func (x *WebViewClass) GetLoadFailedWithTlsErrors() func(*WebView, string, *gio.TlsCertificate, gio.TlsCertificateFlags) bool
- func (x *WebViewClass) GetMouseTargetChanged() func(*WebView, *HitTestResult, uint)
- func (x *WebViewClass) GetPermissionRequest() func(*WebView, PermissionRequest) bool
- func (x *WebViewClass) GetPrint() func(*WebView, *PrintOperation) bool
- func (x *WebViewClass) GetQueryPermissionState() func(*WebView, *PermissionStateQuery) bool
- func (x *WebViewClass) GetReadyToShow() func(*WebView)
- func (x *WebViewClass) GetResourceLoadStarted() func(*WebView, *WebResource, *URIRequest)
- func (x *WebViewClass) GetRunAsModal() func(*WebView)
- func (x *WebViewClass) GetRunColorChooser() func(*WebView, *ColorChooserRequest) bool
- func (x *WebViewClass) GetRunFileChooser() func(*WebView, *FileChooserRequest) bool
- func (x *WebViewClass) GetScriptDialog() func(*WebView, *ScriptDialog) bool
- func (x *WebViewClass) GetShowNotification() func(*WebView, *Notification) bool
- func (x *WebViewClass) GetShowOptionMenu() func(*WebView, *OptionMenu, *gdk.Rectangle) bool
- func (x *WebViewClass) GetSubmitForm() func(*WebView, *FormSubmissionRequest)
- func (x *WebViewClass) GetUserMessageReceived() func(*WebView, *UserMessage) bool
- func (x *WebViewClass) GetWebProcessCrashed() func(*WebView) bool
- func (x *WebViewClass) GetWebProcessTerminated() func(*WebView, WebProcessTerminationReason)
- func (x *WebViewClass) GetWebkitReserved0() func()
- func (x *WebViewClass) GetWebkitReserved1() func()
- func (x *WebViewClass) GetWebkitReserved2() func()
- func (x *WebViewClass) GetWebkitReserved3() func()
- func (x *WebViewClass) GetWebkitReserved4() func()
- func (x *WebViewClass) GetWebkitReserved5() func()
- func (x *WebViewClass) GetWebkitReserved6() func()
- func (x *WebViewClass) GetWebkitReserved7() func()
- func (x *WebViewClass) GetWebkitReserved8() func()
- func (x *WebViewClass) GetWebkitReserved9() func()
- func (x *WebViewClass) GetWebkitReserved10() func()
- func (x *WebViewClass) GetWebkitReserved11() func()
- func (x *WebViewClass) GetWebkitReserved12() func()
- func (x *WebViewClass) GetWebkitReserved13() func()
- func (x *WebViewClass) GetWebkitReserved14() func()
- func (x *WebViewClass) GetWebkitReserved15() func()
- func (x *WebViewClass) GetWebkitReserved16() func()
- func (x *WebViewClass) GetWebkitReserved17() func()
- func (x *WebViewClass) GetWebkitReserved18() func()
- func (x *WebViewClass) GetWebkitReserved19() func()
- func (x *WebViewClass) GetWebkitReserved20() func()
- func (x *WebViewClass) GetWebkitReserved21() func()
- func (x *WebViewClass) GetWebkitReserved22() func()
- func (x *WebViewClass) GetWebkitReserved23() func()
- func (x *WebViewClass) GetWebkitReserved24() func()
- func (x *WebViewClass) GetWebkitReserved25() func()
- func (x *WebViewClass) GetWebkitReserved26() func()
- func (x *WebViewClass) GetWebkitReserved27() func()
- func (x *WebViewClass) GetWebkitReserved28() func()
- func (x *WebViewClass) GetWebkitReserved29() func()
- func (x *WebViewClass) GetWebkitReserved30() func()
- func (x *WebViewClass) GoPointer() uintptr
- func (x *WebViewClass) OverrideAuthenticate(cb func(*WebView, *AuthenticationRequest) bool)
- func (x *WebViewClass) OverrideClose(cb func(*WebView))
- func (x *WebViewClass) OverrideContextMenu(cb func(*WebView, *ContextMenu, *HitTestResult) bool)
- func (x *WebViewClass) OverrideContextMenuDismissed(cb func(*WebView))
- func (x *WebViewClass) OverrideCreate(cb func(*WebView, *NavigationAction) *gtk.Widget)
- func (x *WebViewClass) OverrideDecidePolicy(cb func(*WebView, *PolicyDecision, PolicyDecisionType) bool)
- func (x *WebViewClass) OverrideEnterFullscreen(cb func(*WebView) bool)
- func (x *WebViewClass) OverrideInsecureContentDetected(cb func(*WebView, InsecureContentEvent))
- func (x *WebViewClass) OverrideLeaveFullscreen(cb func(*WebView) bool)
- func (x *WebViewClass) OverrideLoadChanged(cb func(*WebView, LoadEvent))
- func (x *WebViewClass) OverrideLoadFailed(cb func(*WebView, LoadEvent, string, *glib.Error) bool)
- func (x *WebViewClass) OverrideLoadFailedWithTlsErrors(cb func(*WebView, string, *gio.TlsCertificate, gio.TlsCertificateFlags) bool)
- func (x *WebViewClass) OverrideMouseTargetChanged(cb func(*WebView, *HitTestResult, uint))
- func (x *WebViewClass) OverridePermissionRequest(cb func(*WebView, PermissionRequest) bool)
- func (x *WebViewClass) OverridePrint(cb func(*WebView, *PrintOperation) bool)
- func (x *WebViewClass) OverrideQueryPermissionState(cb func(*WebView, *PermissionStateQuery) bool)
- func (x *WebViewClass) OverrideReadyToShow(cb func(*WebView))
- func (x *WebViewClass) OverrideResourceLoadStarted(cb func(*WebView, *WebResource, *URIRequest))
- func (x *WebViewClass) OverrideRunAsModal(cb func(*WebView))
- func (x *WebViewClass) OverrideRunColorChooser(cb func(*WebView, *ColorChooserRequest) bool)
- func (x *WebViewClass) OverrideRunFileChooser(cb func(*WebView, *FileChooserRequest) bool)
- func (x *WebViewClass) OverrideScriptDialog(cb func(*WebView, *ScriptDialog) bool)
- func (x *WebViewClass) OverrideShowNotification(cb func(*WebView, *Notification) bool)
- func (x *WebViewClass) OverrideShowOptionMenu(cb func(*WebView, *OptionMenu, *gdk.Rectangle) bool)
- func (x *WebViewClass) OverrideSubmitForm(cb func(*WebView, *FormSubmissionRequest))
- func (x *WebViewClass) OverrideUserMessageReceived(cb func(*WebView, *UserMessage) bool)
- func (x *WebViewClass) OverrideWebProcessCrashed(cb func(*WebView) bool)
- func (x *WebViewClass) OverrideWebProcessTerminated(cb func(*WebView, WebProcessTerminationReason))
- func (x *WebViewClass) OverrideWebkitReserved0(cb func())
- func (x *WebViewClass) OverrideWebkitReserved1(cb func())
- func (x *WebViewClass) OverrideWebkitReserved2(cb func())
- func (x *WebViewClass) OverrideWebkitReserved3(cb func())
- func (x *WebViewClass) OverrideWebkitReserved4(cb func())
- func (x *WebViewClass) OverrideWebkitReserved5(cb func())
- func (x *WebViewClass) OverrideWebkitReserved6(cb func())
- func (x *WebViewClass) OverrideWebkitReserved7(cb func())
- func (x *WebViewClass) OverrideWebkitReserved8(cb func())
- func (x *WebViewClass) OverrideWebkitReserved9(cb func())
- func (x *WebViewClass) OverrideWebkitReserved10(cb func())
- func (x *WebViewClass) OverrideWebkitReserved11(cb func())
- func (x *WebViewClass) OverrideWebkitReserved12(cb func())
- func (x *WebViewClass) OverrideWebkitReserved13(cb func())
- func (x *WebViewClass) OverrideWebkitReserved14(cb func())
- func (x *WebViewClass) OverrideWebkitReserved15(cb func())
- func (x *WebViewClass) OverrideWebkitReserved16(cb func())
- func (x *WebViewClass) OverrideWebkitReserved17(cb func())
- func (x *WebViewClass) OverrideWebkitReserved18(cb func())
- func (x *WebViewClass) OverrideWebkitReserved19(cb func())
- func (x *WebViewClass) OverrideWebkitReserved20(cb func())
- func (x *WebViewClass) OverrideWebkitReserved21(cb func())
- func (x *WebViewClass) OverrideWebkitReserved22(cb func())
- func (x *WebViewClass) OverrideWebkitReserved23(cb func())
- func (x *WebViewClass) OverrideWebkitReserved24(cb func())
- func (x *WebViewClass) OverrideWebkitReserved25(cb func())
- func (x *WebViewClass) OverrideWebkitReserved26(cb func())
- func (x *WebViewClass) OverrideWebkitReserved27(cb func())
- func (x *WebViewClass) OverrideWebkitReserved28(cb func())
- func (x *WebViewClass) OverrideWebkitReserved29(cb func())
- func (x *WebViewClass) OverrideWebkitReserved30(cb func())
- type WebViewOptions
- type WebViewPrivate
- type WebViewSessionState
- type WebsiteData
- type WebsiteDataAccessPermissionRequest
- func (x *WebsiteDataAccessPermissionRequest) Allow()
- func (x *WebsiteDataAccessPermissionRequest) Deny()
- func (x *WebsiteDataAccessPermissionRequest) GetCurrentDomain() string
- func (x *WebsiteDataAccessPermissionRequest) GetRequestingDomain() string
- func (c *WebsiteDataAccessPermissionRequest) GoPointer() uintptr
- func (c *WebsiteDataAccessPermissionRequest) SetGoPointer(ptr uintptr)
- type WebsiteDataAccessPermissionRequestClass
- type WebsiteDataManager
- func (x *WebsiteDataManager) Clear(TypesVar WebsiteDataTypes, TimespanVar glib.TimeSpan, ...)
- func (x *WebsiteDataManager) ClearFinish(ResultVar gio.AsyncResult) (bool, error)
- func (x *WebsiteDataManager) Fetch(TypesVar WebsiteDataTypes, CancellableVar *gio.Cancellable, ...)
- func (x *WebsiteDataManager) FetchFinish(ResultVar gio.AsyncResult) (*glib.List, error)
- func (x *WebsiteDataManager) GetBaseCacheDirectory() string
- func (x *WebsiteDataManager) GetBaseDataDirectory() string
- func (x *WebsiteDataManager) GetFaviconDatabase() *FaviconDatabase
- func (x *WebsiteDataManager) GetFaviconsEnabled() bool
- func (x *WebsiteDataManager) GetItpSummary(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, ...)
- func (x *WebsiteDataManager) GetItpSummaryFinish(ResultVar gio.AsyncResult) (*glib.List, error)
- func (x *WebsiteDataManager) GetPropertyBaseCacheDirectory() string
- func (x *WebsiteDataManager) GetPropertyBaseDataDirectory() string
- func (x *WebsiteDataManager) GetPropertyIsEphemeral() bool
- func (c *WebsiteDataManager) GoPointer() uintptr
- func (x *WebsiteDataManager) IsEphemeral() bool
- func (x *WebsiteDataManager) Remove(TypesVar WebsiteDataTypes, WebsiteDataVar *glib.List, ...)
- func (x *WebsiteDataManager) RemoveFinish(ResultVar gio.AsyncResult) (bool, error)
- func (x *WebsiteDataManager) SetFaviconsEnabled(EnabledVar bool)
- func (c *WebsiteDataManager) SetGoPointer(ptr uintptr)
- func (x *WebsiteDataManager) SetPropertyBaseCacheDirectory(value string)
- func (x *WebsiteDataManager) SetPropertyBaseDataDirectory(value string)
- func (x *WebsiteDataManager) SetPropertyIsEphemeral(value bool)
- func (x *WebsiteDataManager) SetPropertyOriginStorageRatio(value float64)
- func (x *WebsiteDataManager) SetPropertyTotalStorageRatio(value float64)
- type WebsiteDataManagerClass
- type WebsiteDataTypes
- type WebsitePolicies
- type WebsitePoliciesClass
- type WindowProperties
- func (x *WindowProperties) GetFullscreen() bool
- func (x *WindowProperties) GetGeometry(GeometryVar *gdk.Rectangle)
- func (x *WindowProperties) GetLocationbarVisible() bool
- func (x *WindowProperties) GetMenubarVisible() bool
- func (x *WindowProperties) GetPropertyFullscreen() bool
- func (x *WindowProperties) GetPropertyGeometry() uintptr
- func (x *WindowProperties) GetPropertyLocationbarVisible() bool
- func (x *WindowProperties) GetPropertyMenubarVisible() bool
- func (x *WindowProperties) GetPropertyResizable() bool
- func (x *WindowProperties) GetPropertyScrollbarsVisible() bool
- func (x *WindowProperties) GetPropertyStatusbarVisible() bool
- func (x *WindowProperties) GetPropertyToolbarVisible() bool
- func (x *WindowProperties) GetResizable() bool
- func (x *WindowProperties) GetScrollbarsVisible() bool
- func (x *WindowProperties) GetStatusbarVisible() bool
- func (x *WindowProperties) GetToolbarVisible() bool
- func (c *WindowProperties) GoPointer() uintptr
- func (c *WindowProperties) SetGoPointer(ptr uintptr)
- func (x *WindowProperties) SetPropertyFullscreen(value bool)
- func (x *WindowProperties) SetPropertyGeometry(value uintptr)
- func (x *WindowProperties) SetPropertyLocationbarVisible(value bool)
- func (x *WindowProperties) SetPropertyMenubarVisible(value bool)
- func (x *WindowProperties) SetPropertyResizable(value bool)
- func (x *WindowProperties) SetPropertyScrollbarsVisible(value bool)
- func (x *WindowProperties) SetPropertyStatusbarVisible(value bool)
- func (x *WindowProperties) SetPropertyToolbarVisible(value bool)
- type WindowPropertiesClass
Constants ¶
const ( // The copy clipboard command. Copies the current selection inside // a #WebKitWebView to the clipboard. // You can check whether it's possible to execute the command with // webkit_web_view_can_execute_editing_command(). In general it's // possible to copy to the clipboard when there is an active selection // inside the #WebKitWebView. EDITING_COMMAND_COPY string = "Copy" // The create link command. Creates a link element that is inserted at // the current cursor position. If there's a selection, the selected text // will be used as the link text, otherwise the URL itself will be used. // It receives the link URL as argument. This command should be executed // with webkit_web_view_execute_editing_command_with_argument() EDITING_COMMAND_CREATE_LINK string = "CreateLink" // The cut clipboard command. Copies the current selection inside // a #WebKitWebView to the clipboard and deletes the selected content. // You can check whether it's possible to execute the command with // webkit_web_view_can_execute_editing_command(). In general it's // possible to cut to the clipboard when the #WebKitWebView content is // editable and there is an active selection. EDITING_COMMAND_CUT string = "Cut" // The insert image command. Creates an image element that is inserted at // the current cursor position. It receives an URI as argument, // that is used as the image source. This command should be executed with // webkit_web_view_execute_editing_command_with_argument(). EDITING_COMMAND_INSERT_IMAGE string = "InsertImage" // The paste clipboard command. Pastes the contents of the clipboard to // a #WebKitWebView. // You can check whether it's possible to execute the command with // webkit_web_view_can_execute_editing_command(). In general it's possible // to paste from the clipboard when the #WebKitWebView content is editable // and clipboard is not empty. EDITING_COMMAND_PASTE string = "Paste" // The paste as plaintext clipboard command. Pastes the contents of the // clipboard to a #WebKitWebView, with formatting removed. // You can check whether it's possible to execute the command with // webkit_web_view_can_execute_editing_command(). In general it's possible // to paste from the clipboard when the #WebKitWebView content is editable // and clipboard is not empty. EDITING_COMMAND_PASTE_AS_PLAIN_TEXT string = "PasteAsPlainText" // The redo command. Redoes a previously undone editing command in // a #WebKitWebView. // You can check whether it's possible to execute the command with // webkit_web_view_can_execute_editing_command(). It's only possible // to redo a command when it has been previously undone. EDITING_COMMAND_REDO string = "Redo" // The select all command. Selects all the content of the current text field in // a #WebKitWebView. // It is always possible to select all text, no matter whether the // #WebKitWebView content is editable or not. You can still check it // with webkit_web_view_can_execute_editing_command(). EDITING_COMMAND_SELECT_ALL string = "SelectAll" // The undo command. Undoes the last editing command in a #WebKitWebView. // You can check whether it's possible to execute the command with // webkit_web_view_can_execute_editing_command(). It's only possible // to undo a command after a previously executed editing operation. EDITING_COMMAND_UNDO string = "Undo" )
const ( // Like webkit_get_major_version(), but from the headers used at // application compile time, rather than from the library linked // against at application run time. MAJOR_VERSION int = 2 // Like webkit_get_micro_version(), but from the headers used at // application compile time, rather than from the library linked // against at application run time. MICRO_VERSION int = 4 // Like webkit_get_minor_version(), but from the headers used at // application compile time, rather than from the library linked // against at application run time. MINOR_VERSION int = 50 )
Variables ¶
var XWebkitPermissionRequestAllow func(uintptr)
var XWebkitPermissionRequestDeny func(uintptr)
Functions ¶
func ApplicationInfoGLibType ¶
func AutoplayPolicyGLibType ¶
func BackForwardListGLibType ¶
func CacheModelGLibType ¶
func ContextMenuGLibType ¶
func ContextMenuItemGLibType ¶
func CookieManagerGLibType ¶
func CredentialGLibType ¶
func DownloadErrorGLibType ¶
func DownloadErrorQuark ¶
Gets the quark for the domain of download errors.
func DownloadGLibType ¶
func EditorStateGLibType ¶
func FaviconDatabaseErrorQuark ¶
Gets the quark for the domain of favicon database errors.
func FaviconDatabaseGLibType ¶
func FeatureGLibType ¶
func FeatureListGLibType ¶
func FeatureStatusGLibType ¶
func FindControllerGLibType ¶
func FindOptionsGLibType ¶
func GetMajorVersion ¶
func GetMajorVersion() uint
Returns the major version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 1.)
This function is in the library, so it represents the WebKit library your code is running against. Contrast with the #WEBKIT_MAJOR_VERSION macro, which represents the major version of the WebKit headers you have included when compiling your code.
func GetMicroVersion ¶
func GetMicroVersion() uint
Returns the micro version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 3.)
This function is in the library, so it represents the WebKit library your code is running against. Contrast with the #WEBKIT_MICRO_VERSION macro, which represents the micro version of the WebKit headers you have included when compiling your code.
func GetMinorVersion ¶
func GetMinorVersion() uint
Returns the minor version number of the WebKit library.
(e.g. in WebKit version 1.8.3 this is 8.)
This function is in the library, so it represents the WebKit library your code is running against. Contrast with the #WEBKIT_MINOR_VERSION macro, which represents the minor version of the WebKit headers you have included when compiling your code.
func HitTestResultGLibType ¶
func ITPFirstPartyGLibType ¶
func ITPThirdPartyGLibType ¶
func InputHintsGLibType ¶
func InputPurposeGLibType ¶
func JavascriptErrorGLibType ¶
func JavascriptErrorQuark ¶
Gets the quark for the domain of JavaScript errors.
func LoadEventGLibType ¶
func MediaErrorGLibType ¶
func MediaErrorQuark ¶
Gets the quark for the domain of media errors.
func MediaKeySystemPermissionGetName ¶
func MediaKeySystemPermissionGetName(RequestVar *MediaKeySystemPermissionRequest) string
Get the key system for which access permission is being requested.
func NavigationTypeGLibType ¶
func NetworkErrorGLibType ¶
func NetworkErrorQuark ¶
Gets the quark for the domain of networking errors.
func NetworkSessionGLibType ¶
func NetworkSessionSetMemoryPressureSettings ¶
func NetworkSessionSetMemoryPressureSettings(SettingsVar *MemoryPressureSettings)
Sets @settings as the #WebKitMemoryPressureSettings.
Sets @settings as the #WebKitMemoryPressureSettings to be used by the network process created by any instance of #WebKitNetworkSession after this function is called.
Be sure to call this function before creating any #WebKitNetworkSession.
The periodic check for used memory is disabled by default on network processes. This will be enabled only if custom settings have been set using this function. After that, in order to remove the custom settings and disable the periodic check, this function must be called passing %NULL as the value of @settings.
func NotificationGLibType ¶
func OptionMenuGLibType ¶
func OptionMenuItemGLibType ¶
func PermissionStateGLibType ¶
func PolicyDecisionGLibType ¶
func PolicyErrorGLibType ¶
func PolicyErrorQuark ¶
Gets the quark for the domain of policy errors.
func PrintErrorGLibType ¶
func PrintErrorQuark ¶
Gets the quark for the domain of printing errors.
func PrintOperationGLibType ¶
func SaveModeGLibType ¶
func ScriptDialogGLibType ¶
func SecurityManagerGLibType ¶
func SecurityOriginGLibType ¶
func SettingsFontSizeToPixels ¶
Convert @points to the equivalent value in pixels.
Applications can use this function to convert font size values in points to font size values in pixels when setting the font size properties of #WebKitSettings.
func SettingsFontSizeToPoints ¶
Convert @pixels to the equivalent value in points.
Applications can use this function to convert font size values in pixels to font size values in points when getting the font size properties of #WebKitSettings.
func SettingsGLibType ¶
func SnapshotErrorGLibType ¶
func SnapshotErrorQuark ¶
Gets the quark for the domain of page snapshot errors.
func SnapshotOptionsGLibType ¶
func SnapshotRegionGLibType ¶
func TLSErrorsPolicyGLibType ¶
func URIRequestGLibType ¶
func URIResponseGLibType ¶
func UriForDisplay ¶
Use this function to format a URI for display.
The URIs used internally by WebKit may contain percent-encoded characters or Punycode, which are not generally suitable to display to users. This function provides protection against IDN homograph attacks, so in some cases the host part of the returned URI may be in Punycode if the safety check fails.
func UserContentFilterErrorQuark ¶
Gets the quark for the domain of user content filter errors.
func UserMediaPermissionIsForAudioDevice ¶
func UserMediaPermissionIsForAudioDevice(RequestVar *UserMediaPermissionRequest) bool
Check whether the permission request is for an audio device.
func UserMediaPermissionIsForDisplayDevice ¶
func UserMediaPermissionIsForDisplayDevice(RequestVar *UserMediaPermissionRequest) bool
Check whether the permission request is for a display device.
func UserMediaPermissionIsForVideoDevice ¶
func UserMediaPermissionIsForVideoDevice(RequestVar *UserMediaPermissionRequest) bool
Check whether the permission request is for a video device.
func UserMessageErrorQuark ¶
Gets the quark for the domain of user message errors.
func UserMessageGLibType ¶
func UserScriptGLibType ¶
func UserStyleLevelGLibType ¶
func UserStyleSheetGLibType ¶
func WebContextGLibType ¶
func WebExtensionMatchPatternErrorQuark ¶
Gets the quark for the domain of Web Extension Match Pattern errors.
func WebExtensionMatchPatternRegisterCustomURLScheme ¶
func WebExtensionMatchPatternRegisterCustomURLScheme(UrlSchemeVar string)
Registers a custom URL scheme that can be used in match patterns.
This method should be used to register any custom URL schemes used by the app for the extension base URLs, other than `webkit-extension`, or if extensions should have access to other supported URL schemes when using `<all_urls>`.
func WebInspectorGLibType ¶
func WebResourceGLibType ¶
func WebViewBaseGLibType ¶
func WebViewGLibType ¶
func WebsiteDataGLibType ¶
func WebsitePoliciesGLibType ¶
Types ¶
type ApplicationInfo ¶
type ApplicationInfo struct {
// contains filtered or unexported fields
}
Information about an application running in automation mode.
func NewApplicationInfo ¶
func NewApplicationInfo() *ApplicationInfo
Creates a new #WebKitApplicationInfo
func (*ApplicationInfo) GetName ¶
func (x *ApplicationInfo) GetName() string
Get the name of the application.
If webkit_application_info_set_name() hasn't been called with a valid name, this returns g_get_prgname().
func (*ApplicationInfo) GetVersion ¶
func (x *ApplicationInfo) GetVersion(MajorVar *uint64, MinorVar *uint64, MicroVar *uint64)
Get the application version previously set with webkit_application_info_set_version().
func (*ApplicationInfo) GoPointer ¶
func (x *ApplicationInfo) GoPointer() uintptr
func (*ApplicationInfo) Ref ¶
func (x *ApplicationInfo) Ref() *ApplicationInfo
Atomically increments the reference count of @info by one.
This function is MT-safe and may be called from any thread.
func (*ApplicationInfo) SetName ¶
func (x *ApplicationInfo) SetName(NameVar string)
Set the name of the application.
If not provided, or %NULL is passed, g_get_prgname() will be used.
func (*ApplicationInfo) SetVersion ¶
func (x *ApplicationInfo) SetVersion(MajorVar uint64, MinorVar uint64, MicroVar uint64)
Set the application version.
If the application doesn't use the format major.minor.micro you can pass 0 as the micro to use major.minor, or pass 0 as both micro and minor to use only major number. Any other format must be converted to major.minor.micro so that it can be used in version comparisons.
func (*ApplicationInfo) Unref ¶
func (x *ApplicationInfo) Unref()
Atomically decrements the reference count of @info by one.
If the reference count drops to 0, all memory allocated by the #WebKitApplicationInfo is released. This function is MT-safe and may be called from any thread.
type AuthenticationRequest ¶
Represents an authentication request.
Whenever a client attempts to load a page protected by HTTP authentication, credentials will need to be provided to authorize access. To allow the client to decide how it wishes to handle authentication, WebKit will fire a #WebKitWebView::authenticate signal with a WebKitAuthenticationRequest object to provide client side authentication support. Credentials are exposed through the #WebKitCredential object.
In case the client application does not wish to handle this signal WebKit will provide a default handler. To handle authentication asynchronously, simply increase the reference count of the WebKitAuthenticationRequest object.
func AuthenticationRequestNewFromInternalPtr ¶
func AuthenticationRequestNewFromInternalPtr(ptr uintptr) *AuthenticationRequest
func (*AuthenticationRequest) Authenticate ¶
func (x *AuthenticationRequest) Authenticate(CredentialVar *Credential)
Authenticate the #WebKitAuthenticationRequest.
Authenticate the #WebKitAuthenticationRequest using the #WebKitCredential supplied. To continue without credentials, pass %NULL as @credential.
func (*AuthenticationRequest) CanSaveCredentials ¶
func (x *AuthenticationRequest) CanSaveCredentials() bool
Determine whether this #WebKitAuthenticationRequest should allow the storage of credentials.
Determine whether the authentication method associated with this #WebKitAuthenticationRequest should allow the storage of credentials. This will return %FALSE if WebKit doesn't support credential storing, if private browsing is enabled, or if persistent credential storage has been disabled in #WebKitWebsiteDataManager, unless credentials saving has been explicitly enabled with webkit_authentication_request_set_can_save_credentials().
func (*AuthenticationRequest) Cancel ¶
func (x *AuthenticationRequest) Cancel()
Cancel the authentication challenge.
This will also cancel the page loading and result in a #WebKitWebView::load-failed signal with a #WebKitNetworkError of type %WEBKIT_NETWORK_ERROR_CANCELLED being emitted.
func (*AuthenticationRequest) ConnectAuthenticated ¶
func (x *AuthenticationRequest) ConnectAuthenticated(cb *func(AuthenticationRequest, uintptr)) uint
This signal is emitted when the user authentication request succeeded. Applications handling their own credential storage should connect to this signal to save the credentials.
func (*AuthenticationRequest) ConnectCancelled ¶
func (x *AuthenticationRequest) ConnectCancelled(cb *func(AuthenticationRequest)) uint
This signal is emitted when the user authentication request is cancelled. It allows the application to dismiss its authentication dialog in case of page load failure for example.
func (*AuthenticationRequest) GetCertificatePinFlags ¶
func (x *AuthenticationRequest) GetCertificatePinFlags() gio.TlsPasswordFlags
Get the #GTlsPasswordFlags of the %WEBKIT_AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE_PIN_REQUESTED authentication challenge.
func (*AuthenticationRequest) GetHost ¶
func (x *AuthenticationRequest) GetHost() string
Get the host that this authentication challenge is applicable to.
func (*AuthenticationRequest) GetPort ¶
func (x *AuthenticationRequest) GetPort() uint
Get the port that this authentication challenge is applicable to.
func (*AuthenticationRequest) GetProposedCredential ¶
func (x *AuthenticationRequest) GetProposedCredential() *Credential
Get the #WebKitCredential of the proposed authentication challenge.
Get the #WebKitCredential of the proposed authentication challenge that was stored from a previous session. The client can use this directly for authentication or construct their own #WebKitCredential.
func (*AuthenticationRequest) GetRealm ¶
func (x *AuthenticationRequest) GetRealm() string
Get the realm that this authentication challenge is applicable to.
func (*AuthenticationRequest) GetScheme ¶
func (x *AuthenticationRequest) GetScheme() AuthenticationScheme
Get the authentication scheme of the authentication challenge.
func (*AuthenticationRequest) GetSecurityOrigin ¶
func (x *AuthenticationRequest) GetSecurityOrigin() *SecurityOrigin
Get the #WebKitSecurityOrigin that this authentication challenge is applicable to.
func (*AuthenticationRequest) GoPointer ¶
func (c *AuthenticationRequest) GoPointer() uintptr
func (*AuthenticationRequest) IsForProxy ¶
func (x *AuthenticationRequest) IsForProxy() bool
Determine whether the authentication challenge is associated with a proxy server.
Determine whether the authentication challenge is associated with a proxy server rather than an "origin" server.
func (*AuthenticationRequest) IsRetry ¶
func (x *AuthenticationRequest) IsRetry() bool
Determine whether this this is a first attempt or a retry for this authentication challenge.
func (*AuthenticationRequest) SetCanSaveCredentials ¶
func (x *AuthenticationRequest) SetCanSaveCredentials(EnabledVar bool)
Set whether the authentication method associated with @request should allow the storage of credentials.
Set whether the authentication method associated with @request should allow the storage of credentials. This should be used by applications handling their own credentials storage to indicate that it should be supported even when internal credential storage is disabled or unsupported. Note that storing of credentials will not be allowed on ephemeral sessions in any case.
func (*AuthenticationRequest) SetGoPointer ¶
func (c *AuthenticationRequest) SetGoPointer(ptr uintptr)
func (*AuthenticationRequest) SetProposedCredential ¶
func (x *AuthenticationRequest) SetProposedCredential(CredentialVar *Credential)
Set the #WebKitCredential of the proposed authentication challenge.
Set the #WebKitCredential of the proposed authentication challenge that was stored from a previous session. This should only be used by applications handling their own credential storage. (When using the default WebKit credential storage, webkit_authentication_request_get_proposed_credential() already contains previously-stored credentials.) Passing a %NULL @credential will clear the proposed credential.
type AuthenticationRequestClass ¶
type AuthenticationRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*AuthenticationRequestClass) GoPointer ¶
func (x *AuthenticationRequestClass) GoPointer() uintptr
type AuthenticationScheme ¶
type AuthenticationScheme int
Enum values representing the authentication scheme.
const ( // The default authentication scheme of WebKit. AuthenticationSchemeDefaultValue AuthenticationScheme = 1 // Basic authentication scheme as defined in RFC 2617. AuthenticationSchemeHttpBasicValue AuthenticationScheme = 2 // Digest authentication scheme as defined in RFC 2617. AuthenticationSchemeHttpDigestValue AuthenticationScheme = 3 // HTML Form authentication. AuthenticationSchemeHtmlFormValue AuthenticationScheme = 4 // NTLM Microsoft proprietary authentication scheme. AuthenticationSchemeNtlmValue AuthenticationScheme = 5 // Negotiate (or SPNEGO) authentication scheme as defined in RFC 4559. AuthenticationSchemeNegotiateValue AuthenticationScheme = 6 // Client Certificate Authentication (see RFC 2246). AuthenticationSchemeClientCertificateRequestedValue AuthenticationScheme = 7 // Server Trust Authentication. AuthenticationSchemeServerTrustEvaluationRequestedValue AuthenticationScheme = 8 // Client certificate PIN required for use. Since: 2.34 AuthenticationSchemeClientCertificatePinRequestedValue AuthenticationScheme = 9 // Authentication scheme unknown. AuthenticationSchemeUnknownValue AuthenticationScheme = 100 )
type AutomationBrowsingContextPresentation ¶
type AutomationBrowsingContextPresentation int
Enum values used for determining the automation browsing context presentation.
const ( // a window AutomationBrowsingContextPresentationWindowValue AutomationBrowsingContextPresentation = 0 // a tab AutomationBrowsingContextPresentationTabValue AutomationBrowsingContextPresentation = 1 )
type AutomationSession ¶
Automation Session.
WebKitAutomationSession represents an automation session of a WebKitWebContext. When a new session is requested, a WebKitAutomationSession is created and the signal WebKitWebContext::automation-started is emitted with the WebKitAutomationSession as argument. Then, the automation client can request the session to create a new #WebKitWebView to interact with it. When this happens the signal #WebKitAutomationSession::create-web-view is emitted.
func AutomationSessionNewFromInternalPtr ¶
func AutomationSessionNewFromInternalPtr(ptr uintptr) *AutomationSession
func (*AutomationSession) ConnectCreateWebView ¶
func (x *AutomationSession) ConnectCreateWebView(cb *func(AutomationSession) WebView) uint
This signal is emitted when the automation client requests a new browsing context to interact with it. The callback handler should return a #WebKitWebView created with #WebKitWebView:is-controlled-by-automation construct property enabled and #WebKitWebView:automation-presentation-type construct property set if needed.
If the signal is emitted with "tab" detail, the returned #WebKitWebView should be a new web view added to a new tab of the current browsing context window. If the signal is emitted with "window" detail, the returned #WebKitWebView should be a new web view added to a new window. When creating a new web view and there's an active browsing context, the new window or tab shouldn't be focused.
func (*AutomationSession) ConnectCreateWebViewWithDetail ¶ added in v0.0.7
func (x *AutomationSession) ConnectCreateWebViewWithDetail(detail string, cb *func(AutomationSession) WebView) uint
ConnectCreateWebViewWithDetail connects to the "create-web-view" signal with a detail string. The detail is appended as "create-web-view::<detail>".
func (*AutomationSession) ConnectWillClose ¶
func (x *AutomationSession) ConnectWillClose(cb *func(AutomationSession)) uint
This signal is emitted when the given automation session is about to finish. It allows clients to perform any cleanup tasks before the session is destroyed.
func (*AutomationSession) GetApplicationInfo ¶
func (x *AutomationSession) GetApplicationInfo() *ApplicationInfo
Get the the previously set #WebKitAutomationSession.
Get the #WebKitAutomationSession previously set with webkit_automation_session_set_application_info().
func (*AutomationSession) GetId ¶
func (x *AutomationSession) GetId() string
Get the unique identifier of a #WebKitAutomationSession
func (*AutomationSession) GetPropertyId ¶ added in v0.0.4
func (x *AutomationSession) GetPropertyId() string
GetPropertyId gets the "id" property. The session unique identifier.
func (*AutomationSession) GoPointer ¶
func (c *AutomationSession) GoPointer() uintptr
func (*AutomationSession) SetApplicationInfo ¶
func (x *AutomationSession) SetApplicationInfo(InfoVar *ApplicationInfo)
Set the application information to @session.
This information will be used by the driver service to match the requested capabilities with the actual application information. If this information is not provided to the session when a new automation session is requested, the creation might fail if the client requested a specific browser name or version. This will not have any effect when called after the automation session has been fully created, so this must be called in the callback of #WebKitWebContext::automation-started signal.
func (*AutomationSession) SetGoPointer ¶
func (c *AutomationSession) SetGoPointer(ptr uintptr)
func (*AutomationSession) SetPropertyId ¶ added in v0.0.4
func (x *AutomationSession) SetPropertyId(value string)
SetPropertyId sets the "id" property. The session unique identifier.
type AutomationSessionClass ¶
type AutomationSessionClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*AutomationSessionClass) GoPointer ¶
func (x *AutomationSessionClass) GoPointer() uintptr
type AutoplayPolicy ¶
type AutoplayPolicy int
Enum values used to specify autoplay policies.
const ( // Do not restrict autoplay. AutoplayAllowValue AutoplayPolicy = 0 // Allow videos to autoplay if // they have no audio track, or if their audio track is muted. AutoplayAllowWithoutSoundValue AutoplayPolicy = 1 // Never allow autoplay. AutoplayDenyValue AutoplayPolicy = 2 )
type BackForwardList ¶
List of visited pages.
WebKitBackForwardList maintains a list of visited pages used to navigate to recent pages. Items are inserted in the list in the order they are visited.
WebKitBackForwardList also maintains the notion of the current item (which is always at index 0), the preceding item (which is at index -1), and the following item (which is at index 1). Methods webkit_web_view_go_back() and webkit_web_view_go_forward() move the current item backward or forward by one. Method webkit_web_view_go_to_back_forward_list_item() sets the current item to the specified item. All other methods returning #WebKitBackForwardListItem<!-- -->s do not change the value of the current item, they just return the requested item or items.
func BackForwardListNewFromInternalPtr ¶
func BackForwardListNewFromInternalPtr(ptr uintptr) *BackForwardList
func (*BackForwardList) ConnectChanged ¶
func (x *BackForwardList) ConnectChanged(cb *func(BackForwardList, uintptr, uintptr)) uint
This signal is emitted when @back_forward_list changes. This happens when the current item is updated, a new item is added or one or more items are removed. Note that both @item_added and @items_removed can %NULL when only the current item is updated. Items are only removed when the list is cleared or the maximum items limit is reached.
func (*BackForwardList) GetBackItem ¶
func (x *BackForwardList) GetBackItem() *BackForwardListItem
Returns the item that precedes the current item.
func (*BackForwardList) GetBackList ¶
func (x *BackForwardList) GetBackList() *glib.List
Obtain the list of items preceding the current one.
func (*BackForwardList) GetBackListWithLimit ¶
func (x *BackForwardList) GetBackListWithLimit(LimitVar uint) *glib.List
Obtain a list up to some number of items preceding the current one.
func (*BackForwardList) GetCurrentItem ¶
func (x *BackForwardList) GetCurrentItem() *BackForwardListItem
Returns the current item in @back_forward_list.
func (*BackForwardList) GetForwardItem ¶
func (x *BackForwardList) GetForwardItem() *BackForwardListItem
Returns the item that follows the current item.
func (*BackForwardList) GetForwardList ¶
func (x *BackForwardList) GetForwardList() *glib.List
Obtain the list of items following the current one.
func (*BackForwardList) GetForwardListWithLimit ¶
func (x *BackForwardList) GetForwardListWithLimit(LimitVar uint) *glib.List
Obtain a list up to some number of items following the current one.
func (*BackForwardList) GetLength ¶
func (x *BackForwardList) GetLength() uint
Obtain the amount of items in the list.
func (*BackForwardList) GetNthItem ¶
func (x *BackForwardList) GetNthItem(IndexVar int) *BackForwardListItem
Returns the item at a given index relative to the current item.
func (*BackForwardList) GoPointer ¶
func (c *BackForwardList) GoPointer() uintptr
func (*BackForwardList) SetGoPointer ¶
func (c *BackForwardList) SetGoPointer(ptr uintptr)
type BackForwardListClass ¶
type BackForwardListClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*BackForwardListClass) GoPointer ¶
func (x *BackForwardListClass) GoPointer() uintptr
type BackForwardListItem ¶
type BackForwardListItem struct {
gobject.InitiallyUnowned
}
One item of the #WebKitBackForwardList.
A history item is part of the #WebKitBackForwardList and consists out of a title and a URI.
func BackForwardListItemNewFromInternalPtr ¶
func BackForwardListItemNewFromInternalPtr(ptr uintptr) *BackForwardListItem
func (*BackForwardListItem) GetOriginalUri ¶
func (x *BackForwardListItem) GetOriginalUri() string
Obtain the original URI of the item.
See also webkit_back_forward_list_item_get_uri().
func (*BackForwardListItem) GetTitle ¶
func (x *BackForwardListItem) GetTitle() string
Obtain the title of the item.
func (*BackForwardListItem) GetUri ¶
func (x *BackForwardListItem) GetUri() string
Obtain the URI of the item.
This URI may differ from the original URI if the page was, for example, redirected to a new location. See also webkit_back_forward_list_item_get_original_uri().
func (*BackForwardListItem) GoPointer ¶
func (c *BackForwardListItem) GoPointer() uintptr
func (*BackForwardListItem) SetGoPointer ¶
func (c *BackForwardListItem) SetGoPointer(ptr uintptr)
type BackForwardListItemClass ¶
type BackForwardListItemClass struct {
ParentClass gobject.InitiallyUnownedClass
// contains filtered or unexported fields
}
func (*BackForwardListItemClass) GoPointer ¶
func (x *BackForwardListItemClass) GoPointer() uintptr
type CacheModel ¶
type CacheModel int
Enum values used for determining the #WebKitWebContext cache model.
const ( // Disable the cache completely, which // substantially reduces memory usage. Useful for applications that only // access a single local file, with no navigation to other pages. No remote // resources will be cached. CacheModelDocumentViewerValue CacheModel = 0 // Improve document load speed substantially // by caching a very large number of resources and previously viewed content. CacheModelWebBrowserValue CacheModel = 1 // A cache model optimized for viewing // a series of local files -- for example, a documentation viewer or a website // designer. WebKit will cache a moderate number of resources. CacheModelDocumentBrowserValue CacheModel = 2 )
type ClipboardPermissionRequest ¶
A permission request for reading clipboard contents.
WebKitClipboardPermissionRequest represents a request for permission to decide whether WebKit can access the clipboard to read its contents through the Async Clipboard API.
When a WebKitClipboardPermissionRequest is not handled by the user, it is denied by default.
func ClipboardPermissionRequestNewFromInternalPtr ¶
func ClipboardPermissionRequestNewFromInternalPtr(ptr uintptr) *ClipboardPermissionRequest
func (*ClipboardPermissionRequest) Allow ¶
func (x *ClipboardPermissionRequest) Allow()
Allow the action which triggered this request.
func (*ClipboardPermissionRequest) Deny ¶
func (x *ClipboardPermissionRequest) Deny()
Deny the action which triggered this request.
func (*ClipboardPermissionRequest) GoPointer ¶
func (c *ClipboardPermissionRequest) GoPointer() uintptr
func (*ClipboardPermissionRequest) SetGoPointer ¶
func (c *ClipboardPermissionRequest) SetGoPointer(ptr uintptr)
type ClipboardPermissionRequestClass ¶
type ClipboardPermissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*ClipboardPermissionRequestClass) GoPointer ¶
func (x *ClipboardPermissionRequestClass) GoPointer() uintptr
type ColorChooserRequest ¶
A request to open a color chooser.
Whenever the user interacts with an <input type='color' /> HTML element, WebKit will need to show a dialog to choose a color. For that to happen in a general way, instead of just opening a #GtkColorChooser (which might be not desirable in some cases, which could prefer to use their own color chooser dialog), WebKit will fire the #WebKitWebView::run-color-chooser signal with a #WebKitColorChooserRequest object, which will allow the client application to specify the color to be selected, to inspect the details of the request (e.g. to get initial color) and to cancel the request, in case nothing was selected.
In case the client application does not wish to handle this signal, WebKit will provide a default handler which will asynchronously run a regular #GtkColorChooserDialog for the user to interact with.
func ColorChooserRequestNewFromInternalPtr ¶
func ColorChooserRequestNewFromInternalPtr(ptr uintptr) *ColorChooserRequest
func (*ColorChooserRequest) Cancel ¶
func (x *ColorChooserRequest) Cancel()
Cancels @request and the input element changes to use the initial color.
Cancels @request and the input element changes to use the initial color it has before the request started. The signal #WebKitColorChooserRequest::finished is emitted to notify that the request has finished.
func (*ColorChooserRequest) ConnectFinished ¶
func (x *ColorChooserRequest) ConnectFinished(cb *func(ColorChooserRequest)) uint
Emitted when the @request finishes. This signal can be emitted because the user completed the @request calling webkit_color_chooser_request_finish(), or cancelled it with webkit_color_chooser_request_cancel() or because the color input element is removed from the DOM.
func (*ColorChooserRequest) Finish ¶
func (x *ColorChooserRequest) Finish()
Finishes @request and the input element keeps the current value of #WebKitColorChooserRequest:rgba.
Finishes @request and the input element keeps the current value of #WebKitColorChooserRequest:rgba. The signal #WebKitColorChooserRequest::finished is emitted to notify that the request has finished.
func (*ColorChooserRequest) GetElementRectangle ¶
func (x *ColorChooserRequest) GetElementRectangle(RectVar *gdk.Rectangle)
Gets the bounding box of the color input element.
func (*ColorChooserRequest) GetPropertyRgba ¶ added in v0.0.4
func (x *ColorChooserRequest) GetPropertyRgba() uintptr
GetPropertyRgba gets the "rgba" property. The #GdkRGBA color of the request
func (*ColorChooserRequest) GetRgba ¶
func (x *ColorChooserRequest) GetRgba(RgbaVar *gdk.RGBA)
Gets the current #GdkRGBA color of @request
func (*ColorChooserRequest) GoPointer ¶
func (c *ColorChooserRequest) GoPointer() uintptr
func (*ColorChooserRequest) SetGoPointer ¶
func (c *ColorChooserRequest) SetGoPointer(ptr uintptr)
func (*ColorChooserRequest) SetPropertyRgba ¶ added in v0.0.4
func (x *ColorChooserRequest) SetPropertyRgba(value uintptr)
SetPropertyRgba sets the "rgba" property. The #GdkRGBA color of the request
func (*ColorChooserRequest) SetRgba ¶
func (x *ColorChooserRequest) SetRgba(RgbaVar *gdk.RGBA)
Sets the current #GdkRGBA color of @request
type ColorChooserRequestClass ¶
type ColorChooserRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*ColorChooserRequestClass) GoPointer ¶
func (x *ColorChooserRequestClass) GoPointer() uintptr
type ContextMenu ¶
Represents the context menu in a #WebKitWebView.
#WebKitContextMenu represents a context menu containing #WebKitContextMenuItem<!-- -->s in a #WebKitWebView.
When a #WebKitWebView is about to display the context menu, it emits the #WebKitWebView::context-menu signal, which has the #WebKitContextMenu as an argument. You can modify it, adding new submenus that you can create with webkit_context_menu_new(), adding new #WebKitContextMenuItem<!-- -->s with webkit_context_menu_prepend(), webkit_context_menu_append() or webkit_context_menu_insert(), maybe after having removed the existing ones with webkit_context_menu_remove_all().
func ContextMenuNewFromInternalPtr ¶
func ContextMenuNewFromInternalPtr(ptr uintptr) *ContextMenu
func NewContextMenu ¶
func NewContextMenu() *ContextMenu
Creates a new #WebKitContextMenu object.
Creates a new #WebKitContextMenu object to be used as a submenu of an existing #WebKitContextMenu. The context menu of a #WebKitWebView is created by the view and passed as an argument of #WebKitWebView::context-menu signal. To add items to the menu use webkit_context_menu_prepend(), webkit_context_menu_append() or webkit_context_menu_insert(). See also webkit_context_menu_new_with_items() to create a #WebKitContextMenu with a list of initial items.
func NewContextMenuWithItems ¶
func NewContextMenuWithItems(ItemsVar *glib.List) *ContextMenu
Creates a new #WebKitContextMenu object with the given items.
Creates a new #WebKitContextMenu object to be used as a submenu of an existing #WebKitContextMenu with the given initial items. See also webkit_context_menu_new()
func (*ContextMenu) Append ¶
func (x *ContextMenu) Append(ItemVar *ContextMenuItem)
Adds @item at the end of the @menu.
func (*ContextMenu) First ¶
func (x *ContextMenu) First() *ContextMenuItem
Gets the first item in the @menu.
func (*ContextMenu) GetEvent ¶
func (x *ContextMenu) GetEvent() *gdk.Event
Gets the #GdkEvent that triggered the context menu. This function only returns a valid #GdkEvent when called for a #WebKitContextMenu passed to #WebKitWebView::context-menu signal; in all other cases, %NULL is returned.
The returned #GdkEvent is expected to be one of the following types: <itemizedlist> <listitem><para> a #GdkEventButton of type %GDK_BUTTON_PRESS when the context menu was triggered with mouse. </para></listitem> <listitem><para> a #GdkEventKey of type %GDK_KEY_PRESS if the keyboard was used to show the menu. </para></listitem> <listitem><para> a generic #GdkEvent of type %GDK_NOTHING when the #GtkWidget::popup-menu signal was used to show the context menu. </para></listitem> </itemizedlist>
func (*ContextMenu) GetItemAtPosition ¶
func (x *ContextMenu) GetItemAtPosition(PositionVar uint) *ContextMenuItem
Gets the item at the given position in the @menu.
func (*ContextMenu) GetItems ¶
func (x *ContextMenu) GetItems() *glib.List
Returns the item list of @menu.
func (*ContextMenu) GetNItems ¶
func (x *ContextMenu) GetNItems() uint
Gets the length of the @menu.
func (*ContextMenu) GetUserData ¶
func (x *ContextMenu) GetUserData() *glib.Variant
Gets the user data of @menu.
This function can be used from the UI Process to get user data previously set from the Web Process with webkit_context_menu_set_user_data().
func (*ContextMenu) GoPointer ¶
func (c *ContextMenu) GoPointer() uintptr
func (*ContextMenu) Insert ¶
func (x *ContextMenu) Insert(ItemVar *ContextMenuItem, PositionVar int)
Inserts @item into the @menu at the given position.
If @position is negative, or is larger than the number of items in the #WebKitContextMenu, the item is added on to the end of the @menu. The first position is 0.
func (*ContextMenu) Last ¶
func (x *ContextMenu) Last() *ContextMenuItem
Gets the last item in the @menu.
func (*ContextMenu) MoveItem ¶
func (x *ContextMenu) MoveItem(ItemVar *ContextMenuItem, PositionVar int)
Moves @item to the given position in the @menu.
If @position is negative, or is larger than the number of items in the #WebKitContextMenu, the item is added on to the end of the @menu. The first position is 0.
func (*ContextMenu) Prepend ¶
func (x *ContextMenu) Prepend(ItemVar *ContextMenuItem)
Adds @item at the beginning of the @menu.
func (*ContextMenu) Remove ¶
func (x *ContextMenu) Remove(ItemVar *ContextMenuItem)
Removes @item from the @menu.
See also webkit_context_menu_remove_all() to remove all items.
func (*ContextMenu) SetGoPointer ¶
func (c *ContextMenu) SetGoPointer(ptr uintptr)
func (*ContextMenu) SetUserData ¶
func (x *ContextMenu) SetUserData(UserDataVar *glib.Variant)
Sets user data to @menu.
This function can be used from a Web Process extension to set user data that can be retrieved from the UI Process using webkit_context_menu_get_user_data(). If the @user_data #GVariant is floating, it is consumed.
type ContextMenuAction ¶
type ContextMenuAction int
Enum values used to denote the stock actions for #WebKitContextMenuItem<!-- -->s
const ( // No action, used by separator menu items. ContextMenuActionNoActionValue ContextMenuAction = 0 // Open current link. ContextMenuActionOpenLinkValue ContextMenuAction = 1 // Open current link in a new window. ContextMenuActionOpenLinkInNewWindowValue ContextMenuAction = 2 // Download link destination. ContextMenuActionDownloadLinkToDiskValue ContextMenuAction = 3 // Copy link location to the clipboard. ContextMenuActionCopyLinkToClipboardValue ContextMenuAction = 4 // Open current image in a new window. ContextMenuActionOpenImageInNewWindowValue ContextMenuAction = 5 // Download current image. ContextMenuActionDownloadImageToDiskValue ContextMenuAction = 6 // Copy current image to the clipboard. ContextMenuActionCopyImageToClipboardValue ContextMenuAction = 7 // Copy current image location to the clipboard. ContextMenuActionCopyImageUrlToClipboardValue ContextMenuAction = 8 // Open current frame in a new window. ContextMenuActionOpenFrameInNewWindowValue ContextMenuAction = 9 // Load the previous history item. ContextMenuActionGoBackValue ContextMenuAction = 10 // Load the next history item. ContextMenuActionGoForwardValue ContextMenuAction = 11 // Stop any ongoing loading operation. ContextMenuActionStopValue ContextMenuAction = 12 // Reload the contents of current view. ContextMenuActionReloadValue ContextMenuAction = 13 // Copy current selection the clipboard. ContextMenuActionCopyValue ContextMenuAction = 14 // Cut current selection to the clipboard. ContextMenuActionCutValue ContextMenuAction = 15 // Paste clipboard contents. ContextMenuActionPasteValue ContextMenuAction = 16 // Delete current selection. ContextMenuActionDeleteValue ContextMenuAction = 17 // Select all text. ContextMenuActionSelectAllValue ContextMenuAction = 18 // Input methods menu. ContextMenuActionInputMethodsValue ContextMenuAction = 19 // Unicode menu. ContextMenuActionUnicodeValue ContextMenuAction = 20 // A proposed replacement for a misspelled word. ContextMenuActionSpellingGuessValue ContextMenuAction = 21 // An indicator that spellchecking found no proposed replacements. ContextMenuActionNoGuessesFoundValue ContextMenuAction = 22 // Causes the spellchecker to ignore the word for this session. ContextMenuActionIgnoreSpellingValue ContextMenuAction = 23 // Causes the spellchecker to add the word to the dictionary. ContextMenuActionLearnSpellingValue ContextMenuAction = 24 // Ignore grammar. ContextMenuActionIgnoreGrammarValue ContextMenuAction = 25 // Font options menu. ContextMenuActionFontMenuValue ContextMenuAction = 26 // Bold. ContextMenuActionBoldValue ContextMenuAction = 27 // Italic. ContextMenuActionItalicValue ContextMenuAction = 28 // Underline. ContextMenuActionUnderlineValue ContextMenuAction = 29 // Outline. ContextMenuActionOutlineValue ContextMenuAction = 30 // Open current element in the inspector. ContextMenuActionInspectElementValue ContextMenuAction = 31 // Open current video element in a new window. ContextMenuActionOpenVideoInNewWindowValue ContextMenuAction = 32 // Open current audio element in a new window. ContextMenuActionOpenAudioInNewWindowValue ContextMenuAction = 33 // Copy video link location in to the clipboard. ContextMenuActionCopyVideoLinkToClipboardValue ContextMenuAction = 34 // Copy audio link location in to the clipboard. ContextMenuActionCopyAudioLinkToClipboardValue ContextMenuAction = 35 // Enable or disable media controls. ContextMenuActionToggleMediaControlsValue ContextMenuAction = 36 // Enable or disable media loop. ContextMenuActionToggleMediaLoopValue ContextMenuAction = 37 // Show current video element in fullscreen mode. ContextMenuActionEnterVideoFullscreenValue ContextMenuAction = 38 // Play current media element. ContextMenuActionMediaPlayValue ContextMenuAction = 39 // Pause current media element. ContextMenuActionMediaPauseValue ContextMenuAction = 40 // Mute current media element. ContextMenuActionMediaMuteValue ContextMenuAction = 41 // Download video to disk. Since 2.2 ContextMenuActionDownloadVideoToDiskValue ContextMenuAction = 42 // Download audio to disk. Since 2.2 ContextMenuActionDownloadAudioToDiskValue ContextMenuAction = 43 // Insert an emoji. Since 2.26 ContextMenuActionInsertEmojiValue ContextMenuAction = 44 // Paste clipboard contents as plain text. Since 2.30 ContextMenuActionPasteAsPlainTextValue ContextMenuAction = 45 // Custom action defined by applications. ContextMenuActionCustomValue ContextMenuAction = 10000 )
type ContextMenuClass ¶
type ContextMenuClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*ContextMenuClass) GoPointer ¶
func (x *ContextMenuClass) GoPointer() uintptr
type ContextMenuItem ¶
type ContextMenuItem struct {
gobject.InitiallyUnowned
}
One item of a #WebKitContextMenu.
The #WebKitContextMenu is composed of #WebKitContextMenuItem<!-- -->s. These items can be created from a #GtkAction, from a #WebKitContextMenuAction or from a #WebKitContextMenuAction and a label. These #WebKitContextMenuAction<!-- -->s denote stock actions for the items. You can also create separators and submenus.
func ContextMenuItemNewFromInternalPtr ¶
func ContextMenuItemNewFromInternalPtr(ptr uintptr) *ContextMenuItem
func NewContextMenuItemFromGaction ¶
func NewContextMenuItemFromGaction(ActionVar gio.Action, LabelVar string, TargetVar *glib.Variant) *ContextMenuItem
Creates a new #WebKitContextMenuItem for the given @action and @label.
On activation @target will be passed as parameter to the callback.
func NewContextMenuItemFromStockAction ¶
func NewContextMenuItemFromStockAction(ActionVar ContextMenuAction) *ContextMenuItem
Creates a new #WebKitContextMenuItem for the given stock action.
Stock actions are handled automatically by WebKit so that, for example, when a menu item created with a %WEBKIT_CONTEXT_MENU_ACTION_STOP is activated the action associated will be handled by WebKit and the current load operation will be stopped. You can get the #GAction of a #WebKitContextMenuItem created with a #WebKitContextMenuAction with webkit_context_menu_item_get_gaction() and connect to the #GSimpleAction::activate signal to be notified when the item is activated, but you can't prevent the associated action from being performed.
func NewContextMenuItemFromStockActionWithLabel ¶
func NewContextMenuItemFromStockActionWithLabel(ActionVar ContextMenuAction, LabelVar string) *ContextMenuItem
Creates a new #WebKitContextMenuItem for the given stock action using the given @label.
Stock actions have a predefined label, this method can be used to create a #WebKitContextMenuItem for a #WebKitContextMenuAction but using a custom label.
func NewContextMenuItemSeparator ¶
func NewContextMenuItemSeparator() *ContextMenuItem
Creates a new #WebKitContextMenuItem representing a separator.
func NewContextMenuItemWithSubmenu ¶
func NewContextMenuItemWithSubmenu(LabelVar string, SubmenuVar *ContextMenu) *ContextMenuItem
Creates a new #WebKitContextMenuItem using the given @label with a submenu.
func (*ContextMenuItem) GetGaction ¶
func (x *ContextMenuItem) GetGaction() *gio.ActionBase
Gets the action associated to @item as a #GAction.
func (*ContextMenuItem) GetStockAction ¶
func (x *ContextMenuItem) GetStockAction() ContextMenuAction
Gets the #WebKitContextMenuAction of @item.
If the #WebKitContextMenuItem was not created for a stock action %WEBKIT_CONTEXT_MENU_ACTION_CUSTOM will be returned. If the #WebKitContextMenuItem is a separator %WEBKIT_CONTEXT_MENU_ACTION_NO_ACTION will be returned.
func (*ContextMenuItem) GetSubmenu ¶
func (x *ContextMenuItem) GetSubmenu() *ContextMenu
Gets the submenu of @item.
func (*ContextMenuItem) GoPointer ¶
func (c *ContextMenuItem) GoPointer() uintptr
func (*ContextMenuItem) IsSeparator ¶
func (x *ContextMenuItem) IsSeparator() bool
Checks whether @item is a separator.
func (*ContextMenuItem) SetGoPointer ¶
func (c *ContextMenuItem) SetGoPointer(ptr uintptr)
func (*ContextMenuItem) SetSubmenu ¶
func (x *ContextMenuItem) SetSubmenu(SubmenuVar *ContextMenu)
Sets or replaces the @item submenu.
If @submenu is %NULL the current submenu of @item is removed.
type ContextMenuItemClass ¶
type ContextMenuItemClass struct {
ParentClass gobject.InitiallyUnownedClass
// contains filtered or unexported fields
}
func (*ContextMenuItemClass) GoPointer ¶
func (x *ContextMenuItemClass) GoPointer() uintptr
type CookieAcceptPolicy ¶
type CookieAcceptPolicy int
Enum values used to denote the cookie acceptance policies.
const ( // Accept all cookies unconditionally. CookiePolicyAcceptAlwaysValue CookieAcceptPolicy = 0 // Reject all cookies unconditionally. CookiePolicyAcceptNeverValue CookieAcceptPolicy = 1 // Accept only cookies set by the main document loaded. CookiePolicyAcceptNoThirdPartyValue CookieAcceptPolicy = 2 )
type CookieManager ¶
Defines how to handle cookies in a #WebKitWebContext.
The WebKitCookieManager defines how to set up and handle cookies. You can get it from a #WebKitWebsiteDataManager with webkit_website_data_manager_get_cookie_manager(), and use it to set where to store cookies with webkit_cookie_manager_set_persistent_storage(), or to set the acceptance policy, with webkit_cookie_manager_get_accept_policy().
func CookieManagerNewFromInternalPtr ¶
func CookieManagerNewFromInternalPtr(ptr uintptr) *CookieManager
func (*CookieManager) AddCookie ¶
func (x *CookieManager) AddCookie(CookieVar *soup.Cookie, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously add a #SoupCookie to the underlying storage.
When the operation is finished, @callback will be called. You can then call webkit_cookie_manager_add_cookie_finish() to get the result of the operation.
func (*CookieManager) AddCookieFinish ¶
func (x *CookieManager) AddCookieFinish(ResultVar gio.AsyncResult) (bool, error)
Finish an asynchronous operation started with webkit_cookie_manager_add_cookie().
func (*CookieManager) ConnectChanged ¶
func (x *CookieManager) ConnectChanged(cb *func(CookieManager)) uint
This signal is emitted when cookies are added, removed or modified.
func (*CookieManager) DeleteCookie ¶
func (x *CookieManager) DeleteCookie(CookieVar *soup.Cookie, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously delete a #SoupCookie from the current session.
When the operation is finished, @callback will be called. You can then call webkit_cookie_manager_delete_cookie_finish() to get the result of the operation.
func (*CookieManager) DeleteCookieFinish ¶
func (x *CookieManager) DeleteCookieFinish(ResultVar gio.AsyncResult) (bool, error)
Finish an asynchronous operation started with webkit_cookie_manager_delete_cookie().
func (*CookieManager) GetAcceptPolicy ¶
func (x *CookieManager) GetAcceptPolicy(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously get the cookie acceptance policy of @cookie_manager.
Note that when policy was set to %WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY and ITP is enabled, this will return %WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS. See also webkit_website_data_manager_set_itp_enabled().
When the operation is finished, @callback will be called. You can then call webkit_cookie_manager_get_accept_policy_finish() to get the result of the operation.
func (*CookieManager) GetAcceptPolicyFinish ¶
func (x *CookieManager) GetAcceptPolicyFinish(ResultVar gio.AsyncResult) (CookieAcceptPolicy, error)
Finish an asynchronous operation started with webkit_cookie_manager_get_accept_policy().
func (*CookieManager) GetAllCookies ¶
func (x *CookieManager) GetAllCookies(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously get a list of #SoupCookie from @cookie_manager.
When the operation is finished, @callback will be called. You can then call webkit_cookie_manager_get_all_cookies_finish() to get the result of the operation.
func (*CookieManager) GetAllCookiesFinish ¶
func (x *CookieManager) GetAllCookiesFinish(ResultVar gio.AsyncResult) (*glib.List, error)
Finish an asynchronous operation started with webkit_cookie_manager_get_all_cookies().
The return value is a #GList of #SoupCookie instances which should be released with g_list_free_full() and soup_cookie_free().
func (*CookieManager) GetCookies ¶
func (x *CookieManager) GetCookies(UriVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously get a list of #SoupCookie from @cookie_manager.
Asynchronously get a list of #SoupCookie from @cookie_manager associated with @uri, which must be either an HTTP or an HTTPS URL.
When the operation is finished, @callback will be called. You can then call webkit_cookie_manager_get_cookies_finish() to get the result of the operation.
func (*CookieManager) GetCookiesFinish ¶
func (x *CookieManager) GetCookiesFinish(ResultVar gio.AsyncResult) (*glib.List, error)
Finish an asynchronous operation started with webkit_cookie_manager_get_cookies().
The return value is a #GList of #SoupCookie instances which should be released with g_list_free_full() and soup_cookie_free().
func (*CookieManager) GoPointer ¶
func (c *CookieManager) GoPointer() uintptr
func (*CookieManager) ReplaceCookies ¶
func (x *CookieManager) ReplaceCookies(CookiesVar *glib.List, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously replace all cookies in @cookie_manager with the given list of @cookies.
When the operation is finished, @callback will be called. You can then call webkit_cookie_manager_replace_cookies_finish() to get the result of the operation.
func (*CookieManager) ReplaceCookiesFinish ¶
func (x *CookieManager) ReplaceCookiesFinish(ResultVar gio.AsyncResult) (bool, error)
Finish an asynchronous operation started with webkit_cookie_manager_replace_cookies().
func (*CookieManager) SetAcceptPolicy ¶
func (x *CookieManager) SetAcceptPolicy(PolicyVar CookieAcceptPolicy)
Set the cookie acceptance policy of @cookie_manager as @policy.
Note that ITP has its own way to handle third-party cookies, so when it's enabled, and @policy is set to %WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY, %WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS will be used instead. Once disabled, the policy will be set back to %WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY. See also webkit_website_data_manager_set_itp_enabled().
func (*CookieManager) SetGoPointer ¶
func (c *CookieManager) SetGoPointer(ptr uintptr)
func (*CookieManager) SetPersistentStorage ¶
func (x *CookieManager) SetPersistentStorage(FilenameVar string, StorageVar CookiePersistentStorage)
Set non-session cookies.
Set the @filename where non-session cookies are stored persistently using @storage as the format to read/write the cookies. Cookies are initially read from @filename to create an initial set of cookies. Then, non-session cookies will be written to @filename when the WebKitCookieManager::changed signal is emitted. By default, @cookie_manager doesn't store the cookies persistently, so you need to call this method to keep cookies saved across sessions.
This method should never be called on a #WebKitCookieManager associated to an ephemeral #WebKitWebsiteDataManager.
type CookieManagerClass ¶
type CookieManagerClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*CookieManagerClass) GoPointer ¶
func (x *CookieManagerClass) GoPointer() uintptr
type CookiePersistentStorage ¶
type CookiePersistentStorage int
Enum values used to denote the cookie persistent storage types.
const ( // Cookies are stored in a text // file in the Mozilla "cookies.txt" format. CookiePersistentStorageTextValue CookiePersistentStorage = 0 // Cookies are stored in a SQLite // file in the current Mozilla format. CookiePersistentStorageSqliteValue CookiePersistentStorage = 1 )
type Credential ¶
type Credential struct {
// contains filtered or unexported fields
}
Groups information used for user authentication.
func NewCredential ¶
func NewCredential(UsernameVar string, PasswordVar string, PersistenceVar CredentialPersistence) *Credential
Create a new credential from the provided username, password and persistence mode.
func NewCredentialForCertificate ¶
func NewCredentialForCertificate(CertificateVar *gio.TlsCertificate, PersistenceVar CredentialPersistence) *Credential
Create a new credential from the @certificate and persistence mode.
Note that %WEBKIT_CREDENTIAL_PERSISTENCE_PERMANENT is not supported for certificate credentials.
func NewCredentialForCertificatePin ¶
func NewCredentialForCertificatePin(PinVar string, PersistenceVar CredentialPersistence) *Credential
Create a new credential from the provided PIN and persistence mode.
Note that %WEBKIT_CREDENTIAL_PERSISTENCE_PERMANENT is not supported for certificate pin credentials.
func (*Credential) Copy ¶
func (x *Credential) Copy() *Credential
Make a copy of the #WebKitCredential.
func (*Credential) GetCertificate ¶
func (x *Credential) GetCertificate() *gio.TlsCertificate
Get the certificate currently held by this #WebKitCredential.
func (*Credential) GetPassword ¶
func (x *Credential) GetPassword() string
Get the password currently held by this #WebKitCredential.
func (*Credential) GetPersistence ¶
func (x *Credential) GetPersistence() CredentialPersistence
Get the persistence mode currently held by this #WebKitCredential.
func (*Credential) GetUsername ¶
func (x *Credential) GetUsername() string
Get the username currently held by this #WebKitCredential.
func (*Credential) GoPointer ¶
func (x *Credential) GoPointer() uintptr
func (*Credential) HasPassword ¶
func (x *Credential) HasPassword() bool
Determine whether this credential has a password stored.
type CredentialPersistence ¶
type CredentialPersistence int
Enum values representing the duration for which a credential persists.
const ( // Credential does not persist CredentialPersistenceNoneValue CredentialPersistence = 0 // Credential persists for session only CredentialPersistenceForSessionValue CredentialPersistence = 1 // Credential persists permanently CredentialPersistencePermanentValue CredentialPersistence = 2 )
type DeviceInfoPermissionRequest ¶
A permission request for enumerating the user's media devices
WebKitDeviceInfoPermissionRequest represents a request for permission to whether WebKit should be allowed to access the user's devices information when requested through the MediaDevices.enumerateDevices API.
When a WebKitDeviceInfoPermissionRequest is not handled by the user, it is denied by default.
func DeviceInfoPermissionRequestNewFromInternalPtr ¶
func DeviceInfoPermissionRequestNewFromInternalPtr(ptr uintptr) *DeviceInfoPermissionRequest
func (*DeviceInfoPermissionRequest) Allow ¶
func (x *DeviceInfoPermissionRequest) Allow()
Allow the action which triggered this request.
func (*DeviceInfoPermissionRequest) Deny ¶
func (x *DeviceInfoPermissionRequest) Deny()
Deny the action which triggered this request.
func (*DeviceInfoPermissionRequest) GoPointer ¶
func (c *DeviceInfoPermissionRequest) GoPointer() uintptr
func (*DeviceInfoPermissionRequest) SetGoPointer ¶
func (c *DeviceInfoPermissionRequest) SetGoPointer(ptr uintptr)
type DeviceInfoPermissionRequestClass ¶
type DeviceInfoPermissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*DeviceInfoPermissionRequestClass) GoPointer ¶
func (x *DeviceInfoPermissionRequestClass) GoPointer() uintptr
type Download ¶
Object used to communicate with the application when downloading.
#WebKitDownload carries information about a download request and response, including a #WebKitURIRequest and a #WebKitURIResponse objects. The application may use this object to control the download process, or to simply figure out what is to be downloaded, and handle the download process itself.
func (*Download) Cancel ¶
func (x *Download) Cancel()
Cancels the download.
When the ongoing download operation is effectively cancelled the signal #WebKitDownload::failed is emitted with %WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER error.
func (*Download) ConnectCreatedDestination ¶
This signal is emitted after #WebKitDownload::decide-destination and before #WebKitDownload::received-data to notify that destination file has been created successfully at @destination.
func (*Download) ConnectDecideDestination ¶
This signal is emitted after response is received to decide a destination for the download using webkit_download_set_destination(). If this signal is not handled, the file will be downloaded to %G_USER_DIRECTORY_DOWNLOAD directory using @suggested_filename.
Since 2.40, you may handle this signal asynchronously by returning %TRUE without calling webkit_download_set_destination(). This indicates intent to eventually call webkit_download_set_destination(). In this case, the download will not proceed until the destination is set or cancelled with webkit_download_cancel().
func (*Download) ConnectFailed ¶
This signal is emitted when an error occurs during the download operation. The given @error, of the domain %WEBKIT_DOWNLOAD_ERROR, contains further details of the failure. If the download is cancelled with webkit_download_cancel(), this signal is emitted with error %WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER. The download operation finishes after an error and #WebKitDownload::finished signal is emitted after this one.
func (*Download) ConnectFinished ¶
This signal is emitted when download finishes successfully or due to an error. In case of errors #WebKitDownload::failed signal is emitted before this one.
func (*Download) ConnectReceivedData ¶
This signal is emitted after response is received, every time new data has been written to the destination. It's useful to know the progress of the download operation.
func (*Download) GetAllowOverwrite ¶
Returns the current value of the #WebKitDownload:allow-overwrite property.
Returns the current value of the #WebKitDownload:allow-overwrite property, which determines whether the download will overwrite an existing file on disk, or if it will fail if the destination already exists.
func (*Download) GetDestination ¶
Obtains the destination to which the downloaded file will be written.
You can connect to #WebKitDownload::created-destination to make sure this method returns a valid destination.
func (*Download) GetElapsedTime ¶
Gets the elapsed time in seconds, including any fractional part.
If the download finished, had an error or was cancelled this is the time between its start and the event.
func (*Download) GetEstimatedProgress ¶
Gets the value of the #WebKitDownload:estimated-progress property. Gets the value of the #WebKitDownload:estimated-progress property. You can monitor the estimated progress of the download operation by connecting to the notify::estimated-progress signal of @download.
func (*Download) GetPropertyAllowOverwrite ¶ added in v0.0.4
GetPropertyAllowOverwrite gets the "allow-overwrite" property. Whether or not the download is allowed to overwrite an existing file on disk. If this property is %FALSE and the destination already exists, the download will fail.
func (*Download) GetPropertyDestination ¶ added in v0.0.4
GetPropertyDestination gets the "destination" property. The local path to where the download will be saved.
func (*Download) GetPropertyEstimatedProgress ¶ added in v0.0.4
GetPropertyEstimatedProgress gets the "estimated-progress" property. An estimate of the percent completion for the download operation. This value will range from 0.0 to 1.0. The value is an estimate based on the total number of bytes expected to be received for a download. If you need a more accurate progress information you can connect to #WebKitDownload::received-data signal to track the progress.
func (*Download) GetReceivedDataLength ¶
Gets the length of the data already downloaded for @download.
Gets the length of the data already downloaded for @download in bytes.
func (*Download) GetRequest ¶
func (x *Download) GetRequest() *URIRequest
Retrieves the #WebKitURIRequest object that backs the download process.
func (*Download) GetResponse ¶
func (x *Download) GetResponse() *URIResponse
Retrieves the #WebKitURIResponse object that backs the download process.
Retrieves the #WebKitURIResponse object that backs the download process. This method returns %NULL if called before the response is received from the server. You can connect to notify::response signal to be notified when the response is received.
func (*Download) GetWebView ¶
Get the #WebKitWebView that initiated the download.
func (*Download) SetAllowOverwrite ¶
Sets the #WebKitDownload:allow-overwrite property.
Sets the #WebKitDownload:allow-overwrite property, which determines whether the download may overwrite an existing file on disk, or if it will fail if the destination already exists.
func (*Download) SetDestination ¶
Sets the destination to which the downloaded file will be written.
This method should be called before the download transfer starts or it will not have any effect on the ongoing download operation. To set the destination using the filename suggested by the server connect to #WebKitDownload::decide-destination signal and call webkit_download_set_destination(). If you want to set a fixed destination that doesn't depend on the suggested filename you can connect to notify::response signal and call webkit_download_set_destination().
If #WebKitDownload::decide-destination signal is not handled and destination is not set when the download transfer starts, the file will be saved with the filename suggested by the server in %G_USER_DIRECTORY_DOWNLOAD directory.
func (*Download) SetGoPointer ¶
func (*Download) SetPropertyAllowOverwrite ¶ added in v0.0.4
SetPropertyAllowOverwrite sets the "allow-overwrite" property. Whether or not the download is allowed to overwrite an existing file on disk. If this property is %FALSE and the destination already exists, the download will fail.
type DownloadClass ¶
type DownloadClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*DownloadClass) GoPointer ¶
func (x *DownloadClass) GoPointer() uintptr
type DownloadError ¶
type DownloadError int
Enum values used to denote the various download errors.
const ( // Download failure due to network error DownloadErrorNetworkValue DownloadError = 499 // Download was cancelled by user DownloadErrorCancelledByUserValue DownloadError = 400 // Download failure due to destination error DownloadErrorDestinationValue DownloadError = 401 )
type EditorState ¶
Web editor state.
WebKitEditorState represents the state of a #WebKitWebView editor. Use webkit_web_view_get_editor_state() to get the WebKitEditorState of a #WebKitWebView.
func EditorStateNewFromInternalPtr ¶
func EditorStateNewFromInternalPtr(ptr uintptr) *EditorState
func (*EditorState) ConnectChanged ¶
func (x *EditorState) ConnectChanged(cb *func(EditorState)) uint
Emitted when the #WebKitEdtorState is changed.
func (*EditorState) GetPropertyTypingAttributes ¶ added in v0.0.4
func (x *EditorState) GetPropertyTypingAttributes() uint
GetPropertyTypingAttributes gets the "typing-attributes" property. Bitmask of #WebKitEditorTypingAttributes flags. See webkit_editor_state_get_typing_attributes() for more information.
func (*EditorState) GetTypingAttributes ¶
func (x *EditorState) GetTypingAttributes() uint
Gets the typing attributes at the current cursor position.
If there is a selection, this returns the typing attributes of the selected text. Note that in case of a selection, typing attributes are considered active only when they are present throughout the selection.
func (*EditorState) GoPointer ¶
func (c *EditorState) GoPointer() uintptr
func (*EditorState) IsCopyAvailable ¶
func (x *EditorState) IsCopyAvailable() bool
Gets whether a copy command can be issued.
func (*EditorState) IsCutAvailable ¶
func (x *EditorState) IsCutAvailable() bool
Gets whether a cut command can be issued.
func (*EditorState) IsPasteAvailable ¶
func (x *EditorState) IsPasteAvailable() bool
Gets whether a paste command can be issued.
func (*EditorState) IsRedoAvailable ¶
func (x *EditorState) IsRedoAvailable() bool
Gets whether a redo command can be issued.
func (*EditorState) IsUndoAvailable ¶
func (x *EditorState) IsUndoAvailable() bool
Gets whether an undo command can be issued.
func (*EditorState) SetGoPointer ¶
func (c *EditorState) SetGoPointer(ptr uintptr)
type EditorStateClass ¶
type EditorStateClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*EditorStateClass) GoPointer ¶
func (x *EditorStateClass) GoPointer() uintptr
type EditorTypingAttributes ¶
type EditorTypingAttributes int
Enum values with flags representing typing attributes.
const ( // No typing attributes. EditorTypingAttributeNoneValue EditorTypingAttributes = 2 // Bold typing attribute. EditorTypingAttributeBoldValue EditorTypingAttributes = 4 // Italic typing attribute. EditorTypingAttributeItalicValue EditorTypingAttributes = 8 // Underline typing attribute. EditorTypingAttributeUnderlineValue EditorTypingAttributes = 16 // Strikethrough typing attribute. EditorTypingAttributeStrikethroughValue EditorTypingAttributes = 32 )
type FaviconDatabase ¶
Provides access to the icons associated with web sites.
WebKit will automatically look for available icons in <link> elements on opened pages as well as an existing favicon.ico and load the images found into a memory cache if possible. That cache is frozen to an on-disk database for persistence.
If #WebKitSettings:enable-private-browsing is %TRUE, new icons won't be added to the on-disk database and no existing icons will be deleted from it. Nevertheless, WebKit will still store them in the in-memory cache during the current execution.
func FaviconDatabaseNewFromInternalPtr ¶
func FaviconDatabaseNewFromInternalPtr(ptr uintptr) *FaviconDatabase
func (*FaviconDatabase) Clear ¶
func (x *FaviconDatabase) Clear()
Clears all icons from the database.
func (*FaviconDatabase) ConnectFaviconChanged ¶
func (x *FaviconDatabase) ConnectFaviconChanged(cb *func(FaviconDatabase, string, string)) uint
This signal is emitted when the favicon URI of @page_uri has been changed to @favicon_uri in the database. You can connect to this signal and call webkit_favicon_database_get_favicon() to get the favicon. If you are interested in the favicon of a #WebKitWebView it's easier to use the #WebKitWebView:favicon property. See webkit_web_view_get_favicon() for more details.
func (*FaviconDatabase) GetFavicon ¶
func (x *FaviconDatabase) GetFavicon(PageUriVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously obtains a favicon image.
Asynchronously obtains an image of the favicon for the given page URI. It returns the cached icon if it's in the database asynchronously waiting for the icon to be read from the database.
This is an asynchronous method. When the operation is finished, callback will be invoked. You can then call webkit_favicon_database_get_favicon_finish() to get the result of the operation.
func (*FaviconDatabase) GetFaviconFinish ¶
func (x *FaviconDatabase) GetFaviconFinish(ResultVar gio.AsyncResult) (*gdk.Texture, error)
Finishes an operation started with webkit_favicon_database_get_favicon().
func (*FaviconDatabase) GetFaviconUri ¶
func (x *FaviconDatabase) GetFaviconUri(PageUriVar string) string
Obtains the URI of the favicon for the given @page_uri.
func (*FaviconDatabase) GoPointer ¶
func (c *FaviconDatabase) GoPointer() uintptr
func (*FaviconDatabase) SetGoPointer ¶
func (c *FaviconDatabase) SetGoPointer(ptr uintptr)
type FaviconDatabaseClass ¶
type FaviconDatabaseClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*FaviconDatabaseClass) GoPointer ¶
func (x *FaviconDatabaseClass) GoPointer() uintptr
type FaviconDatabaseError ¶
type FaviconDatabaseError int
Enum values used to denote the various errors related to the #WebKitFaviconDatabase.
const ( // The #WebKitFaviconDatabase is closed FaviconDatabaseErrorNotInitializedValue FaviconDatabaseError = 0 // There is not an icon available for the requested URL FaviconDatabaseErrorFaviconNotFoundValue FaviconDatabaseError = 1 // There might be an icon for the requested URL, but its data is unknown at the moment FaviconDatabaseErrorFaviconUnknownValue FaviconDatabaseError = 2 )
type Feature ¶
type Feature struct {
// contains filtered or unexported fields
}
Describes a web engine feature that may be toggled at runtime.
The WebKit web engine includes a set of features which may be toggled programmatically, each one represented by a #WebKitFeature that provides information about it:
- A unique “identifier”: [method@Feature.get_identifier].
- A “default value”, which indicates whether the option is enabled automatically: [method@Feature.get_default_value].
- Its “status”, which determines whether it should be considered user-settable and its development stage (see [enum@FeatureStatus] for details): [method@Feature.get_status].
- A category, which may be used to group features together: [method@Feature.get_category].
- An optional short “name” which can be presented to an user: [method@Feature.get_name].
- An optional longer “detailed” description: [method@Feature.get_details].
The lists of available features can be obtained with [func@Settings.get_all_features], [func@Settings.get_experimental_features], and [func@Settings.get_development_features]). As a rule of thumb, applications which may want to allow users (i.e. web developers) to test WebKit features should use the list of experimental features. Additionally, applications might want to expose development features *when targeting technically inclined users* for early testing of in-development features (i.e. in “technology preview” or “canary” builds).
Applications **must not** expose the list of all features to end users because they often lack descriptions and control parts of the web engine which are either intended to be used during development of WebKit itself, or in specific scenarios to tweak how WebKit integrates with the application.
func (*Feature) GetCategory ¶
Gets the category of the feature.
Applications which include user interface to toggle features may want to use the category to group related features together.
func (*Feature) GetDefaultValue ¶
Gets whether the feature is enabled by default.
The default value may be used by applications which include user interface to toggle features to restore its settings to their defaults. Note that whether a feature is actually enabled must be checked with [method@Settings.get_feature_enabled].
func (*Feature) GetDetails ¶
Gets a description for the @feature.
The detailed description should be considered an additional clarification on the purpose of the feature, to be used as complementary aid to be displayed along the feature name returned by [method@Feature.get_name]. The returned string is suitable to be displayed to end users, but it should not be relied upon being localized.
Note that some *features may not* have a detailed description, and @NULL is returned in this case.
func (*Feature) GetIdentifier ¶
Gets a string that uniquely identifies the @feature.
func (*Feature) GetName ¶
Gets a short name for the @feature.
The returned string is suitable to be displayed to end users, but it should not be relied upon being localized.
Note that some *features may not* have a short name, and @NULL is returned in this case.
func (*Feature) GetStatus ¶
func (x *Feature) GetStatus() FeatureStatus
Gets the status of the feature.
type FeatureList ¶
type FeatureList struct {
// contains filtered or unexported fields
}
Contains a set of toggle-able web engine features.
The list supports passing around a set of [struct@Feature] objects and iterating over them:
```c g_autoptr(WebKitFeatureList) list = webkit_settings_get_experimental_features();
for (gsize i = 0; i < webkit_feature_list_get_length(list): i++) {
WebKitFeature *feature = webkit_feature_list_get(list, i);
// Do something with "feature".
}
```
Lists of features can be obtained with [func@Settings.get_experimental_features], [func@Settings.get_development_features], and [func@Settings.get_all_features].
func SettingsGetAllFeatures ¶
func SettingsGetAllFeatures() *FeatureList
Gets the list of all available WebKit features.
Features can be toggled with [method@Settings.set_feature_enabled], and their current state determined with [method@Settings.get_feature_enabled].
Note that most applications should use [func@Settings.get_development_features] and [func@Settings.get_experimental_features] instead.
func SettingsGetDevelopmentFeatures ¶
func SettingsGetDevelopmentFeatures() *FeatureList
Gets the list of available development WebKit features.
The returned features are a subset of those returned by [func@Settings.get_all_features], and includes those which web and WebKit developers might find useful, but in general should *not* be exposed to end users; see [enum@FeatureStatus] for more details.
func SettingsGetExperimentalFeatures ¶
func SettingsGetExperimentalFeatures() *FeatureList
Gets the list of available experimental WebKit features.
The returned features are a subset of those returned by [func@Settings.get_all_features], and includes those which certain applications may want to expose to end users; see [enum@FeatureStatus] for more details.
func (*FeatureList) Get ¶
func (x *FeatureList) Get(IndexVar uint) *Feature
Gets a feature given its index.
func (*FeatureList) GetLength ¶
func (x *FeatureList) GetLength() uint
Gets the number of elements in the feature list.
func (*FeatureList) GoPointer ¶
func (x *FeatureList) GoPointer() uintptr
func (*FeatureList) Ref ¶
func (x *FeatureList) Ref() *FeatureList
Atomically acquires a reference on the given @feature_list.
This function is MT-safe and may be called from any thread.
func (*FeatureList) Unref ¶
func (x *FeatureList) Unref()
Atomically releases a reference on the given @feature_list.
If the reference was the last, the resources associated to the @feature_list are freed. This function is MT-safe and may be called from any thread.
type FeatureStatus ¶
type FeatureStatus int
Describes the status of a [struct@WebKitFeature].
The status for a given feature can be obtained with [id@webkit_feature_get_status].
const ( // Feature that adjust behaviour for // specific application needs. The feature is not part of a Web platform // feature, not a mature feature intended to be always on. FeatureStatusEmbedderValue FeatureStatus = 0 // Feature in development. The feature // may be unfinished, and there are no guarantees about its safety and // stability. FeatureStatusUnstableValue FeatureStatus = 1 // Feature for debugging the WebKit engine. // The feature is not generally useful for user or web developers, and // always disabled by default. FeatureStatusInternalValue FeatureStatus = 2 // Feature for web developers. The feature // is not generally useful for end users, and always disabled by default. FeatureStatusDeveloperValue FeatureStatus = 3 // Feature in active development and // complete enough for testing. The feature may not be yet ready to // ship and is disabled by default. FeatureStatusTestableValue FeatureStatus = 4 // Feature ready to be tested by users. // The feature is disabled by default, but may be enabled by applications // automatically e.g. in their “technology preview” or “beta” versions. FeatureStatusPreviewValue FeatureStatus = 5 // Feature ready for general use. The // feature is enabled by default, but it may still be toggled to support // debugging and testing. FeatureStatusStableValue FeatureStatus = 6 // Feature in general use. The feature is // always enabled and in general there should be no user-facing interface // to toggle it. FeatureStatusMatureValue FeatureStatus = 7 )
type FileChooserRequest ¶
A request to open a file chooser.
Whenever the user interacts with an HTML input element with file type, WebKit will need to show a dialog to choose one or more files to be uploaded to the server along with the rest of the form data. For that to happen in a general way, instead of just opening a #GtkFileChooserDialog (which might be not desirable in some cases, which could prefer to use their own file chooser dialog), WebKit will fire the #WebKitWebView::run-file-chooser signal with a #WebKitFileChooserRequest object, which will allow the client application to specify the files to be selected, to inspect the details of the request (e.g. if multiple selection should be allowed) and to cancel the request, in case nothing was selected.
In case the client application does not wish to handle this signal, WebKit will provide a default handler which will asynchronously run a regular #GtkFileChooserDialog for the user to interact with.
func FileChooserRequestNewFromInternalPtr ¶
func FileChooserRequestNewFromInternalPtr(ptr uintptr) *FileChooserRequest
func (*FileChooserRequest) Cancel ¶
func (x *FileChooserRequest) Cancel()
Ask WebKit to cancel the request.
It's important to do this in case no selection has been made in the client, otherwise the request won't be properly completed and the browser will keep the request pending forever, which might cause the browser to hang.
func (*FileChooserRequest) GetMimeTypes ¶
func (x *FileChooserRequest) GetMimeTypes() []string
Get the list of MIME types the file chooser dialog should handle.
Get the list of MIME types the file chooser dialog should handle, in the format specified in RFC 2046 for "media types". Its contents depend on the value of the 'accept' attribute for HTML input elements. This function should normally be called before presenting the file chooser dialog to the user, to decide whether to allow the user to select multiple files at once or only one.
func (*FileChooserRequest) GetMimeTypesFilter ¶
func (x *FileChooserRequest) GetMimeTypesFilter() *gtk.FileFilter
Get the filter currently associated with the request.
Get the filter currently associated with the request, ready to be used by #GtkFileChooser. This function should normally be called before presenting the file chooser dialog to the user, to decide whether to apply a filter so the user would not be allowed to select files with other MIME types.
See webkit_file_chooser_request_get_mime_types() if you are interested in getting the list of accepted MIME types.
func (*FileChooserRequest) GetPropertyMimeTypes ¶ added in v0.0.4
func (x *FileChooserRequest) GetPropertyMimeTypes() []string
GetPropertyMimeTypes gets the "mime-types" property. A %NULL-terminated array of strings containing the list of MIME types the file chooser dialog should handle. See webkit_file_chooser_request_get_mime_types() for more details.
func (*FileChooserRequest) GetPropertySelectMultiple ¶ added in v0.0.4
func (x *FileChooserRequest) GetPropertySelectMultiple() bool
GetPropertySelectMultiple gets the "select-multiple" property. Whether the file chooser should allow selecting multiple files. See webkit_file_chooser_request_get_select_multiple() for more details.
func (*FileChooserRequest) GetPropertySelectedFiles ¶ added in v0.0.4
func (x *FileChooserRequest) GetPropertySelectedFiles() []string
GetPropertySelectedFiles gets the "selected-files" property. A %NULL-terminated array of strings containing the list of selected files associated to the current request. See webkit_file_chooser_request_get_selected_files() for more details.
func (*FileChooserRequest) GetSelectMultiple ¶
func (x *FileChooserRequest) GetSelectMultiple() bool
Whether the file chooser should allow selecting multiple files.
Determine whether the file chooser associated to this #WebKitFileChooserRequest should allow selecting multiple files, which depends on the HTML input element having a 'multiple' attribute defined.
func (*FileChooserRequest) GetSelectedFiles ¶
func (x *FileChooserRequest) GetSelectedFiles() []string
Get the list of selected files associated to the request.
Get the list of selected files currently associated to the request. Initially, the return value of this method contains any files selected in previous file chooser requests for this HTML input element. Once webkit_file_chooser_request_select_files, the value will reflect whatever files are given.
This function should normally be called only before presenting the file chooser dialog to the user, to decide whether to perform some extra action, like pre-selecting the files from a previous request.
func (*FileChooserRequest) GoPointer ¶
func (c *FileChooserRequest) GoPointer() uintptr
func (*FileChooserRequest) SelectFiles ¶
func (x *FileChooserRequest) SelectFiles(FilesVar []string)
Ask WebKit to select local files for upload and complete the request.
func (*FileChooserRequest) SetGoPointer ¶
func (c *FileChooserRequest) SetGoPointer(ptr uintptr)
type FileChooserRequestClass ¶
type FileChooserRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*FileChooserRequestClass) GoPointer ¶
func (x *FileChooserRequestClass) GoPointer() uintptr
type FindController ¶
Controls text search in a #WebKitWebView.
A #WebKitFindController is used to search text in a #WebKitWebView. You can get a #WebKitWebView<!-- -->'s #WebKitFindController with webkit_web_view_get_find_controller(), and later use it to search for text using webkit_find_controller_search(), or get the number of matches using webkit_find_controller_count_matches(). The operations are asynchronous and trigger signals when ready, such as #WebKitFindController::found-text, #WebKitFindController::failed-to-find-text or #WebKitFindController::counted-matches<!-- -->.
func FindControllerNewFromInternalPtr ¶
func FindControllerNewFromInternalPtr(ptr uintptr) *FindController
func (*FindController) ConnectCountedMatches ¶
func (x *FindController) ConnectCountedMatches(cb *func(FindController, uint)) uint
This signal is emitted when the #WebKitFindController has counted the number of matches for a given text after a call to webkit_find_controller_count_matches().
func (*FindController) ConnectFailedToFindText ¶
func (x *FindController) ConnectFailedToFindText(cb *func(FindController)) uint
This signal is emitted when a search operation does not find any result for the given text. It will be issued if the text is not found asynchronously after a call to webkit_find_controller_search(), webkit_find_controller_search_next() or webkit_find_controller_search_previous().
func (*FindController) ConnectFoundText ¶
func (x *FindController) ConnectFoundText(cb *func(FindController, uint)) uint
This signal is emitted when a given text is found in the web page text. It will be issued if the text is found asynchronously after a call to webkit_find_controller_search(), webkit_find_controller_search_next() or webkit_find_controller_search_previous().
func (*FindController) CountMatches ¶
func (x *FindController) CountMatches(SearchTextVar string, FindOptionsVar uint32, MaxMatchCountVar uint)
Counts the number of matches for @search_text.
Counts the number of matches for @search_text found in the #WebKitWebView with the provided @find_options. The number of matches will be provided by the #WebKitFindController::counted-matches signal.
func (*FindController) GetMaxMatchCount ¶
func (x *FindController) GetMaxMatchCount() uint
Gets the maximum number of matches to report.
Gets the maximum number of matches to report during a text lookup. This number is passed as the last argument of webkit_find_controller_search() or webkit_find_controller_count_matches().
func (*FindController) GetOptions ¶
func (x *FindController) GetOptions() uint32
Gets the #WebKitFindOptions for the current search.
Gets a bitmask containing the #WebKitFindOptions associated with the current search.
func (*FindController) GetPropertyMaxMatchCount ¶ added in v0.0.4
func (x *FindController) GetPropertyMaxMatchCount() uint
GetPropertyMaxMatchCount gets the "max-match-count" property. The maximum number of matches to report for a given search.
func (*FindController) GetPropertyText ¶ added in v0.0.4
func (x *FindController) GetPropertyText() string
GetPropertyText gets the "text" property. The current search text for this #WebKitFindController.
func (*FindController) GetSearchText ¶
func (x *FindController) GetSearchText() string
Gets the text that @find_controller is searching for.
Gets the text that @find_controller is currently searching for. This text is passed to either webkit_find_controller_search() or webkit_find_controller_count_matches().
func (*FindController) GetWebView ¶
func (x *FindController) GetWebView() *WebView
Gets the #WebKitWebView this find controller is associated to.
Do not dereference the returned instance as it belongs to the #WebKitFindController.
func (*FindController) GoPointer ¶
func (c *FindController) GoPointer() uintptr
func (*FindController) Search ¶
func (x *FindController) Search(SearchTextVar string, FindOptionsVar uint32, MaxMatchCountVar uint)
Looks for @search_text associated with @find_controller.
Looks for @search_text in the #WebKitWebView associated with @find_controller since the beginning of the document highlighting up to @max_match_count matches. The outcome of the search will be asynchronously provided by the #WebKitFindController::found-text and #WebKitFindController::failed-to-find-text signals.
To look for the next or previous occurrences of the same text with the same find options use webkit_find_controller_search_next() and/or webkit_find_controller_search_previous(). The #WebKitFindController will use the same text and options for the following searches unless they are modified by another call to this method.
Note that if the number of matches is higher than @max_match_count then #WebKitFindController::found-text will report %G_MAXUINT matches instead of the actual number.
Callers should call webkit_find_controller_search_finish() to finish the current search operation.
func (*FindController) SearchFinish ¶
func (x *FindController) SearchFinish()
Finishes a find operation.
Finishes a find operation started by webkit_find_controller_search(). It will basically unhighlight every text match found.
This method will be typically called when the search UI is closed/hidden by the client application.
func (*FindController) SearchNext ¶
func (x *FindController) SearchNext()
Looks for the next occurrence of the search text.
Calling this method before webkit_find_controller_search() or webkit_find_controller_count_matches() is a programming error.
func (*FindController) SearchPrevious ¶
func (x *FindController) SearchPrevious()
Looks for the previous occurrence of the search text.
Calling this method before webkit_find_controller_search() or webkit_find_controller_count_matches() is a programming error.
func (*FindController) SetGoPointer ¶
func (c *FindController) SetGoPointer(ptr uintptr)
type FindControllerClass ¶
type FindControllerClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*FindControllerClass) GoPointer ¶
func (x *FindControllerClass) GoPointer() uintptr
type FindOptions ¶
type FindOptions int
Enum values used to specify search options.
const ( // no search flags, this means a case // sensitive, no wrap, forward only search. FindOptionsNoneValue FindOptions = 0 // case insensitive search. FindOptionsCaseInsensitiveValue FindOptions = 1 // search text only at the // begining of the words. FindOptionsAtWordStartsValue FindOptions = 2 // treat // capital letters in the middle of words as word start. FindOptionsTreatMedialCapitalAsWordStartValue FindOptions = 4 // search backwards. FindOptionsBackwardsValue FindOptions = 8 // if not present search will stop // at the end of the document. FindOptionsWrapAroundValue FindOptions = 16 )
type FormSubmissionRequest ¶
Represents a form submission request.
When a form is about to be submitted in a #WebKitWebView, the #WebKitWebView::submit-form signal is emitted. Its request argument contains information about the text fields of the form, that are typically used to store login information, returned as lists by webkit_form_submission_request_list_text_fields(). You can submit the form with webkit_form_submission_request_submit().
func FormSubmissionRequestNewFromInternalPtr ¶
func FormSubmissionRequestNewFromInternalPtr(ptr uintptr) *FormSubmissionRequest
func (*FormSubmissionRequest) GoPointer ¶
func (c *FormSubmissionRequest) GoPointer() uintptr
func (*FormSubmissionRequest) ListTextFields ¶
func (x *FormSubmissionRequest) ListTextFields(FieldNamesVar *[]string, FieldValuesVar *[]string) bool
Get lists of the text fields contained in the form associated to @request.
Get lists with the names and values of the text fields contained in the form associated to @request. Note that names and values may be %NULL.
If this function returns %FALSE, then both @field_names and @field_values will be empty.
func (*FormSubmissionRequest) SetGoPointer ¶
func (c *FormSubmissionRequest) SetGoPointer(ptr uintptr)
func (*FormSubmissionRequest) Submit ¶
func (x *FormSubmissionRequest) Submit()
Continue the form submission.
type FormSubmissionRequestClass ¶
type FormSubmissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*FormSubmissionRequestClass) GoPointer ¶
func (x *FormSubmissionRequestClass) GoPointer() uintptr
type GeolocationManager ¶
Geolocation manager.
WebKitGeolocationManager provides API to get the geographical position of the user. Once a #WebKitGeolocationPermissionRequest is allowed, when WebKit needs to know the user location #WebKitGeolocationManager::start signal is emitted. If the signal is handled and returns %TRUE, the application is responsible for providing the position every time it's updated by calling webkit_geolocation_manager_update_position(). The signal #WebKitGeolocationManager::stop will be emitted when location updates are no longer needed.
func GeolocationManagerNewFromInternalPtr ¶
func GeolocationManagerNewFromInternalPtr(ptr uintptr) *GeolocationManager
func (*GeolocationManager) ConnectStart ¶
func (x *GeolocationManager) ConnectStart(cb *func(GeolocationManager) bool) uint
The signal is emitted to notify that @manager needs to start receiving position updates. After this signal is emitted the user should provide the updates using webkit_geolocation_manager_update_position() every time the position changes, or use webkit_geolocation_manager_failed() in case it isn't possible to determine the current position.
If the signal is not handled, WebKit will try to determine the position using GeoClue if available.
func (*GeolocationManager) ConnectStop ¶
func (x *GeolocationManager) ConnectStop(cb *func(GeolocationManager)) uint
The signal is emitted to notify that @manager doesn't need to receive position updates anymore.
func (*GeolocationManager) Failed ¶
func (x *GeolocationManager) Failed(ErrorMessageVar string)
Notify @manager that determining the position failed.
func (*GeolocationManager) GetEnableHighAccuracy ¶
func (x *GeolocationManager) GetEnableHighAccuracy() bool
Get whether high accuracy is enabled.
func (*GeolocationManager) GetPropertyEnableHighAccuracy ¶ added in v0.0.4
func (x *GeolocationManager) GetPropertyEnableHighAccuracy() bool
GetPropertyEnableHighAccuracy gets the "enable-high-accuracy" property. Whether high accuracy is enabled. This is a read-only property that will be set to %TRUE when a #WebKitGeolocationManager needs to get accurate position updates. You can connect to notify::enable-high-accuracy signal to monitor it.
func (*GeolocationManager) GoPointer ¶
func (c *GeolocationManager) GoPointer() uintptr
func (*GeolocationManager) SetGoPointer ¶
func (c *GeolocationManager) SetGoPointer(ptr uintptr)
func (*GeolocationManager) UpdatePosition ¶
func (x *GeolocationManager) UpdatePosition(PositionVar *GeolocationPosition)
Notify @manager that position has been updated to @position.
type GeolocationManagerClass ¶
type GeolocationManagerClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*GeolocationManagerClass) GoPointer ¶
func (x *GeolocationManagerClass) GoPointer() uintptr
type GeolocationPermissionRequest ¶
A permission request for sharing the user's location.
WebKitGeolocationPermissionRequest represents a request for permission to decide whether WebKit should provide the user's location to a website when requested through the Geolocation API.
When a WebKitGeolocationPermissionRequest is not handled by the user, it is denied by default.
When embedding web views in your application, you *must* configure an application identifier to allow web content to use geolocation services. The identifier *must* match the name of the `.desktop` file which describes the application, sans the suffix.
If your application uses #GApplication (or any subclass like #GtkApplication), WebKit will automatically use the identifier returned by g_application_get_application_id(). This is the recommended approach for enabling geolocation in applications.
If an identifier cannot be obtained through #GApplication, the value returned by g_get_prgname() will be used instead as a fallback. For programs which cannot use #GApplication, calling g_set_prgname() early during initialization is needed when the name of the executable on disk does not match the name of a valid `.desktop` file.
func GeolocationPermissionRequestNewFromInternalPtr ¶
func GeolocationPermissionRequestNewFromInternalPtr(ptr uintptr) *GeolocationPermissionRequest
func (*GeolocationPermissionRequest) Allow ¶
func (x *GeolocationPermissionRequest) Allow()
Allow the action which triggered this request.
func (*GeolocationPermissionRequest) Deny ¶
func (x *GeolocationPermissionRequest) Deny()
Deny the action which triggered this request.
func (*GeolocationPermissionRequest) GoPointer ¶
func (c *GeolocationPermissionRequest) GoPointer() uintptr
func (*GeolocationPermissionRequest) SetGoPointer ¶
func (c *GeolocationPermissionRequest) SetGoPointer(ptr uintptr)
type GeolocationPermissionRequestClass ¶
type GeolocationPermissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*GeolocationPermissionRequestClass) GoPointer ¶
func (x *GeolocationPermissionRequestClass) GoPointer() uintptr
type GeolocationPosition ¶
type GeolocationPosition struct {
// contains filtered or unexported fields
}
An opaque struct to provide position updates to a #WebKitGeolocationManager.
WebKitGeolocationPosition is an opaque struct used to provide position updates to a #WebKitGeolocationManager using webkit_geolocation_manager_update_position().
func NewGeolocationPosition ¶
func NewGeolocationPosition(LatitudeVar float64, LongitudeVar float64, AccuracyVar float64) *GeolocationPosition
Create a new #WebKitGeolocationPosition.
func (*GeolocationPosition) Copy ¶
func (x *GeolocationPosition) Copy() *GeolocationPosition
Make a copy of the #WebKitGeolocationPosition.
func (*GeolocationPosition) Free ¶
func (x *GeolocationPosition) Free()
Free the #WebKitGeolocationPosition
func (*GeolocationPosition) GoPointer ¶
func (x *GeolocationPosition) GoPointer() uintptr
func (*GeolocationPosition) SetAltitude ¶
func (x *GeolocationPosition) SetAltitude(AltitudeVar float64)
Set the @position altitude.
func (*GeolocationPosition) SetAltitudeAccuracy ¶
func (x *GeolocationPosition) SetAltitudeAccuracy(AltitudeAccuracyVar float64)
Set the accuracy of @position altitude.
func (*GeolocationPosition) SetHeading ¶
func (x *GeolocationPosition) SetHeading(HeadingVar float64)
Set the @position heading.
Set the @position heading, as a positive angle between the direction of movement and the North direction, in clockwise direction.
func (*GeolocationPosition) SetSpeed ¶
func (x *GeolocationPosition) SetSpeed(SpeedVar float64)
Set the @position speed.
func (*GeolocationPosition) SetTimestamp ¶
func (x *GeolocationPosition) SetTimestamp(TimestampVar uint64)
Set the @position timestamp.
By default it's the time when the @position was created.
type HardwareAccelerationPolicy ¶
type HardwareAccelerationPolicy int
Enum values used for determining the hardware acceleration policy.
const ( // Hardware acceleration is always enabled, even for websites not requesting it. HardwareAccelerationPolicyAlwaysValue HardwareAccelerationPolicy = 0 // Hardware acceleration is always disabled, even for websites requesting it. HardwareAccelerationPolicyNeverValue HardwareAccelerationPolicy = 1 )
type HitTestResult ¶
Result of a Hit Test.
A Hit Test is an operation to get context information about a given point in a #WebKitWebView. #WebKitHitTestResult represents the result of a Hit Test. It provides context information about what is at the coordinates of the Hit Test, such as if there's a link, an image or a media.
You can get the context of the HitTestResult with webkit_hit_test_result_get_context() that returns a bitmask of #WebKitHitTestResultContext flags. You can also use webkit_hit_test_result_context_is_link(), webkit_hit_test_result_context_is_image() and webkit_hit_test_result_context_is_media() to determine whether there's a link, image or a media element at the coordinates of the Hit Test. Note that it's possible that several #WebKitHitTestResultContext flags are active at the same time, for example if there's a link containing an image.
When the mouse is moved over a #WebKitWebView a Hit Test is performed for the mouse coordinates and #WebKitWebView::mouse-target-changed signal is emitted with a #WebKitHitTestResult.
func HitTestResultNewFromInternalPtr ¶
func HitTestResultNewFromInternalPtr(ptr uintptr) *HitTestResult
func (*HitTestResult) ContextIsEditable ¶
func (x *HitTestResult) ContextIsEditable() bool
Gets whether %WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE flag is present in #WebKitHitTestResult:context.
func (*HitTestResult) ContextIsImage ¶
func (x *HitTestResult) ContextIsImage() bool
Gets whether %WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE flag is present in #WebKitHitTestResult:context.
func (*HitTestResult) ContextIsLink ¶
func (x *HitTestResult) ContextIsLink() bool
Gets whether %WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK flag is present in #WebKitHitTestResult:context.
func (*HitTestResult) ContextIsMedia ¶
func (x *HitTestResult) ContextIsMedia() bool
Gets whether %WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA flag is present in #WebKitHitTestResult:context.
func (*HitTestResult) ContextIsScrollbar ¶
func (x *HitTestResult) ContextIsScrollbar() bool
Gets whether %WEBKIT_HIT_TEST_RESULT_CONTEXT_SCROLLBAR flag is present in #WebKitHitTestResult:context.
func (*HitTestResult) ContextIsSelection ¶
func (x *HitTestResult) ContextIsSelection() bool
Gets whether %WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION flag is present in #WebKitHitTestResult:context.
func (*HitTestResult) GetContext ¶
func (x *HitTestResult) GetContext() uint
Gets the value of the #WebKitHitTestResult:context property.
func (*HitTestResult) GetImageUri ¶
func (x *HitTestResult) GetImageUri() string
Gets the value of the #WebKitHitTestResult:image-uri property.
func (*HitTestResult) GetLinkLabel ¶
func (x *HitTestResult) GetLinkLabel() string
Gets the value of the #WebKitHitTestResult:link-label property.
func (*HitTestResult) GetLinkTitle ¶
func (x *HitTestResult) GetLinkTitle() string
Gets the value of the #WebKitHitTestResult:link-title property.
func (*HitTestResult) GetLinkUri ¶
func (x *HitTestResult) GetLinkUri() string
Gets the value of the #WebKitHitTestResult:link-uri property.
func (*HitTestResult) GetMediaUri ¶
func (x *HitTestResult) GetMediaUri() string
Gets the value of the #WebKitHitTestResult:media-uri property.
func (*HitTestResult) GetPropertyContext ¶ added in v0.0.4
func (x *HitTestResult) GetPropertyContext() uint
GetPropertyContext gets the "context" property. Bitmask of #WebKitHitTestResultContext flags representing the context of the #WebKitHitTestResult.
func (*HitTestResult) GetPropertyImageUri ¶ added in v0.0.4
func (x *HitTestResult) GetPropertyImageUri() string
GetPropertyImageUri gets the "image-uri" property. The URI of the image if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE is present in #WebKitHitTestResult:context
func (*HitTestResult) GetPropertyLinkLabel ¶ added in v0.0.4
func (x *HitTestResult) GetPropertyLinkLabel() string
GetPropertyLinkLabel gets the "link-label" property. The label of the link if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in #WebKitHitTestResult:context
func (*HitTestResult) GetPropertyLinkTitle ¶ added in v0.0.4
func (x *HitTestResult) GetPropertyLinkTitle() string
GetPropertyLinkTitle gets the "link-title" property. The title of the link if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in #WebKitHitTestResult:context
func (*HitTestResult) GetPropertyLinkUri ¶ added in v0.0.4
func (x *HitTestResult) GetPropertyLinkUri() string
GetPropertyLinkUri gets the "link-uri" property. The URI of the link if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in #WebKitHitTestResult:context
func (*HitTestResult) GetPropertyMediaUri ¶ added in v0.0.4
func (x *HitTestResult) GetPropertyMediaUri() string
GetPropertyMediaUri gets the "media-uri" property. The URI of the media if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA is present in #WebKitHitTestResult:context
func (*HitTestResult) GoPointer ¶
func (c *HitTestResult) GoPointer() uintptr
func (*HitTestResult) SetGoPointer ¶
func (c *HitTestResult) SetGoPointer(ptr uintptr)
func (*HitTestResult) SetPropertyContext ¶ added in v0.0.4
func (x *HitTestResult) SetPropertyContext(value uint)
SetPropertyContext sets the "context" property. Bitmask of #WebKitHitTestResultContext flags representing the context of the #WebKitHitTestResult.
func (*HitTestResult) SetPropertyImageUri ¶ added in v0.0.4
func (x *HitTestResult) SetPropertyImageUri(value string)
SetPropertyImageUri sets the "image-uri" property. The URI of the image if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE is present in #WebKitHitTestResult:context
func (*HitTestResult) SetPropertyLinkLabel ¶ added in v0.0.4
func (x *HitTestResult) SetPropertyLinkLabel(value string)
SetPropertyLinkLabel sets the "link-label" property. The label of the link if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in #WebKitHitTestResult:context
func (*HitTestResult) SetPropertyLinkTitle ¶ added in v0.0.4
func (x *HitTestResult) SetPropertyLinkTitle(value string)
SetPropertyLinkTitle sets the "link-title" property. The title of the link if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in #WebKitHitTestResult:context
func (*HitTestResult) SetPropertyLinkUri ¶ added in v0.0.4
func (x *HitTestResult) SetPropertyLinkUri(value string)
SetPropertyLinkUri sets the "link-uri" property. The URI of the link if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK is present in #WebKitHitTestResult:context
func (*HitTestResult) SetPropertyMediaUri ¶ added in v0.0.4
func (x *HitTestResult) SetPropertyMediaUri(value string)
SetPropertyMediaUri sets the "media-uri" property. The URI of the media if flag %WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA is present in #WebKitHitTestResult:context
type HitTestResultClass ¶
type HitTestResultClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*HitTestResultClass) GoPointer ¶
func (x *HitTestResultClass) GoPointer() uintptr
type HitTestResultContext ¶
type HitTestResultContext int
Enum values with flags representing the context of a #WebKitHitTestResult.
const ( // anywhere in the document. HitTestResultContextDocumentValue HitTestResultContext = 2 // a hyperlink element. HitTestResultContextLinkValue HitTestResultContext = 4 // an image element. HitTestResultContextImageValue HitTestResultContext = 8 // a video or audio element. HitTestResultContextMediaValue HitTestResultContext = 16 // an editable element HitTestResultContextEditableValue HitTestResultContext = 32 // a scrollbar element. HitTestResultContextScrollbarValue HitTestResultContext = 64 // a selected element. Since 2.8 HitTestResultContextSelectionValue HitTestResultContext = 128 )
type ITPFirstParty ¶
type ITPFirstParty struct {
// contains filtered or unexported fields
}
Describes a first party origin.
func (*ITPFirstParty) GetDomain ¶
func (x *ITPFirstParty) GetDomain() string
Get the domain name of @itp_first_party.
func (*ITPFirstParty) GetLastUpdateTime ¶
func (x *ITPFirstParty) GetLastUpdateTime() *glib.DateTime
Get the last time a #WebKitITPThirdParty has been seen under @itp_first_party.
Each @WebKitITPFirstParty is created by webkit_itp_third_party_get_first_parties() and therefore corresponds to exactly one #WebKitITPThirdParty.
func (*ITPFirstParty) GetWebsiteDataAccessAllowed ¶
func (x *ITPFirstParty) GetWebsiteDataAccessAllowed() bool
Get whether @itp_first_party has granted website data access to its #WebKitITPThirdParty.
Each @WebKitITPFirstParty is created by webkit_itp_third_party_get_first_parties() and therefore corresponds to exactly one #WebKitITPThirdParty.
func (*ITPFirstParty) GoPointer ¶
func (x *ITPFirstParty) GoPointer() uintptr
func (*ITPFirstParty) Ref ¶
func (x *ITPFirstParty) Ref() *ITPFirstParty
Atomically increments the reference count of @itp_first_party by one.
This function is MT-safe and may be called from any thread.
func (*ITPFirstParty) Unref ¶
func (x *ITPFirstParty) Unref()
Atomically decrements the reference count of @itp_first_party by one.
If the reference count drops to 0, all memory allocated by #WebKitITPFirstParty is released. This function is MT-safe and may be called from any thread.
type ITPThirdParty ¶
type ITPThirdParty struct {
// contains filtered or unexported fields
}
Describes a third party origin.
func (*ITPThirdParty) GetDomain ¶
func (x *ITPThirdParty) GetDomain() string
Get the domain name of @itp_third_party.
func (*ITPThirdParty) GetFirstParties ¶
func (x *ITPThirdParty) GetFirstParties() *glib.List
Get the list of #WebKitITPFirstParty under which @itp_third_party has been seen.
func (*ITPThirdParty) GoPointer ¶
func (x *ITPThirdParty) GoPointer() uintptr
func (*ITPThirdParty) Ref ¶
func (x *ITPThirdParty) Ref() *ITPThirdParty
Atomically increments the reference count of @itp_third_party by one.
This function is MT-safe and may be called from any thread.
func (*ITPThirdParty) Unref ¶
func (x *ITPThirdParty) Unref()
Atomically decrements the reference count of @itp_third_party by one.
If the reference count drops to 0, all memory allocated by #WebKitITPThirdParty is released. This function is MT-safe and may be called from any thread.
type InputHints ¶
type InputHints int
Enum values used to describe hints that might be taken into account by input methods.
const ( // No special behavior suggested InputHintNoneValue InputHints = 0 // Suggest spell checking InputHintSpellcheckValue InputHints = 1 // Suggest to not autocapitlize InputHintLowercaseValue InputHints = 2 // Suggest to capitalize all text InputHintUppercaseCharsValue InputHints = 4 // Suggest to capitalize the first character of each word InputHintUppercaseWordsValue InputHints = 8 // Suggest to capitalize the first word of each sentence InputHintUppercaseSentencesValue InputHints = 16 // Suggest to not show an onscreen keyboard InputHintInhibitOskValue InputHints = 32 )
type InputMethodContext ¶
Base class for input method contexts.
WebKitInputMethodContext defines the interface to implement WebKit input methods. The input methods are used by WebKit, when editable content is focused, to map from key events to Unicode character strings.
An input method may consume multiple key events in sequence and finally output the composed result. This is called preediting, and an input method may provide feedback about this process by displaying the intermediate composition states as preedit text.
func InputMethodContextNewFromInternalPtr ¶
func InputMethodContextNewFromInternalPtr(ptr uintptr) *InputMethodContext
func (*InputMethodContext) ConnectCommitted ¶
func (x *InputMethodContext) ConnectCommitted(cb *func(InputMethodContext, string)) uint
Emitted when a complete input sequence has been entered by the user. This can be a single character immediately after a key press or the final result of preediting.
func (*InputMethodContext) ConnectDeleteSurrounding ¶
func (x *InputMethodContext) ConnectDeleteSurrounding(cb *func(InputMethodContext, int, uint)) uint
Emitted when the input method wants to delete the context surrounding the cursor. If @offset is a negative value, it means a position before the cursor.
func (*InputMethodContext) ConnectPreeditChanged ¶
func (x *InputMethodContext) ConnectPreeditChanged(cb *func(InputMethodContext)) uint
Emitted whenever the preedit sequence currently being entered has changed. It is also emitted at the end of a preedit sequence, in which case webkit_input_method_context_get_preedit() returns the empty string.
func (*InputMethodContext) ConnectPreeditFinished ¶
func (x *InputMethodContext) ConnectPreeditFinished(cb *func(InputMethodContext)) uint
Emitted when a preediting sequence has been completed or canceled.
func (*InputMethodContext) ConnectPreeditStarted ¶
func (x *InputMethodContext) ConnectPreeditStarted(cb *func(InputMethodContext)) uint
Emitted when a new preediting sequence starts.
func (*InputMethodContext) FilterKeyEvent ¶
func (x *InputMethodContext) FilterKeyEvent(KeyEventVar *gdk.Event) bool
Allow @key_event to be handled by the input method.
If %TRUE is returned, then no further processing should be done for the key event.
func (*InputMethodContext) GetInputHints ¶
func (x *InputMethodContext) GetInputHints() InputHints
Get the value of the #WebKitInputMethodContext:input-hints property.
func (*InputMethodContext) GetInputPurpose ¶
func (x *InputMethodContext) GetInputPurpose() InputPurpose
Get the value of the #WebKitInputMethodContext:input-purpose property.
func (*InputMethodContext) GetPreedit ¶
func (x *InputMethodContext) GetPreedit(TextVar *string, UnderlinesVar **glib.List, CursorOffsetVar *uint)
Get the pre-edit string and a list of WebKitInputMethodUnderline.
Get the current pre-edit string for the @context, and a list of WebKitInputMethodUnderline to apply to the string. The string will be displayed inserted at @cursor_offset.
func (*InputMethodContext) GoPointer ¶
func (c *InputMethodContext) GoPointer() uintptr
func (*InputMethodContext) NotifyCursorArea ¶
func (x *InputMethodContext) NotifyCursorArea(XVar int, YVar int, WidthVar int, HeightVar int)
Notify @context that cursor area changed in input associated.
func (*InputMethodContext) NotifyFocusIn ¶
func (x *InputMethodContext) NotifyFocusIn()
Notify @context that input associated has gained focus.
func (*InputMethodContext) NotifyFocusOut ¶
func (x *InputMethodContext) NotifyFocusOut()
Notify @context that input associated has lost focus.
func (*InputMethodContext) NotifySurrounding ¶
func (x *InputMethodContext) NotifySurrounding(TextVar string, LengthVar int, CursorIndexVar uint, SelectionIndexVar uint)
Notify @context that the context surrounding the cursor has changed.
If there's no selection @selection_index is the same as @cursor_index.
func (*InputMethodContext) Reset ¶
func (x *InputMethodContext) Reset()
Reset the @context.
This will typically cause the input to clear the preedit state.
func (*InputMethodContext) SetEnablePreedit ¶
func (x *InputMethodContext) SetEnablePreedit(EnabledVar bool)
Set whether @context should enable preedit to display feedback.
func (*InputMethodContext) SetGoPointer ¶
func (c *InputMethodContext) SetGoPointer(ptr uintptr)
func (*InputMethodContext) SetInputHints ¶
func (x *InputMethodContext) SetInputHints(HintsVar InputHints)
Set the value of the #WebKitInputMethodContext:input-hints property.
func (*InputMethodContext) SetInputPurpose ¶
func (x *InputMethodContext) SetInputPurpose(PurposeVar InputPurpose)
Set the value of the #WebKitInputMethodContext:input-purpose property.
type InputMethodContextClass ¶
type InputMethodContextClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*InputMethodContextClass) GetCommitted ¶
func (x *InputMethodContextClass) GetCommitted() func(*InputMethodContext, string)
GetCommitted gets the "committed" callback function.
func (*InputMethodContextClass) GetDeleteSurrounding ¶
func (x *InputMethodContextClass) GetDeleteSurrounding() func(*InputMethodContext, int, uint)
GetDeleteSurrounding gets the "delete_surrounding" callback function.
func (*InputMethodContextClass) GetFilterKeyEvent ¶
func (x *InputMethodContextClass) GetFilterKeyEvent() func(*InputMethodContext, *gdk.Event) bool
GetFilterKeyEvent gets the "filter_key_event" callback function. Called via webkit_input_method_context_filter_key_event() on every
key press or release event. Every non-trivial input method needs to override this in order to implement the mapping from key events to text. A return value of %TRUE indicates to the caller that the event was consumed by the input method. In that case, the #WebKitInputMethodContext::committed signal should be emitted upon completion of a key sequence to pass the resulting text back to the editable element. Alternatively, %FALSE may be returned to indicate that the event wasn’t handled by the input method.
func (*InputMethodContextClass) GetGetPreedit ¶
func (x *InputMethodContextClass) GetGetPreedit() func(*InputMethodContext, *string, **glib.List, *uint)
GetGetPreedit gets the "get_preedit" callback function. Called via webkit_input_method_context_get_preedit() to
retrieve the text currently being preedited for display at the cursor position. Any input method which composes complex characters or any other compositions from multiple sequential key presses should override this method to provide feedback.
func (*InputMethodContextClass) GetNotifyCursorArea ¶
func (x *InputMethodContextClass) GetNotifyCursorArea() func(*InputMethodContext, int, int, int, int)
GetNotifyCursorArea gets the "notify_cursor_area" callback function. Called via webkit_input_method_context_notify_cursor_area()
to inform the input method of the current cursor location relative to the client window.
func (*InputMethodContextClass) GetNotifyFocusIn ¶
func (x *InputMethodContextClass) GetNotifyFocusIn() func(*InputMethodContext)
GetNotifyFocusIn gets the "notify_focus_in" callback function. Called via webkit_input_method_context_notify_focus_in() when
an editable element of the #WebKitWebView has gained focus.
func (*InputMethodContextClass) GetNotifyFocusOut ¶
func (x *InputMethodContextClass) GetNotifyFocusOut() func(*InputMethodContext)
GetNotifyFocusOut gets the "notify_focus_out" callback function. Called via webkit_input_method_context_notify_focus_out() when
an editable element of the #WebKitWebView has lost focus.
func (*InputMethodContextClass) GetNotifySurrounding ¶
func (x *InputMethodContextClass) GetNotifySurrounding() func(*InputMethodContext, string, uint, uint, uint)
GetNotifySurrounding gets the "notify_surrounding" callback function. Called via webkit_input_method_context_notify_surrounding() to
update the context surrounding the cursor. The provided text should not include the preedit string.
func (*InputMethodContextClass) GetPreeditChanged ¶
func (x *InputMethodContextClass) GetPreeditChanged() func(*InputMethodContext)
GetPreeditChanged gets the "preedit_changed" callback function.
func (*InputMethodContextClass) GetPreeditFinished ¶
func (x *InputMethodContextClass) GetPreeditFinished() func(*InputMethodContext)
GetPreeditFinished gets the "preedit_finished" callback function.
func (*InputMethodContextClass) GetPreeditStarted ¶
func (x *InputMethodContextClass) GetPreeditStarted() func(*InputMethodContext)
GetPreeditStarted gets the "preedit_started" callback function.
func (*InputMethodContextClass) GetReset ¶
func (x *InputMethodContextClass) GetReset() func(*InputMethodContext)
GetReset gets the "reset" callback function. Called via webkit_input_method_context_reset() to signal a change that
requires a reset. An input method that implements preediting should override this method to clear the preedit state on reset.
func (*InputMethodContextClass) GetSetEnablePreedit ¶
func (x *InputMethodContextClass) GetSetEnablePreedit() func(*InputMethodContext, bool)
GetSetEnablePreedit gets the "set_enable_preedit" callback function. Called via webkit_input_method_context_set_enable_preedit() to
control the use of the preedit string.
func (*InputMethodContextClass) GetWebkitReserved0 ¶
func (x *InputMethodContextClass) GetWebkitReserved0() func()
GetWebkitReserved0 gets the "_webkit_reserved0" callback function.
func (*InputMethodContextClass) GetWebkitReserved1 ¶
func (x *InputMethodContextClass) GetWebkitReserved1() func()
GetWebkitReserved1 gets the "_webkit_reserved1" callback function.
func (*InputMethodContextClass) GetWebkitReserved2 ¶
func (x *InputMethodContextClass) GetWebkitReserved2() func()
GetWebkitReserved2 gets the "_webkit_reserved2" callback function.
func (*InputMethodContextClass) GetWebkitReserved3 ¶
func (x *InputMethodContextClass) GetWebkitReserved3() func()
GetWebkitReserved3 gets the "_webkit_reserved3" callback function.
func (*InputMethodContextClass) GetWebkitReserved4 ¶
func (x *InputMethodContextClass) GetWebkitReserved4() func()
GetWebkitReserved4 gets the "_webkit_reserved4" callback function.
func (*InputMethodContextClass) GetWebkitReserved5 ¶
func (x *InputMethodContextClass) GetWebkitReserved5() func()
GetWebkitReserved5 gets the "_webkit_reserved5" callback function.
func (*InputMethodContextClass) GetWebkitReserved6 ¶
func (x *InputMethodContextClass) GetWebkitReserved6() func()
GetWebkitReserved6 gets the "_webkit_reserved6" callback function.
func (*InputMethodContextClass) GetWebkitReserved7 ¶
func (x *InputMethodContextClass) GetWebkitReserved7() func()
GetWebkitReserved7 gets the "_webkit_reserved7" callback function.
func (*InputMethodContextClass) GetWebkitReserved8 ¶
func (x *InputMethodContextClass) GetWebkitReserved8() func()
GetWebkitReserved8 gets the "_webkit_reserved8" callback function.
func (*InputMethodContextClass) GetWebkitReserved9 ¶
func (x *InputMethodContextClass) GetWebkitReserved9() func()
GetWebkitReserved9 gets the "_webkit_reserved9" callback function.
func (*InputMethodContextClass) GetWebkitReserved10 ¶
func (x *InputMethodContextClass) GetWebkitReserved10() func()
GetWebkitReserved10 gets the "_webkit_reserved10" callback function.
func (*InputMethodContextClass) GetWebkitReserved11 ¶
func (x *InputMethodContextClass) GetWebkitReserved11() func()
GetWebkitReserved11 gets the "_webkit_reserved11" callback function.
func (*InputMethodContextClass) GetWebkitReserved12 ¶
func (x *InputMethodContextClass) GetWebkitReserved12() func()
GetWebkitReserved12 gets the "_webkit_reserved12" callback function.
func (*InputMethodContextClass) GetWebkitReserved13 ¶
func (x *InputMethodContextClass) GetWebkitReserved13() func()
GetWebkitReserved13 gets the "_webkit_reserved13" callback function.
func (*InputMethodContextClass) GetWebkitReserved14 ¶
func (x *InputMethodContextClass) GetWebkitReserved14() func()
GetWebkitReserved14 gets the "_webkit_reserved14" callback function.
func (*InputMethodContextClass) GetWebkitReserved15 ¶
func (x *InputMethodContextClass) GetWebkitReserved15() func()
GetWebkitReserved15 gets the "_webkit_reserved15" callback function.
func (*InputMethodContextClass) GoPointer ¶
func (x *InputMethodContextClass) GoPointer() uintptr
func (*InputMethodContextClass) OverrideCommitted ¶
func (x *InputMethodContextClass) OverrideCommitted(cb func(*InputMethodContext, string))
OverrideCommitted sets the "committed" callback function.
func (*InputMethodContextClass) OverrideDeleteSurrounding ¶
func (x *InputMethodContextClass) OverrideDeleteSurrounding(cb func(*InputMethodContext, int, uint))
OverrideDeleteSurrounding sets the "delete_surrounding" callback function.
func (*InputMethodContextClass) OverrideFilterKeyEvent ¶
func (x *InputMethodContextClass) OverrideFilterKeyEvent(cb func(*InputMethodContext, *gdk.Event) bool)
OverrideFilterKeyEvent sets the "filter_key_event" callback function. Called via webkit_input_method_context_filter_key_event() on every
key press or release event. Every non-trivial input method needs to override this in order to implement the mapping from key events to text. A return value of %TRUE indicates to the caller that the event was consumed by the input method. In that case, the #WebKitInputMethodContext::committed signal should be emitted upon completion of a key sequence to pass the resulting text back to the editable element. Alternatively, %FALSE may be returned to indicate that the event wasn’t handled by the input method.
func (*InputMethodContextClass) OverrideGetPreedit ¶
func (x *InputMethodContextClass) OverrideGetPreedit(cb func(*InputMethodContext, *string, **glib.List, *uint))
OverrideGetPreedit sets the "get_preedit" callback function. Called via webkit_input_method_context_get_preedit() to
retrieve the text currently being preedited for display at the cursor position. Any input method which composes complex characters or any other compositions from multiple sequential key presses should override this method to provide feedback.
func (*InputMethodContextClass) OverrideNotifyCursorArea ¶
func (x *InputMethodContextClass) OverrideNotifyCursorArea(cb func(*InputMethodContext, int, int, int, int))
OverrideNotifyCursorArea sets the "notify_cursor_area" callback function. Called via webkit_input_method_context_notify_cursor_area()
to inform the input method of the current cursor location relative to the client window.
func (*InputMethodContextClass) OverrideNotifyFocusIn ¶
func (x *InputMethodContextClass) OverrideNotifyFocusIn(cb func(*InputMethodContext))
OverrideNotifyFocusIn sets the "notify_focus_in" callback function. Called via webkit_input_method_context_notify_focus_in() when
an editable element of the #WebKitWebView has gained focus.
func (*InputMethodContextClass) OverrideNotifyFocusOut ¶
func (x *InputMethodContextClass) OverrideNotifyFocusOut(cb func(*InputMethodContext))
OverrideNotifyFocusOut sets the "notify_focus_out" callback function. Called via webkit_input_method_context_notify_focus_out() when
an editable element of the #WebKitWebView has lost focus.
func (*InputMethodContextClass) OverrideNotifySurrounding ¶
func (x *InputMethodContextClass) OverrideNotifySurrounding(cb func(*InputMethodContext, string, uint, uint, uint))
OverrideNotifySurrounding sets the "notify_surrounding" callback function. Called via webkit_input_method_context_notify_surrounding() to
update the context surrounding the cursor. The provided text should not include the preedit string.
func (*InputMethodContextClass) OverridePreeditChanged ¶
func (x *InputMethodContextClass) OverridePreeditChanged(cb func(*InputMethodContext))
OverridePreeditChanged sets the "preedit_changed" callback function.
func (*InputMethodContextClass) OverridePreeditFinished ¶
func (x *InputMethodContextClass) OverridePreeditFinished(cb func(*InputMethodContext))
OverridePreeditFinished sets the "preedit_finished" callback function.
func (*InputMethodContextClass) OverridePreeditStarted ¶
func (x *InputMethodContextClass) OverridePreeditStarted(cb func(*InputMethodContext))
OverridePreeditStarted sets the "preedit_started" callback function.
func (*InputMethodContextClass) OverrideReset ¶
func (x *InputMethodContextClass) OverrideReset(cb func(*InputMethodContext))
OverrideReset sets the "reset" callback function. Called via webkit_input_method_context_reset() to signal a change that
requires a reset. An input method that implements preediting should override this method to clear the preedit state on reset.
func (*InputMethodContextClass) OverrideSetEnablePreedit ¶
func (x *InputMethodContextClass) OverrideSetEnablePreedit(cb func(*InputMethodContext, bool))
OverrideSetEnablePreedit sets the "set_enable_preedit" callback function. Called via webkit_input_method_context_set_enable_preedit() to
control the use of the preedit string.
func (*InputMethodContextClass) OverrideWebkitReserved0 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved0(cb func())
OverrideWebkitReserved0 sets the "_webkit_reserved0" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved1 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved1(cb func())
OverrideWebkitReserved1 sets the "_webkit_reserved1" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved2 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved2(cb func())
OverrideWebkitReserved2 sets the "_webkit_reserved2" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved3 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved3(cb func())
OverrideWebkitReserved3 sets the "_webkit_reserved3" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved4 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved4(cb func())
OverrideWebkitReserved4 sets the "_webkit_reserved4" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved5 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved5(cb func())
OverrideWebkitReserved5 sets the "_webkit_reserved5" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved6 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved6(cb func())
OverrideWebkitReserved6 sets the "_webkit_reserved6" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved7 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved7(cb func())
OverrideWebkitReserved7 sets the "_webkit_reserved7" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved8 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved8(cb func())
OverrideWebkitReserved8 sets the "_webkit_reserved8" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved9 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved9(cb func())
OverrideWebkitReserved9 sets the "_webkit_reserved9" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved10 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved10(cb func())
OverrideWebkitReserved10 sets the "_webkit_reserved10" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved11 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved11(cb func())
OverrideWebkitReserved11 sets the "_webkit_reserved11" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved12 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved12(cb func())
OverrideWebkitReserved12 sets the "_webkit_reserved12" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved13 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved13(cb func())
OverrideWebkitReserved13 sets the "_webkit_reserved13" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved14 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved14(cb func())
OverrideWebkitReserved14 sets the "_webkit_reserved14" callback function.
func (*InputMethodContextClass) OverrideWebkitReserved15 ¶
func (x *InputMethodContextClass) OverrideWebkitReserved15(cb func())
OverrideWebkitReserved15 sets the "_webkit_reserved15" callback function.
type InputMethodContextPrivate ¶
type InputMethodContextPrivate struct {
// contains filtered or unexported fields
}
func (*InputMethodContextPrivate) GoPointer ¶
func (x *InputMethodContextPrivate) GoPointer() uintptr
type InputMethodUnderline ¶
type InputMethodUnderline struct {
// contains filtered or unexported fields
}
Range of text in an preedit string to be shown underlined.
func NewInputMethodUnderline ¶
func NewInputMethodUnderline(StartOffsetVar uint, EndOffsetVar uint) *InputMethodUnderline
Create a new #WebKitInputMethodUnderline for the given range in preedit string
func (*InputMethodUnderline) Copy ¶
func (x *InputMethodUnderline) Copy() *InputMethodUnderline
Make a copy of the #WebKitInputMethodUnderline.
func (*InputMethodUnderline) Free ¶
func (x *InputMethodUnderline) Free()
Free the #WebKitInputMethodUnderline.
func (*InputMethodUnderline) GoPointer ¶
func (x *InputMethodUnderline) GoPointer() uintptr
func (*InputMethodUnderline) SetColor ¶
func (x *InputMethodUnderline) SetColor(RgbaVar *gdk.RGBA)
Set the color of the underline.
If @rgba is %NULL the foreground text color will be used for the underline too.
type InputPurpose ¶
type InputPurpose int
Enum values used to describe the primary purpose of the active editable element.
const ( // Editable element expects any characters InputPurposeFreeFormValue InputPurpose = 0 // Editable element expects digits InputPurposeDigitsValue InputPurpose = 1 // Editable element expects a number InputPurposeNumberValue InputPurpose = 2 // Editable element expects a telephone InputPurposePhoneValue InputPurpose = 3 // Editable element expects a URL InputPurposeUrlValue InputPurpose = 4 // Editable element expects an email InputPurposeEmailValue InputPurpose = 5 // Editable element expects a password InputPurposePasswordValue InputPurpose = 6 )
type InsecureContentEvent ¶
type InsecureContentEvent int
Enum values previously used to denote the different events which can trigger the detection of insecure content. Since 2.46, WebKit generally no longer loads insecure content in secure contexts.
const ( // Insecure content has been detected by // trying to execute any kind of logic (e.g. a script) from an // untrusted source. InsecureContentRunValue InsecureContentEvent = 0 // Insecure content has been // detected by trying to display any kind of resource (e.g. an image) // from an untrusted source. InsecureContentDisplayedValue InsecureContentEvent = 1 )
type JavascriptError ¶
type JavascriptError int
Enum values used to denote errors happening when executing JavaScript
const ( // An exception was raised in JavaScript execution JavascriptErrorScriptFailedValue JavascriptError = 699 // An unsupported parameter has been used to call and async function from API. Since 2.40 JavascriptErrorInvalidParameterValue JavascriptError = 600 // The result of JavaScript execution could not be returned. Since 2.40 JavascriptErrorInvalidResultValue JavascriptError = 601 )
type LoadEvent ¶
type LoadEvent int
Enum values used to denote the different events that happen during a #WebKitWebView load operation.
const ( // A new load request has been made. // No data has been received yet, empty structures have // been allocated to perform the load; the load may still // fail due to transport issues such as not being able to // resolve a name, or connect to a port. LoadStartedValue LoadEvent = 0 // A provisional data source received // a server redirect. LoadRedirectedValue LoadEvent = 1 // The content started arriving for a page load. // The necessary transport requirements are established, and the // load is being performed. LoadCommittedValue LoadEvent = 2 // Load completed. All resources are done loading // or there was an error during the load operation. LoadFinishedValue LoadEvent = 3 )
type MediaCaptureState ¶
type MediaCaptureState int
Enum values used to specify the capture state of a media device.
const ( // Media capture is disabled. MediaCaptureStateNoneValue MediaCaptureState = 0 // Media capture is active. MediaCaptureStateActiveValue MediaCaptureState = 1 // Media capture is muted. MediaCaptureStateMutedValue MediaCaptureState = 2 )
type MediaError ¶
type MediaError int
Enum values used to denote the various media errors.
const ( // Preliminary load failure for media content types. A new load will be started to perform the media load. Since: 2.40 MediaErrorWillHandleLoadValue MediaError = 204 )
type MediaKeySystemPermissionRequest ¶
A permission request for using an EME Content Decryption Module.
WebKitMediaKeySystemPermissionRequest represents a request for permission to decide whether WebKit should use the given CDM to access protected media when requested through the MediaKeySystem API.
When a WebKitMediaKeySystemPermissionRequest is not handled by the user, it is denied by default.
When handling this permission request the application may perform additional installation of the requested CDM, unless it is already present on the host system.
func MediaKeySystemPermissionRequestNewFromInternalPtr ¶
func MediaKeySystemPermissionRequestNewFromInternalPtr(ptr uintptr) *MediaKeySystemPermissionRequest
func (*MediaKeySystemPermissionRequest) Allow ¶
func (x *MediaKeySystemPermissionRequest) Allow()
Allow the action which triggered this request.
func (*MediaKeySystemPermissionRequest) Deny ¶
func (x *MediaKeySystemPermissionRequest) Deny()
Deny the action which triggered this request.
func (*MediaKeySystemPermissionRequest) GoPointer ¶
func (c *MediaKeySystemPermissionRequest) GoPointer() uintptr
func (*MediaKeySystemPermissionRequest) SetGoPointer ¶
func (c *MediaKeySystemPermissionRequest) SetGoPointer(ptr uintptr)
type MediaKeySystemPermissionRequestClass ¶
type MediaKeySystemPermissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*MediaKeySystemPermissionRequestClass) GoPointer ¶
func (x *MediaKeySystemPermissionRequestClass) GoPointer() uintptr
type MemoryPressureSettings ¶
type MemoryPressureSettings struct {
// contains filtered or unexported fields
}
A boxed type representing the settings for the memory pressure handler
#WebKitMemoryPressureSettings is a boxed type that can be used to provide some custom settings to control how the memory pressure situations are handled by the different processes.
The memory pressure system implemented inside the different process will try to keep the memory usage under the defined memory limit. In order to do that, it will check the used memory with a user defined frequency and decide whether it should try to release memory. The thresholds passed will define how urgent is to release that memory.
Take into account that badly defined parameters can greatly reduce the performance of the engine. For example, setting memory limit too low with a fast poll interval can cause the process to constantly be trying to release memory.
A #WebKitMemoryPressureSettings can be passed to a #WebKitWebContext constructor, and the settings will be applied to all the web processes created by that context.
A #WebKitMemoryPressureSettings can be passed to webkit_website_data_manager_set_memory_pressure_settings(), and the settings will be applied to all the network processes created after that call by any instance of #WebKitWebsiteDataManager.
func NewMemoryPressureSettings ¶
func NewMemoryPressureSettings() *MemoryPressureSettings
Create a new #WebKitMemoryPressureSettings with the default values.
func (*MemoryPressureSettings) Copy ¶
func (x *MemoryPressureSettings) Copy() *MemoryPressureSettings
Make a copy of @settings.
func (*MemoryPressureSettings) Free ¶
func (x *MemoryPressureSettings) Free()
Free the #WebKitMemoryPressureSettings.
func (*MemoryPressureSettings) GetConservativeThreshold ¶
func (x *MemoryPressureSettings) GetConservativeThreshold() float64
Gets the conservative memory usage threshold.
func (*MemoryPressureSettings) GetKillThreshold ¶
func (x *MemoryPressureSettings) GetKillThreshold() float64
Gets the kill memory usage threshold.
func (*MemoryPressureSettings) GetMemoryLimit ¶
func (x *MemoryPressureSettings) GetMemoryLimit() uint
Gets the memory usage limit.
func (*MemoryPressureSettings) GetPollInterval ¶
func (x *MemoryPressureSettings) GetPollInterval() float64
Gets the interval at which memory usage is checked.
func (*MemoryPressureSettings) GetStrictThreshold ¶
func (x *MemoryPressureSettings) GetStrictThreshold() float64
Gets the strict memory usage threshold.
func (*MemoryPressureSettings) GoPointer ¶
func (x *MemoryPressureSettings) GoPointer() uintptr
func (*MemoryPressureSettings) SetConservativeThreshold ¶
func (x *MemoryPressureSettings) SetConservativeThreshold(ValueVar float64)
Sets the memory limit for the conservative policy to start working.
Sets @value as the fraction of the defined memory limit where the conservative policy starts working. This policy will try to reduce the memory footprint by releasing non critical memory.
The threshold must be bigger than 0 and smaller than 1, and it must be smaller than the strict threshold defined in @settings. The default value is 0.33.
func (*MemoryPressureSettings) SetKillThreshold ¶
func (x *MemoryPressureSettings) SetKillThreshold(ValueVar float64)
Sets @value as the fraction of the defined memory limit where the process will be killed.
The threshold must be a value bigger or equal to 0. A value of 0 means that the process is never killed. If the threshold is not 0, then it must be bigger than the strict threshold defined in @settings. The threshold can also have values bigger than 1. The default value is 0.
func (*MemoryPressureSettings) SetMemoryLimit ¶
func (x *MemoryPressureSettings) SetMemoryLimit(MemoryLimitVar uint)
Sets @memory_limit the memory limit value to @settings.
The default value is the system's RAM size with a maximum of 3GB.
func (*MemoryPressureSettings) SetPollInterval ¶
func (x *MemoryPressureSettings) SetPollInterval(ValueVar float64)
Sets @value as the poll interval used by @settings.
The poll interval value must be bigger than 0. The default value is 30 seconds.
func (*MemoryPressureSettings) SetStrictThreshold ¶
func (x *MemoryPressureSettings) SetStrictThreshold(ValueVar float64)
Sets the memory limit for the strict policy to start working.
Sets @value as the fraction of the defined memory limit where the strict policy starts working. This policy will try to reduce the memory footprint by releasing critical memory.
The threshold must be bigger than 0 and smaller than 1. Also, it must be bigger than the conservative threshold defined in @settings, and smaller than the kill threshold if the latter is not 0. The default value is 0.5.
type NavigationAction ¶
type NavigationAction struct {
// contains filtered or unexported fields
}
Provides details about interaction resulting in a resource load.
func NavigationActionFromPointer ¶ added in v0.0.7
func NavigationActionFromPointer(ptr uintptr) *NavigationAction
NavigationActionFromPointer wraps a raw pointer from the "create" signal into a NavigationAction copy so callers don't need unsafe in their code. The returned NavigationAction should be freed with (*NavigationAction).Free() when no longer needed.
func (*NavigationAction) Copy ¶
func (x *NavigationAction) Copy() *NavigationAction
Make a copy of @navigation.
func (*NavigationAction) GetFrameName ¶
func (x *NavigationAction) GetFrameName() string
Gets the @navigation target frame name. For example if navigation was triggered by clicking a link with a target attribute equal to "_blank", this will return the value of that attribute. In all other cases this function will return %NULL.
func (*NavigationAction) GetModifiers ¶
func (x *NavigationAction) GetModifiers() uint
Return the modifier keys.
Return a bitmask of #GdkModifierType values describing the modifier keys that were in effect when the navigation was requested
func (*NavigationAction) GetMouseButton ¶
func (x *NavigationAction) GetMouseButton() uint
Return the number of the mouse button that triggered the navigation.
Return the number of the mouse button that triggered the navigation, or 0 if the navigation was not started by a mouse event.
func (*NavigationAction) GetNavigationType ¶
func (x *NavigationAction) GetNavigationType() NavigationType
Return the type of action that triggered the navigation.
func (*NavigationAction) GetRequest ¶
func (x *NavigationAction) GetRequest() *URIRequest
Return the #WebKitURIRequest associated with the navigation action.
Modifications to the returned object are <emphasis>not</emphasis> taken into account when the request is sent over the network, and is intended only to aid in evaluating whether a navigation action should be taken or not. To modify requests before they are sent over the network the #WebKitPage::send-request signal can be used instead.
func (*NavigationAction) GoPointer ¶
func (x *NavigationAction) GoPointer() uintptr
func (*NavigationAction) IsRedirect ¶
func (x *NavigationAction) IsRedirect() bool
Returns whether the @navigation was redirected.
func (*NavigationAction) IsUserGesture ¶
func (x *NavigationAction) IsUserGesture() bool
Return whether the navigation was triggered by a user gesture like a mouse click.
type NavigationPolicyDecision ¶
type NavigationPolicyDecision struct {
}
A policy decision for navigation actions.
WebKitNavigationPolicyDecision represents a policy decision for events associated with navigations. If the value of #WebKitNavigationPolicyDecision:mouse-button is not 0, then the navigation was triggered by a mouse event.
func NavigationPolicyDecisionNewFromInternalPtr ¶
func NavigationPolicyDecisionNewFromInternalPtr(ptr uintptr) *NavigationPolicyDecision
func (*NavigationPolicyDecision) GetNavigationAction ¶
func (x *NavigationPolicyDecision) GetNavigationAction() *NavigationAction
Gets the value of the #WebKitNavigationPolicyDecision:navigation-action property.
func (*NavigationPolicyDecision) GetPropertyNavigationAction ¶ added in v0.0.4
func (x *NavigationPolicyDecision) GetPropertyNavigationAction() uintptr
GetPropertyNavigationAction gets the "navigation-action" property. The #WebKitNavigationAction that triggered this policy decision.
func (*NavigationPolicyDecision) GoPointer ¶
func (c *NavigationPolicyDecision) GoPointer() uintptr
func (*NavigationPolicyDecision) SetGoPointer ¶
func (c *NavigationPolicyDecision) SetGoPointer(ptr uintptr)
type NavigationPolicyDecisionClass ¶
type NavigationPolicyDecisionClass struct {
// contains filtered or unexported fields
}
func (*NavigationPolicyDecisionClass) GoPointer ¶
func (x *NavigationPolicyDecisionClass) GoPointer() uintptr
type NavigationType ¶
type NavigationType int
Enum values used to denote the various navigation types.
const ( NavigationTypeLinkClickedValue NavigationType = 0 NavigationTypeFormSubmittedValue NavigationType = 1 NavigationTypeBackForwardValue NavigationType = 2 NavigationTypeReloadValue NavigationType = 3 NavigationTypeFormResubmittedValue NavigationType = 4 NavigationTypeOtherValue NavigationType = 5 )
type NetworkError ¶
type NetworkError int
Enum values used to denote the various network errors.
const ( // Generic load failure NetworkErrorFailedValue NetworkError = 399 // Load failure due to transport error NetworkErrorTransportValue NetworkError = 300 // Load failure due to unknown protocol NetworkErrorUnknownProtocolValue NetworkError = 301 // Load failure due to cancellation NetworkErrorCancelledValue NetworkError = 302 // Load failure due to missing file NetworkErrorFileDoesNotExistValue NetworkError = 303 )
type NetworkProxyMode ¶
type NetworkProxyMode int
Enum values used to set the network proxy mode.
const ( // Use the default proxy of the system. NetworkProxyModeDefaultValue NetworkProxyMode = 0 // Do not use any proxy. NetworkProxyModeNoProxyValue NetworkProxyMode = 1 // Use custom proxy settings. NetworkProxyModeCustomValue NetworkProxyMode = 2 )
type NetworkProxySettings ¶
type NetworkProxySettings struct {
// contains filtered or unexported fields
}
Configures network proxies.
WebKitNetworkProxySettings can be used to provide a custom proxy configuration to a #WebKitNetworkSession. You need to call webkit_network_session_set_network_proxy_settings() with %WEBKIT_NETWORK_PROXY_MODE_CUSTOM and a WebKitNetworkProxySettings.
func NewNetworkProxySettings ¶
func NewNetworkProxySettings(DefaultProxyUriVar *string, IgnoreHostsVar []string) *NetworkProxySettings
Create a new #WebKitNetworkProxySettings with the given @default_proxy_uri and @ignore_hosts.
The default proxy URI will be used for any URI that doesn't match @ignore_hosts, and doesn't match any of the schemes added with webkit_network_proxy_settings_add_proxy_for_scheme(). If @default_proxy_uri starts with "socks://", it will be treated as referring to all three of the socks5, socks4a, and socks4 proxy types.
@ignore_hosts is a list of hostnames and IP addresses that the resolver should allow direct connections to. Entries can be in one of 4 formats: <itemizedlist> <listitem><para> A hostname, such as "example.com", ".example.com", or "*.example.com", any of which match "example.com" or any subdomain of it. </para></listitem> <listitem><para> An IPv4 or IPv6 address, such as "192.168.1.1", which matches only that address. </para></listitem> <listitem><para> A hostname or IP address followed by a port, such as "example.com:80", which matches whatever the hostname or IP address would match, but only for URLs with the (explicitly) indicated port. In the case of an IPv6 address, the address part must appear in brackets: "[::1]:443" </para></listitem> <listitem><para> An IP address range, given by a base address and prefix length, such as "fe80::/10", which matches any address in that range. </para></listitem> </itemizedlist>
Note that when dealing with Unicode hostnames, the matching is done against the ASCII form of the name. Also note that hostname exclusions apply only to connections made to hosts identified by name, and IP address exclusions apply only to connections made to hosts identified by address. That is, if example.com has an address of 192.168.1.1, and @ignore_hosts contains only "192.168.1.1", then a connection to "example.com" will use the proxy, and a connection to 192.168.1.1" will not.
func (*NetworkProxySettings) AddProxyForScheme ¶
func (x *NetworkProxySettings) AddProxyForScheme(SchemeVar string, ProxyUriVar string)
Adds a URI-scheme-specific proxy.
URIs whose scheme matches @uri_scheme will be proxied via @proxy_uri. As with the default proxy URI, if @proxy_uri starts with "socks://", it will be treated as referring to all three of the socks5, socks4a, and socks4 proxy types.
func (*NetworkProxySettings) Copy ¶
func (x *NetworkProxySettings) Copy() *NetworkProxySettings
Make a copy of the #WebKitNetworkProxySettings.
func (*NetworkProxySettings) Free ¶
func (x *NetworkProxySettings) Free()
Free the #WebKitNetworkProxySettings.
func (*NetworkProxySettings) GoPointer ¶
func (x *NetworkProxySettings) GoPointer() uintptr
type NetworkSession ¶
Manages network configuration.
func NetworkSessionGetDefault ¶
func NetworkSessionGetDefault() *NetworkSession
Get the default network session. The default network session is created using webkit_network_session_new() and passing %NULL as data and cache directories.
func NetworkSessionNewFromInternalPtr ¶
func NetworkSessionNewFromInternalPtr(ptr uintptr) *NetworkSession
func NewNetworkSession ¶
func NewNetworkSession(DataDirectoryVar *string, CacheDirectoryVar *string) *NetworkSession
Creates a new #WebKitNetworkSession with a persistent #WebKitWebsiteDataManager. The parameters @data_directory and @cache_directory will be used as construct properties of the #WebKitWebsiteDataManager of the network session. Note that if %NULL is passed, the default directory will be passed to #WebKitWebsiteDataManager so that webkit_website_data_manager_get_base_data_directory() and webkit_website_data_manager_get_base_cache_directory() always return a value for non ephemeral sessions.
It must be passed as construct parameter of a #WebKitWebView.
func NewNetworkSessionEphemeral ¶
func NewNetworkSessionEphemeral() *NetworkSession
Creates a new #WebKitNetworkSession with an ephemeral #WebKitWebsiteDataManager.
func (*NetworkSession) AllowTlsCertificateForHost ¶
func (x *NetworkSession) AllowTlsCertificateForHost(CertificateVar *gio.TlsCertificate, HostVar string)
Ignore further TLS errors on the @host for the certificate present in @info.
If @host is an IPv6 address, it should not be surrounded by brackets. This expectation matches g_uri_get_host().
func (*NetworkSession) ConnectDownloadStarted ¶
func (x *NetworkSession) ConnectDownloadStarted(cb *func(NetworkSession, uintptr)) uint
This signal is emitted when a new download request is made.
func (*NetworkSession) DownloadUri ¶
func (x *NetworkSession) DownloadUri(UriVar string) *Download
Requests downloading of the specified URI string.
The download operation will not be associated to any #WebKitWebView, if you are interested in starting a download from a particular #WebKitWebView use webkit_web_view_download_uri() instead.
func (*NetworkSession) GetCookieManager ¶
func (x *NetworkSession) GetCookieManager() *CookieManager
Get the #WebKitCookieManager of @session.
func (*NetworkSession) GetItpEnabled ¶
func (x *NetworkSession) GetItpEnabled() bool
Get whether Intelligent Tracking Prevention (ITP) is enabled or not.
func (*NetworkSession) GetItpSummary ¶
func (x *NetworkSession) GetItpSummary(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously get the list of #WebKitITPThirdParty seen for @session.
Every #WebKitITPThirdParty contains the list of #WebKitITPFirstParty under which it has been seen.
When the operation is finished, @callback will be called. You can then call webkit_network_session_get_itp_summary_finish() to get the result of the operation.
func (*NetworkSession) GetItpSummaryFinish ¶
func (x *NetworkSession) GetItpSummaryFinish(ResultVar gio.AsyncResult) (*glib.List, error)
Finish an asynchronous operation started with webkit_network_session_get_itp_summary().
func (*NetworkSession) GetPersistentCredentialStorageEnabled ¶
func (x *NetworkSession) GetPersistentCredentialStorageEnabled() bool
Get whether persistent credential storage is enabled or not.
See also webkit_network_session_set_persistent_credential_storage_enabled().
func (*NetworkSession) GetPropertyIsEphemeral ¶ added in v0.0.4
func (x *NetworkSession) GetPropertyIsEphemeral() bool
GetPropertyIsEphemeral gets the "is-ephemeral" property. Whether to create an ephermeral #WebKitWebsiteDataManager for the session.
func (*NetworkSession) GetTlsErrorsPolicy ¶
func (x *NetworkSession) GetTlsErrorsPolicy() TLSErrorsPolicy
Get the TLS errors policy of @session.
func (*NetworkSession) GetWebsiteDataManager ¶
func (x *NetworkSession) GetWebsiteDataManager() *WebsiteDataManager
Get the #WebKitWebsiteDataManager of @session.
func (*NetworkSession) GoPointer ¶
func (c *NetworkSession) GoPointer() uintptr
func (*NetworkSession) IsEphemeral ¶
func (x *NetworkSession) IsEphemeral() bool
Get whether @session is ephemeral. A #WebKitNetworkSession is ephemeral when its #WebKitWebsiteDataManager is ephemeral. See #WebKitWebsiteDataManager:is-ephemeral for more details.
func (*NetworkSession) PrefetchDns ¶
func (x *NetworkSession) PrefetchDns(HostnameVar string)
Resolve the domain name of the given @hostname in advance, so that if a URI of @hostname is requested the load will be performed more quickly.
func (*NetworkSession) SetGoPointer ¶
func (c *NetworkSession) SetGoPointer(ptr uintptr)
func (*NetworkSession) SetItpEnabled ¶
func (x *NetworkSession) SetItpEnabled(EnabledVar bool)
Enable or disable Intelligent Tracking Prevention (ITP).
When ITP is enabled resource load statistics are collected and used to decide whether to allow or block third-party cookies and prevent user tracking. Note that while ITP is enabled the accept policy %WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY is ignored and %WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS is used instead. See also webkit_cookie_session_set_accept_policy().
func (*NetworkSession) SetPersistentCredentialStorageEnabled ¶
func (x *NetworkSession) SetPersistentCredentialStorageEnabled(EnabledVar bool)
Enable or disable persistent credential storage.
When enabled, which is the default for non-ephemeral sessions, the network process will try to read and write HTTP authentiacation credentials from persistent storage.
func (*NetworkSession) SetPropertyCacheDirectory ¶ added in v0.0.4
func (x *NetworkSession) SetPropertyCacheDirectory(value string)
SetPropertyCacheDirectory sets the "cache-directory" property. The base caches directory used to create the #WebKitWebsiteDataManager. If %NULL, a default location will be used.
func (*NetworkSession) SetPropertyDataDirectory ¶ added in v0.0.4
func (x *NetworkSession) SetPropertyDataDirectory(value string)
SetPropertyDataDirectory sets the "data-directory" property. The base data directory used to create the #WebKitWebsiteDataManager. If %NULL, a default location will be used.
func (*NetworkSession) SetPropertyIsEphemeral ¶ added in v0.0.4
func (x *NetworkSession) SetPropertyIsEphemeral(value bool)
SetPropertyIsEphemeral sets the "is-ephemeral" property. Whether to create an ephermeral #WebKitWebsiteDataManager for the session.
func (*NetworkSession) SetProxySettings ¶
func (x *NetworkSession) SetProxySettings(ProxyModeVar NetworkProxyMode, ProxySettingsVar *NetworkProxySettings)
Set the network proxy settings to be used by connections started in @session session.
By default %WEBKIT_NETWORK_PROXY_MODE_DEFAULT is used, which means that the system settings will be used (g_proxy_resolver_get_default()). If you want to override the system default settings, you can either use %WEBKIT_NETWORK_PROXY_MODE_NO_PROXY to make sure no proxies are used at all, or %WEBKIT_NETWORK_PROXY_MODE_CUSTOM to provide your own proxy settings. When @proxy_mode is %WEBKIT_NETWORK_PROXY_MODE_CUSTOM @proxy_settings must be a valid #WebKitNetworkProxySettings; otherwise, @proxy_settings must be %NULL.
func (*NetworkSession) SetTlsErrorsPolicy ¶
func (x *NetworkSession) SetTlsErrorsPolicy(PolicyVar TLSErrorsPolicy)
Set the TLS errors policy of @session as @policy.
type NetworkSessionClass ¶
type NetworkSessionClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*NetworkSessionClass) GoPointer ¶
func (x *NetworkSessionClass) GoPointer() uintptr
type Notification ¶
Holds information about a notification that should be shown to the user.
func NotificationNewFromInternalPtr ¶
func NotificationNewFromInternalPtr(ptr uintptr) *Notification
func (*Notification) Clicked ¶
func (x *Notification) Clicked()
Tells WebKit the notification has been clicked.
This will emit the #WebKitNotification::clicked signal.
func (*Notification) ConnectClicked ¶
func (x *Notification) ConnectClicked(cb *func(Notification)) uint
Emitted when a notification has been clicked. See webkit_notification_clicked().
func (*Notification) ConnectClosed ¶
func (x *Notification) ConnectClosed(cb *func(Notification)) uint
Emitted when a notification has been withdrawn.
The default handler will close the notification using libnotify, if built with support for it.
func (*Notification) GetBody ¶
func (x *Notification) GetBody() string
Obtains the body for the notification.
func (*Notification) GetId ¶
func (x *Notification) GetId() uint64
Obtains the unique id for the notification.
func (*Notification) GetPropertyBody ¶ added in v0.0.4
func (x *Notification) GetPropertyBody() string
GetPropertyBody gets the "body" property. The body for the notification.
func (*Notification) GetPropertyId ¶ added in v0.0.4
func (x *Notification) GetPropertyId() uint64
GetPropertyId gets the "id" property. The unique id for the notification.
func (*Notification) GetPropertyTag ¶ added in v0.0.4
func (x *Notification) GetPropertyTag() string
GetPropertyTag gets the "tag" property. The tag identifier for the notification.
func (*Notification) GetPropertyTitle ¶ added in v0.0.4
func (x *Notification) GetPropertyTitle() string
GetPropertyTitle gets the "title" property. The title for the notification.
func (*Notification) GetTag ¶
func (x *Notification) GetTag() string
Obtains the tag identifier for the notification.
func (*Notification) GetTitle ¶
func (x *Notification) GetTitle() string
Obtains the title for the notification.
func (*Notification) GoPointer ¶
func (c *Notification) GoPointer() uintptr
func (*Notification) SetGoPointer ¶
func (c *Notification) SetGoPointer(ptr uintptr)
type NotificationClass ¶
type NotificationClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*NotificationClass) GoPointer ¶
func (x *NotificationClass) GoPointer() uintptr
type NotificationPermissionRequest ¶
A permission request for displaying web notifications.
WebKitNotificationPermissionRequest represents a request for permission to decide whether WebKit should provide the user with notifications through the Web Notification API.
When a WebKitNotificationPermissionRequest is not handled by the user, it is denied by default.
func NotificationPermissionRequestNewFromInternalPtr ¶
func NotificationPermissionRequestNewFromInternalPtr(ptr uintptr) *NotificationPermissionRequest
func (*NotificationPermissionRequest) Allow ¶
func (x *NotificationPermissionRequest) Allow()
Allow the action which triggered this request.
func (*NotificationPermissionRequest) Deny ¶
func (x *NotificationPermissionRequest) Deny()
Deny the action which triggered this request.
func (*NotificationPermissionRequest) GoPointer ¶
func (c *NotificationPermissionRequest) GoPointer() uintptr
func (*NotificationPermissionRequest) SetGoPointer ¶
func (c *NotificationPermissionRequest) SetGoPointer(ptr uintptr)
type NotificationPermissionRequestClass ¶
type NotificationPermissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*NotificationPermissionRequestClass) GoPointer ¶
func (x *NotificationPermissionRequestClass) GoPointer() uintptr
type OptionMenu ¶
Represents the dropdown menu of a `select` element in a #WebKitWebView.
When a select element in a #WebKitWebView needs to display a dropdown menu, the signal #WebKitWebView::show-option-menu is emitted, providing a WebKitOptionMenu with the #WebKitOptionMenuItem<!-- -->s that should be displayed.
func OptionMenuNewFromInternalPtr ¶
func OptionMenuNewFromInternalPtr(ptr uintptr) *OptionMenu
func (*OptionMenu) ActivateItem ¶
func (x *OptionMenu) ActivateItem(IndexVar uint)
Activates the #WebKitOptionMenuItem at @index in @menu.
Activating an item changes the value of the element making the item the active one. You are expected to close the menu with webkit_option_menu_close() after activating an item, calling this function again will have no effect.
func (*OptionMenu) Close ¶
func (x *OptionMenu) Close()
Request to close a #WebKitOptionMenu.
This emits WebKitOptionMenu::close signal. This function should always be called to notify WebKit that the associated menu has been closed. If the menu is closed and neither webkit_option_menu_select_item() nor webkit_option_menu_activate_item() have been called, the element value remains unchanged.
func (*OptionMenu) ConnectClose ¶
func (x *OptionMenu) ConnectClose(cb *func(OptionMenu)) uint
Emitted when closing a #WebKitOptionMenu is requested. This can happen when the user explicitly calls webkit_option_menu_close() or when the element is detached from the current page.
func (*OptionMenu) GetEvent ¶
func (x *OptionMenu) GetEvent() *gdk.Event
Gets the #GdkEvent that triggered the dropdown menu. If @menu was not triggered by a user interaction, like a mouse click, %NULL is returned.
func (*OptionMenu) GetItem ¶
func (x *OptionMenu) GetItem(IndexVar uint) *OptionMenuItem
Returns the #WebKitOptionMenuItem at @index in @menu.
func (*OptionMenu) GoPointer ¶
func (c *OptionMenu) GoPointer() uintptr
func (*OptionMenu) SelectItem ¶
func (x *OptionMenu) SelectItem(IndexVar uint)
Selects the #WebKitOptionMenuItem at @index in @menu.
Selecting an item changes the text shown by the combo button, but it doesn't change the value of the element. You need to explicitly activate the item with webkit_option_menu_select_item() or close the menu with webkit_option_menu_close() in which case the currently selected item will be activated.
func (*OptionMenu) SetGoPointer ¶
func (c *OptionMenu) SetGoPointer(ptr uintptr)
type OptionMenuClass ¶
type OptionMenuClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*OptionMenuClass) GoPointer ¶
func (x *OptionMenuClass) GoPointer() uintptr
type OptionMenuItem ¶
type OptionMenuItem struct {
// contains filtered or unexported fields
}
One item of a #WebKitOptionMenu.
The #WebKitOptionMenu is composed of WebKitOptionMenuItem<!-- -->s. A WebKitOptionMenuItem always has a label and can contain a tooltip text. You can use the WebKitOptionMenuItem of a #WebKitOptionMenu to build your own menus.
func (*OptionMenuItem) Copy ¶
func (x *OptionMenuItem) Copy() *OptionMenuItem
Make a copy of the #WebKitOptionMenuItem.
func (*OptionMenuItem) GetLabel ¶
func (x *OptionMenuItem) GetLabel() string
Get the label of a #WebKitOptionMenuItem.
func (*OptionMenuItem) GetTooltip ¶
func (x *OptionMenuItem) GetTooltip() string
Get the tooltip of a #WebKitOptionMenuItem.
func (*OptionMenuItem) GoPointer ¶
func (x *OptionMenuItem) GoPointer() uintptr
func (*OptionMenuItem) IsEnabled ¶
func (x *OptionMenuItem) IsEnabled() bool
Whether a #WebKitOptionMenuItem is enabled.
func (*OptionMenuItem) IsGroupChild ¶
func (x *OptionMenuItem) IsGroupChild() bool
Whether a #WebKitOptionMenuItem is a group child.
func (*OptionMenuItem) IsGroupLabel ¶
func (x *OptionMenuItem) IsGroupLabel() bool
Whether a #WebKitOptionMenuItem is a group label.
func (*OptionMenuItem) IsSelected ¶
func (x *OptionMenuItem) IsSelected() bool
Whether a #WebKitOptionMenuItem is the currently selected one.
type PermissionRequest ¶
A permission request.
There are situations where an embedder would need to ask the user for permission to do certain types of operations, such as switching to fullscreen mode or reporting the user's location through the standard Geolocation API. In those cases, WebKit will emit a #WebKitWebView::permission-request signal with a #WebKitPermissionRequest object attached to it.
type PermissionRequestBase ¶
type PermissionRequestBase struct {
Ptr uintptr
}
func (*PermissionRequestBase) Allow ¶
func (x *PermissionRequestBase) Allow()
Allow the action which triggered this request.
func (*PermissionRequestBase) Deny ¶
func (x *PermissionRequestBase) Deny()
Deny the action which triggered this request.
func (*PermissionRequestBase) GoPointer ¶
func (x *PermissionRequestBase) GoPointer() uintptr
func (*PermissionRequestBase) SetGoPointer ¶
func (x *PermissionRequestBase) SetGoPointer(ptr uintptr)
type PermissionRequestInterface ¶
type PermissionRequestInterface struct {
ParentInterface uintptr
// contains filtered or unexported fields
}
func (*PermissionRequestInterface) GetAllow ¶
func (x *PermissionRequestInterface) GetAllow() func(PermissionRequest)
GetAllow gets the "allow" callback function.
func (*PermissionRequestInterface) GetDeny ¶
func (x *PermissionRequestInterface) GetDeny() func(PermissionRequest)
GetDeny gets the "deny" callback function.
func (*PermissionRequestInterface) GoPointer ¶
func (x *PermissionRequestInterface) GoPointer() uintptr
func (*PermissionRequestInterface) OverrideAllow ¶
func (x *PermissionRequestInterface) OverrideAllow(cb func(PermissionRequest))
OverrideAllow sets the "allow" callback function.
func (*PermissionRequestInterface) OverrideDeny ¶
func (x *PermissionRequestInterface) OverrideDeny(cb func(PermissionRequest))
OverrideDeny sets the "deny" callback function.
type PermissionState ¶
type PermissionState int
Enum values representing query permission results.
const ( // Access to the feature is granted. PermissionStateGrantedValue PermissionState = 0 // Access to the feature is denied. PermissionStateDeniedValue PermissionState = 1 // Access to the feature has to be requested via user prompt. PermissionStatePromptValue PermissionState = 2 )
type PermissionStateQuery ¶
type PermissionStateQuery struct {
// contains filtered or unexported fields
}
This query represents a user's choice to allow or deny access to "powerful features" of the platform, as specified in the [Permissions W3C Specification](https://w3c.github.io/permissions/).
When signalled by the #WebKitWebView through the `query-permission-state` signal, the application has to eventually respond, via `webkit_permission_state_query_finish()`, whether it grants, denies or requests a dedicated permission prompt for the given query.
When a #WebKitPermissionStateQuery is not handled by the user, the user-agent is instructed to `prompt` the user for the given permission.
func (*PermissionStateQuery) Finish ¶
func (x *PermissionStateQuery) Finish(StateVar PermissionState)
Notify the web-engine of the selected permission state for the given query. This function should only be called as a response to the `WebKitWebView::query-permission-state` signal.
func (*PermissionStateQuery) GetName ¶
func (x *PermissionStateQuery) GetName() string
Get the permission name for which access is being queried.
func (*PermissionStateQuery) GetSecurityOrigin ¶
func (x *PermissionStateQuery) GetSecurityOrigin() *SecurityOrigin
Get the permission origin for which access is being queried.
func (*PermissionStateQuery) GoPointer ¶
func (x *PermissionStateQuery) GoPointer() uintptr
func (*PermissionStateQuery) Ref ¶
func (x *PermissionStateQuery) Ref() *PermissionStateQuery
Atomically increments the reference count of @query by one.
This function is MT-safe and may be called from any thread.
func (*PermissionStateQuery) Unref ¶
func (x *PermissionStateQuery) Unref()
Atomically decrements the reference count of @query by one.
If the reference count drops to 0, all memory allocated by #WebKitPermissionStateQuery is released. This function is MT-safe and may be called from any thread.
type PointerLockPermissionRequest ¶
A permission request for locking the pointer.
WebKitPointerLockPermissionRequest represents a request for permission to decide whether WebKit can lock the pointer device when requested by web content.
When a WebKitPointerLockPermissionRequest is not handled by the user, it is allowed by default.
func PointerLockPermissionRequestNewFromInternalPtr ¶
func PointerLockPermissionRequestNewFromInternalPtr(ptr uintptr) *PointerLockPermissionRequest
func (*PointerLockPermissionRequest) Allow ¶
func (x *PointerLockPermissionRequest) Allow()
Allow the action which triggered this request.
func (*PointerLockPermissionRequest) Deny ¶
func (x *PointerLockPermissionRequest) Deny()
Deny the action which triggered this request.
func (*PointerLockPermissionRequest) GoPointer ¶
func (c *PointerLockPermissionRequest) GoPointer() uintptr
func (*PointerLockPermissionRequest) SetGoPointer ¶
func (c *PointerLockPermissionRequest) SetGoPointer(ptr uintptr)
type PointerLockPermissionRequestClass ¶
type PointerLockPermissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*PointerLockPermissionRequestClass) GoPointer ¶
func (x *PointerLockPermissionRequestClass) GoPointer() uintptr
type PolicyDecision ¶
A pending policy decision.
Often WebKit allows the client to decide the policy for certain operations. For instance, a client may want to open a link in a new tab, block a navigation entirely, query the user or trigger a download instead of a navigation. In these cases WebKit will fire the #WebKitWebView::decide-policy signal with a #WebKitPolicyDecision object. If the signal handler does nothing, WebKit will act as if webkit_policy_decision_use() was called as soon as signal handling completes. To make a policy decision asynchronously, simply increment the reference count of the #WebKitPolicyDecision object.
func PolicyDecisionNewFromInternalPtr ¶
func PolicyDecisionNewFromInternalPtr(ptr uintptr) *PolicyDecision
func (*PolicyDecision) Download ¶
func (x *PolicyDecision) Download()
Spawn a download from this decision.
func (*PolicyDecision) GoPointer ¶
func (c *PolicyDecision) GoPointer() uintptr
func (*PolicyDecision) Ignore ¶
func (x *PolicyDecision) Ignore()
#WebKitResponsePolicyDecision, this would cancel the request.
Ignore the action which triggered this decision. For instance, for a #WebKitResponsePolicyDecision, this would cancel the request.
func (*PolicyDecision) SetGoPointer ¶
func (c *PolicyDecision) SetGoPointer(ptr uintptr)
func (*PolicyDecision) Use ¶
func (x *PolicyDecision) Use()
Accept the action which triggered this decision.
func (*PolicyDecision) UseWithPolicies ¶
func (x *PolicyDecision) UseWithPolicies(PoliciesVar *WebsitePolicies)
Accept the navigation action and continue with provided @policies.
Accept the navigation action which triggered this decision, and continue with @policies affecting all subsequent loads of resources in the origin associated with the accepted navigation action.
For example, a navigation decision to a video sharing website may be accepted under the priviso no movies are allowed to autoplay. The autoplay policy in this case would be set in the @policies.
type PolicyDecisionClass ¶
type PolicyDecisionClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*PolicyDecisionClass) GetWebkitReserved0 ¶
func (x *PolicyDecisionClass) GetWebkitReserved0() func()
GetWebkitReserved0 gets the "_webkit_reserved0" callback function.
func (*PolicyDecisionClass) GetWebkitReserved1 ¶
func (x *PolicyDecisionClass) GetWebkitReserved1() func()
GetWebkitReserved1 gets the "_webkit_reserved1" callback function.
func (*PolicyDecisionClass) GetWebkitReserved2 ¶
func (x *PolicyDecisionClass) GetWebkitReserved2() func()
GetWebkitReserved2 gets the "_webkit_reserved2" callback function.
func (*PolicyDecisionClass) GetWebkitReserved3 ¶
func (x *PolicyDecisionClass) GetWebkitReserved3() func()
GetWebkitReserved3 gets the "_webkit_reserved3" callback function.
func (*PolicyDecisionClass) GetWebkitReserved4 ¶
func (x *PolicyDecisionClass) GetWebkitReserved4() func()
GetWebkitReserved4 gets the "_webkit_reserved4" callback function.
func (*PolicyDecisionClass) GetWebkitReserved5 ¶
func (x *PolicyDecisionClass) GetWebkitReserved5() func()
GetWebkitReserved5 gets the "_webkit_reserved5" callback function.
func (*PolicyDecisionClass) GetWebkitReserved6 ¶
func (x *PolicyDecisionClass) GetWebkitReserved6() func()
GetWebkitReserved6 gets the "_webkit_reserved6" callback function.
func (*PolicyDecisionClass) GetWebkitReserved7 ¶
func (x *PolicyDecisionClass) GetWebkitReserved7() func()
GetWebkitReserved7 gets the "_webkit_reserved7" callback function.
func (*PolicyDecisionClass) GoPointer ¶
func (x *PolicyDecisionClass) GoPointer() uintptr
func (*PolicyDecisionClass) OverrideWebkitReserved0 ¶
func (x *PolicyDecisionClass) OverrideWebkitReserved0(cb func())
OverrideWebkitReserved0 sets the "_webkit_reserved0" callback function.
func (*PolicyDecisionClass) OverrideWebkitReserved1 ¶
func (x *PolicyDecisionClass) OverrideWebkitReserved1(cb func())
OverrideWebkitReserved1 sets the "_webkit_reserved1" callback function.
func (*PolicyDecisionClass) OverrideWebkitReserved2 ¶
func (x *PolicyDecisionClass) OverrideWebkitReserved2(cb func())
OverrideWebkitReserved2 sets the "_webkit_reserved2" callback function.
func (*PolicyDecisionClass) OverrideWebkitReserved3 ¶
func (x *PolicyDecisionClass) OverrideWebkitReserved3(cb func())
OverrideWebkitReserved3 sets the "_webkit_reserved3" callback function.
func (*PolicyDecisionClass) OverrideWebkitReserved4 ¶
func (x *PolicyDecisionClass) OverrideWebkitReserved4(cb func())
OverrideWebkitReserved4 sets the "_webkit_reserved4" callback function.
func (*PolicyDecisionClass) OverrideWebkitReserved5 ¶
func (x *PolicyDecisionClass) OverrideWebkitReserved5(cb func())
OverrideWebkitReserved5 sets the "_webkit_reserved5" callback function.
func (*PolicyDecisionClass) OverrideWebkitReserved6 ¶
func (x *PolicyDecisionClass) OverrideWebkitReserved6(cb func())
OverrideWebkitReserved6 sets the "_webkit_reserved6" callback function.
func (*PolicyDecisionClass) OverrideWebkitReserved7 ¶
func (x *PolicyDecisionClass) OverrideWebkitReserved7(cb func())
OverrideWebkitReserved7 sets the "_webkit_reserved7" callback function.
type PolicyDecisionPrivate ¶
type PolicyDecisionPrivate struct {
// contains filtered or unexported fields
}
func (*PolicyDecisionPrivate) GoPointer ¶
func (x *PolicyDecisionPrivate) GoPointer() uintptr
type PolicyDecisionType ¶
type PolicyDecisionType int
Enum values used for determining the type of a policy decision during #WebKitWebView::decide-policy.
const ( // is requested when WebKit is about to navigate to a new page in either the // main frame or a subframe. Acceptable policy decisions are either // webkit_policy_decision_use() or webkit_policy_decision_ignore(). This // type of policy decision is always a #WebKitNavigationPolicyDecision. PolicyDecisionTypeNavigationActionValue PolicyDecisionType = 0 // This type of policy decision // is requested when WebKit is about to create a new window. Acceptable policy // decisions are either webkit_policy_decision_use() or // webkit_policy_decision_ignore(). This type of policy decision is always // a #WebKitNavigationPolicyDecision. These decisions are useful for implementing // special actions for new windows, such as forcing the new window to open // in a tab when a keyboard modifier is active or handling a special // target attribute on <a> elements. PolicyDecisionTypeNewWindowActionValue PolicyDecisionType = 1 // This type of decision is used when WebKit has // received a response for a network resource and is about to start the load. // Note that these resources include all subresources of a page such as images // and stylesheets as well as main documents. Appropriate policy responses to // this decision are webkit_policy_decision_use(), webkit_policy_decision_ignore(), // or webkit_policy_decision_download(). This type of policy decision is always // a #WebKitResponsePolicyDecision. This decision is useful for forcing // some types of resources to be downloaded rather than rendered in the WebView // or to block the transfer of resources entirely. PolicyDecisionTypeResponseValue PolicyDecisionType = 2 )
type PolicyError ¶
type PolicyError int
Enum values used to denote the various policy errors.
const ( // Generic load failure due to policy error PolicyErrorFailedValue PolicyError = 199 // Load failure due to unsupported mime type PolicyErrorCannotShowMimeTypeValue PolicyError = 100 // Load failure due to URI that can not be shown PolicyErrorCannotShowUriValue PolicyError = 101 // Load failure due to frame load interruption by policy change PolicyErrorFrameLoadInterruptedByPolicyChangeValue PolicyError = 102 // Load failure due to port restriction PolicyErrorCannotUseRestrictedPortValue PolicyError = 103 )
type PrintError ¶
type PrintError int
Enum values used to denote the various print errors.
const ( // Unspecified error during a print operation PrintErrorGeneralValue PrintError = 599 // Selected printer cannot be found PrintErrorPrinterNotFoundValue PrintError = 500 // Invalid page range PrintErrorInvalidPageRangeValue PrintError = 501 )
type PrintOperation ¶
Controls a print operation.
A #WebKitPrintOperation controls a print operation in WebKit. With a similar API to #GtkPrintOperation, it lets you set the print settings with webkit_print_operation_set_print_settings() or display the print dialog with webkit_print_operation_run_dialog().
func NewPrintOperation ¶
func NewPrintOperation(WebViewVar *WebView) *PrintOperation
Create a new #WebKitPrintOperation to print @web_view contents.
func PrintOperationNewFromInternalPtr ¶
func PrintOperationNewFromInternalPtr(ptr uintptr) *PrintOperation
func (*PrintOperation) ConnectFailed ¶
func (x *PrintOperation) ConnectFailed(cb *func(PrintOperation, uintptr)) uint
Emitted when an error occurs while printing. The given @error, of the domain %WEBKIT_PRINT_ERROR, contains further details of the failure. The #WebKitPrintOperation::finished signal is emitted after this one.
func (*PrintOperation) ConnectFinished ¶
func (x *PrintOperation) ConnectFinished(cb *func(PrintOperation)) uint
Emitted when the print operation has finished doing everything required for printing.
func (*PrintOperation) GetPageSetup ¶
func (x *PrintOperation) GetPageSetup() *gtk.PageSetup
Return the current page setup of @print_operation.
It returns %NULL until either webkit_print_operation_set_page_setup() or webkit_print_operation_run_dialog() have been called.
func (*PrintOperation) GetPrintSettings ¶
func (x *PrintOperation) GetPrintSettings() *gtk.PrintSettings
Return the current print settings of @print_operation.
It returns %NULL until either webkit_print_operation_set_print_settings() or webkit_print_operation_run_dialog() have been called.
func (*PrintOperation) GoPointer ¶
func (c *PrintOperation) GoPointer() uintptr
func (*PrintOperation) Print ¶
func (x *PrintOperation) Print()
Start a print operation using current print settings and page setup.
Start a print operation using current print settings and page setup without showing the print dialog. If either print settings or page setup are not set with webkit_print_operation_set_print_settings() and webkit_print_operation_set_page_setup(), the default options will be used and the print job will be sent to the default printer. The #WebKitPrintOperation::finished signal is emitted when the printing operation finishes. If an error occurs while printing the signal #WebKitPrintOperation::failed is emitted before #WebKitPrintOperation::finished.
If the app is running in a sandbox, this function only works if printing to a file that is in a location accessible to the sandbox, usually acquired through the File Chooser portal. This function will not work for physical printers when running in a sandbox.
func (*PrintOperation) RunDialog ¶
func (x *PrintOperation) RunDialog(ParentVar *gtk.Window) PrintOperationResponse
Run the print dialog and start printing.
Run the print dialog and start printing using the options selected by the user. This method returns when the print dialog is closed. If the print dialog is cancelled %WEBKIT_PRINT_OPERATION_RESPONSE_CANCEL is returned. If the user clicks on the print button, %WEBKIT_PRINT_OPERATION_RESPONSE_PRINT is returned and the print operation starts. In this case, the #WebKitPrintOperation::finished signal is emitted when the operation finishes. If an error occurs while printing, the signal #WebKitPrintOperation::failed is emitted before #WebKitPrintOperation::finished. If the print dialog is not cancelled current print settings and page setup of @print_operation are updated with options selected by the user when Print button is pressed in print dialog. You can get the updated print settings and page setup by calling webkit_print_operation_get_print_settings() and webkit_print_operation_get_page_setup() after this method.
func (*PrintOperation) SetGoPointer ¶
func (c *PrintOperation) SetGoPointer(ptr uintptr)
func (*PrintOperation) SetPageSetup ¶
func (x *PrintOperation) SetPageSetup(PageSetupVar *gtk.PageSetup)
Set the current page setup of @print_operation.
Current page setup is used for the initial values of the print dialog when webkit_print_operation_run_dialog() is called.
func (*PrintOperation) SetPrintSettings ¶
func (x *PrintOperation) SetPrintSettings(PrintSettingsVar *gtk.PrintSettings)
Set the current print settings of @print_operation.
Set the current print settings of @print_operation. Current print settings are used for the initial values of the print dialog when webkit_print_operation_run_dialog() is called.
type PrintOperationClass ¶
type PrintOperationClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*PrintOperationClass) GoPointer ¶
func (x *PrintOperationClass) GoPointer() uintptr
type PrintOperationResponse ¶
type PrintOperationResponse int
Enum values representing the response of the print dialog shown with webkit_print_operation_run_dialog().
const ( // Print button was clicked in print dialog PrintOperationResponsePrintValue PrintOperationResponse = 0 // Print dialog was cancelled PrintOperationResponseCancelValue PrintOperationResponse = 1 )
type ResponsePolicyDecision ¶
type ResponsePolicyDecision struct {
PolicyDecision
}
A policy decision for resource responses.
WebKitResponsePolicyDecision represents a policy decision for a resource response, whether from the network or the local system. A very common use case for these types of decision is deciding whether or not to download a particular resource or to load it normally.
func ResponsePolicyDecisionNewFromInternalPtr ¶
func ResponsePolicyDecisionNewFromInternalPtr(ptr uintptr) *ResponsePolicyDecision
func (*ResponsePolicyDecision) GetRequest ¶
func (x *ResponsePolicyDecision) GetRequest() *URIRequest
Return the #WebKitURIRequest associated with the response decision.
Modifications to the returned object are <emphasis>not</emphasis> taken into account when the request is sent over the network, and is intended only to aid in evaluating whether a response decision should be taken or not. To modify requests before they are sent over the network the #WebKitPage::send-request signal can be used instead.
func (*ResponsePolicyDecision) GetResponse ¶
func (x *ResponsePolicyDecision) GetResponse() *URIResponse
Gets the value of the #WebKitResponsePolicyDecision:response property.
func (*ResponsePolicyDecision) GoPointer ¶
func (c *ResponsePolicyDecision) GoPointer() uintptr
func (*ResponsePolicyDecision) IsMainFrameMainResource ¶
func (x *ResponsePolicyDecision) IsMainFrameMainResource() bool
Gets whether the request is the main frame main resource
func (*ResponsePolicyDecision) IsMimeTypeSupported ¶
func (x *ResponsePolicyDecision) IsMimeTypeSupported() bool
Gets whether the MIME type of the response can be displayed in the #WebKitWebView.
Gets whether the MIME type of the response can be displayed in the #WebKitWebView that triggered this policy decision request. See also webkit_web_view_can_show_mime_type().
func (*ResponsePolicyDecision) SetGoPointer ¶
func (c *ResponsePolicyDecision) SetGoPointer(ptr uintptr)
type ResponsePolicyDecisionClass ¶
type ResponsePolicyDecisionClass struct {
ParentClass PolicyDecisionClass
// contains filtered or unexported fields
}
func (*ResponsePolicyDecisionClass) GoPointer ¶
func (x *ResponsePolicyDecisionClass) GoPointer() uintptr
type SaveMode ¶
type SaveMode int
Enum values to specify the different ways in which a #WebKitWebView can save its current web page into a self-contained file.
const ( // Save the current page using the MHTML format. SaveModeMhtmlValue SaveMode = 0 )
type ScriptDialog ¶
type ScriptDialog struct {
// contains filtered or unexported fields
}
Carries details to be shown in user-facing dialogs.
func (*ScriptDialog) Close ¶
func (x *ScriptDialog) Close()
Close @dialog.
When handling a #WebKitScriptDialog asynchronously (webkit_script_dialog_ref() was called in #WebKitWebView::script-dialog callback), this function needs to be called to notify that we are done with the script dialog. The dialog will be closed on destruction if this function hasn't been called before.
func (*ScriptDialog) ConfirmSetConfirmed ¶
func (x *ScriptDialog) ConfirmSetConfirmed(ConfirmedVar bool)
Set whether the user confirmed the dialog.
This method is used for %WEBKIT_SCRIPT_DIALOG_CONFIRM and %WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM dialogs when #WebKitWebView::script-dialog signal is emitted to set whether the user confirmed the dialog or not. The default implementation of #WebKitWebView::script-dialog signal sets %TRUE when the OK or Stay buttons are clicked and %FALSE otherwise. It's an error to use this method with a #WebKitScriptDialog that is not of type %WEBKIT_SCRIPT_DIALOG_CONFIRM or %WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM
func (*ScriptDialog) GetDialogType ¶
func (x *ScriptDialog) GetDialogType() ScriptDialogType
Get the dialog type of a #WebKitScriptDialog.
func (*ScriptDialog) GetMessage ¶
func (x *ScriptDialog) GetMessage() string
Get the message of a #WebKitScriptDialog.
func (*ScriptDialog) GoPointer ¶
func (x *ScriptDialog) GoPointer() uintptr
func (*ScriptDialog) PromptGetDefaultText ¶
func (x *ScriptDialog) PromptGetDefaultText() string
Get the default text of a #WebKitScriptDialog of type %WEBKIT_SCRIPT_DIALOG_PROMPT.
It's an error to use this method with a #WebKitScriptDialog that is not of type %WEBKIT_SCRIPT_DIALOG_PROMPT.
func (*ScriptDialog) PromptSetText ¶
func (x *ScriptDialog) PromptSetText(TextVar string)
Set the text entered by the user in the dialog.
This method is used for %WEBKIT_SCRIPT_DIALOG_PROMPT dialogs when #WebKitWebView::script-dialog signal is emitted to set the text entered by the user. The default implementation of #WebKitWebView::script-dialog signal sets the text of the entry form when OK button is clicked, otherwise %NULL is set. It's an error to use this method with a #WebKitScriptDialog that is not of type %WEBKIT_SCRIPT_DIALOG_PROMPT.
func (*ScriptDialog) Ref ¶
func (x *ScriptDialog) Ref() *ScriptDialog
Atomically increments the reference count of @dialog by one.
This function is MT-safe and may be called from any thread.
func (*ScriptDialog) Unref ¶
func (x *ScriptDialog) Unref()
Atomically decrements the reference count of @dialog by one.
If the reference count drops to 0, all memory allocated by the #WebKitScriptdialog is released. This function is MT-safe and may be called from any thread.
type ScriptDialogType ¶
type ScriptDialogType int
Enum values used for determining the type of #WebKitScriptDialog
const ( // Alert script dialog, used to show a // message to the user. ScriptDialogAlertValue ScriptDialogType = 0 // Confirm script dialog, used to ask // confirmation to the user. ScriptDialogConfirmValue ScriptDialogType = 1 // Prompt script dialog, used to ask // information to the user. ScriptDialogPromptValue ScriptDialogType = 2 // Before unload confirm dialog, // used to ask confirmation to leave the current page to the user. Since 2.12 ScriptDialogBeforeUnloadConfirmValue ScriptDialogType = 3 )
type ScriptMessageReply ¶
type ScriptMessageReply struct {
// contains filtered or unexported fields
}
A reply for a script message received. If no reply has been sent by the user, an automatically generated reply with undefined value with be sent.
func (*ScriptMessageReply) GoPointer ¶
func (x *ScriptMessageReply) GoPointer() uintptr
func (*ScriptMessageReply) Ref ¶
func (x *ScriptMessageReply) Ref() *ScriptMessageReply
Atomically increments the reference count of @script_message_reply by one.
func (*ScriptMessageReply) ReturnErrorMessage ¶
func (x *ScriptMessageReply) ReturnErrorMessage(ErrorMessageVar string)
Reply to a script message with an error message.
func (*ScriptMessageReply) ReturnValue ¶
func (x *ScriptMessageReply) ReturnValue(ReplyValueVar *javascriptcore.Value)
Reply to a script message with a value.
This function can be called twice for passing the reply value in.
func (*ScriptMessageReply) Unref ¶
func (x *ScriptMessageReply) Unref()
Atomically decrements the reference count of @script_message_reply by one.
If the reference count drops to 0, all the memory allocated by the #WebKitScriptMessageReply is released. This function is MT-safe and may be called from any thread.
type SecurityManager ¶
Controls security settings in a #WebKitWebContext.
The #WebKitSecurityManager defines security settings for URI schemes in a #WebKitWebContext. Get it from the context with webkit_web_context_get_security_manager(), and use it to register a URI scheme with a certain security level, or to check if it already has it.
func SecurityManagerNewFromInternalPtr ¶
func SecurityManagerNewFromInternalPtr(ptr uintptr) *SecurityManager
func (*SecurityManager) GoPointer ¶
func (c *SecurityManager) GoPointer() uintptr
func (*SecurityManager) RegisterUriSchemeAsCorsEnabled ¶
func (x *SecurityManager) RegisterUriSchemeAsCorsEnabled(SchemeVar string)
Register @scheme as a CORS (Cross-origin resource sharing) enabled scheme.
This means that CORS requests are allowed. See W3C CORS specification http://www.w3.org/TR/cors/.
func (*SecurityManager) RegisterUriSchemeAsDisplayIsolated ¶
func (x *SecurityManager) RegisterUriSchemeAsDisplayIsolated(SchemeVar string)
Register @scheme as a display isolated scheme.
This means that pages cannot display these URIs unless they are from the same scheme.
func (*SecurityManager) RegisterUriSchemeAsEmptyDocument ¶
func (x *SecurityManager) RegisterUriSchemeAsEmptyDocument(SchemeVar string)
Register @scheme as an empty document scheme.
This means that they are allowed to commit synchronously.
func (*SecurityManager) RegisterUriSchemeAsLocal ¶
func (x *SecurityManager) RegisterUriSchemeAsLocal(SchemeVar string)
Register @scheme as a local scheme.
This means that other non-local pages cannot link to or access URIs of this scheme.
func (*SecurityManager) RegisterUriSchemeAsNoAccess ¶
func (x *SecurityManager) RegisterUriSchemeAsNoAccess(SchemeVar string)
Register @scheme as a no-access scheme.
This means that pages loaded with this URI scheme cannot access pages loaded with any other URI scheme.
func (*SecurityManager) RegisterUriSchemeAsSecure ¶
func (x *SecurityManager) RegisterUriSchemeAsSecure(SchemeVar string)
Register @scheme as a secure scheme.
This means that mixed content warnings won't be generated for this scheme when included by an HTTPS page.
func (*SecurityManager) SetGoPointer ¶
func (c *SecurityManager) SetGoPointer(ptr uintptr)
func (*SecurityManager) UriSchemeIsCorsEnabled ¶
func (x *SecurityManager) UriSchemeIsCorsEnabled(SchemeVar string) bool
Whether @scheme is considered as a CORS enabled scheme.
See also webkit_security_manager_register_uri_scheme_as_cors_enabled().
func (*SecurityManager) UriSchemeIsDisplayIsolated ¶
func (x *SecurityManager) UriSchemeIsDisplayIsolated(SchemeVar string) bool
Whether @scheme is considered as a display isolated scheme.
See also webkit_security_manager_register_uri_scheme_as_display_isolated().
func (*SecurityManager) UriSchemeIsEmptyDocument ¶
func (x *SecurityManager) UriSchemeIsEmptyDocument(SchemeVar string) bool
Whether @scheme is considered as an empty document scheme.
See also webkit_security_manager_register_uri_scheme_as_empty_document().
func (*SecurityManager) UriSchemeIsLocal ¶
func (x *SecurityManager) UriSchemeIsLocal(SchemeVar string) bool
Whether @scheme is considered as a local scheme.
See also webkit_security_manager_register_uri_scheme_as_local().
func (*SecurityManager) UriSchemeIsNoAccess ¶
func (x *SecurityManager) UriSchemeIsNoAccess(SchemeVar string) bool
Whether @scheme is considered as a no-access scheme.
See also webkit_security_manager_register_uri_scheme_as_no_access().
func (*SecurityManager) UriSchemeIsSecure ¶
func (x *SecurityManager) UriSchemeIsSecure(SchemeVar string) bool
Whether @scheme is considered as a secure scheme.
See also webkit_security_manager_register_uri_scheme_as_secure().
type SecurityManagerClass ¶
type SecurityManagerClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*SecurityManagerClass) GoPointer ¶
func (x *SecurityManagerClass) GoPointer() uintptr
type SecurityOrigin ¶
type SecurityOrigin struct {
// contains filtered or unexported fields
}
A security boundary for websites.
#WebKitSecurityOrigin is a representation of a security domain defined by websites. A security origin consists of a protocol, a hostname, and an optional port number.
Resources with the same security origin can generally access each other for client-side scripting or database access. When comparing origins, beware that if both protocol and host are %NULL, the origins should not be treated as equal.
func NewSecurityOrigin ¶
func NewSecurityOrigin(ProtocolVar string, HostVar string, PortVar uint16) *SecurityOrigin
Create a new security origin from the provided protocol, host and port.
func NewSecurityOriginForUri ¶
func NewSecurityOriginForUri(UriVar string) *SecurityOrigin
Create a new security origin from the provided.
Create a new security origin from the provided URI. Components of @uri other than protocol, host, and port do not affect the created #WebKitSecurityOrigin.
func (*SecurityOrigin) GetHost ¶
func (x *SecurityOrigin) GetHost() string
Gets the hostname of @origin.
It is reasonable for this to be %NULL if its protocol does not require a host component.
func (*SecurityOrigin) GetPort ¶
func (x *SecurityOrigin) GetPort() uint16
Gets the port of @origin.
This function will always return 0 if the port is the default port for the given protocol. For example, http://example.com has the same security origin as http://example.com:80, and this function will return 0 for a #WebKitSecurityOrigin constructed from either URI.
func (*SecurityOrigin) GetProtocol ¶
func (x *SecurityOrigin) GetProtocol() string
Gets the protocol of @origin.
func (*SecurityOrigin) GoPointer ¶
func (x *SecurityOrigin) GoPointer() uintptr
func (*SecurityOrigin) Ref ¶
func (x *SecurityOrigin) Ref() *SecurityOrigin
Atomically increments the reference count of @origin by one.
This function is MT-safe and may be called from any thread.
func (*SecurityOrigin) ToString ¶
func (x *SecurityOrigin) ToString() string
Gets a string representation of @origin.
The string representation is a valid URI with only protocol, host, and port components, or %NULL.
func (*SecurityOrigin) Unref ¶
func (x *SecurityOrigin) Unref()
Atomically decrements the reference count of @origin by one.
If the reference count drops to 0, all memory allocated by #WebKitSecurityOrigin is released. This function is MT-safe and may be called from any thread.
type Settings ¶
Control the behaviour of a #WebKitWebView.
#WebKitSettings can be applied to a #WebKitWebView to control text charset, color, font sizes, printing mode, script support, loading of images and various other things on a #WebKitWebView. After creation, a #WebKitSettings object contains default settings.
```c // Disable JavaScript WebKitSettings *settings = webkit_web_view_group_get_settings (my_view_group); webkit_settings_set_enable_javascript (settings, FALSE); ```
func NewSettings ¶
func NewSettings() *Settings
Creates a new #WebKitSettings instance with default values.
It must be manually attached to a #WebKitWebView. See also webkit_settings_new_with_settings().
func NewSettingsWithSettings ¶
Creates a new #WebKitSettings instance with the given settings.
It must be manually attached to a #WebKitWebView.
func (*Settings) ApplyFromKeyFile ¶
Reads the contents of the given @group_name from the given @key_file and apply the value of each key/value to the corresponding property on the @settings.
Value types have to match with the corresponding setting property type and the group keys have to match existing setting property names. If those conditions are not met, the function will return %FALSE.
Supported value types are strings (unquoted), booleans (0, 1, true, false) and unsigned integers.
func (*Settings) GetAllowFileAccessFromFileUrls ¶
Get the #WebKitSettings:allow-file-access-from-file-urls property.
func (*Settings) GetAllowModalDialogs ¶
Get the #WebKitSettings:allow-modal-dialogs property.
func (*Settings) GetAllowTopNavigationToDataUrls ¶
Get the #WebKitSettings:allow-top-navigation-to-data-urls property.
func (*Settings) GetAllowUniversalAccessFromFileUrls ¶
Get the #WebKitSettings:allow-universal-access-from-file-urls property.
func (*Settings) GetAutoLoadImages ¶
Get the #WebKitSettings:auto-load-images property.
func (*Settings) GetCursiveFontFamily ¶
Gets the #WebKitSettings:cursive-font-family property.
func (*Settings) GetDefaultCharset ¶
Gets the #WebKitSettings:default-charset property.
func (*Settings) GetDefaultFontFamily ¶
Gets the #WebKitSettings:default-font-family property.
func (*Settings) GetDefaultFontSize ¶
Gets the #WebKitSettings:default-font-size property.
func (*Settings) GetDefaultMonospaceFontSize ¶
Gets the #WebKitSettings:default-monospace-font-size property.
func (*Settings) GetDisableWebSecurity ¶
Get the #WebKitSettings:disable-web-security property.
func (*Settings) GetDrawCompositingIndicators ¶
Get the #WebKitSettings:draw-compositing-indicators property.
func (*Settings) GetEnable2dCanvasAcceleration ¶
Get the #WebKitSettings:enable-2d-canvas-acceleration property.
func (*Settings) GetEnableBackForwardNavigationGestures ¶
Get the #WebKitSettings:enable-back-forward-navigation-gestures property.
func (*Settings) GetEnableCaretBrowsing ¶
Get the #WebKitSettings:enable-caret-browsing property.
func (*Settings) GetEnableDeveloperExtras ¶
Get the #WebKitSettings:enable-developer-extras property.
func (*Settings) GetEnableDnsPrefetching ¶
Get the #WebKitSettings:enable-dns-prefetching property.
func (*Settings) GetEnableEncryptedMedia ¶
Get the #WebKitSettings:enable-encrypted-media property.
func (*Settings) GetEnableFullscreen ¶
Get the #WebKitSettings:enable-fullscreen property.
func (*Settings) GetEnableHtml5Database ¶
Get the #WebKitSettings:enable-html5-database property.
func (*Settings) GetEnableHtml5LocalStorage ¶
Get the #WebKitSettings:enable-html5-local-storage property.
func (*Settings) GetEnableHyperlinkAuditing ¶
Get the #WebKitSettings:enable-hyperlink-auditing property.
func (*Settings) GetEnableJavascript ¶
Get the #WebKitSettings:enable-javascript property.
func (*Settings) GetEnableJavascriptMarkup ¶
Get the #WebKitSettings:enable-javascript-markup property.
func (*Settings) GetEnableMedia ¶
Get the #WebKitSettings:enable-media property.
func (*Settings) GetEnableMediaCapabilities ¶
Get the #WebKitSettings:enable-media-capabilities property.
func (*Settings) GetEnableMediaStream ¶
Get the #WebKitSettings:enable-media-stream property.
func (*Settings) GetEnableMediasource ¶
Get the #WebKitSettings:enable-mediasource property.
func (*Settings) GetEnableMockCaptureDevices ¶
Get the #WebKitSettings:enable-mock-capture-devices property.
func (*Settings) GetEnableOfflineWebApplicationCache ¶
Get the #WebKitSettings:enable-offline-web-application-cache property.
func (*Settings) GetEnablePageCache ¶
Get the #WebKitSettings:enable-page-cache property.
func (*Settings) GetEnableResizableTextAreas ¶
Get the #WebKitSettings:enable-resizable-text-areas property.
func (*Settings) GetEnableSiteSpecificQuirks ¶
Get the #WebKitSettings:enable-site-specific-quirks property.
func (*Settings) GetEnableSmoothScrolling ¶
Get the #WebKitSettings:enable-smooth-scrolling property.
func (*Settings) GetEnableSpatialNavigation ¶
Get the #WebKitSettings:enable-spatial-navigation property.
func (*Settings) GetEnableTabsToLinks ¶
Get the #WebKitSettings:enable-tabs-to-links property.
func (*Settings) GetEnableWebaudio ¶
Get the #WebKitSettings:enable-webaudio property.
func (*Settings) GetEnableWebgl ¶
Get the #WebKitSettings:enable-webgl property.
func (*Settings) GetEnableWebrtc ¶
Get the [property@Settings:enable-webrtc] property.
func (*Settings) GetEnableWriteConsoleMessagesToStdout ¶
Get the #WebKitSettings:enable-write-console-messages-to-stdout property.
func (*Settings) GetFantasyFontFamily ¶
Gets the #WebKitSettings:fantasy-font-family property.
func (*Settings) GetFeatureEnabled ¶
Gets whether a feature is enabled.
func (*Settings) GetHardwareAccelerationPolicy ¶
func (x *Settings) GetHardwareAccelerationPolicy() HardwareAccelerationPolicy
Get the #WebKitSettings:hardware-acceleration-policy property.
func (*Settings) GetJavascriptCanAccessClipboard ¶
Get the #WebKitSettings:javascript-can-access-clipboard property.
func (*Settings) GetJavascriptCanOpenWindowsAutomatically ¶
Get the #WebKitSettings:javascript-can-open-windows-automatically property.
func (*Settings) GetLoadIconsIgnoringImageLoadSetting ¶
Setting no longer supported. This function returns %FALSE.
func (*Settings) GetMediaContentTypesRequiringHardwareSupport ¶
Gets the #WebKitSettings:media-content-types-requiring-hardware-support property.
func (*Settings) GetMediaPlaybackAllowsInline ¶
Get the #WebKitSettings:media-playback-allows-inline property.
func (*Settings) GetMediaPlaybackRequiresUserGesture ¶
Get the #WebKitSettings:media-playback-requires-user-gesture property.
func (*Settings) GetMinimumFontSize ¶
Gets the #WebKitSettings:minimum-font-size property.
func (*Settings) GetMonospaceFontFamily ¶
Gets the #WebKitSettings:monospace-font-family property.
func (*Settings) GetPictographFontFamily ¶
Gets the #WebKitSettings:pictograph-font-family property.
func (*Settings) GetPrintBackgrounds ¶
Get the #WebKitSettings:print-backgrounds property.
func (*Settings) GetPropertyAllowFileAccessFromFileUrls ¶ added in v0.0.4
GetPropertyAllowFileAccessFromFileUrls gets the "allow-file-access-from-file-urls" property. Whether file access is allowed from file URLs. By default, when something is loaded in a #WebKitWebView using a file URI, cross origin requests to other file resources are not allowed. This setting allows you to change that behaviour, so that it would be possible to do a XMLHttpRequest of a local file, for example.
func (*Settings) GetPropertyAllowModalDialogs ¶ added in v0.0.4
GetPropertyAllowModalDialogs gets the "allow-modal-dialogs" property. Determine whether it's allowed to create and run modal dialogs from a #WebKitWebView through JavaScript with <function>window.showModalDialog</function>. If it's set to %FALSE, the associated #WebKitWebView won't be able to create new modal dialogs, so not even the #WebKitWebView::create signal will be emitted.
func (*Settings) GetPropertyAllowTopNavigationToDataUrls ¶ added in v0.0.4
GetPropertyAllowTopNavigationToDataUrls gets the "allow-top-navigation-to-data-urls" property. Whether or not the top frame is allowed to navigate to data URLs. It is disabled by default due to the risk it poses when loading untrusted URLs, with data URLs being used in scamming and phishing attacks. In contrast, a scenario where it could be enabled could be an app that embeds a WebView and you have control of the pages being show instead of a generic browser.
func (*Settings) GetPropertyAllowUniversalAccessFromFileUrls ¶ added in v0.0.4
GetPropertyAllowUniversalAccessFromFileUrls gets the "allow-universal-access-from-file-urls" property. Whether or not JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. By default, when something is loaded in a #WebKitWebView using a file scheme URL, access to the local file system and arbitrary local storage is not allowed. This setting allows you to change that behaviour, so that it would be possible to use local storage, for example.
func (*Settings) GetPropertyAutoLoadImages ¶ added in v0.0.4
GetPropertyAutoLoadImages gets the "auto-load-images" property. Determines whether images should be automatically loaded or not. On devices where network bandwidth is of concern, it might be useful to turn this property off.
func (*Settings) GetPropertyCursiveFontFamily ¶ added in v0.0.4
GetPropertyCursiveFontFamily gets the "cursive-font-family" property. The font family used as the default for content using a cursive font.
func (*Settings) GetPropertyDefaultCharset ¶ added in v0.0.4
GetPropertyDefaultCharset gets the "default-charset" property. The default text charset used when interpreting content with an unspecified charset.
func (*Settings) GetPropertyDefaultFontFamily ¶ added in v0.0.4
GetPropertyDefaultFontFamily gets the "default-font-family" property. The font family to use as the default for content that does not specify a font.
func (*Settings) GetPropertyDefaultFontSize ¶ added in v0.0.4
GetPropertyDefaultFontSize gets the "default-font-size" property. The default font size in pixels to use for content displayed if no font size is specified.
func (*Settings) GetPropertyDefaultMonospaceFontSize ¶ added in v0.0.4
GetPropertyDefaultMonospaceFontSize gets the "default-monospace-font-size" property. The default font size in pixels to use for content displayed in monospace font if no font size is specified.
func (*Settings) GetPropertyDisableWebSecurity ¶ added in v0.0.4
GetPropertyDisableWebSecurity gets the "disable-web-security" property. Enable or disable support for Web Security on pages.
This setting disables the same-origin policy, allowing every website full control over all other websites. This is for use in special environments where you wish to disable all security and allow websites to hack each other. It is impossible to use this setting securely.
func (*Settings) GetPropertyDrawCompositingIndicators ¶ added in v0.0.4
GetPropertyDrawCompositingIndicators gets the "draw-compositing-indicators" property. Whether to draw compositing borders and repaint counters on layers drawn with accelerated compositing. This is useful for debugging issues related to web content that is composited with the GPU.
func (*Settings) GetPropertyEnable2dCanvasAcceleration ¶ added in v0.0.4
GetPropertyEnable2dCanvasAcceleration gets the "enable-2d-canvas-acceleration" property. Enable or disable 2D canvas acceleration. If this setting is enabled, the 2D canvas will be accelerated even if Skia CPU is used for rendering. However, the canvas can be unaccelerated even when this setting is enabled, for other reasons like its size or when willReadFrequently property is used.
func (*Settings) GetPropertyEnableBackForwardNavigationGestures ¶ added in v0.0.4
GetPropertyEnableBackForwardNavigationGestures gets the "enable-back-forward-navigation-gestures" property. Enable or disable horizontal swipe gesture for back-forward navigation.
func (*Settings) GetPropertyEnableCaretBrowsing ¶ added in v0.0.4
GetPropertyEnableCaretBrowsing gets the "enable-caret-browsing" property. Whether to enable accessibility enhanced keyboard navigation.
func (*Settings) GetPropertyEnableDeveloperExtras ¶ added in v0.0.4
GetPropertyEnableDeveloperExtras gets the "enable-developer-extras" property. Determines whether or not developer tools, such as the Web Inspector, are enabled.
func (*Settings) GetPropertyEnableDnsPrefetching ¶ added in v0.0.4
GetPropertyEnableDnsPrefetching gets the "enable-dns-prefetching" property. Determines whether or not to prefetch domain names. DNS prefetching attempts to resolve domain names before a user tries to follow a link.
func (*Settings) GetPropertyEnableEncryptedMedia ¶ added in v0.0.4
GetPropertyEnableEncryptedMedia gets the "enable-encrypted-media" property. Enable or disable support for Encrypted Media API on pages. EncryptedMedia is an experimental JavaScript API for playing encrypted media in HTML. This property will only work as intended if the EncryptedMedia feature is enabled at build time with the ENABLE_ENCRYPTED_MEDIA flag.
func (*Settings) GetPropertyEnableFullscreen ¶ added in v0.0.4
GetPropertyEnableFullscreen gets the "enable-fullscreen" property. Whether to enable the Javascript Fullscreen API. The API allows any HTML element to request fullscreen display. See also the current draft of the spec: http://www.w3.org/TR/fullscreen/
func (*Settings) GetPropertyEnableHtml5Database ¶ added in v0.0.4
GetPropertyEnableHtml5Database gets the "enable-html5-database" property. Whether to enable HTML5 client-side SQL database support (IndexedDB).
func (*Settings) GetPropertyEnableHtml5LocalStorage ¶ added in v0.0.4
GetPropertyEnableHtml5LocalStorage gets the "enable-html5-local-storage" property. Whether to enable HTML5 local storage support. Local storage provides simple synchronous storage access.
HTML5 local storage specification is available at http://dev.w3.org/html5/webstorage/.
func (*Settings) GetPropertyEnableHyperlinkAuditing ¶ added in v0.0.4
GetPropertyEnableHyperlinkAuditing gets the "enable-hyperlink-auditing" property. Determines whether or not hyperlink auditing is enabled.
The hyperlink auditing specification is available at http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing.
func (*Settings) GetPropertyEnableJavascript ¶ added in v0.0.4
GetPropertyEnableJavascript gets the "enable-javascript" property. Determines whether or not JavaScript executes within a page.
func (*Settings) GetPropertyEnableJavascriptMarkup ¶ added in v0.0.4
GetPropertyEnableJavascriptMarkup gets the "enable-javascript-markup" property. Determines whether or not JavaScript markup is allowed in document. When this setting is disabled, all JavaScript-related elements and attributes are removed from the document during parsing. Note that executing JavaScript is still allowed if #WebKitSettings:enable-javascript is %TRUE.
func (*Settings) GetPropertyEnableMedia ¶ added in v0.0.4
GetPropertyEnableMedia gets the "enable-media" property. Enable or disable support for media playback on pages. This setting is enabled by default. Disabling it means `<audio>`, `<track>` and `<video>` elements will have playback support disabled.
func (*Settings) GetPropertyEnableMediaCapabilities ¶ added in v0.0.4
GetPropertyEnableMediaCapabilities gets the "enable-media-capabilities" property. Enable or disable support for MediaCapabilities on pages. This specification intends to provide APIs to allow websites to make an optimal decision when picking media content for the user. The APIs will expose information about the decoding and encoding capabilities for a given format but also output capabilities to find the best match based on the device’s display.
func (*Settings) GetPropertyEnableMediaStream ¶ added in v0.0.4
GetPropertyEnableMediaStream gets the "enable-media-stream" property. Enable or disable support for MediaStream on pages. MediaStream is an experimental proposal for allowing web pages to access audio and video devices for capture.
See also http://dev.w3.org/2011/webrtc/editor/getusermedia.html
func (*Settings) GetPropertyEnableMediasource ¶ added in v0.0.4
GetPropertyEnableMediasource gets the "enable-mediasource" property. Enable or disable support for MediaSource on pages. MediaSource extends HTMLMediaElement to allow JavaScript to generate media streams for playback.
See also http://www.w3.org/TR/media-source/
func (*Settings) GetPropertyEnableMockCaptureDevices ¶ added in v0.0.4
GetPropertyEnableMockCaptureDevices gets the "enable-mock-capture-devices" property. Enable or disable the Mock Capture Devices. Those are fake Microphone and Camera devices to be used as MediaStream sources.
func (*Settings) GetPropertyEnableOfflineWebApplicationCache ¶ added in v0.0.4
GetPropertyEnableOfflineWebApplicationCache gets the "enable-offline-web-application-cache" property. Unsupported setting. This property does nothing.
func (*Settings) GetPropertyEnablePageCache ¶ added in v0.0.4
GetPropertyEnablePageCache gets the "enable-page-cache" property. Enable or disable the page cache. Disabling the page cache is generally only useful for special circumstances like low-memory scenarios or special purpose applications like static HTML viewers. This setting only controls the Page Cache, this cache is different than the disk-based or memory-based traditional resource caches, its point is to make going back and forth between pages much faster. For details about the different types of caches and their purposes see: http://webkit.org/blog/427/webkit-page-cache-i-the-basics/
func (*Settings) GetPropertyEnableResizableTextAreas ¶ added in v0.0.4
GetPropertyEnableResizableTextAreas gets the "enable-resizable-text-areas" property. Determines whether or not text areas can be resized.
func (*Settings) GetPropertyEnableSiteSpecificQuirks ¶ added in v0.0.4
GetPropertyEnableSiteSpecificQuirks gets the "enable-site-specific-quirks" property. Whether to turn on site-specific quirks. Turning this on will tell WebKit to use some site-specific workarounds for better web compatibility. For example, older versions of MediaWiki will incorrectly send to WebKit a CSS file with KHTML workarounds. By turning on site-specific quirks, WebKit will special-case this and other cases to make some specific sites work.
func (*Settings) GetPropertyEnableSmoothScrolling ¶ added in v0.0.4
GetPropertyEnableSmoothScrolling gets the "enable-smooth-scrolling" property. Enable or disable smooth scrolling.
func (*Settings) GetPropertyEnableSpatialNavigation ¶ added in v0.0.4
GetPropertyEnableSpatialNavigation gets the "enable-spatial-navigation" property. Whether to enable Spatial Navigation. This feature consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if an user presses the Right key, heuristics determine whether there is an element they might be trying to reach towards the right, and if there are multiple elements, which element they probably wants.
func (*Settings) GetPropertyEnableTabsToLinks ¶ added in v0.0.4
GetPropertyEnableTabsToLinks gets the "enable-tabs-to-links" property. Determines whether the tab key cycles through the elements on the page. When this setting is enabled, users will be able to focus the next element in the page by pressing the tab key. If the selected element is editable, then pressing tab key will insert the tab character.
func (*Settings) GetPropertyEnableWebaudio ¶ added in v0.0.4
GetPropertyEnableWebaudio gets the "enable-webaudio" property. Enable or disable support for WebAudio on pages. WebAudio is an API for processing and synthesizing audio in web applications
func (*Settings) GetPropertyEnableWebgl ¶ added in v0.0.4
GetPropertyEnableWebgl gets the "enable-webgl" property. Enable or disable support for WebGL on pages. WebGL enables web content to use an API based on OpenGL ES 2.0.
func (*Settings) GetPropertyEnableWebrtc ¶ added in v0.0.4
GetPropertyEnableWebrtc gets the "enable-webrtc" property. Enable WebRTC support for loaded pages.
Enabling this setting implies that [property@Settings:enable-media-stream] will be enabled as well.
See also https://www.w3.org/TR/webrtc/
func (*Settings) GetPropertyEnableWriteConsoleMessagesToStdout ¶ added in v0.0.4
GetPropertyEnableWriteConsoleMessagesToStdout gets the "enable-write-console-messages-to-stdout" property. Enable or disable writing console messages to stdout. These are messages sent to the console with console.log and related methods.
func (*Settings) GetPropertyFantasyFontFamily ¶ added in v0.0.4
GetPropertyFantasyFontFamily gets the "fantasy-font-family" property. The font family used as the default for content using a fantasy font.
func (*Settings) GetPropertyJavascriptCanAccessClipboard ¶ added in v0.0.4
GetPropertyJavascriptCanAccessClipboard gets the "javascript-can-access-clipboard" property. Whether JavaScript can access the clipboard. The default value is %FALSE. If set to %TRUE, document.execCommand() allows cut, copy and paste commands.
func (*Settings) GetPropertyJavascriptCanOpenWindowsAutomatically ¶ added in v0.0.4
GetPropertyJavascriptCanOpenWindowsAutomatically gets the "javascript-can-open-windows-automatically" property. Whether JavaScript can open popup windows automatically without user intervention.
func (*Settings) GetPropertyLoadIconsIgnoringImageLoadSetting ¶ added in v0.0.4
GetPropertyLoadIconsIgnoringImageLoadSetting gets the "load-icons-ignoring-image-load-setting" property. Unsupported setting. This property does nothing.
func (*Settings) GetPropertyMediaContentTypesRequiringHardwareSupport ¶ added in v0.0.4
GetPropertyMediaContentTypesRequiringHardwareSupport gets the "media-content-types-requiring-hardware-support" property. List of media content types requiring hardware support, split by semicolons (:). For example: 'video/webm; codecs="vp*":video/mp4; codecs="avc*":video/&ast; codecs="av1*"'.
func (*Settings) GetPropertyMediaPlaybackAllowsInline ¶ added in v0.0.4
GetPropertyMediaPlaybackAllowsInline gets the "media-playback-allows-inline" property. Whether media playback is full-screen only or inline playback is allowed. This is %TRUE by default, so media playback can be inline. Setting it to %FALSE allows specifying that media playback should be always fullscreen.
func (*Settings) GetPropertyMediaPlaybackRequiresUserGesture ¶ added in v0.0.4
GetPropertyMediaPlaybackRequiresUserGesture gets the "media-playback-requires-user-gesture" property. Whether a user gesture (such as clicking the play button) would be required to start media playback or load media. This is off by default, so media playback could start automatically. Setting it on requires a gesture by the user to start playback, or to load the media.
func (*Settings) GetPropertyMinimumFontSize ¶ added in v0.0.4
GetPropertyMinimumFontSize gets the "minimum-font-size" property. The minimum font size in pixels used to display text. This setting controls the absolute smallest size. Values other than 0 can potentially break page layouts.
func (*Settings) GetPropertyMonospaceFontFamily ¶ added in v0.0.4
GetPropertyMonospaceFontFamily gets the "monospace-font-family" property. The font family used as the default for content using a monospace font.
func (*Settings) GetPropertyPictographFontFamily ¶ added in v0.0.4
GetPropertyPictographFontFamily gets the "pictograph-font-family" property. The font family used as the default for content using a pictograph font.
func (*Settings) GetPropertyPrintBackgrounds ¶ added in v0.0.4
GetPropertyPrintBackgrounds gets the "print-backgrounds" property. Whether background images should be drawn during printing.
func (*Settings) GetPropertySansSerifFontFamily ¶ added in v0.0.4
GetPropertySansSerifFontFamily gets the "sans-serif-font-family" property. The font family used as the default for content using a sans-serif font.
func (*Settings) GetPropertySerifFontFamily ¶ added in v0.0.4
GetPropertySerifFontFamily gets the "serif-font-family" property. The font family used as the default for content using a serif font.
func (*Settings) GetPropertyUserAgent ¶ added in v0.0.4
GetPropertyUserAgent gets the "user-agent" property. The user-agent string used by WebKit. Unusual user-agent strings may cause web content to render incorrectly or fail to run, as many web pages are written to parse the user-agent strings of only the most popular browsers. Therefore, it's typically better to not completely override the standard user-agent, but to use webkit_settings_set_user_agent_with_application_details() instead.
If this property is set to the empty string or %NULL, it will revert to the standard user-agent.
func (*Settings) GetPropertyWebrtcUdpPortsRange ¶ added in v0.0.4
GetPropertyWebrtcUdpPortsRange gets the "webrtc-udp-ports-range" property. Allow customization of the WebRTC UDP ports range.
In some constrained environments where a firewall blocks UDP network traffic excepted on a specific port range, this settings can be used to give hints to the WebRTC backend regarding which ports to allocate. The format is min-port:max-port, so for instance 20000:30000. The default empty string value means the OS will use no hints from the WebRTC backend. Using 0 for one of the values is allowed and means the value is unspecified.
func (*Settings) GetPropertyZoomTextOnly ¶ added in v0.0.4
GetPropertyZoomTextOnly gets the "zoom-text-only" property. Whether #WebKitWebView:zoom-level affects only the text of the page or all the contents. Other contents containing text like form controls will be also affected by zoom factor when this property is enabled.
func (*Settings) GetSansSerifFontFamily ¶
Gets the #WebKitSettings:sans-serif-font-family property.
func (*Settings) GetSerifFontFamily ¶
Gets the #WebKitSettings:serif-font-family property.
func (*Settings) GetUserAgent ¶
Get the #WebKitSettings:user-agent property.
func (*Settings) GetWebrtcUdpPortsRange ¶
Get the [property@Settings:webrtc-udp-ports-range] property.
func (*Settings) GetZoomTextOnly ¶
Get the #WebKitSettings:zoom-text-only property.
func (*Settings) SetAllowFileAccessFromFileUrls ¶
Set the #WebKitSettings:allow-file-access-from-file-urls property.
func (*Settings) SetAllowModalDialogs ¶
Set the #WebKitSettings:allow-modal-dialogs property.
func (*Settings) SetAllowTopNavigationToDataUrls ¶
Set the #WebKitSettings:allow-top-navigation-to-data-urls property.
func (*Settings) SetAllowUniversalAccessFromFileUrls ¶
Set the #WebKitSettings:allow-universal-access-from-file-urls property.
func (*Settings) SetAutoLoadImages ¶
Set the #WebKitSettings:auto-load-images property.
func (*Settings) SetCursiveFontFamily ¶
Set the #WebKitSettings:cursive-font-family property.
func (*Settings) SetDefaultCharset ¶
Set the #WebKitSettings:default-charset property.
func (*Settings) SetDefaultFontFamily ¶
Set the #WebKitSettings:default-font-family property.
func (*Settings) SetDefaultFontSize ¶
Set the #WebKitSettings:default-font-size property.
func (*Settings) SetDefaultMonospaceFontSize ¶
Set the #WebKitSettings:default-monospace-font-size property.
func (*Settings) SetDisableWebSecurity ¶
Set the #WebKitSettings:disable-web-security property.
func (*Settings) SetDrawCompositingIndicators ¶
Set the #WebKitSettings:draw-compositing-indicators property.
func (*Settings) SetEnable2dCanvasAcceleration ¶
Set the #WebKitSettings:enable-2d-canvas-acceleration property.
func (*Settings) SetEnableBackForwardNavigationGestures ¶
Set the #WebKitSettings:enable-back-forward-navigation-gestures property.
func (*Settings) SetEnableCaretBrowsing ¶
Set the #WebKitSettings:enable-caret-browsing property.
func (*Settings) SetEnableDeveloperExtras ¶
Set the #WebKitSettings:enable-developer-extras property.
func (*Settings) SetEnableDnsPrefetching ¶
Set the #WebKitSettings:enable-dns-prefetching property.
func (*Settings) SetEnableEncryptedMedia ¶
Set the #WebKitSettings:enable-encrypted-media property.
func (*Settings) SetEnableFullscreen ¶
Set the #WebKitSettings:enable-fullscreen property.
func (*Settings) SetEnableHtml5Database ¶
Set the #WebKitSettings:enable-html5-database property.
func (*Settings) SetEnableHtml5LocalStorage ¶
Set the #WebKitSettings:enable-html5-local-storage property.
func (*Settings) SetEnableHyperlinkAuditing ¶
Set the #WebKitSettings:enable-hyperlink-auditing property.
func (*Settings) SetEnableJavascript ¶
Set the #WebKitSettings:enable-javascript property.
func (*Settings) SetEnableJavascriptMarkup ¶
Set the #WebKitSettings:enable-javascript-markup property.
func (*Settings) SetEnableMedia ¶
Set the #WebKitSettings:enable-media property.
func (*Settings) SetEnableMediaCapabilities ¶
Set the #WebKitSettings:enable-media-capabilities property.
func (*Settings) SetEnableMediaStream ¶
Set the #WebKitSettings:enable-media-stream property.
func (*Settings) SetEnableMediasource ¶
Set the #WebKitSettings:enable-mediasource property.
func (*Settings) SetEnableMockCaptureDevices ¶
Set the #WebKitSettings:enable-mock-capture-devices property.
func (*Settings) SetEnableOfflineWebApplicationCache ¶
Setting no longer supported. This function does nothing.
func (*Settings) SetEnablePageCache ¶
Set the #WebKitSettings:enable-page-cache property.
func (*Settings) SetEnableResizableTextAreas ¶
Set the #WebKitSettings:enable-resizable-text-areas property.
func (*Settings) SetEnableSiteSpecificQuirks ¶
Set the #WebKitSettings:enable-site-specific-quirks property.
func (*Settings) SetEnableSmoothScrolling ¶
Set the #WebKitSettings:enable-smooth-scrolling property.
func (*Settings) SetEnableSpatialNavigation ¶
Set the #WebKitSettings:enable-spatial-navigation property.
func (*Settings) SetEnableTabsToLinks ¶
Set the #WebKitSettings:enable-tabs-to-links property.
func (*Settings) SetEnableWebaudio ¶
Set the #WebKitSettings:enable-webaudio property.
func (*Settings) SetEnableWebgl ¶
Set the #WebKitSettings:enable-webgl property.
func (*Settings) SetEnableWebrtc ¶
Set the [property@Settings:enable-webrtc] property.
Setting this property to %TRUE implies the media-stream web-setting will also be enabled.
func (*Settings) SetEnableWriteConsoleMessagesToStdout ¶
Set the #WebKitSettings:enable-write-console-messages-to-stdout property.
func (*Settings) SetFantasyFontFamily ¶
Set the #WebKitSettings:fantasy-font-family property.
func (*Settings) SetFeatureEnabled ¶
Enables or disables a feature.
The current status of the feature can be determined with [id@webkit_settings_get_feature_enabled]. To reset a feature to its initial status, pass the value returned by [id@webkit_feature_get_default_value] as the @enabled parameter.
func (*Settings) SetGoPointer ¶
func (*Settings) SetHardwareAccelerationPolicy ¶
func (x *Settings) SetHardwareAccelerationPolicy(PolicyVar HardwareAccelerationPolicy)
Set the #WebKitSettings:hardware-acceleration-policy property.
func (*Settings) SetJavascriptCanAccessClipboard ¶
Set the #WebKitSettings:javascript-can-access-clipboard property.
func (*Settings) SetJavascriptCanOpenWindowsAutomatically ¶
Set the #WebKitSettings:javascript-can-open-windows-automatically property.
func (*Settings) SetLoadIconsIgnoringImageLoadSetting ¶
Setting no longer supported. This function does nothing.
func (*Settings) SetMediaContentTypesRequiringHardwareSupport ¶
Set the #WebKitSettings:media-content-types-requiring-hardware-support property.
func (*Settings) SetMediaPlaybackAllowsInline ¶
Set the #WebKitSettings:media-playback-allows-inline property.
func (*Settings) SetMediaPlaybackRequiresUserGesture ¶
Set the #WebKitSettings:media-playback-requires-user-gesture property.
func (*Settings) SetMinimumFontSize ¶
Set the #WebKitSettings:minimum-font-size property.
func (*Settings) SetMonospaceFontFamily ¶
Set the #WebKitSettings:monospace-font-family property.
func (*Settings) SetPictographFontFamily ¶
Set the #WebKitSettings:pictograph-font-family property.
func (*Settings) SetPrintBackgrounds ¶
Set the #WebKitSettings:print-backgrounds property.
func (*Settings) SetPropertyAllowFileAccessFromFileUrls ¶ added in v0.0.4
SetPropertyAllowFileAccessFromFileUrls sets the "allow-file-access-from-file-urls" property. Whether file access is allowed from file URLs. By default, when something is loaded in a #WebKitWebView using a file URI, cross origin requests to other file resources are not allowed. This setting allows you to change that behaviour, so that it would be possible to do a XMLHttpRequest of a local file, for example.
func (*Settings) SetPropertyAllowModalDialogs ¶ added in v0.0.4
SetPropertyAllowModalDialogs sets the "allow-modal-dialogs" property. Determine whether it's allowed to create and run modal dialogs from a #WebKitWebView through JavaScript with <function>window.showModalDialog</function>. If it's set to %FALSE, the associated #WebKitWebView won't be able to create new modal dialogs, so not even the #WebKitWebView::create signal will be emitted.
func (*Settings) SetPropertyAllowTopNavigationToDataUrls ¶ added in v0.0.4
SetPropertyAllowTopNavigationToDataUrls sets the "allow-top-navigation-to-data-urls" property. Whether or not the top frame is allowed to navigate to data URLs. It is disabled by default due to the risk it poses when loading untrusted URLs, with data URLs being used in scamming and phishing attacks. In contrast, a scenario where it could be enabled could be an app that embeds a WebView and you have control of the pages being show instead of a generic browser.
func (*Settings) SetPropertyAllowUniversalAccessFromFileUrls ¶ added in v0.0.4
SetPropertyAllowUniversalAccessFromFileUrls sets the "allow-universal-access-from-file-urls" property. Whether or not JavaScript running in the context of a file scheme URL should be allowed to access content from any origin. By default, when something is loaded in a #WebKitWebView using a file scheme URL, access to the local file system and arbitrary local storage is not allowed. This setting allows you to change that behaviour, so that it would be possible to use local storage, for example.
func (*Settings) SetPropertyAutoLoadImages ¶ added in v0.0.4
SetPropertyAutoLoadImages sets the "auto-load-images" property. Determines whether images should be automatically loaded or not. On devices where network bandwidth is of concern, it might be useful to turn this property off.
func (*Settings) SetPropertyCursiveFontFamily ¶ added in v0.0.4
SetPropertyCursiveFontFamily sets the "cursive-font-family" property. The font family used as the default for content using a cursive font.
func (*Settings) SetPropertyDefaultCharset ¶ added in v0.0.4
SetPropertyDefaultCharset sets the "default-charset" property. The default text charset used when interpreting content with an unspecified charset.
func (*Settings) SetPropertyDefaultFontFamily ¶ added in v0.0.4
SetPropertyDefaultFontFamily sets the "default-font-family" property. The font family to use as the default for content that does not specify a font.
func (*Settings) SetPropertyDefaultFontSize ¶ added in v0.0.4
SetPropertyDefaultFontSize sets the "default-font-size" property. The default font size in pixels to use for content displayed if no font size is specified.
func (*Settings) SetPropertyDefaultMonospaceFontSize ¶ added in v0.0.4
SetPropertyDefaultMonospaceFontSize sets the "default-monospace-font-size" property. The default font size in pixels to use for content displayed in monospace font if no font size is specified.
func (*Settings) SetPropertyDisableWebSecurity ¶ added in v0.0.4
SetPropertyDisableWebSecurity sets the "disable-web-security" property. Enable or disable support for Web Security on pages.
This setting disables the same-origin policy, allowing every website full control over all other websites. This is for use in special environments where you wish to disable all security and allow websites to hack each other. It is impossible to use this setting securely.
func (*Settings) SetPropertyDrawCompositingIndicators ¶ added in v0.0.4
SetPropertyDrawCompositingIndicators sets the "draw-compositing-indicators" property. Whether to draw compositing borders and repaint counters on layers drawn with accelerated compositing. This is useful for debugging issues related to web content that is composited with the GPU.
func (*Settings) SetPropertyEnable2dCanvasAcceleration ¶ added in v0.0.4
SetPropertyEnable2dCanvasAcceleration sets the "enable-2d-canvas-acceleration" property. Enable or disable 2D canvas acceleration. If this setting is enabled, the 2D canvas will be accelerated even if Skia CPU is used for rendering. However, the canvas can be unaccelerated even when this setting is enabled, for other reasons like its size or when willReadFrequently property is used.
func (*Settings) SetPropertyEnableBackForwardNavigationGestures ¶ added in v0.0.4
SetPropertyEnableBackForwardNavigationGestures sets the "enable-back-forward-navigation-gestures" property. Enable or disable horizontal swipe gesture for back-forward navigation.
func (*Settings) SetPropertyEnableCaretBrowsing ¶ added in v0.0.4
SetPropertyEnableCaretBrowsing sets the "enable-caret-browsing" property. Whether to enable accessibility enhanced keyboard navigation.
func (*Settings) SetPropertyEnableDeveloperExtras ¶ added in v0.0.4
SetPropertyEnableDeveloperExtras sets the "enable-developer-extras" property. Determines whether or not developer tools, such as the Web Inspector, are enabled.
func (*Settings) SetPropertyEnableDnsPrefetching ¶ added in v0.0.4
SetPropertyEnableDnsPrefetching sets the "enable-dns-prefetching" property. Determines whether or not to prefetch domain names. DNS prefetching attempts to resolve domain names before a user tries to follow a link.
func (*Settings) SetPropertyEnableEncryptedMedia ¶ added in v0.0.4
SetPropertyEnableEncryptedMedia sets the "enable-encrypted-media" property. Enable or disable support for Encrypted Media API on pages. EncryptedMedia is an experimental JavaScript API for playing encrypted media in HTML. This property will only work as intended if the EncryptedMedia feature is enabled at build time with the ENABLE_ENCRYPTED_MEDIA flag.
func (*Settings) SetPropertyEnableFullscreen ¶ added in v0.0.4
SetPropertyEnableFullscreen sets the "enable-fullscreen" property. Whether to enable the Javascript Fullscreen API. The API allows any HTML element to request fullscreen display. See also the current draft of the spec: http://www.w3.org/TR/fullscreen/
func (*Settings) SetPropertyEnableHtml5Database ¶ added in v0.0.4
SetPropertyEnableHtml5Database sets the "enable-html5-database" property. Whether to enable HTML5 client-side SQL database support (IndexedDB).
func (*Settings) SetPropertyEnableHtml5LocalStorage ¶ added in v0.0.4
SetPropertyEnableHtml5LocalStorage sets the "enable-html5-local-storage" property. Whether to enable HTML5 local storage support. Local storage provides simple synchronous storage access.
HTML5 local storage specification is available at http://dev.w3.org/html5/webstorage/.
func (*Settings) SetPropertyEnableHyperlinkAuditing ¶ added in v0.0.4
SetPropertyEnableHyperlinkAuditing sets the "enable-hyperlink-auditing" property. Determines whether or not hyperlink auditing is enabled.
The hyperlink auditing specification is available at http://www.whatwg.org/specs/web-apps/current-work/multipage/links.html#hyperlink-auditing.
func (*Settings) SetPropertyEnableJavascript ¶ added in v0.0.4
SetPropertyEnableJavascript sets the "enable-javascript" property. Determines whether or not JavaScript executes within a page.
func (*Settings) SetPropertyEnableJavascriptMarkup ¶ added in v0.0.4
SetPropertyEnableJavascriptMarkup sets the "enable-javascript-markup" property. Determines whether or not JavaScript markup is allowed in document. When this setting is disabled, all JavaScript-related elements and attributes are removed from the document during parsing. Note that executing JavaScript is still allowed if #WebKitSettings:enable-javascript is %TRUE.
func (*Settings) SetPropertyEnableMedia ¶ added in v0.0.4
SetPropertyEnableMedia sets the "enable-media" property. Enable or disable support for media playback on pages. This setting is enabled by default. Disabling it means `<audio>`, `<track>` and `<video>` elements will have playback support disabled.
func (*Settings) SetPropertyEnableMediaCapabilities ¶ added in v0.0.4
SetPropertyEnableMediaCapabilities sets the "enable-media-capabilities" property. Enable or disable support for MediaCapabilities on pages. This specification intends to provide APIs to allow websites to make an optimal decision when picking media content for the user. The APIs will expose information about the decoding and encoding capabilities for a given format but also output capabilities to find the best match based on the device’s display.
func (*Settings) SetPropertyEnableMediaStream ¶ added in v0.0.4
SetPropertyEnableMediaStream sets the "enable-media-stream" property. Enable or disable support for MediaStream on pages. MediaStream is an experimental proposal for allowing web pages to access audio and video devices for capture.
See also http://dev.w3.org/2011/webrtc/editor/getusermedia.html
func (*Settings) SetPropertyEnableMediasource ¶ added in v0.0.4
SetPropertyEnableMediasource sets the "enable-mediasource" property. Enable or disable support for MediaSource on pages. MediaSource extends HTMLMediaElement to allow JavaScript to generate media streams for playback.
See also http://www.w3.org/TR/media-source/
func (*Settings) SetPropertyEnableMockCaptureDevices ¶ added in v0.0.4
SetPropertyEnableMockCaptureDevices sets the "enable-mock-capture-devices" property. Enable or disable the Mock Capture Devices. Those are fake Microphone and Camera devices to be used as MediaStream sources.
func (*Settings) SetPropertyEnableOfflineWebApplicationCache ¶ added in v0.0.4
SetPropertyEnableOfflineWebApplicationCache sets the "enable-offline-web-application-cache" property. Unsupported setting. This property does nothing.
func (*Settings) SetPropertyEnablePageCache ¶ added in v0.0.4
SetPropertyEnablePageCache sets the "enable-page-cache" property. Enable or disable the page cache. Disabling the page cache is generally only useful for special circumstances like low-memory scenarios or special purpose applications like static HTML viewers. This setting only controls the Page Cache, this cache is different than the disk-based or memory-based traditional resource caches, its point is to make going back and forth between pages much faster. For details about the different types of caches and their purposes see: http://webkit.org/blog/427/webkit-page-cache-i-the-basics/
func (*Settings) SetPropertyEnableResizableTextAreas ¶ added in v0.0.4
SetPropertyEnableResizableTextAreas sets the "enable-resizable-text-areas" property. Determines whether or not text areas can be resized.
func (*Settings) SetPropertyEnableSiteSpecificQuirks ¶ added in v0.0.4
SetPropertyEnableSiteSpecificQuirks sets the "enable-site-specific-quirks" property. Whether to turn on site-specific quirks. Turning this on will tell WebKit to use some site-specific workarounds for better web compatibility. For example, older versions of MediaWiki will incorrectly send to WebKit a CSS file with KHTML workarounds. By turning on site-specific quirks, WebKit will special-case this and other cases to make some specific sites work.
func (*Settings) SetPropertyEnableSmoothScrolling ¶ added in v0.0.4
SetPropertyEnableSmoothScrolling sets the "enable-smooth-scrolling" property. Enable or disable smooth scrolling.
func (*Settings) SetPropertyEnableSpatialNavigation ¶ added in v0.0.4
SetPropertyEnableSpatialNavigation sets the "enable-spatial-navigation" property. Whether to enable Spatial Navigation. This feature consists in the ability to navigate between focusable elements in a Web page, such as hyperlinks and form controls, by using Left, Right, Up and Down arrow keys. For example, if an user presses the Right key, heuristics determine whether there is an element they might be trying to reach towards the right, and if there are multiple elements, which element they probably wants.
func (*Settings) SetPropertyEnableTabsToLinks ¶ added in v0.0.4
SetPropertyEnableTabsToLinks sets the "enable-tabs-to-links" property. Determines whether the tab key cycles through the elements on the page. When this setting is enabled, users will be able to focus the next element in the page by pressing the tab key. If the selected element is editable, then pressing tab key will insert the tab character.
func (*Settings) SetPropertyEnableWebaudio ¶ added in v0.0.4
SetPropertyEnableWebaudio sets the "enable-webaudio" property. Enable or disable support for WebAudio on pages. WebAudio is an API for processing and synthesizing audio in web applications
func (*Settings) SetPropertyEnableWebgl ¶ added in v0.0.4
SetPropertyEnableWebgl sets the "enable-webgl" property. Enable or disable support for WebGL on pages. WebGL enables web content to use an API based on OpenGL ES 2.0.
func (*Settings) SetPropertyEnableWebrtc ¶ added in v0.0.4
SetPropertyEnableWebrtc sets the "enable-webrtc" property. Enable WebRTC support for loaded pages.
Enabling this setting implies that [property@Settings:enable-media-stream] will be enabled as well.
See also https://www.w3.org/TR/webrtc/
func (*Settings) SetPropertyEnableWriteConsoleMessagesToStdout ¶ added in v0.0.4
SetPropertyEnableWriteConsoleMessagesToStdout sets the "enable-write-console-messages-to-stdout" property. Enable or disable writing console messages to stdout. These are messages sent to the console with console.log and related methods.
func (*Settings) SetPropertyFantasyFontFamily ¶ added in v0.0.4
SetPropertyFantasyFontFamily sets the "fantasy-font-family" property. The font family used as the default for content using a fantasy font.
func (*Settings) SetPropertyJavascriptCanAccessClipboard ¶ added in v0.0.4
SetPropertyJavascriptCanAccessClipboard sets the "javascript-can-access-clipboard" property. Whether JavaScript can access the clipboard. The default value is %FALSE. If set to %TRUE, document.execCommand() allows cut, copy and paste commands.
func (*Settings) SetPropertyJavascriptCanOpenWindowsAutomatically ¶ added in v0.0.4
SetPropertyJavascriptCanOpenWindowsAutomatically sets the "javascript-can-open-windows-automatically" property. Whether JavaScript can open popup windows automatically without user intervention.
func (*Settings) SetPropertyLoadIconsIgnoringImageLoadSetting ¶ added in v0.0.4
SetPropertyLoadIconsIgnoringImageLoadSetting sets the "load-icons-ignoring-image-load-setting" property. Unsupported setting. This property does nothing.
func (*Settings) SetPropertyMediaContentTypesRequiringHardwareSupport ¶ added in v0.0.4
SetPropertyMediaContentTypesRequiringHardwareSupport sets the "media-content-types-requiring-hardware-support" property. List of media content types requiring hardware support, split by semicolons (:). For example: 'video/webm; codecs="vp*":video/mp4; codecs="avc*":video/&ast; codecs="av1*"'.
func (*Settings) SetPropertyMediaPlaybackAllowsInline ¶ added in v0.0.4
SetPropertyMediaPlaybackAllowsInline sets the "media-playback-allows-inline" property. Whether media playback is full-screen only or inline playback is allowed. This is %TRUE by default, so media playback can be inline. Setting it to %FALSE allows specifying that media playback should be always fullscreen.
func (*Settings) SetPropertyMediaPlaybackRequiresUserGesture ¶ added in v0.0.4
SetPropertyMediaPlaybackRequiresUserGesture sets the "media-playback-requires-user-gesture" property. Whether a user gesture (such as clicking the play button) would be required to start media playback or load media. This is off by default, so media playback could start automatically. Setting it on requires a gesture by the user to start playback, or to load the media.
func (*Settings) SetPropertyMinimumFontSize ¶ added in v0.0.4
SetPropertyMinimumFontSize sets the "minimum-font-size" property. The minimum font size in pixels used to display text. This setting controls the absolute smallest size. Values other than 0 can potentially break page layouts.
func (*Settings) SetPropertyMonospaceFontFamily ¶ added in v0.0.4
SetPropertyMonospaceFontFamily sets the "monospace-font-family" property. The font family used as the default for content using a monospace font.
func (*Settings) SetPropertyPictographFontFamily ¶ added in v0.0.4
SetPropertyPictographFontFamily sets the "pictograph-font-family" property. The font family used as the default for content using a pictograph font.
func (*Settings) SetPropertyPrintBackgrounds ¶ added in v0.0.4
SetPropertyPrintBackgrounds sets the "print-backgrounds" property. Whether background images should be drawn during printing.
func (*Settings) SetPropertySansSerifFontFamily ¶ added in v0.0.4
SetPropertySansSerifFontFamily sets the "sans-serif-font-family" property. The font family used as the default for content using a sans-serif font.
func (*Settings) SetPropertySerifFontFamily ¶ added in v0.0.4
SetPropertySerifFontFamily sets the "serif-font-family" property. The font family used as the default for content using a serif font.
func (*Settings) SetPropertyUserAgent ¶ added in v0.0.4
SetPropertyUserAgent sets the "user-agent" property. The user-agent string used by WebKit. Unusual user-agent strings may cause web content to render incorrectly or fail to run, as many web pages are written to parse the user-agent strings of only the most popular browsers. Therefore, it's typically better to not completely override the standard user-agent, but to use webkit_settings_set_user_agent_with_application_details() instead.
If this property is set to the empty string or %NULL, it will revert to the standard user-agent.
func (*Settings) SetPropertyWebrtcUdpPortsRange ¶ added in v0.0.4
SetPropertyWebrtcUdpPortsRange sets the "webrtc-udp-ports-range" property. Allow customization of the WebRTC UDP ports range.
In some constrained environments where a firewall blocks UDP network traffic excepted on a specific port range, this settings can be used to give hints to the WebRTC backend regarding which ports to allocate. The format is min-port:max-port, so for instance 20000:30000. The default empty string value means the OS will use no hints from the WebRTC backend. Using 0 for one of the values is allowed and means the value is unspecified.
func (*Settings) SetPropertyZoomTextOnly ¶ added in v0.0.4
SetPropertyZoomTextOnly sets the "zoom-text-only" property. Whether #WebKitWebView:zoom-level affects only the text of the page or all the contents. Other contents containing text like form controls will be also affected by zoom factor when this property is enabled.
func (*Settings) SetSansSerifFontFamily ¶
Set the #WebKitSettings:sans-serif-font-family property.
func (*Settings) SetSerifFontFamily ¶
Set the #WebKitSettings:serif-font-family property.
func (*Settings) SetUserAgent ¶
Set the #WebKitSettings:user-agent property.
func (*Settings) SetUserAgentWithApplicationDetails ¶
func (x *Settings) SetUserAgentWithApplicationDetails(ApplicationNameVar *string, ApplicationVersionVar *string)
Set the #WebKitSettings:user-agent property by appending the application details.
Set the #WebKitSettings:user-agent property by appending the application details to the default user agent. If no application name or version is given, the default user agent used will be used. If only the version is given, the default engine version is used with the given application name.
func (*Settings) SetWebrtcUdpPortsRange ¶
Set the [property@Settings:webrtc-udp-ports-range] property.
func (*Settings) SetZoomTextOnly ¶
Set the #WebKitSettings:zoom-text-only property.
type SettingsClass ¶
type SettingsClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*SettingsClass) GoPointer ¶
func (x *SettingsClass) GoPointer() uintptr
type SnapshotError ¶
type SnapshotError int
Enum values used to denote errors happening when creating snapshots of #WebKitWebView
const ( // An error occurred when creating a webpage snapshot. SnapshotErrorFailedToCreateValue SnapshotError = 799 )
type SnapshotOptions ¶
type SnapshotOptions int
Enum values used to specify options when taking a snapshot from a #WebKitWebView.
const ( // Do not include any special options. SnapshotOptionsNoneValue SnapshotOptions = 0 // Whether to include in the // snapshot the highlight of the selected content. SnapshotOptionsIncludeSelectionHighlightingValue SnapshotOptions = 1 // Do not fill the background with white before // rendering the snapshot. Since 2.8 SnapshotOptionsTransparentBackgroundValue SnapshotOptions = 2 )
type SnapshotRegion ¶
type SnapshotRegion int
Enum values used to specify the region from which to get a #WebKitWebView snapshot
const ( // Specifies a snapshot only for the area that is // visible in the webview SnapshotRegionVisibleValue SnapshotRegion = 0 // A snapshot of the entire document. SnapshotRegionFullDocumentValue SnapshotRegion = 1 )
type TLSErrorsPolicy ¶
type TLSErrorsPolicy int
Enum values used to denote the TLS errors policy.
const ( // Ignore TLS errors. TlsErrorsPolicyIgnoreValue TLSErrorsPolicy = 0 // TLS errors will emit // #WebKitWebView::load-failed-with-tls-errors and, if the signal is handled, // finish the load. In case the signal is not handled, // #WebKitWebView::load-failed is emitted before the load finishes. TlsErrorsPolicyFailValue TLSErrorsPolicy = 1 )
type URIRequest ¶
Represents a URI request.
A #WebKitURIRequest can be created with a URI using the webkit_uri_request_new() method, and you can get the URI of an existing request with the webkit_uri_request_get_uri() one.
func NewURIRequest ¶
func NewURIRequest(UriVar string) *URIRequest
Creates a new #WebKitURIRequest for the given URI.
func URIRequestNewFromInternalPtr ¶
func URIRequestNewFromInternalPtr(ptr uintptr) *URIRequest
func (*URIRequest) GetHttpHeaders ¶
func (x *URIRequest) GetHttpHeaders() *soup.MessageHeaders
Get the HTTP headers of a #WebKitURIRequest as a #SoupMessageHeaders.
func (*URIRequest) GetHttpMethod ¶
func (x *URIRequest) GetHttpMethod() string
Get the HTTP method of the #WebKitURIRequest.
func (*URIRequest) GetPropertyUri ¶ added in v0.0.4
func (x *URIRequest) GetPropertyUri() string
GetPropertyUri gets the "uri" property. The URI to which the request will be made.
func (*URIRequest) GoPointer ¶
func (c *URIRequest) GoPointer() uintptr
func (*URIRequest) SetGoPointer ¶
func (c *URIRequest) SetGoPointer(ptr uintptr)
func (*URIRequest) SetPropertyUri ¶ added in v0.0.4
func (x *URIRequest) SetPropertyUri(value string)
SetPropertyUri sets the "uri" property. The URI to which the request will be made.
type URIRequestClass ¶
type URIRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*URIRequestClass) GoPointer ¶
func (x *URIRequestClass) GoPointer() uintptr
type URIResponse ¶
Represents an URI response.
A #WebKitURIResponse contains information such as the URI, the status code, the content length, the mime type, the HTTP status or the suggested filename.
func URIResponseNewFromInternalPtr ¶
func URIResponseNewFromInternalPtr(ptr uintptr) *URIResponse
func (*URIResponse) GetContentLength ¶
func (x *URIResponse) GetContentLength() uint64
Get the expected content length of the #WebKitURIResponse.
It can be 0 if the server provided an incorrect or missing Content-Length.
func (*URIResponse) GetHttpHeaders ¶
func (x *URIResponse) GetHttpHeaders() *soup.MessageHeaders
Get the HTTP headers of a #WebKitURIResponse as a #SoupMessageHeaders.
func (*URIResponse) GetMimeType ¶
func (x *URIResponse) GetMimeType() string
Gets the MIME type of the response.
func (*URIResponse) GetPropertyContentLength ¶ added in v0.0.4
func (x *URIResponse) GetPropertyContentLength() uint64
GetPropertyContentLength gets the "content-length" property. The expected content length of the response.
func (*URIResponse) GetPropertyHttpHeaders ¶ added in v0.0.4
func (x *URIResponse) GetPropertyHttpHeaders() uintptr
GetPropertyHttpHeaders gets the "http-headers" property. The HTTP headers of the response, or %NULL if the response is not an HTTP response.
func (*URIResponse) GetPropertyMimeType ¶ added in v0.0.4
func (x *URIResponse) GetPropertyMimeType() string
GetPropertyMimeType gets the "mime-type" property. The MIME type of the response.
func (*URIResponse) GetPropertyStatusCode ¶ added in v0.0.4
func (x *URIResponse) GetPropertyStatusCode() uint
GetPropertyStatusCode gets the "status-code" property. The status code of the response as returned by the server.
func (*URIResponse) GetPropertySuggestedFilename ¶ added in v0.0.4
func (x *URIResponse) GetPropertySuggestedFilename() string
GetPropertySuggestedFilename gets the "suggested-filename" property. The suggested filename for the URI response.
func (*URIResponse) GetPropertyUri ¶ added in v0.0.4
func (x *URIResponse) GetPropertyUri() string
GetPropertyUri gets the "uri" property. The URI for which the response was made.
func (*URIResponse) GetStatusCode ¶
func (x *URIResponse) GetStatusCode() uint
Get the status code of the #WebKitURIResponse.
Get the status code of the #WebKitURIResponse as returned by the server. It will normally be a #SoupKnownStatusCode, for example %SOUP_STATUS_OK, though the server can respond with any unsigned integer.
func (*URIResponse) GetSuggestedFilename ¶
func (x *URIResponse) GetSuggestedFilename() string
Get the suggested filename for @response.
Get the suggested filename for @response, as specified by the 'Content-Disposition' HTTP header, or %NULL if it's not present.
func (*URIResponse) GetUri ¶
func (x *URIResponse) GetUri() string
Gets the URI which resulted in the response.
func (*URIResponse) GoPointer ¶
func (c *URIResponse) GoPointer() uintptr
func (*URIResponse) SetGoPointer ¶
func (c *URIResponse) SetGoPointer(ptr uintptr)
type URIResponseClass ¶
type URIResponseClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*URIResponseClass) GoPointer ¶
func (x *URIResponseClass) GoPointer() uintptr
type URISchemeRequest ¶
Represents a URI scheme request.
If you register a particular URI scheme in a #WebKitWebContext, using webkit_web_context_register_uri_scheme(), you have to provide a #WebKitURISchemeRequestCallback. After that, when a URI request is made with that particular scheme, your callback will be called. There you will be able to access properties such as the scheme, the URI and path, and the #WebKitWebView that initiated the request, and also finish the request with webkit_uri_scheme_request_finish().
func URISchemeRequestNewFromInternalPtr ¶
func URISchemeRequestNewFromInternalPtr(ptr uintptr) *URISchemeRequest
func (*URISchemeRequest) Finish ¶
func (x *URISchemeRequest) Finish(StreamVar *gio.InputStream, StreamLengthVar int64, ContentTypeVar *string)
Finish a #WebKitURISchemeRequest by setting the contents of the request and its mime type.
func (*URISchemeRequest) FinishError ¶
func (x *URISchemeRequest) FinishError(ErrorVar *glib.Error)
Finish a #WebKitURISchemeRequest with a #GError.
func (*URISchemeRequest) FinishWithResponse ¶
func (x *URISchemeRequest) FinishWithResponse(ResponseVar *URISchemeResponse)
Finish a #WebKitURISchemeRequest by returning a #WebKitURISchemeResponse
func (*URISchemeRequest) GetHttpBody ¶
func (x *URISchemeRequest) GetHttpBody() *gio.InputStream
Get the request body.
func (*URISchemeRequest) GetHttpHeaders ¶
func (x *URISchemeRequest) GetHttpHeaders() *soup.MessageHeaders
Get the #SoupMessageHeaders of the request.
func (*URISchemeRequest) GetHttpMethod ¶
func (x *URISchemeRequest) GetHttpMethod() string
Get the HTTP method of the @request.
func (*URISchemeRequest) GetPath ¶
func (x *URISchemeRequest) GetPath() string
Get the URI path of @request.
func (*URISchemeRequest) GetScheme ¶
func (x *URISchemeRequest) GetScheme() string
Get the URI scheme of @request.
func (*URISchemeRequest) GetUri ¶
func (x *URISchemeRequest) GetUri() string
Get the URI of @request.
func (*URISchemeRequest) GetWebView ¶
func (x *URISchemeRequest) GetWebView() *WebView
Get the #WebKitWebView that initiated the request.
func (*URISchemeRequest) GoPointer ¶
func (c *URISchemeRequest) GoPointer() uintptr
func (*URISchemeRequest) SetGoPointer ¶
func (c *URISchemeRequest) SetGoPointer(ptr uintptr)
type URISchemeRequestCallback ¶
Type definition for a function that will be called back when an URI request is made for a user registered URI scheme.
type URISchemeRequestClass ¶
type URISchemeRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*URISchemeRequestClass) GoPointer ¶
func (x *URISchemeRequestClass) GoPointer() uintptr
type URISchemeResponse ¶
Represents a URI scheme response.
If you register a particular URI scheme in a #WebKitWebContext, using webkit_web_context_register_uri_scheme(), you have to provide a #WebKitURISchemeRequestCallback. After that, when a URI response is made with that particular scheme, your callback will be called. There you will be able to provide more response parameters when the methods and properties of a #WebKitURISchemeRequest is not enough.
When you finished setting up your #WebKitURISchemeResponse, call webkit_uri_request_finish_with_response() with it to return the response.
func NewURISchemeResponse ¶
func NewURISchemeResponse(InputStreamVar *gio.InputStream, StreamLengthVar int64) *URISchemeResponse
Create a new #WebKitURISchemeResponse
func URISchemeResponseNewFromInternalPtr ¶
func URISchemeResponseNewFromInternalPtr(ptr uintptr) *URISchemeResponse
func (*URISchemeResponse) GoPointer ¶
func (c *URISchemeResponse) GoPointer() uintptr
func (*URISchemeResponse) SetContentType ¶
func (x *URISchemeResponse) SetContentType(ContentTypeVar string)
Sets the content type for the @response
func (*URISchemeResponse) SetGoPointer ¶
func (c *URISchemeResponse) SetGoPointer(ptr uintptr)
func (*URISchemeResponse) SetHttpHeaders ¶
func (x *URISchemeResponse) SetHttpHeaders(HeadersVar *soup.MessageHeaders)
Assign the provided #SoupMessageHeaders to the response.
@headers need to be of the type %SOUP_MESSAGE_HEADERS_RESPONSE. Any existing headers will be overwritten.
func (*URISchemeResponse) SetPropertyStreamLength ¶ added in v0.0.4
func (x *URISchemeResponse) SetPropertyStreamLength(value int64)
SetPropertyStreamLength sets the "stream-length" property. The input stream length in bytes, `-1` for unknown length.
func (*URISchemeResponse) SetStatus ¶
func (x *URISchemeResponse) SetStatus(StatusCodeVar uint, ReasonPhraseVar *string)
Sets the status code and reason phrase for the @response.
If @status_code is a known value and @reason_phrase is %NULL, the @reason_phrase will be set automatically.
type URISchemeResponseClass ¶
type URISchemeResponseClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*URISchemeResponseClass) GoPointer ¶
func (x *URISchemeResponseClass) GoPointer() uintptr
type UserContentFilter ¶
type UserContentFilter struct {
// contains filtered or unexported fields
}
A compiled set of rules which applied to resource loads.
func (*UserContentFilter) GetIdentifier ¶
func (x *UserContentFilter) GetIdentifier() string
Obtain the identifier previously used to save the @user_content_filter.
Obtain the identifier previously used to save the @user_content_filter in the #WebKitUserContentFilterStore.
func (*UserContentFilter) GoPointer ¶
func (x *UserContentFilter) GoPointer() uintptr
func (*UserContentFilter) Ref ¶
func (x *UserContentFilter) Ref() *UserContentFilter
Atomically increments the reference count of @user_content_filter by one.
This function is MT-safe and may be called from any thread.
func (*UserContentFilter) Unref ¶
func (x *UserContentFilter) Unref()
Atomically decrements the reference count of @user_content_filter by one.
If the reference count drops to 0, all the memory allocated by the #WebKitUserContentFilter is released. This function is MT-safe and may be called from any thread.
type UserContentFilterError ¶
type UserContentFilterError int
Errors that can occur while compiling content filters.
const ( // The JSON source for a content filter is invalid. UserContentFilterErrorInvalidSourceValue UserContentFilterError = 0 // The requested content filter could not be found. UserContentFilterErrorNotFoundValue UserContentFilterError = 1 )
type UserContentFilterStore ¶
Handles storage of user content filters on disk.
The WebKitUserContentFilterStore provides the means to import and save [JSON rule sets](https://webkit.org/blog/3476/content-blockers-first-look/), which can be loaded later in an efficient manner. Once filters are stored, the #WebKitUserContentFilter objects which represent them can be added to a #WebKitUserContentManager with webkit_user_content_manager_add_filter().
JSON rule sets are imported using webkit_user_content_filter_store_save() and stored on disk in an implementation defined format. The contents of a filter store must be managed using the #WebKitUserContentFilterStore: a list of all the stored filters can be obtained with webkit_user_content_filter_store_fetch_identifiers(), webkit_user_content_filter_store_load() can be used to retrieve a previously saved filter, and removed from the store with webkit_user_content_filter_store_remove().
func NewUserContentFilterStore ¶
func NewUserContentFilterStore(StoragePathVar string) *UserContentFilterStore
Create a new #WebKitUserContentFilterStore to manipulate filters stored at @storage_path.
The path must point to a local filesystem, and will be created if needed.
func UserContentFilterStoreNewFromInternalPtr ¶
func UserContentFilterStoreNewFromInternalPtr(ptr uintptr) *UserContentFilterStore
func (*UserContentFilterStore) FetchIdentifiers ¶
func (x *UserContentFilterStore) FetchIdentifiers(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously retrieve a list of the identifiers for all the stored filters.
When the operation is finished, @callback will be invoked, which then can use webkit_user_content_filter_store_fetch_identifiers_finish() to obtain the list of filter identifiers.
func (*UserContentFilterStore) FetchIdentifiersFinish ¶
func (x *UserContentFilterStore) FetchIdentifiersFinish(ResultVar gio.AsyncResult) []string
Finishes an asynchronous fetch of the list of stored filters.
Finishes an asynchronous fetch of the list of identifiers for the stored filters previously started with webkit_user_content_filter_store_fetch_identifiers().
func (*UserContentFilterStore) GetPath ¶
func (x *UserContentFilterStore) GetPath() string
Gets the storage path for user content filters.
func (*UserContentFilterStore) GetPropertyPath ¶ added in v0.0.4
func (x *UserContentFilterStore) GetPropertyPath() string
GetPropertyPath gets the "path" property. The directory used for filter storage. This path is used as the base directory where user content filters are stored on disk.
func (*UserContentFilterStore) GoPointer ¶
func (c *UserContentFilterStore) GoPointer() uintptr
func (*UserContentFilterStore) Load ¶
func (x *UserContentFilterStore) Load(IdentifierVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously load a content filter given its @identifier.
The filter must have been previously stored using webkit_user_content_filter_store_save().
When the operation is finished, @callback will be invoked, which then can use webkit_user_content_filter_store_load_finish() to obtain the resulting filter.
func (*UserContentFilterStore) LoadFinish ¶
func (x *UserContentFilterStore) LoadFinish(ResultVar gio.AsyncResult) (*UserContentFilter, error)
Finishes an asynchronous filter load previously started with webkit_user_content_filter_store_load().
func (*UserContentFilterStore) Remove ¶
func (x *UserContentFilterStore) Remove(IdentifierVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously remove a content filter given its @identifier.
When the operation is finished, @callback will be invoked, which then can use webkit_user_content_filter_store_remove_finish() to check whether the removal was successful.
func (*UserContentFilterStore) RemoveFinish ¶
func (x *UserContentFilterStore) RemoveFinish(ResultVar gio.AsyncResult) (bool, error)
Finishes an asynchronous filter removal previously started with webkit_user_content_filter_store_remove().
func (*UserContentFilterStore) Save ¶
func (x *UserContentFilterStore) Save(IdentifierVar string, SourceVar *glib.Bytes, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously save a content filter from a set source rule.
Asynchronously save a content filter from a source rule set in the [WebKit content extesions JSON format](https://webkit.org/blog/3476/content-blockers-first-look/).
The @identifier can be used afterwards to refer to the filter when using webkit_user_content_filter_store_remove() and webkit_user_content_filter_store_load(). When the @identifier has been used in the past, the new filter source will replace the one saved beforehand for the same identifier.
When the operation is finished, @callback will be invoked, which then can use webkit_user_content_filter_store_save_finish() to obtain the resulting filter.
func (*UserContentFilterStore) SaveFinish ¶
func (x *UserContentFilterStore) SaveFinish(ResultVar gio.AsyncResult) (*UserContentFilter, error)
Finishes an asynchronous filter save previously started with webkit_user_content_filter_store_save().
func (*UserContentFilterStore) SaveFromFile ¶
func (x *UserContentFilterStore) SaveFromFile(IdentifierVar string, FileVar gio.File, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously save a content filter from the contents of a file.
Asynchronously save a content filter from the contents of a file, which must be native to the platform, as checked by g_file_is_native(). See webkit_user_content_filter_store_save() for more details.
When the operation is finished, @callback will be invoked, which then can use webkit_user_content_filter_store_save_finish() to obtain the resulting filter.
func (*UserContentFilterStore) SaveFromFileFinish ¶
func (x *UserContentFilterStore) SaveFromFileFinish(ResultVar gio.AsyncResult) (*UserContentFilter, error)
Finishes and asynchronous filter save previously started with webkit_user_content_filter_store_save_from_file().
func (*UserContentFilterStore) SetGoPointer ¶
func (c *UserContentFilterStore) SetGoPointer(ptr uintptr)
func (*UserContentFilterStore) SetPropertyPath ¶ added in v0.0.4
func (x *UserContentFilterStore) SetPropertyPath(value string)
SetPropertyPath sets the "path" property. The directory used for filter storage. This path is used as the base directory where user content filters are stored on disk.
type UserContentFilterStoreClass ¶
type UserContentFilterStoreClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*UserContentFilterStoreClass) GoPointer ¶
func (x *UserContentFilterStoreClass) GoPointer() uintptr
type UserContentInjectedFrames ¶
type UserContentInjectedFrames int
Specifies in which frames user style sheets are to be inserted in.
const ( // Insert the user style // sheet in all the frames loaded by the web view, including // nested frames. This is the default. UserContentInjectAllFramesValue UserContentInjectedFrames = 0 // Insert the user style // sheet *only* in the top-level frame loaded by the web view, // and *not* in the nested frames. UserContentInjectTopFrameValue UserContentInjectedFrames = 1 )
type UserContentManager ¶
Manages user-defined content which affects web pages.
Using a #WebKitUserContentManager user CSS style sheets can be set to be injected in the web pages loaded by a #WebKitWebView, by webkit_user_content_manager_add_style_sheet().
To use a #WebKitUserContentManager, it must be created using webkit_user_content_manager_new(), and then used to construct a #WebKitWebView. User style sheets can be created with webkit_user_style_sheet_new().
User style sheets can be added and removed at any time, but they will affect the web pages loaded afterwards.
func NewUserContentManager ¶
func NewUserContentManager() *UserContentManager
Creates a new user content manager.
func UserContentManagerNewFromInternalPtr ¶
func UserContentManagerNewFromInternalPtr(ptr uintptr) *UserContentManager
func (*UserContentManager) AddFilter ¶
func (x *UserContentManager) AddFilter(FilterVar *UserContentFilter)
Adds a #WebKitUserContentFilter to the given #WebKitUserContentManager.
The same #WebKitUserContentFilter can be reused with multiple #WebKitUserContentManager instances.
Filters need to be saved and loaded from #WebKitUserContentFilterStore.
func (*UserContentManager) AddScript ¶
func (x *UserContentManager) AddScript(ScriptVar *UserScript)
Adds a #WebKitUserScript to the given #WebKitUserContentManager.
The same #WebKitUserScript can be reused with multiple #WebKitUserContentManager instances.
func (*UserContentManager) AddStyleSheet ¶
func (x *UserContentManager) AddStyleSheet(StylesheetVar *UserStyleSheet)
Adds a #WebKitUserStyleSheet to the given #WebKitUserContentManager.
The same #WebKitUserStyleSheet can be reused with multiple #WebKitUserContentManager instances.
func (*UserContentManager) ConnectScriptMessageReceived ¶
func (x *UserContentManager) ConnectScriptMessageReceived(cb *func(UserContentManager, uintptr)) uint
This signal is emitted when JavaScript in a web view calls <code>window.webkit.messageHandlers.<name>.postMessage()</code>, after registering <code><name></code> using webkit_user_content_manager_register_script_message_handler()
func (*UserContentManager) ConnectScriptMessageReceivedWithDetail ¶ added in v0.0.7
func (x *UserContentManager) ConnectScriptMessageReceivedWithDetail(detail string, cb *func(UserContentManager, uintptr)) uint
ConnectScriptMessageReceivedWithDetail connects to the "script-message-received" signal with a detail string. The detail is appended as "script-message-received::<detail>".
func (*UserContentManager) ConnectScriptMessageWithReplyReceived ¶
func (x *UserContentManager) ConnectScriptMessageWithReplyReceived(cb *func(UserContentManager, uintptr, uintptr) bool) uint
This signal is emitted when JavaScript in a web view calls <code>window.webkit.messageHandlers.<name>.postMessage()</code>, after registering <code><name></code> using webkit_user_content_manager_register_script_message_handler_with_reply()
The given @reply can be used to send a return value with webkit_script_message_reply_return_value() or an error message with webkit_script_message_reply_return_error_message(). If none of them are called, an automatic reply with an undefined value will be sent.
It is possible to handle the reply asynchronously, by simply calling g_object_ref() on the @reply and returning %TRUE.
func (*UserContentManager) ConnectScriptMessageWithReplyReceivedWithDetail ¶ added in v0.0.7
func (x *UserContentManager) ConnectScriptMessageWithReplyReceivedWithDetail(detail string, cb *func(UserContentManager, uintptr, uintptr) bool) uint
ConnectScriptMessageWithReplyReceivedWithDetail connects to the "script-message-with-reply-received" signal with a detail string. The detail is appended as "script-message-with-reply-received::<detail>".
func (*UserContentManager) GoPointer ¶
func (c *UserContentManager) GoPointer() uintptr
func (*UserContentManager) RegisterScriptMessageHandler ¶
func (x *UserContentManager) RegisterScriptMessageHandler(NameVar string, WorldNameVar *string) bool
Registers a new user script message handler in script world.
After it is registered, scripts can use `window.webkit.messageHandlers.<name>.postMessage(value)` to send messages. Those messages are received by connecting handlers to the #WebKitUserContentManager::script-message-received signal. The handler name is used as the detail of the signal. To avoid race conditions between registering the handler name, and starting to receive the signals, it is recommended to connect to the signal *before* registering the handler name:
```c WebKitWebView *view = webkit_web_view_new (); WebKitUserContentManager *manager = webkit_web_view_get_user_content_manager (); g_signal_connect (manager, "script-message-received::foobar",
G_CALLBACK (handle_script_message), NULL);
webkit_user_content_manager_register_script_message_handler (manager, "foobar"); ```
Registering a script message handler will fail if the requested name has been already registered before.
If %NULL is passed as the @world_name, the default world will be used.
The registered handler can be unregistered by using webkit_user_content_manager_unregister_script_message_handler().
func (*UserContentManager) RegisterScriptMessageHandlerWithReply ¶
func (x *UserContentManager) RegisterScriptMessageHandlerWithReply(NameVar string, WorldNameVar *string) bool
Registers a new user script message handler in script world with name @world_name.
Different from webkit_user_content_manager_register_script_message_handler(), when using this function to register the handler, the connected signal is script-message-with-reply-received, and a reply provided by the user is expected. Otherwise, the user will receive a default undefined value.
If %NULL is passed as the @world_name, the default world will be used. See webkit_user_content_manager_register_script_message_handler() for full description.
Registering a script message handler will fail if the requested name has been already registered before.
The registered handler can be unregistered by using webkit_user_content_manager_unregister_script_message_handler().
func (*UserContentManager) RemoveAllFilters ¶
func (x *UserContentManager) RemoveAllFilters()
Removes all content filters from the given #WebKitUserContentManager.
func (*UserContentManager) RemoveAllScripts ¶
func (x *UserContentManager) RemoveAllScripts()
Removes all user scripts from the given #WebKitUserContentManager
See also webkit_user_content_manager_remove_script().
func (*UserContentManager) RemoveAllStyleSheets ¶
func (x *UserContentManager) RemoveAllStyleSheets()
Removes all user style sheets from the given #WebKitUserContentManager.
func (*UserContentManager) RemoveFilter ¶
func (x *UserContentManager) RemoveFilter(FilterVar *UserContentFilter)
Removes a filter from the given #WebKitUserContentManager.
Since 2.24
func (*UserContentManager) RemoveFilterById ¶
func (x *UserContentManager) RemoveFilterById(FilterIdVar string)
Removes a filter by the given identifier.
Removes a filter from the given #WebKitUserContentManager given the identifier of a #WebKitUserContentFilter as returned by webkit_user_content_filter_get_identifier().
func (*UserContentManager) RemoveScript ¶
func (x *UserContentManager) RemoveScript(ScriptVar *UserScript)
Removes a #WebKitUserScript from the given #WebKitUserContentManager.
See also webkit_user_content_manager_remove_all_scripts().
func (*UserContentManager) RemoveStyleSheet ¶
func (x *UserContentManager) RemoveStyleSheet(StylesheetVar *UserStyleSheet)
Removes a #WebKitUserStyleSheet from the given #WebKitUserContentManager.
See also webkit_user_content_manager_remove_all_style_sheets().
func (*UserContentManager) SetGoPointer ¶
func (c *UserContentManager) SetGoPointer(ptr uintptr)
func (*UserContentManager) UnregisterScriptMessageHandler ¶
func (x *UserContentManager) UnregisterScriptMessageHandler(NameVar string, WorldNameVar *string)
Unregisters a previously registered message handler in script world with name @world_name. If %NULL is passed as the @world_name, the default world will be used.
Note that this does *not* disconnect handlers for the #WebKitUserContentManager::script-message-received signal; they will be kept connected, but the signal will not be emitted unless the handler name is registered again.
See also webkit_user_content_manager_register_script_message_handler().
type UserContentManagerClass ¶
type UserContentManagerClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*UserContentManagerClass) GoPointer ¶
func (x *UserContentManagerClass) GoPointer() uintptr
type UserMediaPermissionRequest ¶
A permission request for accessing user's audio/video devices.
WebKitUserMediaPermissionRequest represents a request for permission to decide whether WebKit should be allowed to access the user's audio and video source devices when requested through the getUserMedia API.
When a WebKitUserMediaPermissionRequest is not handled by the user, it is denied by default.
func UserMediaPermissionRequestNewFromInternalPtr ¶
func UserMediaPermissionRequestNewFromInternalPtr(ptr uintptr) *UserMediaPermissionRequest
func (*UserMediaPermissionRequest) Allow ¶
func (x *UserMediaPermissionRequest) Allow()
Allow the action which triggered this request.
func (*UserMediaPermissionRequest) Deny ¶
func (x *UserMediaPermissionRequest) Deny()
Deny the action which triggered this request.
func (*UserMediaPermissionRequest) GetPropertyIsForAudioDevice ¶ added in v0.0.4
func (x *UserMediaPermissionRequest) GetPropertyIsForAudioDevice() bool
GetPropertyIsForAudioDevice gets the "is-for-audio-device" property. Whether the media device to which the permission was requested has a microphone or not.
func (*UserMediaPermissionRequest) GetPropertyIsForVideoDevice ¶ added in v0.0.4
func (x *UserMediaPermissionRequest) GetPropertyIsForVideoDevice() bool
GetPropertyIsForVideoDevice gets the "is-for-video-device" property. Whether the media device to which the permission was requested has a video capture capability or not.
func (*UserMediaPermissionRequest) GoPointer ¶
func (c *UserMediaPermissionRequest) GoPointer() uintptr
func (*UserMediaPermissionRequest) SetGoPointer ¶
func (c *UserMediaPermissionRequest) SetGoPointer(ptr uintptr)
type UserMediaPermissionRequestClass ¶
type UserMediaPermissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*UserMediaPermissionRequestClass) GoPointer ¶
func (x *UserMediaPermissionRequestClass) GoPointer() uintptr
type UserMessage ¶
type UserMessage struct {
gobject.InitiallyUnowned
}
Message that can be sent between the UI process and web process extensions.
A WebKitUserMessage is a message that can be used for the communication between the UI process and web process extensions. A WebKitUserMessage always has a name, and it can also include parameters and UNIX file descriptors. Messages can be sent from a #WebKitWebContext to all web process extensions, from a web process extension to its corresponding #WebKitWebContext, and from a #WebKitWebView to its corresponding #WebKitWebPage (and vice versa). One to one messages can be replied to directly with webkit_user_message_send_reply().
func NewUserMessage ¶
func NewUserMessage(NameVar string, ParametersVar *glib.Variant) *UserMessage
Create a new #WebKitUserMessage with @name.
func NewUserMessageWithFdList ¶
func NewUserMessageWithFdList(NameVar string, ParametersVar *glib.Variant, FdListVar *gio.UnixFDList) *UserMessage
Create a new #WebKitUserMessage including also a list of UNIX file descriptors to be sent.
func UserMessageNewFromInternalPtr ¶
func UserMessageNewFromInternalPtr(ptr uintptr) *UserMessage
func (*UserMessage) GetFdList ¶
func (x *UserMessage) GetFdList() *gio.UnixFDList
Get the @message list of file descritpor.
func (*UserMessage) GetParameters ¶
func (x *UserMessage) GetParameters() *glib.Variant
Get the @message parameters.
func (*UserMessage) GetPropertyName ¶ added in v0.0.4
func (x *UserMessage) GetPropertyName() string
GetPropertyName gets the "name" property. The name of the user message.
func (*UserMessage) GetPropertyParameters ¶ added in v0.0.4
func (x *UserMessage) GetPropertyParameters() uintptr
GetPropertyParameters gets the "parameters" property. The parameters of the user message as a #GVariant, or %NULL if the message doesn't include parameters. Note that only complete types are allowed.
func (*UserMessage) GoPointer ¶
func (c *UserMessage) GoPointer() uintptr
func (*UserMessage) SendReply ¶
func (x *UserMessage) SendReply(ReplyVar *UserMessage)
Send a reply to an user message.
If @reply is floating, it's consumed. You can only send a reply to a #WebKitUserMessage that has been received.
func (*UserMessage) SetGoPointer ¶
func (c *UserMessage) SetGoPointer(ptr uintptr)
func (*UserMessage) SetPropertyName ¶ added in v0.0.4
func (x *UserMessage) SetPropertyName(value string)
SetPropertyName sets the "name" property. The name of the user message.
func (*UserMessage) SetPropertyParameters ¶ added in v0.0.4
func (x *UserMessage) SetPropertyParameters(value uintptr)
SetPropertyParameters sets the "parameters" property. The parameters of the user message as a #GVariant, or %NULL if the message doesn't include parameters. Note that only complete types are allowed.
type UserMessageClass ¶
type UserMessageClass struct {
ParentClass gobject.InitiallyUnownedClass
// contains filtered or unexported fields
}
func (*UserMessageClass) GoPointer ¶
func (x *UserMessageClass) GoPointer() uintptr
type UserMessageError ¶
type UserMessageError int
Enum values used to denote errors happening when sending user messages.
const ( // The message was not handled by the receiver. UserMessageUnhandledMessageValue UserMessageError = 0 )
type UserScript ¶
type UserScript struct {
// contains filtered or unexported fields
}
A JavaScript snippet which can be injected in loaded pages.
func NewUserScript ¶
func NewUserScript(SourceVar string, InjectedFramesVar UserContentInjectedFrames, InjectionTimeVar UserScriptInjectionTime, AllowListVar []string, BlockListVar []string) *UserScript
Creates a new user script.
Scripts can be applied to some URIs only by passing non-null values for @allow_list or @block_list. Passing a %NULL allow_list implies that all URIs are on the allow_list. The script is applied if an URI matches the allow_list and not the block_list. URI patterns must be of the form `[protocol]://[host]/[path]`, where the *host* and *path* components can contain the wildcard character (`*`) to represent zero or more other characters.
func NewUserScriptForWorld ¶
func NewUserScriptForWorld(SourceVar string, InjectedFramesVar UserContentInjectedFrames, InjectionTimeVar UserScriptInjectionTime, WorldNameVar string, AllowListVar []string, BlockListVar []string) *UserScript
Creates a new user script for script world with name @world_name.
See webkit_user_script_new() for a full description.
func (*UserScript) GoPointer ¶
func (x *UserScript) GoPointer() uintptr
func (*UserScript) Ref ¶
func (x *UserScript) Ref() *UserScript
Atomically increments the reference count of @user_script by one.
This function is MT-safe and may be called from any thread.
func (*UserScript) Unref ¶
func (x *UserScript) Unref()
Atomically decrements the reference count of @user_script by one.
If the reference count drops to 0, all memory allocated by #WebKitUserScript is released. This function is MT-safe and may be called from any thread.
type UserScriptInjectionTime ¶
type UserScriptInjectionTime int
Specifies at which place of documents an user script will be inserted.
const ( // Insert the code of the user // script at the beginning of loaded documents. This is the default. UserScriptInjectAtDocumentStartValue UserScriptInjectionTime = 0 // Insert the code of the user // script at the end of the loaded documents. UserScriptInjectAtDocumentEndValue UserScriptInjectionTime = 1 )
type UserStyleLevel ¶
type UserStyleLevel int
Specifies how to treat an user style sheet.
const ( // The style sheet is an user style sheet, // its contents always override other style sheets. This is the default. UserStyleLevelUserValue UserStyleLevel = 0 // The style sheet will be treated as if // it was provided by the loaded documents. That means other user style // sheets may still override it. UserStyleLevelAuthorValue UserStyleLevel = 1 )
type UserStyleSheet ¶
type UserStyleSheet struct {
// contains filtered or unexported fields
}
A CSS style sheet which can be injected in loaded pages.
func NewUserStyleSheet ¶
func NewUserStyleSheet(SourceVar string, InjectedFramesVar UserContentInjectedFrames, LevelVar UserStyleLevel, AllowListVar []string, BlockListVar []string) *UserStyleSheet
Creates a new user style sheet.
Style sheets can be applied to some URIs only by passing non-null values for @allow_list or @block_list. Passing a %NULL allow_list implies that all URIs are on the allow_list. The style sheet is applied if an URI matches the allow_list and not the block_list. URI patterns must be of the form `[protocol]://[host]/[path]`, where the *host* and *path* components can contain the wildcard character (`*`) to represent zero or more other characters.
func NewUserStyleSheetForWorld ¶
func NewUserStyleSheetForWorld(SourceVar string, InjectedFramesVar UserContentInjectedFrames, LevelVar UserStyleLevel, WorldNameVar string, AllowListVar []string, BlockListVar []string) *UserStyleSheet
Creates a new user style sheet for script world.
Creates a new user style sheet for script world with name @world_name. See webkit_user_style_sheet_new() for a full description.
func (*UserStyleSheet) GoPointer ¶
func (x *UserStyleSheet) GoPointer() uintptr
func (*UserStyleSheet) Ref ¶
func (x *UserStyleSheet) Ref() *UserStyleSheet
Atomically increments the reference count of @user_style_sheet by one.
This function is MT-safe and may be called from any thread.
func (*UserStyleSheet) Unref ¶
func (x *UserStyleSheet) Unref()
Atomically decrements the reference count of @user_style_sheet by one.
If the reference count drops to 0, all memory allocated by #WebKitUserStyleSheet is released. This function is MT-safe and may be called from any thread.
type WebContext ¶
Manages aspects common to all #WebKitWebView<!-- -->s
The #WebKitWebContext manages all aspects common to all #WebKitWebView<!-- -->s.
You can define the #WebKitCacheModel with webkit_web_context_set_cache_model(), depending on the needs of your application. You can access the #WebKitSecurityManager to specify the behaviour of your application regarding security using webkit_web_context_get_security_manager().
It is also possible to change your preferred language or enable spell checking, using webkit_web_context_set_preferred_languages(), webkit_web_context_set_spell_checking_languages() and webkit_web_context_set_spell_checking_enabled().
You can use webkit_web_context_register_uri_scheme() to register custom URI schemes, and manage several other settings.
TLS certificate validation failure is now treated as a transport error by default. To handle TLS failures differently, you can connect to #WebKitWebView::load-failed-with-tls-errors. Alternatively, you can use webkit_web_context_set_tls_errors_policy() to set the policy %WEBKIT_TLS_ERRORS_POLICY_IGNORE; however, this is not appropriate for Internet applications.
func NewWebContextWithMemoryPressureSettings ¶ added in v0.0.8
func NewWebContextWithMemoryPressureSettings(settings *MemoryPressureSettings) *WebContext
NewWebContextWithMemoryPressureSettings creates a new WebContext with memory pressure settings. This is a convenience wrapper around NewWebContextWithOptions for the common case of only setting memory pressure settings.
func NewWebContextWithOptions ¶ added in v0.0.8
func NewWebContextWithOptions(opts *WebContextOptions) *WebContext
NewWebContextWithOptions creates a new WebContext with the specified construct-only properties. This is necessary because properties like "memory-pressure-settings" can only be set at construction time.
func WebContextNewFromInternalPtr ¶
func WebContextNewFromInternalPtr(ptr uintptr) *WebContext
func (*WebContext) AddPathToSandbox ¶
func (x *WebContext) AddPathToSandbox(PathVar string, ReadOnlyVar bool)
Adds a path to be mounted in the sandbox.
@path must exist before any web process has been created. It is a fatal error to add paths after a web process has been spawned.
Paths under `/sys`, `/proc`, and `/dev` are invalid. Attempting to add all of `/` is not valid. Since 2.40, adding the user's entire home directory or /home is also not valid.
See also webkit_web_context_set_sandbox_enabled()
func (*WebContext) ConnectAutomationStarted ¶
func (x *WebContext) ConnectAutomationStarted(cb *func(WebContext, uintptr)) uint
This signal is emitted when a new automation request is made. Note that it will never be emitted if automation is not enabled in @context, see webkit_web_context_set_automation_allowed() for more details.
func (*WebContext) ConnectInitializeNotificationPermissions ¶
func (x *WebContext) ConnectInitializeNotificationPermissions(cb *func(WebContext)) uint
This signal is emitted when a #WebKitWebContext needs to set initial notification permissions for a web process. It is emitted when a new web process is about to be launched, and signals the most appropriate moment to use webkit_web_context_initialize_notification_permissions(). If no notification permissions have changed since the last time this signal was emitted, then there is no need to call webkit_web_context_initialize_notification_permissions() again.
func (*WebContext) ConnectInitializeWebProcessExtensions ¶
func (x *WebContext) ConnectInitializeWebProcessExtensions(cb *func(WebContext)) uint
This signal is emitted when a new web process is about to be launched. It signals the most appropriate moment to use webkit_web_context_set_web_process_extensions_initialization_user_data() and webkit_web_context_set_web_process_extensions_directory().
func (*WebContext) ConnectUserMessageReceived ¶
func (x *WebContext) ConnectUserMessageReceived(cb *func(WebContext, uintptr) bool) uint
This signal is emitted when a #WebKitUserMessage is received from a web process extension. You can reply to the message using webkit_user_message_send_reply().
You can handle the user message asynchronously by calling g_object_ref() on @message and returning %TRUE.
func (*WebContext) GetCacheModel ¶
func (x *WebContext) GetCacheModel() CacheModel
Returns the current cache model.
For more information about this value check the documentation of the function webkit_web_context_set_cache_model().
func (*WebContext) GetGeolocationManager ¶
func (x *WebContext) GetGeolocationManager() *GeolocationManager
Get the #WebKitGeolocationManager of @context.
func (*WebContext) GetNetworkSessionForAutomation ¶
func (x *WebContext) GetNetworkSessionForAutomation() *NetworkSession
Get the #WebKitNetworkSession used for automation sessions started in @context.
func (*WebContext) GetPropertyTimeZoneOverride ¶ added in v0.0.4
func (x *WebContext) GetPropertyTimeZoneOverride() string
GetPropertyTimeZoneOverride gets the "time-zone-override" property. The timezone override for this web context. Setting this property provides a better alternative to configure the timezone information for all webviews managed by the WebContext. The other, less optimal, approach is to globally set the TZ environment variable in the process before creating the context. However this approach might not be very convenient and can have side-effects in your application.
The expected values for this property are defined in the IANA timezone database. See this wikipedia page for instance, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
func (*WebContext) GetSecurityManager ¶
func (x *WebContext) GetSecurityManager() *SecurityManager
Get the #WebKitSecurityManager of @context.
func (*WebContext) GetSpellCheckingEnabled ¶
func (x *WebContext) GetSpellCheckingEnabled() bool
Get whether spell checking feature is currently enabled.
func (*WebContext) GetSpellCheckingLanguages ¶
func (x *WebContext) GetSpellCheckingLanguages() []string
Get the the list of spell checking languages.
Get the the list of spell checking languages associated with @context, or %NULL if no languages have been previously set.
See webkit_web_context_set_spell_checking_languages() for more details on the format of the languages in the list.
func (*WebContext) GetTimeZoneOverride ¶
func (x *WebContext) GetTimeZoneOverride() string
Get the #WebKitWebContext:time-zone-override property.
func (*WebContext) GoPointer ¶
func (c *WebContext) GoPointer() uintptr
func (*WebContext) InitializeNotificationPermissions ¶
func (x *WebContext) InitializeNotificationPermissions(AllowedOriginsVar *glib.List, DisallowedOriginsVar *glib.List)
Sets initial desktop notification permissions for the @context.
@allowed_origins and @disallowed_origins must each be #GList of #WebKitSecurityOrigin objects representing origins that will, respectively, either always or never have permission to show desktop notifications. No #WebKitNotificationPermissionRequest will ever be generated for any of the security origins represented in @allowed_origins or @disallowed_origins. This function is necessary because some webpages proactively check whether they have permission to display notifications without ever creating a permission request.
This function only affects web processes that have not already been created. The best time to call it is when handling #WebKitWebContext::initialize-notification-permissions so as to ensure that new web processes receive the most recent set of permissions.
func (*WebContext) IsAutomationAllowed ¶
func (x *WebContext) IsAutomationAllowed() bool
Get whether automation is allowed in @context.
See also webkit_web_context_set_automation_allowed().
func (*WebContext) RegisterUriScheme ¶
func (x *WebContext) RegisterUriScheme(SchemeVar string, CallbackVar *URISchemeRequestCallback, UserDataVar uintptr, UserDataDestroyFuncVar *glib.DestroyNotify)
Register @scheme in @context.
Register @scheme in @context, so that when an URI request with @scheme is made in the #WebKitWebContext, the #WebKitURISchemeRequestCallback registered will be called with a #WebKitURISchemeRequest. It is possible to handle URI scheme requests asynchronously, by calling g_object_ref() on the #WebKitURISchemeRequest and calling webkit_uri_scheme_request_finish() later when the data of the request is available or webkit_uri_scheme_request_finish_error() in case of error.
```c static void about_uri_scheme_request_cb (WebKitURISchemeRequest *request,
gpointer user_data)
{
GInputStream *stream;
gsize stream_length;
const gchar *path = webkit_uri_scheme_request_get_path (request);
if (!g_strcmp0 (path, "memory")) {
// Create a GInputStream with the contents of memory about page, and set its length to stream_length
} else if (!g_strcmp0 (path, "applications")) {
// Create a GInputStream with the contents of applications about page, and set its length to stream_length
} else if (!g_strcmp0 (path, "example")) {
gchar *contents = g_strdup_printf ("<html><body><p>Example about page</p></body></html>");
stream_length = strlen (contents);
stream = g_memory_input_stream_new_from_data (contents, stream_length, g_free);
} else {
GError *error = g_error_new (ABOUT_HANDLER_ERROR, ABOUT_HANDLER_ERROR_INVALID, "Invalid about:%s page.", path);
webkit_uri_scheme_request_finish_error (request, error);
g_error_free (error);
return;
}
webkit_uri_scheme_request_finish (request, stream, stream_length, "text/html");
g_object_unref (stream);
}
```
func (*WebContext) SendMessageToAllExtensions ¶
func (x *WebContext) SendMessageToAllExtensions(MessageVar *UserMessage)
Send @message to all web process extensions associated to @context.
If @message is floating, it's consumed.
func (*WebContext) SetAutomationAllowed ¶
func (x *WebContext) SetAutomationAllowed(AllowedVar bool)
Set whether automation is allowed in @context.
When automation is enabled the browser could be controlled by another process by requesting an automation session. When a new automation session is requested the signal #WebKitWebContext::automation-started is emitted. Automation is disabled by default, so you need to explicitly call this method passing %TRUE to enable it.
Note that only one #WebKitWebContext can have automation enabled, so this will do nothing if there's another #WebKitWebContext with automation already enabled.
func (*WebContext) SetCacheModel ¶
func (x *WebContext) SetCacheModel(CacheModelVar CacheModel)
Specifies a usage model for WebViews.
Specifies a usage model for WebViews, which WebKit will use to determine its caching behavior. All web views follow the cache model. This cache model determines the RAM and disk space to use for caching previously viewed content .
Research indicates that users tend to browse within clusters of documents that hold resources in common, and to revisit previously visited documents. WebKit and the frameworks below it include built-in caches that take advantage of these patterns, substantially improving document load speed in browsing situations. The WebKit cache model controls the behaviors of all of these caches, including various WebCore caches.
Browsers can improve document load speed substantially by specifying %WEBKIT_CACHE_MODEL_WEB_BROWSER. Applications without a browsing interface can reduce memory usage substantially by specifying %WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER. The default value is %WEBKIT_CACHE_MODEL_WEB_BROWSER.
func (*WebContext) SetGoPointer ¶
func (c *WebContext) SetGoPointer(ptr uintptr)
func (*WebContext) SetPreferredLanguages ¶
func (x *WebContext) SetPreferredLanguages(LanguagesVar []string)
Set the list of preferred languages.
Set the list of preferred languages, sorted from most desirable to least desirable. The list will be used in the following ways:
- Determining how to build the `Accept-Language` HTTP header that will be included in the network requests started by the #WebKitWebContext.
- Setting the values of `navigator.language` and `navigator.languages`.
- The first item in the list sets the default locale for JavaScript `Intl` functions.
func (*WebContext) SetPropertyMemoryPressureSettings ¶ added in v0.0.4
func (x *WebContext) SetPropertyMemoryPressureSettings(value uintptr)
SetPropertyMemoryPressureSettings sets the "memory-pressure-settings" property. The #WebKitMemoryPressureSettings applied to the web processes created by this context.
func (*WebContext) SetPropertyTimeZoneOverride ¶ added in v0.0.4
func (x *WebContext) SetPropertyTimeZoneOverride(value string)
SetPropertyTimeZoneOverride sets the "time-zone-override" property. The timezone override for this web context. Setting this property provides a better alternative to configure the timezone information for all webviews managed by the WebContext. The other, less optimal, approach is to globally set the TZ environment variable in the process before creating the context. However this approach might not be very convenient and can have side-effects in your application.
The expected values for this property are defined in the IANA timezone database. See this wikipedia page for instance, https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
func (*WebContext) SetSpellCheckingEnabled ¶
func (x *WebContext) SetSpellCheckingEnabled(EnabledVar bool)
Enable or disable the spell checking feature.
func (*WebContext) SetSpellCheckingLanguages ¶
func (x *WebContext) SetSpellCheckingLanguages(LanguagesVar []string)
Set the list of spell checking languages to be used for spell checking.
The locale string typically is in the form lang_COUNTRY, where lang is an ISO-639 language code, and COUNTRY is an ISO-3166 country code. For instance, sv_FI for Swedish as written in Finland or pt_BR for Portuguese as written in Brazil.
You need to call this function with a valid list of languages at least once in order to properly enable the spell checking feature in WebKit.
func (*WebContext) SetWebProcessExtensionsDirectory ¶
func (x *WebContext) SetWebProcessExtensionsDirectory(DirectoryVar string)
Set the directory where WebKit will look for web process extensions.
This method must be called before loading anything in this context, otherwise it will not have any effect. You can connect to #WebKitWebContext::initialize-web-process-extensions to call this method before anything is loaded.
If your web process extension is installed to an unusual location, then you may also need to call webkit_web_context_add_path_to_sandbox().
func (*WebContext) SetWebProcessExtensionsInitializationUserData ¶
func (x *WebContext) SetWebProcessExtensionsInitializationUserData(UserDataVar *glib.Variant)
Set user data to be passed to Web Extensions on initialization.
The data will be passed to the #WebKitWebProcessExtensionInitializeWithUserDataFunction. This method must be called before loading anything in this context, otherwise it will not have any effect. You can connect to #WebKitWebContext::initialize-web-process-extensions to call this method before anything is loaded.
type WebContextClass ¶
type WebContextClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*WebContextClass) GoPointer ¶
func (x *WebContextClass) GoPointer() uintptr
type WebContextOptions ¶ added in v0.0.8
type WebContextOptions struct {
// MemoryPressureSettings configures memory limits and thresholds for web processes.
MemoryPressureSettings *MemoryPressureSettings
// TimeZoneOverride sets the timezone for all webviews in this context.
// Expected values are IANA timezone database identifiers (e.g. "America/New_York").
TimeZoneOverride string
}
WebContextOptions contains construct-only properties for creating a WebContext. All fields are optional - only non-nil values will be applied.
type WebExtensionMatchPattern ¶
type WebExtensionMatchPattern struct {
// contains filtered or unexported fields
}
Represents a way to specify a group of URLs for use in WebExtensions.
All match patterns are specified as strings. Apart from the special `<all_urls>` pattern, match patterns consist of three parts: scheme, host, and path.
Generally, match patterns are returned from a #WebKitWebExtension.
func NewWebExtensionMatchPatternAllHostsAndSchemes ¶
func NewWebExtensionMatchPatternAllHostsAndSchemes() *WebExtensionMatchPattern
Returns a new #WebKitWebExtensionMatchPattern that has `*` for scheme, host, and path.
func NewWebExtensionMatchPatternAllUrls ¶
func NewWebExtensionMatchPatternAllUrls() *WebExtensionMatchPattern
Returns a new #WebKitWebExtensionMatchPattern for `<all_urls>`.
func NewWebExtensionMatchPatternWithScheme ¶
func NewWebExtensionMatchPatternWithScheme(SchemeVar string, HostVar string, PathVar string) (*WebExtensionMatchPattern, error)
Returns a new #WebKitWebExtensionMatchPattern for the specified @scheme, @host, and @path strings.
func NewWebExtensionMatchPatternWithString ¶
func NewWebExtensionMatchPatternWithString(StringVar string) (*WebExtensionMatchPattern, error)
Returns a new #WebKitWebExtensionMatchPattern for the specified @string.
func (*WebExtensionMatchPattern) GetHost ¶
func (x *WebExtensionMatchPattern) GetHost() string
Gets the host part of the pattern string, unless `webkit_web_extension_match_pattern_get_matches_all_urls` is %TRUE.
func (*WebExtensionMatchPattern) GetMatchesAllHosts ¶
func (x *WebExtensionMatchPattern) GetMatchesAllHosts() bool
Gets whether the match pattern matches all host. This happens when the pattern is `<all_urls>`, or if `*` is set as the host string.
func (*WebExtensionMatchPattern) GetMatchesAllUrls ¶
func (x *WebExtensionMatchPattern) GetMatchesAllUrls() bool
Gets whether the match pattern matches all URLs, in other words, whether the pattern is `<all_urls>`.
func (*WebExtensionMatchPattern) GetPath ¶
func (x *WebExtensionMatchPattern) GetPath() string
Gets the path part of the pattern string, unless [method@WebExtensionMatchPattern.get_matches_all_urls] is %TRUE.
func (*WebExtensionMatchPattern) GetScheme ¶
func (x *WebExtensionMatchPattern) GetScheme() string
Gets the scheme part of the pattern string, unless `webkit_web_extension_match_pattern_get_matches_all_urls` is %TRUE.
func (*WebExtensionMatchPattern) GetString ¶
func (x *WebExtensionMatchPattern) GetString() string
Gets the original pattern string.
func (*WebExtensionMatchPattern) GoPointer ¶
func (x *WebExtensionMatchPattern) GoPointer() uintptr
func (*WebExtensionMatchPattern) MatchesPattern ¶
func (x *WebExtensionMatchPattern) MatchesPattern(PatternVar *WebExtensionMatchPattern, OptionsVar WebExtensionMatchPatternOptions) bool
Matches the @matchPattern against the specified @pattern with options.
func (*WebExtensionMatchPattern) MatchesUrl ¶
func (x *WebExtensionMatchPattern) MatchesUrl(UrlVar string, OptionsVar WebExtensionMatchPatternOptions) bool
Matches the @matchPattern against the specified URL with options.
func (*WebExtensionMatchPattern) Ref ¶
func (x *WebExtensionMatchPattern) Ref() *WebExtensionMatchPattern
Atomically acquires a reference on the given @matchPattern.
This function is MT-safe and may be called from any thread.
func (*WebExtensionMatchPattern) Unref ¶
func (x *WebExtensionMatchPattern) Unref()
Atomically releases a reference on the given @matchPattern.
If the reference was the last, the resources associated to the @matchPattern are freed. This function is MT-safe and may be called from any thread.
type WebExtensionMatchPatternError ¶
type WebExtensionMatchPatternError int
Enum values used to denote errors happening when creating a #WebKitWebExtensionMatchPattern
const ( // An unknown error occured. WebExtensionMatchPatternErrorUnknownValue WebExtensionMatchPatternError = 899 // The scheme component was invalid. WebExtensionMatchPatternErrorInvalidSchemeValue WebExtensionMatchPatternError = 808 // The host component was invalid. WebExtensionMatchPatternErrorInvalidHostValue WebExtensionMatchPatternError = 809 // The path component was invalid. WebExtensionMatchPatternErrorInvalidPathValue WebExtensionMatchPatternError = 810 )
type WebExtensionMatchPatternOptions ¶
type WebExtensionMatchPatternOptions int
Enum values representing matching options.
const ( // No special matching options. WebExtensionMatchPatternOptionsNoneValue WebExtensionMatchPatternOptions = 1 // The scheme components should be ignored while matching. WebExtensionMatchPatternOptionsIgnoreSchemesValue WebExtensionMatchPatternOptions = 2 // The host components should be ignored while matching. WebExtensionMatchPatternOptionsIgnorePathsValue WebExtensionMatchPatternOptions = 4 // Two patterns should be checked in either direction while matching (A matches B, or B matches A). Invalid for matching URLs. WebExtensionMatchPatternOptionsMatchBidirectionallyValue WebExtensionMatchPatternOptions = 8 )
type WebExtensionMode ¶
type WebExtensionMode int
Enum values used for setting if a #WebKitWebView is intended for WebExtensions.
const ( // Not for an extension. WebExtensionModeNoneValue WebExtensionMode = 0 // For a ManifestV2 extension. WebExtensionModeManifestv2Value WebExtensionMode = 1 // For a ManifestV3 extension. WebExtensionModeManifestv3Value WebExtensionMode = 2 )
type WebInspector ¶
Access to the WebKit inspector.
The WebKit Inspector is a graphical tool to inspect and change the content of a #WebKitWebView. It also includes an interactive JavaScript debugger. Using this class one can get a #GtkWidget which can be embedded into an application to show the inspector.
The inspector is available when the #WebKitSettings of the #WebKitWebView has set the #WebKitSettings:enable-developer-extras to true, otherwise no inspector is available.
```c // Enable the developer extras WebKitSettings *settings = webkit_web_view_get_settings (WEBKIT_WEB_VIEW(my_webview)); g_object_set (G_OBJECT(settings), "enable-developer-extras", TRUE, NULL);
// Load some data or reload to be able to inspect the page webkit_web_view_load_uri (WEBKIT_WEB_VIEW(my_webview), "http://www.gnome.org");
// Show the inspector WebKitWebInspector *inspector = webkit_web_view_get_inspector (WEBKIT_WEB_VIEW(my_webview)); webkit_web_inspector_show (WEBKIT_WEB_INSPECTOR(inspector)); ```
func WebInspectorNewFromInternalPtr ¶
func WebInspectorNewFromInternalPtr(ptr uintptr) *WebInspector
func (*WebInspector) Attach ¶
func (x *WebInspector) Attach()
Request @inspector to be attached.
The signal #WebKitWebInspector::attach will be emitted. If the inspector is already attached it does nothing.
func (*WebInspector) ConnectAttach ¶
func (x *WebInspector) ConnectAttach(cb *func(WebInspector) bool) uint
Emitted when the inspector is requested to be attached to the window where the inspected web view is. If this signal is not handled the inspector view will be automatically attached to the inspected view, so you only need to handle this signal if you want to attach the inspector view yourself (for example, to add the inspector view to a browser tab).
To prevent the inspector view from being attached you can connect to this signal and simply return %TRUE.
func (*WebInspector) ConnectBringToFront ¶
func (x *WebInspector) ConnectBringToFront(cb *func(WebInspector) bool) uint
Emitted when the inspector should be shown.
If the inspector is not attached the inspector window should be shown on top of any other windows. If the inspector is attached the inspector view should be made visible. For example, if the inspector view is attached using a tab in a browser window, the browser window should be raised and the tab containing the inspector view should be the active one. In both cases, if this signal is not handled, the default implementation calls gtk_window_present() on the current toplevel #GtkWindow of the inspector view.
func (*WebInspector) ConnectClosed ¶
func (x *WebInspector) ConnectClosed(cb *func(WebInspector)) uint
Emitted when the inspector page is closed. If you are using your own inspector window, you should connect to this signal and destroy your window.
func (*WebInspector) ConnectDetach ¶
func (x *WebInspector) ConnectDetach(cb *func(WebInspector) bool) uint
Emitted when the inspector is requested to be detached from the window it is currently attached to. The inspector is detached when the inspector page is about to be closed, and this signal is emitted right before #WebKitWebInspector::closed, or when the user clicks on the detach button in the inspector view to show the inspector in a separate window. In this case the signal #WebKitWebInspector::open-window is emitted after this one.
To prevent the inspector view from being detached you can connect to this signal and simply return %TRUE.
func (*WebInspector) ConnectOpenWindow ¶
func (x *WebInspector) ConnectOpenWindow(cb *func(WebInspector) bool) uint
Emitted when the inspector is requested to open in a separate window. If this signal is not handled, a #GtkWindow with the inspector will be created and shown, so you only need to handle this signal if you want to use your own window. This signal is emitted after #WebKitWebInspector::detach to show the inspector in a separate window after being detached.
To prevent the inspector from being shown you can connect to this signal and simply return %TRUE
func (*WebInspector) Detach ¶
func (x *WebInspector) Detach()
Request @inspector to be detached.
The signal #WebKitWebInspector::detach will be emitted. If the inspector is already detached it does nothing.
func (*WebInspector) GetAttachedHeight ¶
func (x *WebInspector) GetAttachedHeight() uint
Get the height that the inspector view when attached.
Get the height that the inspector view should have when it's attached. If the inspector view is not attached this returns 0.
func (*WebInspector) GetCanAttach ¶
func (x *WebInspector) GetCanAttach() bool
Whether the @inspector can be attached to the same window that contains the inspected view.
func (*WebInspector) GetInspectedUri ¶
func (x *WebInspector) GetInspectedUri() string
Get the URI that is currently being inspected.
This can be %NULL if nothing has been loaded yet in the inspected view, if the inspector has been closed or when inspected view was loaded from a HTML string instead of a URI.
func (*WebInspector) GetPropertyAttachedHeight ¶ added in v0.0.4
func (x *WebInspector) GetPropertyAttachedHeight() uint
GetPropertyAttachedHeight gets the "attached-height" property. The height that the inspector view should have when it is attached.
func (*WebInspector) GetPropertyCanAttach ¶ added in v0.0.4
func (x *WebInspector) GetPropertyCanAttach() bool
GetPropertyCanAttach gets the "can-attach" property. Whether the @inspector can be attached to the same window that contains the inspected view.
func (*WebInspector) GetPropertyInspectedUri ¶ added in v0.0.4
func (x *WebInspector) GetPropertyInspectedUri() string
GetPropertyInspectedUri gets the "inspected-uri" property. The URI that is currently being inspected.
func (*WebInspector) GetWebView ¶
func (x *WebInspector) GetWebView() *WebViewBase
Get the #WebKitWebViewBase used to display the inspector.
This might be %NULL if the inspector hasn't been loaded yet, or it has been closed.
func (*WebInspector) GoPointer ¶
func (c *WebInspector) GoPointer() uintptr
func (*WebInspector) IsAttached ¶
func (x *WebInspector) IsAttached() bool
Whether the @inspector view is currently attached to the same window that contains the inspected view.
func (*WebInspector) SetGoPointer ¶
func (c *WebInspector) SetGoPointer(ptr uintptr)
type WebInspectorClass ¶
type WebInspectorClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*WebInspectorClass) GoPointer ¶
func (x *WebInspectorClass) GoPointer() uintptr
type WebProcessTerminationReason ¶
type WebProcessTerminationReason int
Enum values used to specify the reason why the web process terminated abnormally.
const ( // the web process crashed. WebProcessCrashedValue WebProcessTerminationReason = 0 // the web process exceeded the memory limit. WebProcessExceededMemoryLimitValue WebProcessTerminationReason = 1 // the web process termination was requested by an API call. Since: 2.34 WebProcessTerminatedByApiValue WebProcessTerminationReason = 2 )
type WebResource ¶
Represents a resource at the end of a URI.
A #WebKitWebResource encapsulates content for each resource at the end of a particular URI. For example, one #WebKitWebResource will be created for each separate image and stylesheet when a page is loaded.
You can access the response and the URI for a given #WebKitWebResource, using webkit_web_resource_get_uri() and webkit_web_resource_get_response(), as well as the raw data, using webkit_web_resource_get_data().
func WebResourceNewFromInternalPtr ¶
func WebResourceNewFromInternalPtr(ptr uintptr) *WebResource
func (*WebResource) ConnectFailed ¶
func (x *WebResource) ConnectFailed(cb *func(WebResource, uintptr)) uint
This signal is emitted when an error occurs during the resource load operation.
func (*WebResource) ConnectFailedWithTlsErrors ¶
func (x *WebResource) ConnectFailedWithTlsErrors(cb *func(WebResource, uintptr, gio.TlsCertificateFlags)) uint
This signal is emitted when a TLS error occurs during the resource load operation.
func (*WebResource) ConnectFinished ¶
func (x *WebResource) ConnectFinished(cb *func(WebResource)) uint
This signal is emitted when the resource load finishes successfully or due to an error. In case of errors #WebKitWebResource::failed signal is emitted before this one.
func (*WebResource) ConnectSentRequest ¶
func (x *WebResource) ConnectSentRequest(cb *func(WebResource, uintptr, uintptr)) uint
This signal is emitted when @request has been sent to the server. In case of a server redirection this signal is emitted again with the @request argument containing the new request sent to the server due to the redirection and the @redirected_response parameter containing the response received by the server for the initial request.
func (*WebResource) GetData ¶
func (x *WebResource) GetData(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously get the raw data for @resource.
When the operation is finished, @callback will be called. You can then call webkit_web_resource_get_data_finish() to get the result of the operation.
func (*WebResource) GetDataFinish ¶
func (x *WebResource) GetDataFinish(ResultVar gio.AsyncResult, LengthVar *uint) (uintptr, error)
Finish an asynchronous operation started with webkit_web_resource_get_data().
func (*WebResource) GetPropertyUri ¶ added in v0.0.4
func (x *WebResource) GetPropertyUri() string
GetPropertyUri gets the "uri" property. The current active URI of the #WebKitWebResource. See webkit_web_resource_get_uri() for more details.
func (*WebResource) GetResponse ¶
func (x *WebResource) GetResponse() *URIResponse
Retrieves the #WebKitURIResponse of the resource load operation.
This method returns %NULL if called before the response is received from the server. You can connect to notify::response signal to be notified when the response is received.
func (*WebResource) GetUri ¶
func (x *WebResource) GetUri() string
Returns the current active URI of @resource.
The active URI might change during a load operation:
<orderedlist> <listitem><para>
When the resource load starts, the active URI is the requested URI
</para></listitem> <listitem><para>
When the initial request is sent to the server, #WebKitWebResource::sent-request signal is emitted without a redirected response, the active URI is the URI of the request sent to the server.
</para></listitem> <listitem><para>
In case of a server redirection, #WebKitWebResource::sent-request signal is emitted again with a redirected response, the active URI is the URI the request was redirected to.
</para></listitem> <listitem><para>
When the response is received from the server, the active URI is the final one and it will not change again.
</para></listitem> </orderedlist>
You can monitor the active URI by connecting to the notify::uri signal of @resource.
func (*WebResource) GoPointer ¶
func (c *WebResource) GoPointer() uintptr
func (*WebResource) SetGoPointer ¶
func (c *WebResource) SetGoPointer(ptr uintptr)
type WebResourceClass ¶
type WebResourceClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*WebResourceClass) GoPointer ¶
func (x *WebResourceClass) GoPointer() uintptr
type WebView ¶
type WebView struct {
WebViewBase
}
The central class of the WPE WebKit and WebKitGTK APIs.
#WebKitWebView is the central class of the WPE WebKit and WebKitGTK APIs. It is responsible for managing the drawing of the content and forwarding of events. You can load any URI into the #WebKitWebView or a data string. With #WebKitSettings you can control various aspects of the rendering and loading of the content.
Note that in WebKitGTK, #WebKitWebView is scrollable by itself, so you don't need to embed it in a #GtkScrolledWindow.
func NewWebView ¶
func NewWebView() *WebView
Creates a new #WebKitWebView with the default #WebKitWebContext.
Creates a new #WebKitWebView with the default #WebKitWebContext and no #WebKitUserContentManager associated with it. See also webkit_web_view_new_with_context(), webkit_web_view_new_with_user_content_manager(), and webkit_web_view_new_with_settings().
func NewWebViewWithNetworkSession ¶ added in v0.0.7
func NewWebViewWithNetworkSession(session *NetworkSession) *WebView
NewWebViewWithNetworkSession creates a new WebView using the specified NetworkSession. This is required for cookie/data persistence across sessions.
func NewWebViewWithOptions ¶ added in v0.0.7
func NewWebViewWithOptions(opts *WebViewOptions) *WebView
NewWebViewWithOptions creates a new WebView with the specified construct-only properties. This is the most flexible way to create a WebView, allowing any combination of options.
func NewWebViewWithRelatedView ¶ added in v0.0.5
NewWebViewWithRelatedView creates a new WebView that shares the same WebContext and NetworkSession as the provided related view. This is required for popup windows (window.open/target=_blank) to share cookies/session data.
func (*WebView) Announce ¶
func (x *WebView) Announce(MessageVar string, PriorityVar gtk.AccessibleAnnouncementPriority)
Requests the user's screen reader to announce the given message.
This kind of notification is useful for messages that either have only a visual representation or that are not exposed visually at all, e.g. a notification about a successful operation.
Also, by using this API, you can ensure that the message does not interrupts the user's current screen reader output.
func (*WebView) CallAsyncJavascriptFunction ¶
func (x *WebView) CallAsyncJavascriptFunction(BodyVar string, LengthVar int, ArgumentsVar *glib.Variant, WorldNameVar *string, SourceUriVar *string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously call @body with @arguments in the script world with name @world_name of the main frame current context in @web_view. The @arguments values must be one of the following types, or contain only the following GVariant types: number, string and dictionary. The result of the operation can be a Promise that will be properly passed to the callback. If @world_name is %NULL, the default world is used. Any value that is not %NULL is a distin ct world. The @source_uri will be shown in exceptions and doesn't affect the behavior of the script. When not provided, the document URL is used.
Note that if #WebKitSettings:enable-javascript is %FALSE, this method will do nothing. If you want to use this method but still prevent web content from executing its own JavaScript, then use #WebKitSettings:enable-javascript-markup.
When the operation is finished, @callback will be called. You can then call webkit_web_view_call_async_javascript_function_finish() to get the result of the operation.
This is an example that shows how to pass arguments to a JS function that returns a Promise that resolves with the passed argument:
```c static void web_view_javascript_finished (GObject *object,
GAsyncResult *result,
gpointer user_data)
{
JSCValue *value;
GError *error = NULL;
value = webkit_web_view_call_async_javascript_function_finish (WEBKIT_WEB_VIEW (object), result, &error);
if (!value) {
g_warning ("Error running javascript: %s", error->message);
g_error_free (error);
return;
}
if (jsc_value_is_number (value)) {
gint32 int_value = jsc_value_to_string (value);
JSCException *exception = jsc_context_get_exception (jsc_value_get_context (value));
if (exception)
g_warning ("Error running javascript: %s", jsc_exception_get_message (exception));
else
g_print ("Script result: %d\n", int_value);
g_free (str_value);
} else {
g_warning ("Error running javascript: unexpected return value");
}
g_object_unref (value);
}
static void web_view_evaluate_promise (WebKitWebView *web_view)
{
GVariantDict dict;
g_variant_dict_init (&dict, NULL);
g_variant_dict_insert (&dict, "count", "u", 42);
GVariant *args = g_variant_dict_end (&dict);
const gchar *body = "return new Promise((resolve) => { resolve(count); });";
webkit_web_view_call_async_javascript_function (web_view, body, -1, arguments, NULL, NULL, NULL, web_view_javascript_finished, NULL);
}
```
func (*WebView) CallAsyncJavascriptFunctionFinish ¶
func (x *WebView) CallAsyncJavascriptFunctionFinish(ResultVar gio.AsyncResult) (*javascriptcore.Value, error)
Finish an asynchronous operation started with webkit_web_view_call_async_javascript_function().
func (*WebView) CanExecuteEditingCommand ¶
func (x *WebView) CanExecuteEditingCommand(CommandVar string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously check if it is possible to execute the given editing command.
When the operation is finished, @callback will be called. You can then call webkit_web_view_can_execute_editing_command_finish() to get the result of the operation.
func (*WebView) CanExecuteEditingCommandFinish ¶
func (x *WebView) CanExecuteEditingCommandFinish(ResultVar gio.AsyncResult) (bool, error)
Finish an asynchronous operation started with webkit_web_view_can_execute_editing_command().
func (*WebView) CanGoForward ¶
Determines whether @web_view has a next history item.
func (*WebView) CanShowMimeType ¶
Whether or not a MIME type can be displayed in @web_view.
func (*WebView) ConnectAuthenticate ¶
This signal is emitted when the user is challenged with HTTP authentication. To let the application access or supply the credentials as well as to allow the client application to either cancel the request or perform the authentication, the signal will pass an instance of the #WebKitAuthenticationRequest in the @request argument. To handle this signal asynchronously you should keep a ref of the request and return %TRUE. To disable HTTP authentication entirely, connect to this signal and simply return %TRUE.
The default signal handler will run a default authentication dialog asynchronously for the user to interact with.
func (*WebView) ConnectClose ¶
Emitted when closing a #WebKitWebView is requested. This occurs when a call is made from JavaScript's <function>window.close</function> function or after trying to close the @web_view with webkit_web_view_try_close(). It is the owner's responsibility to handle this signal to hide or destroy the #WebKitWebView, if necessary.
func (*WebView) ConnectContextMenu ¶
Emitted when a context menu is about to be displayed to give the application a chance to customize the proposed menu, prevent the menu from being displayed, or build its own context menu. <itemizedlist> <listitem><para>
To customize the proposed menu you can use webkit_context_menu_prepend(), webkit_context_menu_append() or webkit_context_menu_insert() to add new #WebKitContextMenuItem<!-- -->s to @context_menu, webkit_context_menu_move_item() to reorder existing items, or webkit_context_menu_remove() to remove an existing item. The signal handler should return %FALSE, and the menu represented by @context_menu will be shown.
</para></listitem> <listitem><para>
To prevent the menu from being displayed you can just connect to this signal and return %TRUE so that the proposed menu will not be shown.
</para></listitem> <listitem><para>
To build your own menu, you can remove all items from the proposed menu with webkit_context_menu_remove_all(), add your own items and return %FALSE so that the menu will be shown. You can also ignore the proposed #WebKitContextMenu, build your own #GtkMenu and return %TRUE to prevent the proposed menu from being shown.
</para></listitem> <listitem><para>
If you just want the default menu to be shown always, simply don't connect to this signal because showing the proposed context menu is the default behaviour.
</para></listitem> </itemizedlist>
If the signal handler returns %FALSE the context menu represented by @context_menu will be shown, if it return %TRUE the context menu will not be shown.
The proposed #WebKitContextMenu passed in @context_menu argument is only valid during the signal emission.
func (*WebView) ConnectContextMenuDismissed ¶
Emitted after #WebKitWebView::context-menu signal, if the context menu is shown, to notify that the context menu is dismissed.
func (*WebView) ConnectCreate ¶
Emitted when the creation of a new #WebKitWebView is requested. If this signal is handled the signal handler should return the newly created #WebKitWebView.
The #WebKitNavigationAction parameter contains information about the navigation action that triggered this signal.
The new #WebKitWebView must be related to @web_view, see #WebKitWebView:related-view for more details.
The new #WebKitWebView should not be displayed to the user until the #WebKitWebView::ready-to-show signal is emitted.
For creating views as response to automation tools requests, see the #WebKitAutomationSession::create-web-view signal.
func (*WebView) ConnectDecidePolicy ¶
This signal is emitted when WebKit is requesting the client to decide a policy decision, such as whether to navigate to a page, open a new window or whether or not to download a resource. The #WebKitNavigationPolicyDecision passed in the @decision argument is a generic type, but should be casted to a more specific type when making the decision. For example:
```c static gboolean decide_policy_cb (WebKitWebView *web_view,
WebKitPolicyDecision *decision,
WebKitPolicyDecisionType type)
{
switch (type) {
case WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION: {
WebKitNavigationPolicyDecision *navigation_decision = WEBKIT_NAVIGATION_POLICY_DECISION (decision);
// Make a policy decision here
break;
}
case WEBKIT_POLICY_DECISION_TYPE_NEW_WINDOW_ACTION: {
WebKitNavigationPolicyDecision *navigation_decision = WEBKIT_NAVIGATION_POLICY_DECISION (decision);
// Make a policy decision here
break;
}
case WEBKIT_POLICY_DECISION_TYPE_RESPONSE:
WebKitResponsePolicyDecision *response = WEBKIT_RESPONSE_POLICY_DECISION (decision);
// Make a policy decision here
break;
default:
// Making no decision results in webkit_policy_decision_use()
return FALSE;
}
return TRUE;
}
```
It is possible to make policy decision asynchronously, by simply calling g_object_ref() on the @decision argument and returning %TRUE to block the default signal handler. If the last reference is removed on a #WebKitPolicyDecision and no decision has been made explicitly, webkit_policy_decision_use() will be the default policy decision. The default signal handler will simply call webkit_policy_decision_use(). Only the first policy decision chosen for a given #WebKitPolicyDecision will have any affect.
func (*WebView) ConnectEnterFullscreen ¶
Emitted when JavaScript code calls <function>element.webkitRequestFullScreen</function>. If the signal is not handled the #WebKitWebView will proceed to full screen its top level window. This signal can be used by client code to request permission to the user prior doing the full screen transition and eventually prepare the top-level window (e.g. hide some widgets that would otherwise be part of the full screen window).
func (*WebView) ConnectInsecureContentDetected ¶
func (x *WebView) ConnectInsecureContentDetected(cb *func(WebView, InsecureContentEvent)) uint
Prior to 2.46, this signal was emitted when insecure content was loaded in a secure content. Since 2.46, this signal is generally no longer emitted.
func (*WebView) ConnectLeaveFullscreen ¶
Emitted when the #WebKitWebView is about to restore its top level window out of its full screen state. This signal can be used by client code to restore widgets hidden during the #WebKitWebView::enter-fullscreen stage for instance.
func (*WebView) ConnectLoadChanged ¶
Emitted when a load operation in @web_view changes. The signal is always emitted with %WEBKIT_LOAD_STARTED when a new load request is made and %WEBKIT_LOAD_FINISHED when the load finishes successfully or due to an error. When the ongoing load operation fails #WebKitWebView::load-failed signal is emitted before #WebKitWebView::load-changed is emitted with %WEBKIT_LOAD_FINISHED. If a redirection is received from the server, this signal is emitted with %WEBKIT_LOAD_REDIRECTED after the initial emission with %WEBKIT_LOAD_STARTED and before %WEBKIT_LOAD_COMMITTED. When the page content starts arriving the signal is emitted with %WEBKIT_LOAD_COMMITTED event.
You can handle this signal and use a switch to track any ongoing load operation.
```c static void web_view_load_changed (WebKitWebView *web_view,
WebKitLoadEvent load_event,
gpointer user_data)
{
switch (load_event) {
case WEBKIT_LOAD_STARTED:
// New load, we have now a provisional URI
provisional_uri = webkit_web_view_get_uri (web_view);
// Here we could start a spinner or update the
// location bar with the provisional URI
break;
case WEBKIT_LOAD_REDIRECTED:
redirected_uri = webkit_web_view_get_uri (web_view);
break;
case WEBKIT_LOAD_COMMITTED:
// The load is being performed. Current URI is
// the final one and it won't change unless a new
// load is requested or a navigation within the
// same page is performed
uri = webkit_web_view_get_uri (web_view);
break;
case WEBKIT_LOAD_FINISHED:
// Load finished, we can now stop the spinner
break;
}
}
```
func (*WebView) ConnectLoadFailed ¶
Emitted when an error occurs during a load operation. If the error happened when starting to load data for a page @load_event will be %WEBKIT_LOAD_STARTED. If it happened while loading a committed data source @load_event will be %WEBKIT_LOAD_COMMITTED. Since a load error causes the load operation to finish, the signal WebKitWebView::load-changed will always be emitted with %WEBKIT_LOAD_FINISHED event right after this one.
By default, if the signal is not handled, a stock error page will be displayed. You need to handle the signal if you want to provide your own error page.
func (*WebView) ConnectLoadFailedWithTlsErrors ¶
func (x *WebView) ConnectLoadFailedWithTlsErrors(cb *func(WebView, string, uintptr, gio.TlsCertificateFlags) bool) uint
Emitted when a TLS error occurs during a load operation. To allow an exception for this @certificate and the host of @failing_uri use webkit_web_context_allow_tls_certificate_for_host().
To handle this signal asynchronously you should call g_object_ref() on @certificate and return %TRUE.
If %FALSE is returned, #WebKitWebView::load-failed will be emitted. The load will finish regardless of the returned value.
func (*WebView) ConnectMouseTargetChanged ¶
This signal is emitted when the mouse cursor moves over an element such as a link, image or a media element. To determine what type of element the mouse cursor is over, a Hit Test is performed on the current mouse coordinates and the result is passed in the @hit_test_result argument. The @modifiers argument is a bitmask of #GdkModifierType flags indicating the state of modifier keys. The signal is emitted again when the mouse is moved out of the current element with a new @hit_test_result.
func (*WebView) ConnectPermissionRequest ¶
This signal is emitted when WebKit is requesting the client to decide about a permission request, such as allowing the browser to switch to fullscreen mode, sharing its location or similar operations.
A possible way to use this signal could be through a dialog allowing the user decide what to do with the request:
```c static gboolean permission_request_cb (WebKitWebView *web_view,
WebKitPermissionRequest *request,
GtkWindow *parent_window)
{
GtkWidget *dialog = gtk_message_dialog_new (parent_window,
GTK_DIALOG_MODAL,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_YES_NO,
"Allow Permission Request?");
gtk_widget_show (dialog);
gint result = gtk_dialog_run (GTK_DIALOG (dialog));
switch (result) {
case GTK_RESPONSE_YES:
webkit_permission_request_allow (request);
break;
default:
webkit_permission_request_deny (request);
break;
}
gtk_widget_destroy (dialog);
return TRUE;
}
```
It is possible to handle permission requests asynchronously, by simply calling g_object_ref() on the @request argument and returning %TRUE to block the default signal handler. If the last reference is removed on a #WebKitPermissionRequest and the request has not been handled, webkit_permission_request_deny() will be the default action.
If the signal is not handled, the @request will be completed automatically by the specific #WebKitPermissionRequest that could allow or deny it. Check the documentation of classes implementing #WebKitPermissionRequest interface to know their default action.
func (*WebView) ConnectPrint ¶
Emitted when printing is requested on @web_view, usually by a JavaScript call, before the print dialog is shown. This signal can be used to set the initial print settings and page setup of @print_operation to be used as default values in the print dialog. You can call webkit_print_operation_set_print_settings() and webkit_print_operation_set_page_setup() and then return %FALSE to propagate the event so that the print dialog is shown.
You can connect to this signal and return %TRUE to cancel the print operation or implement your own print dialog.
func (*WebView) ConnectQueryPermissionState ¶
This signal allows the User-Agent to respond to permission requests for powerful features, as specified by the [Permissions W3C Specification](https://w3c.github.io/permissions/). You can reply to the query using webkit_permission_state_query_finish().
You can handle the query asynchronously by calling webkit_permission_state_query_ref() on @query and returning %TRUE. If the last reference of @query is removed and the query has not been handled, the query result will be set to %WEBKIT_QUERY_PERMISSION_PROMPT.
func (*WebView) ConnectReadyToShow ¶
Emitted after #WebKitWebView::create on the newly created #WebKitWebView when it should be displayed to the user. When this signal is emitted all the information about how the window should look, including size, position, whether the location, status and scrollbars should be displayed, is already set on the #WebKitWindowProperties of @web_view. See also webkit_web_view_get_window_properties().
func (*WebView) ConnectResourceLoadStarted ¶
Emitted when a new resource is going to be loaded. The @request parameter contains the #WebKitURIRequest that will be sent to the server. You can monitor the load operation by connecting to the different signals of @resource.
func (*WebView) ConnectRunAsModal ¶
Emitted after #WebKitWebView::ready-to-show on the newly created #WebKitWebView when JavaScript code calls <function>window.showModalDialog</function>. The purpose of this signal is to allow the client application to prepare the new view to behave as modal. Once the signal is emitted a new main loop will be run to block user interaction in the parent #WebKitWebView until the new dialog is closed.
func (*WebView) ConnectRunColorChooser ¶
This signal is emitted when the user interacts with a <input type='color' /> HTML element, requesting from WebKit to show a dialog to select a color. To let the application know the details of the color chooser, as well as to allow the client application to either cancel the request or perform an actual color selection, the signal will pass an instance of the #WebKitColorChooserRequest in the @request argument.
It is possible to handle this request asynchronously by increasing the reference count of the request.
The default signal handler will asynchronously run a regular #GtkColorChooser for the user to interact with.
func (*WebView) ConnectRunFileChooser ¶
This signal is emitted when the user interacts with a <input type='file' /> HTML element, requesting from WebKit to show a dialog to select one or more files to be uploaded. To let the application know the details of the file chooser, as well as to allow the client application to either cancel the request or perform an actual selection of files, the signal will pass an instance of the #WebKitFileChooserRequest in the @request argument.
The default signal handler will asynchronously run a regular #GtkFileChooserDialog for the user to interact with.
func (*WebView) ConnectScriptDialog ¶
Emitted when JavaScript code calls <function>window.alert</function>, <function>window.confirm</function> or <function>window.prompt</function>, or when <function>onbeforeunload</function> event is fired. The @dialog parameter should be used to build the dialog. If the signal is not handled a different dialog will be built and shown depending on the dialog type: <itemizedlist> <listitem><para>
%WEBKIT_SCRIPT_DIALOG_ALERT: message dialog with a single Close button.
</para></listitem> <listitem><para>
%WEBKIT_SCRIPT_DIALOG_CONFIRM: message dialog with OK and Cancel buttons.
</para></listitem> <listitem><para>
%WEBKIT_SCRIPT_DIALOG_PROMPT: message dialog with OK and Cancel buttons and a text entry with the default text.
</para></listitem> <listitem><para>
%WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM: message dialog with Stay and Leave buttons.
</para></listitem> </itemizedlist>
It is possible to handle the script dialog request asynchronously, by simply caling webkit_script_dialog_ref() on the @dialog argument and calling webkit_script_dialog_close() when done. If the last reference is removed on a #WebKitScriptDialog and the dialog has not been closed, webkit_script_dialog_close() will be called.
func (*WebView) ConnectShowNotification ¶
This signal is emitted when a notification should be presented to the user. The @notification is kept alive until either: 1) the web page cancels it or 2) a navigation happens.
The default handler will emit a notification using libnotify, if built with support for it.
func (*WebView) ConnectShowOptionMenu ¶
This signal is emitted when a select element in @web_view needs to display a dropdown menu. This signal can be used to show a custom menu, using @menu to get the details of all items that should be displayed. The area of the element in the #WebKitWebView is given as @rectangle parameter, it can be used to position the menu. To handle this signal asynchronously you should keep a ref of the @menu.
The default signal handler will pop up a #GtkMenu.
func (*WebView) ConnectSubmitForm ¶
This signal is emitted when a form is about to be submitted. The @request argument passed contains information about the text fields of the form. This is typically used to store login information that can be used later to pre-fill the form. The form will not be submitted until webkit_form_submission_request_submit() is called.
It is possible to handle the form submission request asynchronously, by simply calling g_object_ref() on the @request argument and calling webkit_form_submission_request_submit() when done to continue with the form submission. If the last reference is removed on a #WebKitFormSubmissionRequest and the form has not been submitted, webkit_form_submission_request_submit() will be called.
func (*WebView) ConnectUserMessageReceived ¶
This signal is emitted when a #WebKitUserMessage is received from the #WebKitWebPage corresponding to @web_view. You can reply to the message using webkit_user_message_send_reply().
You can handle the user message asynchronously by calling g_object_ref() on @message and returning %TRUE. If the last reference of @message is removed and the message has not been replied to, the operation in the #WebKitWebPage will finish with error %WEBKIT_USER_MESSAGE_UNHANDLED_MESSAGE.
func (*WebView) ConnectWebProcessTerminated ¶
func (x *WebView) ConnectWebProcessTerminated(cb *func(WebView, WebProcessTerminationReason)) uint
This signal is emitted when the web process terminates abnormally due to @reason.
func (*WebView) DownloadUri ¶
Requests downloading of the specified URI string for @web_view.
func (*WebView) EvaluateJavascript ¶
func (x *WebView) EvaluateJavascript(ScriptVar string, LengthVar int, WorldNameVar *string, SourceUriVar *string, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously evaluate @script in the script world with name @world_name of the main frame current context in @web_view. If @world_name is %NULL, the default world is used. Any value that is not %NULL is a distinct world. The @source_uri will be shown in exceptions and doesn't affect the behavior of the script. When not provided, the document URL is used.
Note that if #WebKitSettings:enable-javascript is %FALSE, this method will do nothing. If you want to use this method but still prevent web content from executing its own JavaScript, then use #WebKitSettings:enable-javascript-markup.
When the operation is finished, @callback will be called. You can then call webkit_web_view_evaluate_javascript_finish() to get the result of the operation.
This is an example of using webkit_web_view_evaluate_javascript() with a script returning a string:
```c static void web_view_javascript_finished (GObject *object,
GAsyncResult *result,
gpointer user_data)
{
JSCValue *value;
GError *error = NULL;
value = webkit_web_view_evaluate_javascript_finish (WEBKIT_WEB_VIEW (object), result, &error);
if (!value) {
g_warning ("Error running javascript: %s", error->message);
g_error_free (error);
return;
}
if (jsc_value_is_string (value)) {
gchar *str_value = jsc_value_to_string (value);
JSCException *exception = jsc_context_get_exception (jsc_value_get_context (value));
if (exception)
g_warning ("Error running javascript: %s", jsc_exception_get_message (exception));
else
g_print ("Script result: %s\n", str_value);
g_free (str_value);
} else {
g_warning ("Error running javascript: unexpected return value");
}
g_object_unref (value);
}
static void web_view_get_link_url (WebKitWebView *web_view,
const gchar *link_id)
{
gchar *script = g_strdup_printf ("window.document.getElementById('%s').href;", link_id);
webkit_web_view_evaluate_javascript (web_view, script, -1, NULL, NULL, NULL, web_view_javascript_finished, NULL);
g_free (script);
}
```
func (*WebView) EvaluateJavascriptFinish ¶
func (x *WebView) EvaluateJavascriptFinish(ResultVar gio.AsyncResult) (*javascriptcore.Value, error)
Finish an asynchronous operation started with webkit_web_view_evaluate_javascript().
func (*WebView) ExecuteEditingCommand ¶
Request to execute the given @command for @web_view.
You can use webkit_web_view_can_execute_editing_command() to check whether it's possible to execute the command.
func (*WebView) ExecuteEditingCommandWithArgument ¶
Request to execute the given @command with @argument for @web_view.
You can use webkit_web_view_can_execute_editing_command() to check whether it's possible to execute the command.
func (*WebView) GetAccessibleParent ¶
func (x *WebView) GetAccessibleParent() *gtk.AccessibleBase
Retrieves the accessible parent for an accessible object.
This function returns `NULL` for top level widgets.
func (*WebView) GetAccessibleRole ¶
func (x *WebView) GetAccessibleRole() gtk.AccessibleRole
Retrieves the accessible role of an accessible object.
func (*WebView) GetAtContext ¶
Retrieves the implementation for the given accessible object.
func (*WebView) GetAutomationPresentationType ¶
func (x *WebView) GetAutomationPresentationType() AutomationBrowsingContextPresentation
Get the presentation type of #WebKitWebView when created for automation.
func (*WebView) GetBackForwardList ¶
func (x *WebView) GetBackForwardList() *BackForwardList
Obtains the #WebKitBackForwardList associated with the given #WebKitWebView.
The #WebKitBackForwardList is owned by the #WebKitWebView.
func (*WebView) GetBackgroundColor ¶
Gets the color that is used to draw the @web_view background.
Gets the color that is used to draw the @web_view background before the actual contents are rendered. For more information see also webkit_web_view_set_background_color()
func (*WebView) GetBounds ¶
Queries the coordinates and dimensions of this accessible
This functionality can be overridden by `GtkAccessible` implementations, e.g. to get the bounds from an ignored child widget.
func (*WebView) GetBuildableId ¶
Gets the ID of the @buildable object.
`GtkBuilder` sets the name based on the ID attribute of the `<object>` tag used to construct the @buildable.
func (*WebView) GetCameraCaptureState ¶
func (x *WebView) GetCameraCaptureState() MediaCaptureState
Get the camera capture state of a #WebKitWebView.
func (*WebView) GetContext ¶
func (x *WebView) GetContext() *WebContext
Gets the web context of @web_view.
func (*WebView) GetCustomCharset ¶
Returns the current custom character encoding name of @web_view.
func (*WebView) GetDefaultContentSecurityPolicy ¶
Gets the configured default Content-Security-Policy.
func (*WebView) GetDisplayCaptureState ¶
func (x *WebView) GetDisplayCaptureState() MediaCaptureState
Get the display capture state of a #WebKitWebView.
func (*WebView) GetEditorState ¶
func (x *WebView) GetEditorState() *EditorState
Gets the web editor state of @web_view.
func (*WebView) GetEstimatedLoadProgress ¶
Gets the value of the #WebKitWebView:estimated-load-progress property.
You can monitor the estimated progress of a load operation by connecting to the notify::estimated-load-progress signal of @web_view.
func (*WebView) GetFavicon ¶
Returns favicon currently associated to @web_view.
Returns favicon currently associated to @web_view, if any. You can connect to notify::favicon signal of @web_view to be notified when the favicon is available.
func (*WebView) GetFindController ¶
func (x *WebView) GetFindController() *FindController
Gets the #WebKitFindController.
Gets the #WebKitFindController that will allow the caller to query the #WebKitWebView for the text to look for.
func (*WebView) GetFirstAccessibleChild ¶
func (x *WebView) GetFirstAccessibleChild() *gtk.AccessibleBase
Retrieves the first accessible child of an accessible object.
func (*WebView) GetInputMethodContext ¶
func (x *WebView) GetInputMethodContext() *InputMethodContext
Get the #WebKitInputMethodContext currently in use by @web_view.
Get the #WebKitInputMethodContext currently in use by @web_view, or %NULL if no input method is being used.
func (*WebView) GetInspector ¶
func (x *WebView) GetInspector() *WebInspector
Get the #WebKitWebInspector associated to @web_view
func (*WebView) GetIsWebProcessResponsive ¶
Get whether the current web process of a #WebKitWebView is responsive.
func (*WebView) GetMainResource ¶
func (x *WebView) GetMainResource() *WebResource
Return the main resource of @web_view.
func (*WebView) GetMicrophoneCaptureState ¶
func (x *WebView) GetMicrophoneCaptureState() MediaCaptureState
Get the microphone capture state of a #WebKitWebView.
func (*WebView) GetNetworkSession ¶
func (x *WebView) GetNetworkSession() *NetworkSession
Get the #WebKitNetworkSession associated to @web_view.
func (*WebView) GetNextAccessibleSibling ¶
func (x *WebView) GetNextAccessibleSibling() *gtk.AccessibleBase
Retrieves the next accessible sibling of an accessible object
func (*WebView) GetPageId ¶
Get the identifier of the #WebKitWebPage corresponding to the #WebKitWebView
func (*WebView) GetPlatformState ¶
func (x *WebView) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool
Queries a platform state, such as focus.
This functionality can be overridden by `GtkAccessible` implementations, e.g. to get platform state from an ignored child widget, as is the case for `GtkText` wrappers.
func (*WebView) GetPropertyDefaultContentSecurityPolicy ¶ added in v0.0.4
GetPropertyDefaultContentSecurityPolicy gets the "default-content-security-policy" property. The default Content-Security-Policy used by the webview as if it were set by an HTTP header.
This applies to all content loaded including through navigation or via the various webkit_web_view_load_\* APIs. However do note that many WebKit APIs bypass Content-Security-Policy in general such as #WebKitUserContentManager and webkit_web_view_run_javascript().
Policies are additive so if a website sets its own policy it still applies on top of the policy set here.
func (*WebView) GetPropertyEditable ¶ added in v0.0.4
GetPropertyEditable gets the "editable" property. Whether the pages loaded inside #WebKitWebView are editable. For more information see webkit_web_view_set_editable().
func (*WebView) GetPropertyEstimatedLoadProgress ¶ added in v0.0.4
GetPropertyEstimatedLoadProgress gets the "estimated-load-progress" property. An estimate of the percent completion for the current loading operation. This value will range from 0.0 to 1.0 and, once a load completes, will remain at 1.0 until a new load starts, at which point it will be reset to 0.0. The value is an estimate based on the total number of bytes expected to be received for a document, including all its possible subresources and child documents.
func (*WebView) GetPropertyIsControlledByAutomation ¶ added in v0.0.4
GetPropertyIsControlledByAutomation gets the "is-controlled-by-automation" property. Whether the #WebKitWebView is controlled by automation tools (e.g. WebDriver, Selenium). This is required for views returned as a response to #WebKitAutomationSession::create-web-view signal, alongside any view you want to control during an automation session.
As a %G_PARAM_CONSTRUCT_ONLY, you need to set it during construction and it can't be modified.
If #WebKitWebView:related-view is also passed during construction, #WebKitWebView:is-controlled-by-automation ignores its own parameter and inherits directly from the related view #WebKitWebView:is-controlled-by-automation property. This is the recommended way when creating new views as a response to the #WebKitWebView::create signal. For example, as response to JavaScript `window.open()` calls during an automation session.
func (*WebView) GetPropertyIsLoading ¶ added in v0.0.4
GetPropertyIsLoading gets the "is-loading" property. Whether the #WebKitWebView is currently loading a page. This property becomes %TRUE as soon as a new load operation is requested and before the #WebKitWebView::load-changed signal is emitted with %WEBKIT_LOAD_STARTED and at that point the active URI is the requested one. When the load operation finishes the property is set to %FALSE before #WebKitWebView::load-changed is emitted with %WEBKIT_LOAD_FINISHED.
func (*WebView) GetPropertyIsMuted ¶ added in v0.0.4
GetPropertyIsMuted gets the "is-muted" property. Whether the #WebKitWebView audio is muted. When %TRUE, audio is silenced. It may still be playing, i.e. #WebKitWebView:is-playing-audio may be %TRUE.
func (*WebView) GetPropertyIsPlayingAudio ¶ added in v0.0.4
GetPropertyIsPlayingAudio gets the "is-playing-audio" property. Whether the #WebKitWebView is currently playing audio from a page. This property becomes %TRUE as soon as web content starts playing any kind of audio. When a page is no longer playing any kind of sound, the property is set back to %FALSE.
func (*WebView) GetPropertyIsWebProcessResponsive ¶ added in v0.0.4
GetPropertyIsWebProcessResponsive gets the "is-web-process-responsive" property. Whether the web process currently associated to the #WebKitWebView is responsive.
func (*WebView) GetPropertyPageId ¶ added in v0.0.4
GetPropertyPageId gets the "page-id" property. The identifier of the #WebKitWebPage corresponding to the #WebKitWebView.
func (*WebView) GetPropertyThemeColor ¶ added in v0.0.4
GetPropertyThemeColor gets the "theme-color" property. The theme color of the WebView's current page.
func (*WebView) GetPropertyTitle ¶ added in v0.0.4
GetPropertyTitle gets the "title" property. The main frame document title of this #WebKitWebView. If the title has not been received yet, it will be %NULL.
func (*WebView) GetPropertyUri ¶ added in v0.0.4
GetPropertyUri gets the "uri" property. The current active URI of the #WebKitWebView. See webkit_web_view_get_uri() for more details.
func (*WebView) GetPropertyZoomLevel ¶ added in v0.0.4
GetPropertyZoomLevel gets the "zoom-level" property. The zoom level of the #WebKitWebView content. See webkit_web_view_set_zoom_level() for more details.
func (*WebView) GetSessionState ¶
func (x *WebView) GetSessionState() *WebViewSessionState
Gets the current session state of @web_view
func (*WebView) GetSettings ¶
Gets the #WebKitSettings currently applied to @web_view.
If no other #WebKitSettings have been explicitly applied to @web_view with webkit_web_view_set_settings(), the default #WebKitSettings will be returned. This method always returns a valid #WebKitSettings object. To modify any of the @web_view settings, you can either create a new #WebKitSettings object with webkit_settings_new(), setting the desired preferences, and then replace the existing @web_view settings with webkit_web_view_set_settings() or get the existing @web_view settings and update it directly. #WebKitSettings objects can be shared by multiple #WebKitWebView<!-- -->s, so modifying the settings of a #WebKitWebView would affect other #WebKitWebView<!-- -->s using the same #WebKitSettings.
func (*WebView) GetSnapshot ¶
func (x *WebView) GetSnapshot(RegionVar SnapshotRegion, OptionsVar SnapshotOptions, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously retrieves a snapshot of @web_view for @region.
@options specifies how the snapshot should be rendered.
When the operation is finished, @callback will be called. You must call webkit_web_view_get_snapshot_finish() to get the result of the operation.
func (*WebView) GetSnapshotFinish ¶
Finishes an asynchronous operation started with webkit_web_view_get_snapshot().
func (*WebView) GetThemeColor ¶
Gets the theme color that is specified by the content in the @web_view. If the @web_view doesn't have a theme color it will fill the @rgba with transparent black content.
func (*WebView) GetTitle ¶
Gets the value of the #WebKitWebView:title property.
You can connect to notify::title signal of @web_view to be notified when the title has been received.
func (*WebView) GetTlsInfo ¶
func (x *WebView) GetTlsInfo(CertificateVar **gio.TlsCertificate, ErrorsVar *gio.TlsCertificateFlags) bool
Retrieves the #GTlsCertificate associated with the main resource of @web_view.
Retrieves the #GTlsCertificate associated with the main resource of @web_view, and the #GTlsCertificateFlags showing what problems, if any, have been found with that certificate. If the connection is not HTTPS, this function returns %FALSE. This function should be called after a response has been received from the server, so you can connect to #WebKitWebView::load-changed and call this function when it's emitted with %WEBKIT_LOAD_COMMITTED event.
Note that this function provides no information about the security of the web page if the current #WebKitTLSErrorsPolicy is %WEBKIT_TLS_ERRORS_POLICY_IGNORE, as subresources of the page may be controlled by an attacker. This function may safely be used to determine the security status of the current page only if the current #WebKitTLSErrorsPolicy is %WEBKIT_TLS_ERRORS_POLICY_FAIL, in which case subresources that fail certificate verification will be blocked.
func (*WebView) GetUri ¶
Returns the current active URI of @web_view.
The active URI might change during a load operation:
<orderedlist> <listitem><para>
When nothing has been loaded yet on @web_view the active URI is %NULL.
</para></listitem> <listitem><para>
When a new load operation starts the active URI is the requested URI: <itemizedlist> <listitem><para> If the load operation was started by webkit_web_view_load_uri(), the requested URI is the given one. </para></listitem> <listitem><para> If the load operation was started by webkit_web_view_load_html(), the requested URI is "about:blank". </para></listitem> <listitem><para> If the load operation was started by webkit_web_view_load_alternate_html(), the requested URI is content URI provided. </para></listitem> <listitem><para> If the load operation was started by webkit_web_view_go_back() or webkit_web_view_go_forward(), the requested URI is the original URI of the previous/next item in the #WebKitBackForwardList of @web_view. </para></listitem> <listitem><para> If the load operation was started by webkit_web_view_go_to_back_forward_list_item(), the requested URI is the opriginal URI of the given #WebKitBackForwardListItem. </para></listitem> </itemizedlist>
</para></listitem> <listitem><para>
If there is a server redirection during the load operation, the active URI is the redirected URI. When the signal #WebKitWebView::load-changed is emitted with %WEBKIT_LOAD_REDIRECTED event, the active URI is already updated to the redirected URI.
</para></listitem> <listitem><para>
When the signal #WebKitWebView::load-changed is emitted with %WEBKIT_LOAD_COMMITTED event, the active URI is the final one and it will not change unless a new load operation is started or a navigation action within the same page is performed.
</para></listitem> </orderedlist>
You can monitor the active URI by connecting to the notify::uri signal of @web_view.
func (*WebView) GetUserContentManager ¶
func (x *WebView) GetUserContentManager() *UserContentManager
Gets the user content manager associated to @web_view.
func (*WebView) GetWebExtensionMode ¶
func (x *WebView) GetWebExtensionMode() WebExtensionMode
Get the view's #WebKitWebExtensionMode.
func (*WebView) GetWebsitePolicies ¶
func (x *WebView) GetWebsitePolicies() *WebsitePolicies
Gets the default website policies.
Gets the default website policies set on construction in the @web_view. These can be overridden on a per-origin basis via the #WebKitWebView::decide-policy signal handler.
See also webkit_policy_decision_use_with_policies().
func (*WebView) GetWindowProperties ¶
func (x *WebView) GetWindowProperties() *WindowProperties
Get the #WebKitWindowProperties object.
Get the #WebKitWindowProperties object containing the properties that the window containing @web_view should have.
func (*WebView) GetZoomLevel ¶
Set the zoom level of @web_view.
Get the zoom level of @web_view, i.e. the factor by which the view contents are scaled with respect to their original size.
func (*WebView) GoBack ¶
func (x *WebView) GoBack()
Loads the previous history item.
You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.
func (*WebView) GoForward ¶
func (x *WebView) GoForward()
Loads the next history item.
You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.
func (*WebView) GoToBackForwardListItem ¶
func (x *WebView) GoToBackForwardListItem(ListItemVar *BackForwardListItem)
Loads the specific history item @list_item.
You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.
func (*WebView) IsControlledByAutomation ¶
Get whether a #WebKitWebView was created with #WebKitWebView:is-controlled-by-automation property enabled.
Only #WebKitWebView<!-- -->s controlled by automation can be used in an automation session.
func (*WebView) IsEditable ¶
Gets whether the user is allowed to edit the HTML document.
When @web_view is not editable an element in the HTML document can only be edited if the CONTENTEDITABLE attribute has been set on the element or one of its parent elements. By default a #WebKitWebView is not editable.
func (*WebView) IsLoading ¶
Gets the value of the #WebKitWebView:is-loading property.
You can monitor when a #WebKitWebView is loading a page by connecting to notify::is-loading signal of @web_view. This is useful when you are interesting in knowing when the view is loading something but not in the details about the status of the load operation, for example to start a spinner when the view is loading a page and stop it when it finishes.
func (*WebView) IsPlayingAudio ¶
Gets the value of the #WebKitWebView:is-playing-audio property.
You can monitor when a page in a #WebKitWebView is playing audio by connecting to the notify::is-playing-audio signal of @web_view. This is useful when the application wants to provide visual feedback when a page is producing sound.
func (*WebView) LoadAlternateHtml ¶
Load the given @content string for the URI @content_uri.
This allows clients to display page-loading errors in the #WebKitWebView itself. When this method is called from #WebKitWebView::load-failed signal to show an error page, then the back-forward list is maintained appropriately. For everything else this method works the same way as webkit_web_view_load_html().
func (*WebView) LoadBytes ¶
func (x *WebView) LoadBytes(BytesVar *glib.Bytes, MimeTypeVar *string, EncodingVar *string, BaseUriVar *string)
Load the specified @bytes into @web_view using the given @mime_type and @encoding.
When @mime_type is %NULL, it defaults to "text/html". When @encoding is %NULL, it defaults to "UTF-8". When @base_uri is %NULL, it defaults to "about:blank". You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.
func (*WebView) LoadHtml ¶
Load the given @content string with the specified @base_uri.
If @base_uri is not %NULL, relative URLs in the @content will be resolved against @base_uri and absolute local paths must be children of the @base_uri. For security reasons absolute local paths that are not children of @base_uri will cause the web process to terminate. If you need to include URLs in @content that are local paths in a different directory than @base_uri you can build a data URI for them. When @base_uri is %NULL, it defaults to "about:blank". The mime type of the document will be "text/html". You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.
func (*WebView) LoadPlainText ¶
Load the specified @plain_text string into @web_view.
The mime type of document will be "text/plain". You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.
func (*WebView) LoadRequest ¶
func (x *WebView) LoadRequest(RequestVar *URIRequest)
Requests loading of the specified #WebKitURIRequest.
You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.
func (*WebView) LoadUri ¶
Requests loading of the specified URI string.
You can monitor the load operation by connecting to #WebKitWebView::load-changed signal.
func (*WebView) Reload ¶
func (x *WebView) Reload()
Reloads the current contents of @web_view.
See also webkit_web_view_reload_bypass_cache().
func (*WebView) ReloadBypassCache ¶
func (x *WebView) ReloadBypassCache()
Reloads the current contents of @web_view without using any cached data.
func (*WebView) ResetProperty ¶
func (x *WebView) ResetProperty(PropertyVar gtk.AccessibleProperty)
Resets the accessible property to its default value.
func (*WebView) ResetRelation ¶
func (x *WebView) ResetRelation(RelationVar gtk.AccessibleRelation)
Resets the accessible relation to its default value.
func (*WebView) ResetState ¶
func (x *WebView) ResetState(StateVar gtk.AccessibleState)
Resets the accessible state to its default value.
func (*WebView) RestoreSessionState ¶
func (x *WebView) RestoreSessionState(StateVar *WebViewSessionState)
Restore the @web_view session state from @state
func (*WebView) Save ¶
func (x *WebView) Save(SaveModeVar SaveMode, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously save the current web page.
Asynchronously save the current web page associated to the #WebKitWebView into a self-contained format using the mode specified in @save_mode.
When the operation is finished, @callback will be called. You can then call webkit_web_view_save_finish() to get the result of the operation.
func (*WebView) SaveFinish ¶
func (x *WebView) SaveFinish(ResultVar gio.AsyncResult) (*gio.InputStream, error)
Finish an asynchronous operation started with webkit_web_view_save().
func (*WebView) SaveToFile ¶
func (x *WebView) SaveToFile(FileVar gio.File, SaveModeVar SaveMode, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously save the current web page.
Asynchronously save the current web page associated to the #WebKitWebView into a self-contained format using the mode specified in @save_mode and writing it to @file.
When the operation is finished, @callback will be called. You can then call webkit_web_view_save_to_file_finish() to get the result of the operation.
func (*WebView) SaveToFileFinish ¶
func (x *WebView) SaveToFileFinish(ResultVar gio.AsyncResult) (bool, error)
Finish an asynchronous operation started with webkit_web_view_save_to_file().
func (*WebView) SendMessageToPage ¶
func (x *WebView) SendMessageToPage(MessageVar *UserMessage, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Send @message to the #WebKitWebPage corresponding to @web_view.
If @message is floating, it's consumed. If you don't expect any reply, or you simply want to ignore it, you can pass %NULL as @callback. When the operation is finished, @callback will be called. You can then call webkit_web_view_send_message_to_page_finish() to get the message reply.
func (*WebView) SendMessageToPageFinish ¶
func (x *WebView) SendMessageToPageFinish(ResultVar gio.AsyncResult) (*UserMessage, error)
Finish an asynchronous operation started with webkit_web_view_send_message_to_page().
func (*WebView) SetAccessibleParent ¶
func (x *WebView) SetAccessibleParent(ParentVar gtk.Accessible, NextSiblingVar gtk.Accessible)
Sets the parent and sibling of an accessible object.
This function is meant to be used by accessible implementations that are not part of the widget hierarchy, and but act as a logical bridge between widgets. For instance, if a widget creates an object that holds metadata for each child, and you want that object to implement the `GtkAccessible` interface, you will use this function to ensure that the parent of each child widget is the metadata object, and the parent of each metadata object is the container widget.
func (*WebView) SetBackgroundColor ¶
Sets the color that will be used to draw the @web_view background.
Sets the color that will be used to draw the @web_view background before the actual contents are rendered. Note that if the web page loaded in @web_view specifies a background color, it will take precedence over the @rgba color. By default the @web_view background color is opaque white.
func (*WebView) SetCameraCaptureState ¶
func (x *WebView) SetCameraCaptureState(StateVar MediaCaptureState)
Set the camera capture state of a #WebKitWebView.
If #WebKitSettings:enable-mediastream is %FALSE, this method will have no visible effect. Once the state of the device has been set to %WEBKIT_MEDIA_CAPTURE_STATE_NONE it cannot be changed anymore. The page can however request capture again using the mediaDevices API.
func (*WebView) SetCorsAllowlist ¶
Sets the @allowlist for CORS.
Sets the @allowlist for which [Cross-Origin Resource Sharing](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS) checks are disabled in @web_view. URI patterns must be of the form `[protocol]://[host]/[path]`, each component may contain the wildcard character (`*`) to represent zero or more other characters. All three components are required and must not be omitted from the URI patterns.
Disabling CORS checks permits resources from other origins to load allowlisted resources. It does not permit the allowlisted resources to load resources from other origins.
If this function is called multiple times, only the allowlist set by the most recent call will be effective.
func (*WebView) SetCustomCharset ¶
Sets the current custom character encoding override of @web_view.
The custom character encoding will override any text encoding detected via HTTP headers or META tags. Calling this method will stop any current load operation and reload the current page. Setting the custom character encoding to %NULL removes the character encoding override.
func (*WebView) SetDisplayCaptureState ¶
func (x *WebView) SetDisplayCaptureState(StateVar MediaCaptureState)
Set the display capture state of a #WebKitWebView.
If #WebKitSettings:enable-mediastream is %FALSE, this method will have no visible effect. Once the state of the device has been set to %WEBKIT_MEDIA_CAPTURE_STATE_NONE it cannot be changed anymore. The page can however request capture again using the mediaDevices API.
func (*WebView) SetEditable ¶
Sets whether the user is allowed to edit the HTML document.
If @editable is %TRUE, @web_view allows the user to edit the HTML document. If @editable is %FALSE, an element in @web_view's document can only be edited if the CONTENTEDITABLE attribute has been set on the element or one of its parent elements. By default a #WebKitWebView is not editable.
Normally, a HTML document is not editable unless the elements within the document are editable. This function provides a way to make the contents of a #WebKitWebView editable without altering the document or DOM structure.
func (*WebView) SetGoPointer ¶
func (*WebView) SetInputMethodContext ¶
func (x *WebView) SetInputMethodContext(ContextVar *InputMethodContext)
Set the #WebKitInputMethodContext to be used by @web_view.
Set the #WebKitInputMethodContext to be used by @web_view, or %NULL to not use any input method. Note that the same #WebKitInputMethodContext can't be set on more than one #WebKitWebView at the same time.
func (*WebView) SetIsMuted ¶
Sets the mute state of @web_view.
func (*WebView) SetMicrophoneCaptureState ¶
func (x *WebView) SetMicrophoneCaptureState(StateVar MediaCaptureState)
Set the microphone capture state of a #WebKitWebView.
If #WebKitSettings:enable-mediastream is %FALSE, this method will have no visible effect. Once the state of the device has been set to %WEBKIT_MEDIA_CAPTURE_STATE_NONE it cannot be changed anymore. The page can however request capture again using the mediaDevices API.
func (*WebView) SetPropertyDefaultContentSecurityPolicy ¶ added in v0.0.4
SetPropertyDefaultContentSecurityPolicy sets the "default-content-security-policy" property. The default Content-Security-Policy used by the webview as if it were set by an HTTP header.
This applies to all content loaded including through navigation or via the various webkit_web_view_load_\* APIs. However do note that many WebKit APIs bypass Content-Security-Policy in general such as #WebKitUserContentManager and webkit_web_view_run_javascript().
Policies are additive so if a website sets its own policy it still applies on top of the policy set here.
func (*WebView) SetPropertyEditable ¶ added in v0.0.4
SetPropertyEditable sets the "editable" property. Whether the pages loaded inside #WebKitWebView are editable. For more information see webkit_web_view_set_editable().
func (*WebView) SetPropertyIsControlledByAutomation ¶ added in v0.0.4
SetPropertyIsControlledByAutomation sets the "is-controlled-by-automation" property. Whether the #WebKitWebView is controlled by automation tools (e.g. WebDriver, Selenium). This is required for views returned as a response to #WebKitAutomationSession::create-web-view signal, alongside any view you want to control during an automation session.
As a %G_PARAM_CONSTRUCT_ONLY, you need to set it during construction and it can't be modified.
If #WebKitWebView:related-view is also passed during construction, #WebKitWebView:is-controlled-by-automation ignores its own parameter and inherits directly from the related view #WebKitWebView:is-controlled-by-automation property. This is the recommended way when creating new views as a response to the #WebKitWebView::create signal. For example, as response to JavaScript `window.open()` calls during an automation session.
func (*WebView) SetPropertyIsMuted ¶ added in v0.0.4
SetPropertyIsMuted sets the "is-muted" property. Whether the #WebKitWebView audio is muted. When %TRUE, audio is silenced. It may still be playing, i.e. #WebKitWebView:is-playing-audio may be %TRUE.
func (*WebView) SetPropertyZoomLevel ¶ added in v0.0.4
SetPropertyZoomLevel sets the "zoom-level" property. The zoom level of the #WebKitWebView content. See webkit_web_view_set_zoom_level() for more details.
func (*WebView) SetSettings ¶
Sets the #WebKitSettings to be applied to @web_view.
The existing #WebKitSettings of @web_view will be replaced by @settings. New settings are applied immediately on @web_view. The same #WebKitSettings object can be shared by multiple #WebKitWebView<!-- -->s.
func (*WebView) SetZoomLevel ¶
Set the zoom level of @web_view.
Set the zoom level of @web_view, i.e. the factor by which the view contents are scaled with respect to their original size.
func (*WebView) StopLoading ¶
func (x *WebView) StopLoading()
Stops any ongoing loading operation in @web_view.
This method does nothing if no content is being loaded. If there is a loading operation in progress, it will be cancelled and #WebKitWebView::load-failed signal will be emitted with %WEBKIT_NETWORK_ERROR_CANCELLED error.
func (*WebView) TerminateWebProcess ¶
func (x *WebView) TerminateWebProcess()
Terminates the web process associated to @web_view.
When the web process gets terminated using this method, the #WebKitWebView::web-process-terminated signal is emitted with %WEBKIT_WEB_PROCESS_TERMINATED_BY_API as the reason for termination.
func (*WebView) TryClose ¶
func (x *WebView) TryClose()
Tries to close the @web_view.
This will fire the onbeforeunload event to ask the user for confirmation to close the page. If there isn't an onbeforeunload event handler or the user confirms to close the page, the #WebKitWebView::close signal is emitted, otherwise nothing happens.
func (*WebView) UpdateNextAccessibleSibling ¶
func (x *WebView) UpdateNextAccessibleSibling(NewSiblingVar gtk.Accessible)
Updates the next accessible sibling.
That might be useful when a new child of a custom accessible is created, and it needs to be linked to a previous child.
func (*WebView) UpdatePlatformState ¶
func (x *WebView) UpdatePlatformState(StateVar gtk.AccessiblePlatformState)
Informs ATs that the platform state has changed.
This function should be used by `GtkAccessible` implementations that have a platform state but are not widgets. Widgets handle platform states automatically.
func (*WebView) UpdateProperty ¶
func (x *WebView) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs ...interface{})
Updates a list of accessible properties.
See the [enum@Gtk.AccessibleProperty] documentation for the value types of accessible properties.
This function should be called by `GtkWidget` types whenever an accessible property change must be communicated to assistive technologies.
Example: ```c value = gtk_adjustment_get_value (adjustment); gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value, -1);
```
func (*WebView) UpdatePropertyValue ¶
func (x *WebView) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value)
Updates an array of accessible properties.
This function should be called by `GtkWidget` types whenever an accessible property change must be communicated to assistive technologies.
This function is meant to be used by language bindings.
func (*WebView) UpdateRelation ¶
func (x *WebView) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs ...interface{})
Updates a list of accessible relations.
This function should be called by `GtkWidget` types whenever an accessible relation change must be communicated to assistive technologies.
If the [enum@Gtk.AccessibleRelation] requires a list of references, you should pass each reference individually, followed by `NULL`, e.g.
```c gtk_accessible_update_relation (accessible,
GTK_ACCESSIBLE_RELATION_CONTROLS, ref1, NULL, GTK_ACCESSIBLE_RELATION_LABELLED_BY, ref1, ref2, ref3, NULL, -1);
```
func (*WebView) UpdateRelationValue ¶
func (x *WebView) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value)
Updates an array of accessible relations.
This function should be called by `GtkWidget` types whenever an accessible relation change must be communicated to assistive technologies.
This function is meant to be used by language bindings.
func (*WebView) UpdateState ¶
func (x *WebView) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interface{})
Updates a list of accessible states.
See the [enum@Gtk.AccessibleState] documentation for the value types of accessible states.
This function should be called by `GtkWidget` types whenever an accessible state change must be communicated to assistive technologies.
Example:
```c value = GTK_ACCESSIBLE_TRISTATE_MIXED; gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
GTK_ACCESSIBLE_STATE_CHECKED, value, -1);
```
func (*WebView) UpdateStateValue ¶
func (x *WebView) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value)
Updates an array of accessible states.
This function should be called by `GtkWidget` types whenever an accessible state change must be communicated to assistive technologies.
This function is meant to be used by language bindings.
type WebViewBase ¶
func WebViewBaseNewFromInternalPtr ¶
func WebViewBaseNewFromInternalPtr(ptr uintptr) *WebViewBase
func (*WebViewBase) Announce ¶
func (x *WebViewBase) Announce(MessageVar string, PriorityVar gtk.AccessibleAnnouncementPriority)
Requests the user's screen reader to announce the given message.
This kind of notification is useful for messages that either have only a visual representation or that are not exposed visually at all, e.g. a notification about a successful operation.
Also, by using this API, you can ensure that the message does not interrupts the user's current screen reader output.
func (*WebViewBase) GetAccessibleParent ¶
func (x *WebViewBase) GetAccessibleParent() *gtk.AccessibleBase
Retrieves the accessible parent for an accessible object.
This function returns `NULL` for top level widgets.
func (*WebViewBase) GetAccessibleRole ¶
func (x *WebViewBase) GetAccessibleRole() gtk.AccessibleRole
Retrieves the accessible role of an accessible object.
func (*WebViewBase) GetAtContext ¶
func (x *WebViewBase) GetAtContext() *gtk.ATContext
Retrieves the implementation for the given accessible object.
func (*WebViewBase) GetBounds ¶
Queries the coordinates and dimensions of this accessible
This functionality can be overridden by `GtkAccessible` implementations, e.g. to get the bounds from an ignored child widget.
func (*WebViewBase) GetBuildableId ¶
func (x *WebViewBase) GetBuildableId() string
Gets the ID of the @buildable object.
`GtkBuilder` sets the name based on the ID attribute of the `<object>` tag used to construct the @buildable.
func (*WebViewBase) GetFirstAccessibleChild ¶
func (x *WebViewBase) GetFirstAccessibleChild() *gtk.AccessibleBase
Retrieves the first accessible child of an accessible object.
func (*WebViewBase) GetNextAccessibleSibling ¶
func (x *WebViewBase) GetNextAccessibleSibling() *gtk.AccessibleBase
Retrieves the next accessible sibling of an accessible object
func (*WebViewBase) GetPlatformState ¶
func (x *WebViewBase) GetPlatformState(StateVar gtk.AccessiblePlatformState) bool
Queries a platform state, such as focus.
This functionality can be overridden by `GtkAccessible` implementations, e.g. to get platform state from an ignored child widget, as is the case for `GtkText` wrappers.
func (*WebViewBase) GoPointer ¶
func (c *WebViewBase) GoPointer() uintptr
func (*WebViewBase) ResetProperty ¶
func (x *WebViewBase) ResetProperty(PropertyVar gtk.AccessibleProperty)
Resets the accessible property to its default value.
func (*WebViewBase) ResetRelation ¶
func (x *WebViewBase) ResetRelation(RelationVar gtk.AccessibleRelation)
Resets the accessible relation to its default value.
func (*WebViewBase) ResetState ¶
func (x *WebViewBase) ResetState(StateVar gtk.AccessibleState)
Resets the accessible state to its default value.
func (*WebViewBase) SetAccessibleParent ¶
func (x *WebViewBase) SetAccessibleParent(ParentVar gtk.Accessible, NextSiblingVar gtk.Accessible)
Sets the parent and sibling of an accessible object.
This function is meant to be used by accessible implementations that are not part of the widget hierarchy, and but act as a logical bridge between widgets. For instance, if a widget creates an object that holds metadata for each child, and you want that object to implement the `GtkAccessible` interface, you will use this function to ensure that the parent of each child widget is the metadata object, and the parent of each metadata object is the container widget.
func (*WebViewBase) SetGoPointer ¶
func (c *WebViewBase) SetGoPointer(ptr uintptr)
func (*WebViewBase) UpdateNextAccessibleSibling ¶
func (x *WebViewBase) UpdateNextAccessibleSibling(NewSiblingVar gtk.Accessible)
Updates the next accessible sibling.
That might be useful when a new child of a custom accessible is created, and it needs to be linked to a previous child.
func (*WebViewBase) UpdatePlatformState ¶
func (x *WebViewBase) UpdatePlatformState(StateVar gtk.AccessiblePlatformState)
Informs ATs that the platform state has changed.
This function should be used by `GtkAccessible` implementations that have a platform state but are not widgets. Widgets handle platform states automatically.
func (*WebViewBase) UpdateProperty ¶
func (x *WebViewBase) UpdateProperty(FirstPropertyVar gtk.AccessibleProperty, varArgs ...interface{})
Updates a list of accessible properties.
See the [enum@Gtk.AccessibleProperty] documentation for the value types of accessible properties.
This function should be called by `GtkWidget` types whenever an accessible property change must be communicated to assistive technologies.
Example: ```c value = gtk_adjustment_get_value (adjustment); gtk_accessible_update_property (GTK_ACCESSIBLE (spin_button),
GTK_ACCESSIBLE_PROPERTY_VALUE_NOW, value, -1);
```
func (*WebViewBase) UpdatePropertyValue ¶
func (x *WebViewBase) UpdatePropertyValue(NPropertiesVar int, PropertiesVar []gtk.AccessibleProperty, ValuesVar []gobject.Value)
Updates an array of accessible properties.
This function should be called by `GtkWidget` types whenever an accessible property change must be communicated to assistive technologies.
This function is meant to be used by language bindings.
func (*WebViewBase) UpdateRelation ¶
func (x *WebViewBase) UpdateRelation(FirstRelationVar gtk.AccessibleRelation, varArgs ...interface{})
Updates a list of accessible relations.
This function should be called by `GtkWidget` types whenever an accessible relation change must be communicated to assistive technologies.
If the [enum@Gtk.AccessibleRelation] requires a list of references, you should pass each reference individually, followed by `NULL`, e.g.
```c gtk_accessible_update_relation (accessible,
GTK_ACCESSIBLE_RELATION_CONTROLS, ref1, NULL, GTK_ACCESSIBLE_RELATION_LABELLED_BY, ref1, ref2, ref3, NULL, -1);
```
func (*WebViewBase) UpdateRelationValue ¶
func (x *WebViewBase) UpdateRelationValue(NRelationsVar int, RelationsVar []gtk.AccessibleRelation, ValuesVar []gobject.Value)
Updates an array of accessible relations.
This function should be called by `GtkWidget` types whenever an accessible relation change must be communicated to assistive technologies.
This function is meant to be used by language bindings.
func (*WebViewBase) UpdateState ¶
func (x *WebViewBase) UpdateState(FirstStateVar gtk.AccessibleState, varArgs ...interface{})
Updates a list of accessible states.
See the [enum@Gtk.AccessibleState] documentation for the value types of accessible states.
This function should be called by `GtkWidget` types whenever an accessible state change must be communicated to assistive technologies.
Example:
```c value = GTK_ACCESSIBLE_TRISTATE_MIXED; gtk_accessible_update_state (GTK_ACCESSIBLE (check_button),
GTK_ACCESSIBLE_STATE_CHECKED, value, -1);
```
func (*WebViewBase) UpdateStateValue ¶
func (x *WebViewBase) UpdateStateValue(NStatesVar int, StatesVar []gtk.AccessibleState, ValuesVar []gobject.Value)
Updates an array of accessible states.
This function should be called by `GtkWidget` types whenever an accessible state change must be communicated to assistive technologies.
This function is meant to be used by language bindings.
type WebViewBaseClass ¶
type WebViewBaseClass struct {
ParentClass uintptr
// contains filtered or unexported fields
}
func (*WebViewBaseClass) GetWebkitReserved0 ¶
func (x *WebViewBaseClass) GetWebkitReserved0() func()
GetWebkitReserved0 gets the "_webkit_reserved0" callback function.
func (*WebViewBaseClass) GetWebkitReserved1 ¶
func (x *WebViewBaseClass) GetWebkitReserved1() func()
GetWebkitReserved1 gets the "_webkit_reserved1" callback function.
func (*WebViewBaseClass) GetWebkitReserved2 ¶
func (x *WebViewBaseClass) GetWebkitReserved2() func()
GetWebkitReserved2 gets the "_webkit_reserved2" callback function.
func (*WebViewBaseClass) GetWebkitReserved3 ¶
func (x *WebViewBaseClass) GetWebkitReserved3() func()
GetWebkitReserved3 gets the "_webkit_reserved3" callback function.
func (*WebViewBaseClass) GoPointer ¶
func (x *WebViewBaseClass) GoPointer() uintptr
func (*WebViewBaseClass) OverrideWebkitReserved0 ¶
func (x *WebViewBaseClass) OverrideWebkitReserved0(cb func())
OverrideWebkitReserved0 sets the "_webkit_reserved0" callback function.
func (*WebViewBaseClass) OverrideWebkitReserved1 ¶
func (x *WebViewBaseClass) OverrideWebkitReserved1(cb func())
OverrideWebkitReserved1 sets the "_webkit_reserved1" callback function.
func (*WebViewBaseClass) OverrideWebkitReserved2 ¶
func (x *WebViewBaseClass) OverrideWebkitReserved2(cb func())
OverrideWebkitReserved2 sets the "_webkit_reserved2" callback function.
func (*WebViewBaseClass) OverrideWebkitReserved3 ¶
func (x *WebViewBaseClass) OverrideWebkitReserved3(cb func())
OverrideWebkitReserved3 sets the "_webkit_reserved3" callback function.
type WebViewBasePrivate ¶
type WebViewBasePrivate struct {
// contains filtered or unexported fields
}
func (*WebViewBasePrivate) GoPointer ¶
func (x *WebViewBasePrivate) GoPointer() uintptr
type WebViewClass ¶
type WebViewClass struct {
Parent uintptr
// contains filtered or unexported fields
}
func (*WebViewClass) GetAuthenticate ¶
func (x *WebViewClass) GetAuthenticate() func(*WebView, *AuthenticationRequest) bool
GetAuthenticate gets the "authenticate" callback function.
func (*WebViewClass) GetClose ¶
func (x *WebViewClass) GetClose() func(*WebView)
GetClose gets the "close" callback function.
func (*WebViewClass) GetContextMenu ¶
func (x *WebViewClass) GetContextMenu() func(*WebView, *ContextMenu, *HitTestResult) bool
GetContextMenu gets the "context_menu" callback function.
func (*WebViewClass) GetContextMenuDismissed ¶
func (x *WebViewClass) GetContextMenuDismissed() func(*WebView)
GetContextMenuDismissed gets the "context_menu_dismissed" callback function.
func (*WebViewClass) GetCreate ¶
func (x *WebViewClass) GetCreate() func(*WebView, *NavigationAction) *gtk.Widget
GetCreate gets the "create" callback function.
func (*WebViewClass) GetDecidePolicy ¶
func (x *WebViewClass) GetDecidePolicy() func(*WebView, *PolicyDecision, PolicyDecisionType) bool
GetDecidePolicy gets the "decide_policy" callback function.
func (*WebViewClass) GetEnterFullscreen ¶
func (x *WebViewClass) GetEnterFullscreen() func(*WebView) bool
GetEnterFullscreen gets the "enter_fullscreen" callback function.
func (*WebViewClass) GetInsecureContentDetected ¶
func (x *WebViewClass) GetInsecureContentDetected() func(*WebView, InsecureContentEvent)
GetInsecureContentDetected gets the "insecure_content_detected" callback function.
func (*WebViewClass) GetLeaveFullscreen ¶
func (x *WebViewClass) GetLeaveFullscreen() func(*WebView) bool
GetLeaveFullscreen gets the "leave_fullscreen" callback function.
func (*WebViewClass) GetLoadChanged ¶
func (x *WebViewClass) GetLoadChanged() func(*WebView, LoadEvent)
GetLoadChanged gets the "load_changed" callback function.
func (*WebViewClass) GetLoadFailed ¶
GetLoadFailed gets the "load_failed" callback function.
func (*WebViewClass) GetLoadFailedWithTlsErrors ¶
func (x *WebViewClass) GetLoadFailedWithTlsErrors() func(*WebView, string, *gio.TlsCertificate, gio.TlsCertificateFlags) bool
GetLoadFailedWithTlsErrors gets the "load_failed_with_tls_errors" callback function.
func (*WebViewClass) GetMouseTargetChanged ¶
func (x *WebViewClass) GetMouseTargetChanged() func(*WebView, *HitTestResult, uint)
GetMouseTargetChanged gets the "mouse_target_changed" callback function.
func (*WebViewClass) GetPermissionRequest ¶
func (x *WebViewClass) GetPermissionRequest() func(*WebView, PermissionRequest) bool
GetPermissionRequest gets the "permission_request" callback function.
func (*WebViewClass) GetPrint ¶
func (x *WebViewClass) GetPrint() func(*WebView, *PrintOperation) bool
GetPrint gets the "print" callback function.
func (*WebViewClass) GetQueryPermissionState ¶
func (x *WebViewClass) GetQueryPermissionState() func(*WebView, *PermissionStateQuery) bool
GetQueryPermissionState gets the "query_permission_state" callback function.
func (*WebViewClass) GetReadyToShow ¶
func (x *WebViewClass) GetReadyToShow() func(*WebView)
GetReadyToShow gets the "ready_to_show" callback function.
func (*WebViewClass) GetResourceLoadStarted ¶
func (x *WebViewClass) GetResourceLoadStarted() func(*WebView, *WebResource, *URIRequest)
GetResourceLoadStarted gets the "resource_load_started" callback function.
func (*WebViewClass) GetRunAsModal ¶
func (x *WebViewClass) GetRunAsModal() func(*WebView)
GetRunAsModal gets the "run_as_modal" callback function.
func (*WebViewClass) GetRunColorChooser ¶
func (x *WebViewClass) GetRunColorChooser() func(*WebView, *ColorChooserRequest) bool
GetRunColorChooser gets the "run_color_chooser" callback function.
func (*WebViewClass) GetRunFileChooser ¶
func (x *WebViewClass) GetRunFileChooser() func(*WebView, *FileChooserRequest) bool
GetRunFileChooser gets the "run_file_chooser" callback function.
func (*WebViewClass) GetScriptDialog ¶
func (x *WebViewClass) GetScriptDialog() func(*WebView, *ScriptDialog) bool
GetScriptDialog gets the "script_dialog" callback function.
func (*WebViewClass) GetShowNotification ¶
func (x *WebViewClass) GetShowNotification() func(*WebView, *Notification) bool
GetShowNotification gets the "show_notification" callback function.
func (*WebViewClass) GetShowOptionMenu ¶
func (x *WebViewClass) GetShowOptionMenu() func(*WebView, *OptionMenu, *gdk.Rectangle) bool
GetShowOptionMenu gets the "show_option_menu" callback function.
func (*WebViewClass) GetSubmitForm ¶
func (x *WebViewClass) GetSubmitForm() func(*WebView, *FormSubmissionRequest)
GetSubmitForm gets the "submit_form" callback function.
func (*WebViewClass) GetUserMessageReceived ¶
func (x *WebViewClass) GetUserMessageReceived() func(*WebView, *UserMessage) bool
GetUserMessageReceived gets the "user_message_received" callback function.
func (*WebViewClass) GetWebProcessCrashed ¶
func (x *WebViewClass) GetWebProcessCrashed() func(*WebView) bool
GetWebProcessCrashed gets the "web_process_crashed" callback function.
func (*WebViewClass) GetWebProcessTerminated ¶
func (x *WebViewClass) GetWebProcessTerminated() func(*WebView, WebProcessTerminationReason)
GetWebProcessTerminated gets the "web_process_terminated" callback function.
func (*WebViewClass) GetWebkitReserved0 ¶
func (x *WebViewClass) GetWebkitReserved0() func()
GetWebkitReserved0 gets the "_webkit_reserved0" callback function.
func (*WebViewClass) GetWebkitReserved1 ¶
func (x *WebViewClass) GetWebkitReserved1() func()
GetWebkitReserved1 gets the "_webkit_reserved1" callback function.
func (*WebViewClass) GetWebkitReserved2 ¶
func (x *WebViewClass) GetWebkitReserved2() func()
GetWebkitReserved2 gets the "_webkit_reserved2" callback function.
func (*WebViewClass) GetWebkitReserved3 ¶
func (x *WebViewClass) GetWebkitReserved3() func()
GetWebkitReserved3 gets the "_webkit_reserved3" callback function.
func (*WebViewClass) GetWebkitReserved4 ¶
func (x *WebViewClass) GetWebkitReserved4() func()
GetWebkitReserved4 gets the "_webkit_reserved4" callback function.
func (*WebViewClass) GetWebkitReserved5 ¶
func (x *WebViewClass) GetWebkitReserved5() func()
GetWebkitReserved5 gets the "_webkit_reserved5" callback function.
func (*WebViewClass) GetWebkitReserved6 ¶
func (x *WebViewClass) GetWebkitReserved6() func()
GetWebkitReserved6 gets the "_webkit_reserved6" callback function.
func (*WebViewClass) GetWebkitReserved7 ¶
func (x *WebViewClass) GetWebkitReserved7() func()
GetWebkitReserved7 gets the "_webkit_reserved7" callback function.
func (*WebViewClass) GetWebkitReserved8 ¶
func (x *WebViewClass) GetWebkitReserved8() func()
GetWebkitReserved8 gets the "_webkit_reserved8" callback function.
func (*WebViewClass) GetWebkitReserved9 ¶
func (x *WebViewClass) GetWebkitReserved9() func()
GetWebkitReserved9 gets the "_webkit_reserved9" callback function.
func (*WebViewClass) GetWebkitReserved10 ¶
func (x *WebViewClass) GetWebkitReserved10() func()
GetWebkitReserved10 gets the "_webkit_reserved10" callback function.
func (*WebViewClass) GetWebkitReserved11 ¶
func (x *WebViewClass) GetWebkitReserved11() func()
GetWebkitReserved11 gets the "_webkit_reserved11" callback function.
func (*WebViewClass) GetWebkitReserved12 ¶
func (x *WebViewClass) GetWebkitReserved12() func()
GetWebkitReserved12 gets the "_webkit_reserved12" callback function.
func (*WebViewClass) GetWebkitReserved13 ¶
func (x *WebViewClass) GetWebkitReserved13() func()
GetWebkitReserved13 gets the "_webkit_reserved13" callback function.
func (*WebViewClass) GetWebkitReserved14 ¶
func (x *WebViewClass) GetWebkitReserved14() func()
GetWebkitReserved14 gets the "_webkit_reserved14" callback function.
func (*WebViewClass) GetWebkitReserved15 ¶
func (x *WebViewClass) GetWebkitReserved15() func()
GetWebkitReserved15 gets the "_webkit_reserved15" callback function.
func (*WebViewClass) GetWebkitReserved16 ¶
func (x *WebViewClass) GetWebkitReserved16() func()
GetWebkitReserved16 gets the "_webkit_reserved16" callback function.
func (*WebViewClass) GetWebkitReserved17 ¶
func (x *WebViewClass) GetWebkitReserved17() func()
GetWebkitReserved17 gets the "_webkit_reserved17" callback function.
func (*WebViewClass) GetWebkitReserved18 ¶
func (x *WebViewClass) GetWebkitReserved18() func()
GetWebkitReserved18 gets the "_webkit_reserved18" callback function.
func (*WebViewClass) GetWebkitReserved19 ¶
func (x *WebViewClass) GetWebkitReserved19() func()
GetWebkitReserved19 gets the "_webkit_reserved19" callback function.
func (*WebViewClass) GetWebkitReserved20 ¶
func (x *WebViewClass) GetWebkitReserved20() func()
GetWebkitReserved20 gets the "_webkit_reserved20" callback function.
func (*WebViewClass) GetWebkitReserved21 ¶
func (x *WebViewClass) GetWebkitReserved21() func()
GetWebkitReserved21 gets the "_webkit_reserved21" callback function.
func (*WebViewClass) GetWebkitReserved22 ¶
func (x *WebViewClass) GetWebkitReserved22() func()
GetWebkitReserved22 gets the "_webkit_reserved22" callback function.
func (*WebViewClass) GetWebkitReserved23 ¶
func (x *WebViewClass) GetWebkitReserved23() func()
GetWebkitReserved23 gets the "_webkit_reserved23" callback function.
func (*WebViewClass) GetWebkitReserved24 ¶
func (x *WebViewClass) GetWebkitReserved24() func()
GetWebkitReserved24 gets the "_webkit_reserved24" callback function.
func (*WebViewClass) GetWebkitReserved25 ¶
func (x *WebViewClass) GetWebkitReserved25() func()
GetWebkitReserved25 gets the "_webkit_reserved25" callback function.
func (*WebViewClass) GetWebkitReserved26 ¶
func (x *WebViewClass) GetWebkitReserved26() func()
GetWebkitReserved26 gets the "_webkit_reserved26" callback function.
func (*WebViewClass) GetWebkitReserved27 ¶
func (x *WebViewClass) GetWebkitReserved27() func()
GetWebkitReserved27 gets the "_webkit_reserved27" callback function.
func (*WebViewClass) GetWebkitReserved28 ¶
func (x *WebViewClass) GetWebkitReserved28() func()
GetWebkitReserved28 gets the "_webkit_reserved28" callback function.
func (*WebViewClass) GetWebkitReserved29 ¶
func (x *WebViewClass) GetWebkitReserved29() func()
GetWebkitReserved29 gets the "_webkit_reserved29" callback function.
func (*WebViewClass) GetWebkitReserved30 ¶
func (x *WebViewClass) GetWebkitReserved30() func()
GetWebkitReserved30 gets the "_webkit_reserved30" callback function.
func (*WebViewClass) GoPointer ¶
func (x *WebViewClass) GoPointer() uintptr
func (*WebViewClass) OverrideAuthenticate ¶
func (x *WebViewClass) OverrideAuthenticate(cb func(*WebView, *AuthenticationRequest) bool)
OverrideAuthenticate sets the "authenticate" callback function.
func (*WebViewClass) OverrideClose ¶
func (x *WebViewClass) OverrideClose(cb func(*WebView))
OverrideClose sets the "close" callback function.
func (*WebViewClass) OverrideContextMenu ¶
func (x *WebViewClass) OverrideContextMenu(cb func(*WebView, *ContextMenu, *HitTestResult) bool)
OverrideContextMenu sets the "context_menu" callback function.
func (*WebViewClass) OverrideContextMenuDismissed ¶
func (x *WebViewClass) OverrideContextMenuDismissed(cb func(*WebView))
OverrideContextMenuDismissed sets the "context_menu_dismissed" callback function.
func (*WebViewClass) OverrideCreate ¶
func (x *WebViewClass) OverrideCreate(cb func(*WebView, *NavigationAction) *gtk.Widget)
OverrideCreate sets the "create" callback function.
func (*WebViewClass) OverrideDecidePolicy ¶
func (x *WebViewClass) OverrideDecidePolicy(cb func(*WebView, *PolicyDecision, PolicyDecisionType) bool)
OverrideDecidePolicy sets the "decide_policy" callback function.
func (*WebViewClass) OverrideEnterFullscreen ¶
func (x *WebViewClass) OverrideEnterFullscreen(cb func(*WebView) bool)
OverrideEnterFullscreen sets the "enter_fullscreen" callback function.
func (*WebViewClass) OverrideInsecureContentDetected ¶
func (x *WebViewClass) OverrideInsecureContentDetected(cb func(*WebView, InsecureContentEvent))
OverrideInsecureContentDetected sets the "insecure_content_detected" callback function.
func (*WebViewClass) OverrideLeaveFullscreen ¶
func (x *WebViewClass) OverrideLeaveFullscreen(cb func(*WebView) bool)
OverrideLeaveFullscreen sets the "leave_fullscreen" callback function.
func (*WebViewClass) OverrideLoadChanged ¶
func (x *WebViewClass) OverrideLoadChanged(cb func(*WebView, LoadEvent))
OverrideLoadChanged sets the "load_changed" callback function.
func (*WebViewClass) OverrideLoadFailed ¶
OverrideLoadFailed sets the "load_failed" callback function.
func (*WebViewClass) OverrideLoadFailedWithTlsErrors ¶
func (x *WebViewClass) OverrideLoadFailedWithTlsErrors(cb func(*WebView, string, *gio.TlsCertificate, gio.TlsCertificateFlags) bool)
OverrideLoadFailedWithTlsErrors sets the "load_failed_with_tls_errors" callback function.
func (*WebViewClass) OverrideMouseTargetChanged ¶
func (x *WebViewClass) OverrideMouseTargetChanged(cb func(*WebView, *HitTestResult, uint))
OverrideMouseTargetChanged sets the "mouse_target_changed" callback function.
func (*WebViewClass) OverridePermissionRequest ¶
func (x *WebViewClass) OverridePermissionRequest(cb func(*WebView, PermissionRequest) bool)
OverridePermissionRequest sets the "permission_request" callback function.
func (*WebViewClass) OverridePrint ¶
func (x *WebViewClass) OverridePrint(cb func(*WebView, *PrintOperation) bool)
OverridePrint sets the "print" callback function.
func (*WebViewClass) OverrideQueryPermissionState ¶
func (x *WebViewClass) OverrideQueryPermissionState(cb func(*WebView, *PermissionStateQuery) bool)
OverrideQueryPermissionState sets the "query_permission_state" callback function.
func (*WebViewClass) OverrideReadyToShow ¶
func (x *WebViewClass) OverrideReadyToShow(cb func(*WebView))
OverrideReadyToShow sets the "ready_to_show" callback function.
func (*WebViewClass) OverrideResourceLoadStarted ¶
func (x *WebViewClass) OverrideResourceLoadStarted(cb func(*WebView, *WebResource, *URIRequest))
OverrideResourceLoadStarted sets the "resource_load_started" callback function.
func (*WebViewClass) OverrideRunAsModal ¶
func (x *WebViewClass) OverrideRunAsModal(cb func(*WebView))
OverrideRunAsModal sets the "run_as_modal" callback function.
func (*WebViewClass) OverrideRunColorChooser ¶
func (x *WebViewClass) OverrideRunColorChooser(cb func(*WebView, *ColorChooserRequest) bool)
OverrideRunColorChooser sets the "run_color_chooser" callback function.
func (*WebViewClass) OverrideRunFileChooser ¶
func (x *WebViewClass) OverrideRunFileChooser(cb func(*WebView, *FileChooserRequest) bool)
OverrideRunFileChooser sets the "run_file_chooser" callback function.
func (*WebViewClass) OverrideScriptDialog ¶
func (x *WebViewClass) OverrideScriptDialog(cb func(*WebView, *ScriptDialog) bool)
OverrideScriptDialog sets the "script_dialog" callback function.
func (*WebViewClass) OverrideShowNotification ¶
func (x *WebViewClass) OverrideShowNotification(cb func(*WebView, *Notification) bool)
OverrideShowNotification sets the "show_notification" callback function.
func (*WebViewClass) OverrideShowOptionMenu ¶
func (x *WebViewClass) OverrideShowOptionMenu(cb func(*WebView, *OptionMenu, *gdk.Rectangle) bool)
OverrideShowOptionMenu sets the "show_option_menu" callback function.
func (*WebViewClass) OverrideSubmitForm ¶
func (x *WebViewClass) OverrideSubmitForm(cb func(*WebView, *FormSubmissionRequest))
OverrideSubmitForm sets the "submit_form" callback function.
func (*WebViewClass) OverrideUserMessageReceived ¶
func (x *WebViewClass) OverrideUserMessageReceived(cb func(*WebView, *UserMessage) bool)
OverrideUserMessageReceived sets the "user_message_received" callback function.
func (*WebViewClass) OverrideWebProcessCrashed ¶
func (x *WebViewClass) OverrideWebProcessCrashed(cb func(*WebView) bool)
OverrideWebProcessCrashed sets the "web_process_crashed" callback function.
func (*WebViewClass) OverrideWebProcessTerminated ¶
func (x *WebViewClass) OverrideWebProcessTerminated(cb func(*WebView, WebProcessTerminationReason))
OverrideWebProcessTerminated sets the "web_process_terminated" callback function.
func (*WebViewClass) OverrideWebkitReserved0 ¶
func (x *WebViewClass) OverrideWebkitReserved0(cb func())
OverrideWebkitReserved0 sets the "_webkit_reserved0" callback function.
func (*WebViewClass) OverrideWebkitReserved1 ¶
func (x *WebViewClass) OverrideWebkitReserved1(cb func())
OverrideWebkitReserved1 sets the "_webkit_reserved1" callback function.
func (*WebViewClass) OverrideWebkitReserved2 ¶
func (x *WebViewClass) OverrideWebkitReserved2(cb func())
OverrideWebkitReserved2 sets the "_webkit_reserved2" callback function.
func (*WebViewClass) OverrideWebkitReserved3 ¶
func (x *WebViewClass) OverrideWebkitReserved3(cb func())
OverrideWebkitReserved3 sets the "_webkit_reserved3" callback function.
func (*WebViewClass) OverrideWebkitReserved4 ¶
func (x *WebViewClass) OverrideWebkitReserved4(cb func())
OverrideWebkitReserved4 sets the "_webkit_reserved4" callback function.
func (*WebViewClass) OverrideWebkitReserved5 ¶
func (x *WebViewClass) OverrideWebkitReserved5(cb func())
OverrideWebkitReserved5 sets the "_webkit_reserved5" callback function.
func (*WebViewClass) OverrideWebkitReserved6 ¶
func (x *WebViewClass) OverrideWebkitReserved6(cb func())
OverrideWebkitReserved6 sets the "_webkit_reserved6" callback function.
func (*WebViewClass) OverrideWebkitReserved7 ¶
func (x *WebViewClass) OverrideWebkitReserved7(cb func())
OverrideWebkitReserved7 sets the "_webkit_reserved7" callback function.
func (*WebViewClass) OverrideWebkitReserved8 ¶
func (x *WebViewClass) OverrideWebkitReserved8(cb func())
OverrideWebkitReserved8 sets the "_webkit_reserved8" callback function.
func (*WebViewClass) OverrideWebkitReserved9 ¶
func (x *WebViewClass) OverrideWebkitReserved9(cb func())
OverrideWebkitReserved9 sets the "_webkit_reserved9" callback function.
func (*WebViewClass) OverrideWebkitReserved10 ¶
func (x *WebViewClass) OverrideWebkitReserved10(cb func())
OverrideWebkitReserved10 sets the "_webkit_reserved10" callback function.
func (*WebViewClass) OverrideWebkitReserved11 ¶
func (x *WebViewClass) OverrideWebkitReserved11(cb func())
OverrideWebkitReserved11 sets the "_webkit_reserved11" callback function.
func (*WebViewClass) OverrideWebkitReserved12 ¶
func (x *WebViewClass) OverrideWebkitReserved12(cb func())
OverrideWebkitReserved12 sets the "_webkit_reserved12" callback function.
func (*WebViewClass) OverrideWebkitReserved13 ¶
func (x *WebViewClass) OverrideWebkitReserved13(cb func())
OverrideWebkitReserved13 sets the "_webkit_reserved13" callback function.
func (*WebViewClass) OverrideWebkitReserved14 ¶
func (x *WebViewClass) OverrideWebkitReserved14(cb func())
OverrideWebkitReserved14 sets the "_webkit_reserved14" callback function.
func (*WebViewClass) OverrideWebkitReserved15 ¶
func (x *WebViewClass) OverrideWebkitReserved15(cb func())
OverrideWebkitReserved15 sets the "_webkit_reserved15" callback function.
func (*WebViewClass) OverrideWebkitReserved16 ¶
func (x *WebViewClass) OverrideWebkitReserved16(cb func())
OverrideWebkitReserved16 sets the "_webkit_reserved16" callback function.
func (*WebViewClass) OverrideWebkitReserved17 ¶
func (x *WebViewClass) OverrideWebkitReserved17(cb func())
OverrideWebkitReserved17 sets the "_webkit_reserved17" callback function.
func (*WebViewClass) OverrideWebkitReserved18 ¶
func (x *WebViewClass) OverrideWebkitReserved18(cb func())
OverrideWebkitReserved18 sets the "_webkit_reserved18" callback function.
func (*WebViewClass) OverrideWebkitReserved19 ¶
func (x *WebViewClass) OverrideWebkitReserved19(cb func())
OverrideWebkitReserved19 sets the "_webkit_reserved19" callback function.
func (*WebViewClass) OverrideWebkitReserved20 ¶
func (x *WebViewClass) OverrideWebkitReserved20(cb func())
OverrideWebkitReserved20 sets the "_webkit_reserved20" callback function.
func (*WebViewClass) OverrideWebkitReserved21 ¶
func (x *WebViewClass) OverrideWebkitReserved21(cb func())
OverrideWebkitReserved21 sets the "_webkit_reserved21" callback function.
func (*WebViewClass) OverrideWebkitReserved22 ¶
func (x *WebViewClass) OverrideWebkitReserved22(cb func())
OverrideWebkitReserved22 sets the "_webkit_reserved22" callback function.
func (*WebViewClass) OverrideWebkitReserved23 ¶
func (x *WebViewClass) OverrideWebkitReserved23(cb func())
OverrideWebkitReserved23 sets the "_webkit_reserved23" callback function.
func (*WebViewClass) OverrideWebkitReserved24 ¶
func (x *WebViewClass) OverrideWebkitReserved24(cb func())
OverrideWebkitReserved24 sets the "_webkit_reserved24" callback function.
func (*WebViewClass) OverrideWebkitReserved25 ¶
func (x *WebViewClass) OverrideWebkitReserved25(cb func())
OverrideWebkitReserved25 sets the "_webkit_reserved25" callback function.
func (*WebViewClass) OverrideWebkitReserved26 ¶
func (x *WebViewClass) OverrideWebkitReserved26(cb func())
OverrideWebkitReserved26 sets the "_webkit_reserved26" callback function.
func (*WebViewClass) OverrideWebkitReserved27 ¶
func (x *WebViewClass) OverrideWebkitReserved27(cb func())
OverrideWebkitReserved27 sets the "_webkit_reserved27" callback function.
func (*WebViewClass) OverrideWebkitReserved28 ¶
func (x *WebViewClass) OverrideWebkitReserved28(cb func())
OverrideWebkitReserved28 sets the "_webkit_reserved28" callback function.
func (*WebViewClass) OverrideWebkitReserved29 ¶
func (x *WebViewClass) OverrideWebkitReserved29(cb func())
OverrideWebkitReserved29 sets the "_webkit_reserved29" callback function.
func (*WebViewClass) OverrideWebkitReserved30 ¶
func (x *WebViewClass) OverrideWebkitReserved30(cb func())
OverrideWebkitReserved30 sets the "_webkit_reserved30" callback function.
type WebViewOptions ¶ added in v0.0.7
type WebViewOptions struct {
// WebContext to use for this WebView. If nil, uses the default WebContext.
WebContext *WebContext
// NetworkSession for cookie/data persistence. Required for persistent sessions.
NetworkSession *NetworkSession
// UserContentManager for script injection and content filtering.
UserContentManager *UserContentManager
// RelatedView to share WebContext and NetworkSession with (for popups).
RelatedView *WebView
// WebsitePolicies for autoplay and other website-specific policies.
WebsitePolicies *WebsitePolicies
// DefaultContentSecurityPolicy sets the default CSP for all pages.
DefaultContentSecurityPolicy string
// IsControlledByAutomation enables automation/WebDriver mode.
IsControlledByAutomation bool
// AutomationPresentationType specifies window vs tab presentation for automation.
AutomationPresentationType AutomationBrowsingContextPresentation
}
WebViewOptions contains construct-only properties for creating a WebView. All fields are optional - only non-nil values will be applied.
type WebViewPrivate ¶
type WebViewPrivate struct {
// contains filtered or unexported fields
}
func (*WebViewPrivate) GoPointer ¶
func (x *WebViewPrivate) GoPointer() uintptr
type WebViewSessionState ¶
type WebViewSessionState struct {
// contains filtered or unexported fields
}
Handles serialization of a web view's browsing state.
func NewWebViewSessionState ¶
func NewWebViewSessionState(DataVar *glib.Bytes) *WebViewSessionState
Creates a new #WebKitWebViewSessionState from serialized data.
func (*WebViewSessionState) GoPointer ¶
func (x *WebViewSessionState) GoPointer() uintptr
func (*WebViewSessionState) Ref ¶
func (x *WebViewSessionState) Ref() *WebViewSessionState
Atomically increments the reference count of @state by one.
This function is MT-safe and may be called from any thread.
func (*WebViewSessionState) Serialize ¶
func (x *WebViewSessionState) Serialize() *glib.Bytes
Serializes a #WebKitWebViewSessionState.
func (*WebViewSessionState) Unref ¶
func (x *WebViewSessionState) Unref()
Atomically decrements the reference count of @state by one.
If the reference count drops to 0, all memory allocated by the #WebKitWebViewSessionState is released. This function is MT-safe and may be called from any thread.
type WebsiteData ¶
type WebsiteData struct {
// contains filtered or unexported fields
}
Data stored locally by a web site.
WebKitWebsiteData represents data stored in the client by a particular website. A website is normally a set of URLs grouped by domain name. You can get the website name, which is usually the domain, with webkit_website_data_get_name(). Documents loaded from the file system, like file:// URIs, are all grouped in the same WebKitWebsiteData with the name "Local files".
A website can store different types of data in the client side. #WebKitWebsiteDataTypes is an enum containing all the possible data types; use webkit_website_data_get_types() to get the bitmask of data types. It's also possible to know the size of the data stored for some of the #WebKitWebsiteDataTypes by using webkit_website_data_get_size().
A list of WebKitWebsiteData can be retrieved with webkit_website_data_manager_fetch(). See #WebKitWebsiteDataManager for more information.
func (*WebsiteData) GetName ¶
func (x *WebsiteData) GetName() string
Gets the name of #WebKitWebsiteData.
This is the website name, normally represented by a domain or host name. All local documents are grouped in the same #WebKitWebsiteData using the name "Local files".
func (*WebsiteData) GetSize ¶
func (x *WebsiteData) GetSize(TypesVar WebsiteDataTypes) uint64
Gets the size of the data of types @types in a #WebKitWebsiteData.
Note that currently the data size is only known for %WEBKIT_WEBSITE_DATA_DISK_CACHE data type so for all other types 0 will be returned.
func (*WebsiteData) GetTypes ¶
func (x *WebsiteData) GetTypes() WebsiteDataTypes
Gets the types of data stored in the client for a #WebKitWebsiteData.
These are the types actually present, not the types queried with webkit_website_data_manager_fetch().
func (*WebsiteData) GoPointer ¶
func (x *WebsiteData) GoPointer() uintptr
func (*WebsiteData) Ref ¶
func (x *WebsiteData) Ref() *WebsiteData
Atomically increments the reference count of @website_data by one.
This function is MT-safe and may be called from any thread.
func (*WebsiteData) Unref ¶
func (x *WebsiteData) Unref()
Atomically decrements the reference count of @website_data by one.
If the reference count drops to 0, all memory allocated by #WebKitWebsiteData is released. This function is MT-safe and may be called from any thread.
type WebsiteDataAccessPermissionRequest ¶
A permission request for accessing website data from third-party domains.
WebKitWebsiteDataAccessPermissionRequest represents a request for permission to allow a third-party domain access its cookies.
When a WebKitWebsiteDataAccessPermissionRequest is not handled by the user, it is denied by default.
func WebsiteDataAccessPermissionRequestNewFromInternalPtr ¶
func WebsiteDataAccessPermissionRequestNewFromInternalPtr(ptr uintptr) *WebsiteDataAccessPermissionRequest
func (*WebsiteDataAccessPermissionRequest) Allow ¶
func (x *WebsiteDataAccessPermissionRequest) Allow()
Allow the action which triggered this request.
func (*WebsiteDataAccessPermissionRequest) Deny ¶
func (x *WebsiteDataAccessPermissionRequest) Deny()
Deny the action which triggered this request.
func (*WebsiteDataAccessPermissionRequest) GetCurrentDomain ¶
func (x *WebsiteDataAccessPermissionRequest) GetCurrentDomain() string
Get the current domain being browsed.
func (*WebsiteDataAccessPermissionRequest) GetRequestingDomain ¶
func (x *WebsiteDataAccessPermissionRequest) GetRequestingDomain() string
Get the domain requesting permission to access its cookies while browsing the current domain.
func (*WebsiteDataAccessPermissionRequest) GoPointer ¶
func (c *WebsiteDataAccessPermissionRequest) GoPointer() uintptr
func (*WebsiteDataAccessPermissionRequest) SetGoPointer ¶
func (c *WebsiteDataAccessPermissionRequest) SetGoPointer(ptr uintptr)
type WebsiteDataAccessPermissionRequestClass ¶
type WebsiteDataAccessPermissionRequestClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*WebsiteDataAccessPermissionRequestClass) GoPointer ¶
func (x *WebsiteDataAccessPermissionRequestClass) GoPointer() uintptr
type WebsiteDataManager ¶
Manages data stored locally by web sites.
You can use WebKitWebsiteDataManager to configure the local directories where website data will be stored. Use #WebKitWebsiteDataManager:base-data-directory and #WebKitWebsiteDataManager:base-cache-directory set a common base directory for all website data and caches.
A WebKitWebsiteDataManager can be ephemeral, in which case all the directory configuration is not needed because website data will never persist. You can create an ephemeral WebKitWebsiteDataManager with webkit_website_data_manager_new_ephemeral().
WebKitWebsiteDataManager can also be used to fetch website data, remove data stored by particular websites, or clear data for all websites modified since a given period of time.
func WebsiteDataManagerNewFromInternalPtr ¶
func WebsiteDataManagerNewFromInternalPtr(ptr uintptr) *WebsiteDataManager
func (*WebsiteDataManager) Clear ¶
func (x *WebsiteDataManager) Clear(TypesVar WebsiteDataTypes, TimespanVar glib.TimeSpan, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously clear the website data of the given @types modified in the past @timespan.
If @timespan is 0, all website data will be removed.
When the operation is finished, @callback will be called. You can then call webkit_website_data_manager_clear_finish() to get the result of the operation.
Due to implementation limitations, this function does not currently delete any stored cookies if @timespan is nonzero. This behavior may change in the future.
func (*WebsiteDataManager) ClearFinish ¶
func (x *WebsiteDataManager) ClearFinish(ResultVar gio.AsyncResult) (bool, error)
Finish an asynchronous operation started with webkit_website_data_manager_clear()
func (*WebsiteDataManager) Fetch ¶
func (x *WebsiteDataManager) Fetch(TypesVar WebsiteDataTypes, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously get the list of #WebKitWebsiteData for the given @types.
When the operation is finished, @callback will be called. You can then call webkit_website_data_manager_fetch_finish() to get the result of the operation.
func (*WebsiteDataManager) FetchFinish ¶
func (x *WebsiteDataManager) FetchFinish(ResultVar gio.AsyncResult) (*glib.List, error)
Finish an asynchronous operation started with webkit_website_data_manager_fetch().
func (*WebsiteDataManager) GetBaseCacheDirectory ¶
func (x *WebsiteDataManager) GetBaseCacheDirectory() string
Get the #WebKitWebsiteDataManager:base-cache-directory property.
func (*WebsiteDataManager) GetBaseDataDirectory ¶
func (x *WebsiteDataManager) GetBaseDataDirectory() string
Get the #WebKitWebsiteDataManager:base-data-directory property.
func (*WebsiteDataManager) GetFaviconDatabase ¶
func (x *WebsiteDataManager) GetFaviconDatabase() *FaviconDatabase
Get the #WebKitFaviconDatabase of @manager.
func (*WebsiteDataManager) GetFaviconsEnabled ¶
func (x *WebsiteDataManager) GetFaviconsEnabled() bool
Get whether website icons are enabled.
func (*WebsiteDataManager) GetItpSummary ¶
func (x *WebsiteDataManager) GetItpSummary(CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously get the list of #WebKitITPThirdParty seen for @manager.
Every #WebKitITPThirdParty contains the list of #WebKitITPFirstParty under which it has been seen.
When the operation is finished, @callback will be called. You can then call webkit_website_data_manager_get_itp_summary_finish() to get the result of the operation.
func (*WebsiteDataManager) GetItpSummaryFinish ¶
func (x *WebsiteDataManager) GetItpSummaryFinish(ResultVar gio.AsyncResult) (*glib.List, error)
Finish an asynchronous operation started with webkit_website_data_manager_get_itp_summary().
func (*WebsiteDataManager) GetPropertyBaseCacheDirectory ¶ added in v0.0.4
func (x *WebsiteDataManager) GetPropertyBaseCacheDirectory() string
GetPropertyBaseCacheDirectory gets the "base-cache-directory" property. The base directory for caches. If %NULL, a default location will be used.
func (*WebsiteDataManager) GetPropertyBaseDataDirectory ¶ added in v0.0.4
func (x *WebsiteDataManager) GetPropertyBaseDataDirectory() string
GetPropertyBaseDataDirectory gets the "base-data-directory" property. The base directory for website data. If %NULL, a default location will be used.
func (*WebsiteDataManager) GetPropertyIsEphemeral ¶ added in v0.0.4
func (x *WebsiteDataManager) GetPropertyIsEphemeral() bool
GetPropertyIsEphemeral gets the "is-ephemeral" property. Whether the #WebKitWebsiteDataManager is ephemeral. An ephemeral #WebKitWebsiteDataManager handles all websites data as non-persistent, and nothing will be written to the client storage. Note that if you create an ephemeral #WebKitWebsiteDataManager all other construction parameters to configure data directories will be ignored.
func (*WebsiteDataManager) GoPointer ¶
func (c *WebsiteDataManager) GoPointer() uintptr
func (*WebsiteDataManager) IsEphemeral ¶
func (x *WebsiteDataManager) IsEphemeral() bool
Get whether a #WebKitWebsiteDataManager is ephemeral.
See #WebKitWebsiteDataManager:is-ephemeral for more details.
func (*WebsiteDataManager) Remove ¶
func (x *WebsiteDataManager) Remove(TypesVar WebsiteDataTypes, WebsiteDataVar *glib.List, CancellableVar *gio.Cancellable, CallbackVar *gio.AsyncReadyCallback, UserDataVar uintptr)
Asynchronously removes the website data in the given @website_data list.
Asynchronously removes the website data of the given @types for websites in the given @website_data list. Use webkit_website_data_manager_clear() if you want to remove the website data for all sites.
When the operation is finished, @callback will be called. You can then call webkit_website_data_manager_remove_finish() to get the result of the operation.
func (*WebsiteDataManager) RemoveFinish ¶
func (x *WebsiteDataManager) RemoveFinish(ResultVar gio.AsyncResult) (bool, error)
Finish an asynchronous operation started with webkit_website_data_manager_remove().
func (*WebsiteDataManager) SetFaviconsEnabled ¶
func (x *WebsiteDataManager) SetFaviconsEnabled(EnabledVar bool)
Set whether website icons are enabled. Website icons are disabled by default. When website icons are disabled, the #WebKitFaviconDatabase of @manager is closed and its reference removed, so webkit_website_data_manager_get_favicon_database() will return %NULL. If website icons are enabled again, a new #WebKitFaviconDatabase will be created.
func (*WebsiteDataManager) SetGoPointer ¶
func (c *WebsiteDataManager) SetGoPointer(ptr uintptr)
func (*WebsiteDataManager) SetPropertyBaseCacheDirectory ¶ added in v0.0.4
func (x *WebsiteDataManager) SetPropertyBaseCacheDirectory(value string)
SetPropertyBaseCacheDirectory sets the "base-cache-directory" property. The base directory for caches. If %NULL, a default location will be used.
func (*WebsiteDataManager) SetPropertyBaseDataDirectory ¶ added in v0.0.4
func (x *WebsiteDataManager) SetPropertyBaseDataDirectory(value string)
SetPropertyBaseDataDirectory sets the "base-data-directory" property. The base directory for website data. If %NULL, a default location will be used.
func (*WebsiteDataManager) SetPropertyIsEphemeral ¶ added in v0.0.4
func (x *WebsiteDataManager) SetPropertyIsEphemeral(value bool)
SetPropertyIsEphemeral sets the "is-ephemeral" property. Whether the #WebKitWebsiteDataManager is ephemeral. An ephemeral #WebKitWebsiteDataManager handles all websites data as non-persistent, and nothing will be written to the client storage. Note that if you create an ephemeral #WebKitWebsiteDataManager all other construction parameters to configure data directories will be ignored.
func (*WebsiteDataManager) SetPropertyOriginStorageRatio ¶ added in v0.0.4
func (x *WebsiteDataManager) SetPropertyOriginStorageRatio(value float64)
SetPropertyOriginStorageRatio sets the "origin-storage-ratio" property. The percentage of volume space that can be used for data storage for every domain. If the maximum storage is reached the storage request will fail with a QuotaExceededError exception. A value of 0.0 means that data storage is not allowed. A value of -1.0, which is the default, means WebKit will use the default quota (1 GiB).
func (*WebsiteDataManager) SetPropertyTotalStorageRatio ¶ added in v0.0.4
func (x *WebsiteDataManager) SetPropertyTotalStorageRatio(value float64)
SetPropertyTotalStorageRatio sets the "total-storage-ratio" property. The percentage of volume space that can be used for data storage for all domains. If the maximum storage is reached the eviction will happen. A value of 0.0 means that data storage is not allowed. A value of -1.0, which is the default, means there's no limit for the total storage.
type WebsiteDataManagerClass ¶
type WebsiteDataManagerClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*WebsiteDataManagerClass) GoPointer ¶
func (x *WebsiteDataManagerClass) GoPointer() uintptr
type WebsiteDataTypes ¶
type WebsiteDataTypes int
Enum values with flags representing types of Website data.
const ( // Memory cache. WebsiteDataMemoryCacheValue WebsiteDataTypes = 1 // HTTP disk cache. WebsiteDataDiskCacheValue WebsiteDataTypes = 2 // Offline web application cache. WebsiteDataOfflineApplicationCacheValue WebsiteDataTypes = 4 // Session storage data. WebsiteDataSessionStorageValue WebsiteDataTypes = 8 // Local storage data. WebsiteDataLocalStorageValue WebsiteDataTypes = 16 // IndexedDB databases. WebsiteDataIndexeddbDatabasesValue WebsiteDataTypes = 32 // Cookies. WebsiteDataCookiesValue WebsiteDataTypes = 64 // Hash salt used to generate the device ids used by webpages. WebsiteDataDeviceIdHashSaltValue WebsiteDataTypes = 128 // HSTS cache. WebsiteDataHstsCacheValue WebsiteDataTypes = 256 // Intelligent Tracking Prevention data. WebsiteDataItpValue WebsiteDataTypes = 512 // Service worker registrations. WebsiteDataServiceWorkerRegistrationsValue WebsiteDataTypes = 1024 // DOM (CacheStorage) cache. WebsiteDataDomCacheValue WebsiteDataTypes = 2048 // All types. WebsiteDataAllValue WebsiteDataTypes = 4095 )
type WebsitePolicies ¶
View specific website policies.
WebKitWebsitePolicies allows you to configure per-page policies, currently only autoplay policies are supported.
func NewWebsitePolicies ¶
func NewWebsitePolicies() *WebsitePolicies
Create a new #WebKitWebsitePolicies.
func NewWebsitePoliciesWithPolicies ¶
func NewWebsitePoliciesWithPolicies(FirstPolicyNameVar string, varArgs ...interface{}) *WebsitePolicies
Create a new #WebKitWebsitePolicies with given policies.
Create a new #WebKitWebsitePolicies with policies given as variadic arguments.
func WebsitePoliciesNewFromInternalPtr ¶
func WebsitePoliciesNewFromInternalPtr(ptr uintptr) *WebsitePolicies
func (*WebsitePolicies) GetAutoplayPolicy ¶
func (x *WebsitePolicies) GetAutoplayPolicy() AutoplayPolicy
Get the #WebKitWebsitePolicies:autoplay property.
func (*WebsitePolicies) GoPointer ¶
func (c *WebsitePolicies) GoPointer() uintptr
func (*WebsitePolicies) SetGoPointer ¶
func (c *WebsitePolicies) SetGoPointer(ptr uintptr)
type WebsitePoliciesClass ¶
type WebsitePoliciesClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*WebsitePoliciesClass) GoPointer ¶
func (x *WebsitePoliciesClass) GoPointer() uintptr
type WindowProperties ¶
Window properties of a #WebKitWebView.
The content of a #WebKitWebView can request to change certain properties of the window containing the view. This can include the x, y position of the window, the width and height but also if a toolbar, scrollbar, statusbar, locationbar should be visible to the user, and the request to show the #WebKitWebView fullscreen.
The #WebKitWebView::ready-to-show signal handler is the proper place to apply the initial window properties. Then you can monitor the #WebKitWindowProperties by connecting to ::notify signal.
```c static void ready_to_show_cb (WebKitWebView *web_view, gpointer user_data)
{
GtkWidget *window;
WebKitWindowProperties *window_properties;
gboolean visible;
// Create the window to contain the WebKitWebView.
window = browser_window_new ();
gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (web_view));
gtk_widget_show (GTK_WIDGET (web_view));
// Get the WebKitWindowProperties of the web view and monitor it.
window_properties = webkit_web_view_get_window_properties (web_view);
g_signal_connect (window_properties, "notify::geometry",
G_CALLBACK (window_geometry_changed), window);
g_signal_connect (window_properties, "notify::toolbar-visible",
G_CALLBACK (window_toolbar_visibility_changed), window);
g_signal_connect (window_properties, "notify::menubar-visible",
G_CALLBACK (window_menubar_visibility_changed), window);
// Apply the window properties before showing the window.
visible = webkit_window_properties_get_toolbar_visible (window_properties);
browser_window_set_toolbar_visible (BROWSER_WINDOW (window), visible);
visible = webkit_window_properties_get_menubar_visible (window_properties);
browser_window_set_menubar_visible (BROWSER_WINDOW (window), visible);
if (webkit_window_properties_get_fullscreen (window_properties)) {
gtk_window_fullscreen (GTK_WINDOW (window));
} else {
GdkRectangle geometry;
gtk_window_set_resizable (GTK_WINDOW (window),
webkit_window_properties_get_resizable (window_properties));
webkit_window_properties_get_geometry (window_properties, &geometry);
gtk_window_move (GTK_WINDOW (window), geometry.x, geometry.y);
gtk_window_resize (GTK_WINDOW (window), geometry.width, geometry.height);
}
gtk_widget_show (window);
}
```
func WindowPropertiesNewFromInternalPtr ¶
func WindowPropertiesNewFromInternalPtr(ptr uintptr) *WindowProperties
func (*WindowProperties) GetFullscreen ¶
func (x *WindowProperties) GetFullscreen() bool
Get whether the window should be shown in fullscreen state or not.
func (*WindowProperties) GetGeometry ¶
func (x *WindowProperties) GetGeometry(GeometryVar *gdk.Rectangle)
Get the geometry the window should have on the screen when shown.
func (*WindowProperties) GetLocationbarVisible ¶
func (x *WindowProperties) GetLocationbarVisible() bool
Get whether the window should have the locationbar visible or not.
func (*WindowProperties) GetMenubarVisible ¶
func (x *WindowProperties) GetMenubarVisible() bool
Get whether the window should have the menubar visible or not.
func (*WindowProperties) GetPropertyFullscreen ¶ added in v0.0.4
func (x *WindowProperties) GetPropertyFullscreen() bool
GetPropertyFullscreen gets the "fullscreen" property. Whether window will be displayed fullscreen.
func (*WindowProperties) GetPropertyGeometry ¶ added in v0.0.4
func (x *WindowProperties) GetPropertyGeometry() uintptr
GetPropertyGeometry gets the "geometry" property. The size and position of the window on the screen.
func (*WindowProperties) GetPropertyLocationbarVisible ¶ added in v0.0.4
func (x *WindowProperties) GetPropertyLocationbarVisible() bool
GetPropertyLocationbarVisible gets the "locationbar-visible" property. Whether the locationbar should be visible for the window.
func (*WindowProperties) GetPropertyMenubarVisible ¶ added in v0.0.4
func (x *WindowProperties) GetPropertyMenubarVisible() bool
GetPropertyMenubarVisible gets the "menubar-visible" property. Whether the menubar should be visible for the window.
func (*WindowProperties) GetPropertyResizable ¶ added in v0.0.4
func (x *WindowProperties) GetPropertyResizable() bool
GetPropertyResizable gets the "resizable" property. Whether the window can be resized.
func (*WindowProperties) GetPropertyScrollbarsVisible ¶ added in v0.0.4
func (x *WindowProperties) GetPropertyScrollbarsVisible() bool
GetPropertyScrollbarsVisible gets the "scrollbars-visible" property. Whether the scrollbars should be visible for the window.
func (*WindowProperties) GetPropertyStatusbarVisible ¶ added in v0.0.4
func (x *WindowProperties) GetPropertyStatusbarVisible() bool
GetPropertyStatusbarVisible gets the "statusbar-visible" property. Whether the statusbar should be visible for the window.
func (*WindowProperties) GetPropertyToolbarVisible ¶ added in v0.0.4
func (x *WindowProperties) GetPropertyToolbarVisible() bool
GetPropertyToolbarVisible gets the "toolbar-visible" property. Whether the toolbar should be visible for the window.
func (*WindowProperties) GetResizable ¶
func (x *WindowProperties) GetResizable() bool
Get whether the window should be resizable by the user or not.
func (*WindowProperties) GetScrollbarsVisible ¶
func (x *WindowProperties) GetScrollbarsVisible() bool
Get whether the window should have the scrollbars visible or not.
func (*WindowProperties) GetStatusbarVisible ¶
func (x *WindowProperties) GetStatusbarVisible() bool
Get whether the window should have the statusbar visible or not.
func (*WindowProperties) GetToolbarVisible ¶
func (x *WindowProperties) GetToolbarVisible() bool
Get whether the window should have the toolbar visible or not.
func (*WindowProperties) GoPointer ¶
func (c *WindowProperties) GoPointer() uintptr
func (*WindowProperties) SetGoPointer ¶
func (c *WindowProperties) SetGoPointer(ptr uintptr)
func (*WindowProperties) SetPropertyFullscreen ¶ added in v0.0.4
func (x *WindowProperties) SetPropertyFullscreen(value bool)
SetPropertyFullscreen sets the "fullscreen" property. Whether window will be displayed fullscreen.
func (*WindowProperties) SetPropertyGeometry ¶ added in v0.0.4
func (x *WindowProperties) SetPropertyGeometry(value uintptr)
SetPropertyGeometry sets the "geometry" property. The size and position of the window on the screen.
func (*WindowProperties) SetPropertyLocationbarVisible ¶ added in v0.0.4
func (x *WindowProperties) SetPropertyLocationbarVisible(value bool)
SetPropertyLocationbarVisible sets the "locationbar-visible" property. Whether the locationbar should be visible for the window.
func (*WindowProperties) SetPropertyMenubarVisible ¶ added in v0.0.4
func (x *WindowProperties) SetPropertyMenubarVisible(value bool)
SetPropertyMenubarVisible sets the "menubar-visible" property. Whether the menubar should be visible for the window.
func (*WindowProperties) SetPropertyResizable ¶ added in v0.0.4
func (x *WindowProperties) SetPropertyResizable(value bool)
SetPropertyResizable sets the "resizable" property. Whether the window can be resized.
func (*WindowProperties) SetPropertyScrollbarsVisible ¶ added in v0.0.4
func (x *WindowProperties) SetPropertyScrollbarsVisible(value bool)
SetPropertyScrollbarsVisible sets the "scrollbars-visible" property. Whether the scrollbars should be visible for the window.
func (*WindowProperties) SetPropertyStatusbarVisible ¶ added in v0.0.4
func (x *WindowProperties) SetPropertyStatusbarVisible(value bool)
SetPropertyStatusbarVisible sets the "statusbar-visible" property. Whether the statusbar should be visible for the window.
func (*WindowProperties) SetPropertyToolbarVisible ¶ added in v0.0.4
func (x *WindowProperties) SetPropertyToolbarVisible(value bool)
SetPropertyToolbarVisible sets the "toolbar-visible" property. Whether the toolbar should be visible for the window.
type WindowPropertiesClass ¶
type WindowPropertiesClass struct {
ParentClass gobject.ObjectClass
// contains filtered or unexported fields
}
func (*WindowPropertiesClass) GoPointer ¶
func (x *WindowPropertiesClass) GoPointer() uintptr
Source Files
¶
- WebKitApplicationInfo.go
- WebKitAuthenticationRequest.go
- WebKitAutomationSession.go
- WebKitBackForwardList.go
- WebKitBackForwardListItem.go
- WebKitClipboardPermissionRequest.go
- WebKitColorChooserRequest.go
- WebKitContextMenu.go
- WebKitContextMenuActions.go
- WebKitContextMenuItem.go
- WebKitCookieManager.go
- WebKitCredential.go
- WebKitDeviceInfoPermissionRequest.go
- WebKitDownload.go
- WebKitEditingCommands.go
- WebKitEditorState.go
- WebKitError.go
- WebKitFaviconDatabase.go
- WebKitFeature.go
- WebKitFileChooserRequest.go
- WebKitFindController.go
- WebKitFormSubmissionRequest.go
- WebKitGeolocationManager.go
- WebKitGeolocationPermissionRequest.go
- WebKitHitTestResult.go
- WebKitInputMethodContext.go
- WebKitMediaKeySystemPermissionRequest.go
- WebKitMemoryPressureSettings.go
- WebKitNavigationAction.go
- WebKitNavigationPolicyDecision.go
- WebKitNetworkProxySettings.go
- WebKitNetworkSession.go
- WebKitNotification.go
- WebKitNotificationPermissionRequest.go
- WebKitOptionMenu.go
- WebKitOptionMenuItem.go
- WebKitPermissionRequest.go
- WebKitPermissionStateQuery.go
- WebKitPointerLockPermissionRequest.go
- WebKitPolicyDecision.go
- WebKitPrintOperation.go
- WebKitResponsePolicyDecision.go
- WebKitScriptDialog.go
- WebKitSecurityManager.go
- WebKitSecurityOrigin.go
- WebKitSettings.go
- WebKitURIRequest.go
- WebKitURIResponse.go
- WebKitURISchemeRequest.go
- WebKitURISchemeResponse.go
- WebKitURIUtilities.go
- WebKitUserContent.go
- WebKitUserContentFilterStore.go
- WebKitUserContentManager.go
- WebKitUserMediaPermissionRequest.go
- WebKitUserMessage.go
- WebKitVersion.go
- WebKitWebContext.go
- WebKitWebContextExtras.go
- WebKitWebExtensionMatchPattern.go
- WebKitWebInspector.go
- WebKitWebResource.go
- WebKitWebView.go
- WebKitWebViewBase.go
- WebKitWebViewExtras.go
- WebKitWebViewGtk4.go
- WebKitWebViewSessionState.go
- WebKitWebsiteData.go
- WebKitWebsiteDataAccessPermissionRequest.go
- WebKitWebsiteDataManager.go
- WebKitWebsitePolicies.go
- WebKitWindowProperties.go