Documentation ¶
Index ¶
- Constants
- func CheckVersion(major, minor, micro uint) bool
- func GetMajorVersion() uint
- func GetMicroVersion() uint
- func GetMinorVersion() uint
- type LoadEvent
- type ProcessModel
- type Settings
- type TLSErrorsPolicy
- type UserContentInjectedFrames
- type UserContentManager
- type UserScript
- type UserScriptInjectionTime
- type UserStyleLevel
- type UserStyleSheet
- type WebContext
- func (v *WebContext) ClearCache()
- func (v *WebContext) GetFaviconDatabaseDirectory() string
- func (v *WebContext) GetProcessModel() ProcessModel
- func (v *WebContext) GetTLSErrorsPolicy() TLSErrorsPolicy
- func (v *WebContext) PrefetchDNS(hostname string)
- func (v *WebContext) SetDiskCacheDirectory(dir string)
- func (v *WebContext) SetFaviconDatabaseDirectory(path string)
- func (v *WebContext) SetProcessModel(model ProcessModel)
- func (v *WebContext) SetTLSErrorsPolicy(policy TLSErrorsPolicy)
- type WebView
- func WebViewNew() (*WebView, error)
- func WebViewNewWithContext(context *WebContext) (*WebView, error)
- func WebViewNewWithRelatedView(view *WebView) (*WebView, error)
- func WebViewNewWithSettings(settings *Settings) (*WebView, error)
- func WebViewNewWithUserContentManager(manager *UserContentManager) (*WebView, error)
- func (v *WebView) CanGoBack() bool
- func (v *WebView) CanGoForward() bool
- func (v *WebView) CanShowMimeType(mime string) bool
- func (v *WebView) GetContext() *WebContext
- func (v *WebView) GetCustomCharset() string
- func (v *WebView) GetEstimatedProgress() float64
- func (v *WebView) GetPageID() uint64
- func (v *WebView) GetSettings() *Settings
- func (v *WebView) GetTitle() string
- func (v *WebView) GetURI() string
- func (v *WebView) GetUserContentManager() *UserContentManager
- func (v *WebView) GetWindowProperties() *WindowProperties
- func (v *WebView) GetZoomLevel() float64
- func (v *WebView) GoBack()
- func (v *WebView) GoForward()
- func (v *WebView) IsLoading() bool
- func (v *WebView) LoadAlternateHtml(content, contentUri, baseUri string)
- func (v *WebView) LoadBytes(bytes []byte, mimeType, encoding, baseUri string)
- func (v *WebView) LoadHTML(content, baseUri string)
- func (v *WebView) LoadPlainText(text string)
- func (v *WebView) LoadURI(uri string)
- func (v *WebView) Reload()
- func (v *WebView) ReloadBypassCache()
- func (v *WebView) SetCustomCharset(charset string)
- func (v *WebView) SetSettings(settings *Settings)
- func (v *WebView) SetZoomLevel(zoom float64)
- func (v *WebView) StopLoading()
- type WindowProperties
Constants ¶
const ( // Version numbers from headers used at compile time, not the library linked at runtime. MAJOR_VERSION = C._WEBKIT_MAJOR_VERSION MINOR_VERSION = C._WEBKIT_MINOR_VERSION MICRO_VERSION = C._WEBKIT_MICRO_VERSION )
Misc constants
Variables ¶
This section is empty.
Functions ¶
func CheckVersion ¶
CheckVersion() is a wrapper around WEBKIT_CHECK_VERSION().
func GetMajorVersion ¶
func GetMajorVersion() uint
GetMajorVersion() is a wrapper around webkit_get_major_version().
func GetMicroVersion ¶
func GetMicroVersion() uint
GetMicroVersion() is a wrapper around webkit_get_micro_version().
func GetMinorVersion ¶
func GetMinorVersion() uint
GetMinorVersion() is a wrapper around webkit_get_minor_version().
Types ¶
type LoadEvent ¶
type LoadEvent int
LoadEvent is a representation of WebKitLoadEvent
const ( LOAD_STARTED LoadEvent = C.WEBKIT_LOAD_STARTED LOAD_REDIRECTED LoadEvent = C.WEBKIT_LOAD_REDIRECTED LOAD_COMMITTED LoadEvent = C.WEBKIT_LOAD_COMMITTED LOAD_FINISHED LoadEvent = C.WEBKIT_LOAD_FINISHED )
type ProcessModel ¶
type ProcessModel int
const ( PROCESS_MODEL_SHARED_SECONDARY_PROCESS ProcessModel = C.WEBKIT_PROCESS_MODEL_SHARED_SECONDARY_PROCESS PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES ProcessModel = C.WEBKIT_PROCESS_MODEL_MULTIPLE_SECONDARY_PROCESSES )
type Settings ¶
func SettingsNew ¶
SettingsNew() is a wrapper around webkit_web_view_new().
type TLSErrorsPolicy ¶
type TLSErrorsPolicy int
TLSErrorsPolicy is a representation of WebKitTLSErrorsPolicy
const ( TLS_ERRORS_POLICY_IGNORE TLSErrorsPolicy = C.WEBKIT_TLS_ERRORS_POLICY_IGNORE TLS_ERRORS_POLICY_FAIL TLSErrorsPolicy = C.WEBKIT_TLS_ERRORS_POLICY_FAIL )
type UserContentInjectedFrames ¶
type UserContentInjectedFrames int
UserContentInjectedFrames is a wrapper around WebKitUserContentInjectedFrames.
const ( USER_CONTENT_INJECT_ALL_FRAMES UserContentInjectedFrames = C.WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES USER_CONTENT_INJECT_TOP_FRAME UserContentInjectedFrames = C.WEBKIT_USER_CONTENT_INJECT_TOP_FRAME )
type UserContentManager ¶
func UserContentManagerNew ¶
func UserContentManagerNew() (*UserContentManager, error)
UserContentManagerNew() is a wrapper around webkit_user_content_manager_new().
func (*UserContentManager) AddScript ¶
func (v *UserContentManager) AddScript(script *UserScript)
AddScript() is a wrapper around webkit_user_content_manager_add_script_sheet().
func (*UserContentManager) AddStyleSheet ¶
func (v *UserContentManager) AddStyleSheet(sheet *UserStyleSheet)
AddStyleSheet() is a wrapper around webkit_user_content_manager_add_style_sheet().
func (*UserContentManager) RemoveAllScripts ¶
func (v *UserContentManager) RemoveAllScripts()
RemoveAllScripts() is a wrapper around webkit_user_content_manager_remove_all_scripts().
func (*UserContentManager) RemoveAllStyleSheets ¶
func (v *UserContentManager) RemoveAllStyleSheets()
RemoveAllStyleSheets() is a wrapper around webkit_user_content_manager_remove_all_style_sheets().
type UserScript ¶
type UserScript struct {
WebKitUserScript *C.WebKitUserScript
}
func UserScriptNew ¶
func UserScriptNew(source string, injectedFrames UserContentInjectedFrames, injectionTime UserScriptInjectionTime, whitelist, blacklist []string) (*UserScript, error)
UserScriptNew() is a wrapper around webkit_user_script_new().
func (*UserScript) Ref ¶
func (v *UserScript) Ref()
RefSink is a wrapper around webkit_user_script_ref(). This is for internal use.
func (*UserScript) Unref ¶
func (v *UserScript) Unref()
Unref is a wrapper around webkit_user_script_unref(). This is for internal use.
type UserScriptInjectionTime ¶
type UserScriptInjectionTime int
UserScriptInjectionTime is a wrapper around WebKitUserScriptInjectionTime.
const ( USER_SCRIPT_INJECT_AT_DOCUMENT_START UserScriptInjectionTime = C.WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START USER_SCRIPT_INJECT_AT_DOCUMENT_END UserScriptInjectionTime = C.WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_END )
type UserStyleLevel ¶
type UserStyleLevel int
UserStyleLevel is a wrapper around WebKitUserStyleLevel.
const ( USER_STYLE_LEVEL_USER UserStyleLevel = C.WEBKIT_USER_STYLE_LEVEL_USER USER_STYLE_LEVEL_AUTHOR UserStyleLevel = C.WEBKIT_USER_STYLE_LEVEL_AUTHOR )
type UserStyleSheet ¶
type UserStyleSheet struct {
WebKitUserStyleSheet *C.WebKitUserStyleSheet
}
func UserStyleSheetNew ¶
func UserStyleSheetNew(source string, injectedFrames UserContentInjectedFrames, level UserStyleLevel, whitelist, blacklist []string) (*UserStyleSheet, error)
UserStyleSheetNew() is a wrapper around webkit_user_style_sheet_new().
func (*UserStyleSheet) Ref ¶
func (v *UserStyleSheet) Ref()
RefSink is a wrapper around webkit_user_script_ref(). This is for internal use.
func (*UserStyleSheet) Unref ¶
func (v *UserStyleSheet) Unref()
Unref is a wrapper around webkit_user_script_unref(). This is for internal use.
type WebContext ¶
func WebContextGetDefault ¶
func WebContextGetDefault() (*WebContext, error)
WebContextGetDefault() is a wrapper around webkit_web_context_get_default().
func (*WebContext) ClearCache ¶
func (v *WebContext) ClearCache()
ClearCache() is a wrapper around webkit_web_context_clear_cache().
func (*WebContext) GetFaviconDatabaseDirectory ¶
func (v *WebContext) GetFaviconDatabaseDirectory() string
GetFaviconDatabaseDirectory() is a wrapper around webkit_web_context_get_favicon_database_directory().
func (*WebContext) GetProcessModel ¶
func (v *WebContext) GetProcessModel() ProcessModel
GetProcessModel() is a wrapper around webkit_web_context_get_process_model().
func (*WebContext) GetTLSErrorsPolicy ¶
func (v *WebContext) GetTLSErrorsPolicy() TLSErrorsPolicy
GetTLSErrorsPolicy() is a wrapper around webkit_web_context_get_tls_errors_policy().
func (*WebContext) PrefetchDNS ¶
func (v *WebContext) PrefetchDNS(hostname string)
PrefetchDNS() is a wrapper around webkit_web_context_prefetch_dns().
func (*WebContext) SetDiskCacheDirectory ¶
func (v *WebContext) SetDiskCacheDirectory(dir string)
SetDiskCacheDirectory() is a wrapper around webkit_web_context_set_disk_cache_directory().
func (*WebContext) SetFaviconDatabaseDirectory ¶
func (v *WebContext) SetFaviconDatabaseDirectory(path string)
SetFaviconDatabaseDirectory() is a wrapper around webkit_web_context_set_favicon_database_directory().
func (*WebContext) SetProcessModel ¶
func (v *WebContext) SetProcessModel(model ProcessModel)
SetProcessModel() is a wrapper around webkit_web_context_set_process_model().
func (*WebContext) SetTLSErrorsPolicy ¶
func (v *WebContext) SetTLSErrorsPolicy(policy TLSErrorsPolicy)
SetTLSErrorsPolicy() is a wrapper around webkit_web_context_set_tls_errors_policy().
type WebView ¶
func WebViewNew ¶
WebViewNew() is a wrapper around webkit_web_view_new().
func WebViewNewWithContext ¶
func WebViewNewWithContext(context *WebContext) (*WebView, error)
WebViewNewWithContext() is a wrapper around webkit_web_view_new_with_context().
func WebViewNewWithRelatedView ¶
WebViewNewWithRelatedView() is a wrapper around webkit_web_view_new_with_related_view().
func WebViewNewWithSettings ¶
WebViewNewWithSettings() is a wrapper around webkit_web_view_new_with_settings().
func WebViewNewWithUserContentManager ¶
func WebViewNewWithUserContentManager(manager *UserContentManager) (*WebView, error)
WebViewNewWithUserContentManager() is a wrapper around webkit_web_view_new_with_user_content_manager().
func (*WebView) CanGoForward ¶
CanGoForward() is a wrapper around webkit_web_view_can_go_forward().
func (*WebView) CanShowMimeType ¶
CanShowMimeType is a wrapper around webkit_web_view_can_show_mime_type().
func (*WebView) GetContext ¶
func (v *WebView) GetContext() *WebContext
GetContext() is a wrapper around webkit_web_view_get_context().
func (*WebView) GetCustomCharset ¶
GetCustomCharset() is a wrapper around webkit_web_view_get_custom_charset().
func (*WebView) GetEstimatedProgress ¶
GetEstimatedProgress() is a wrapper around webkit_web_view_get_estimated_load_progress().
func (*WebView) GetSettings ¶
GetSettings() is a wrapper around webkit_web_view_get_settings().
func (*WebView) GetUserContentManager ¶
func (v *WebView) GetUserContentManager() *UserContentManager
GetUserContentManager() is a wrapper around webkit_web_view_get_user_content_manager().
func (*WebView) GetWindowProperties ¶
func (v *WebView) GetWindowProperties() *WindowProperties
GetWindowProperties() is a wrapper around webkit_web_view_get_window_properties().
func (*WebView) GetZoomLevel ¶
GetZoomLevel() is a wrapper around webkit_web_view_get_zoom_level().
func (*WebView) GoBack ¶
func (v *WebView) GoBack()
GoBack() is a wrapper around webkit_web_view_go_back().
func (*WebView) GoForward ¶
func (v *WebView) GoForward()
GoForward() is a wrapper around webkit_web_view_go_forward().
func (*WebView) LoadAlternateHtml ¶
LoadAlternateHtml() is a wrapper around webkit_web_view_load_alternate_html().
func (*WebView) LoadPlainText ¶
LoadPlainText() is a wrapper around webkit_web_view_load_plain_text().
func (*WebView) Reload ¶
func (v *WebView) Reload()
Reload() is a wrapper around webkit_web_view_reload(),
func (*WebView) ReloadBypassCache ¶
func (v *WebView) ReloadBypassCache()
ReloadBypassCache() is a wrapper around webkit_web_view_reload_bypass_cache().
func (*WebView) SetCustomCharset ¶
SetCustomCharset() is a wrapper around webkit_web_view_set_custom_charset().
func (*WebView) SetSettings ¶
SetSettings() is a wrapper around webkit_web_view_set_settings().
func (*WebView) SetZoomLevel ¶
func (*WebView) StopLoading ¶
func (v *WebView) StopLoading()
StopLoading() is a wrapper around webkit_web_view_stop_loading().