webkit

package
v0.0.0-...-e0143e0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2014 License: ISC Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
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

func CheckVersion(major, minor, micro uint) bool

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

type Settings struct {
	*glib.Object
}

func SettingsNew

func SettingsNew() (*Settings, error)

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.

type UserContentManager

type UserContentManager struct {
	*glib.Object
}

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

type WebContext struct {
	*glib.Object
}

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

type WebView struct {
	gtk.Container
}

func WebViewNew

func WebViewNew() (*WebView, error)

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

func WebViewNewWithRelatedView(view *WebView) (*WebView, error)

WebViewNewWithRelatedView() is a wrapper around webkit_web_view_new_with_related_view().

func WebViewNewWithSettings

func WebViewNewWithSettings(settings *Settings) (*WebView, error)

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) CanGoBack

func (v *WebView) CanGoBack() bool

CanGoBack() is a wrapper around webkit_web_view_can_go_back().

func (*WebView) CanGoForward

func (v *WebView) CanGoForward() bool

CanGoForward() is a wrapper around webkit_web_view_can_go_forward().

func (*WebView) CanShowMimeType

func (v *WebView) CanShowMimeType(mime string) bool

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

func (v *WebView) GetCustomCharset() string

GetCustomCharset() is a wrapper around webkit_web_view_get_custom_charset().

func (*WebView) GetEstimatedProgress

func (v *WebView) GetEstimatedProgress() float64

GetEstimatedProgress() is a wrapper around webkit_web_view_get_estimated_load_progress().

func (*WebView) GetPageID

func (v *WebView) GetPageID() uint64

GetPageId() is a wrapper around webkit_web_view_get_page_id().

func (*WebView) GetSettings

func (v *WebView) GetSettings() *Settings

GetSettings() is a wrapper around webkit_web_view_get_settings().

func (*WebView) GetTitle

func (v *WebView) GetTitle() string

GetTitle() is a wrapper around webkit_web_view_get_title().

func (*WebView) GetURI

func (v *WebView) GetURI() string

GetUri() is a wrapper around webkit_web_view_get_uri().

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

func (v *WebView) GetZoomLevel() float64

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) IsLoading

func (v *WebView) IsLoading() bool

IsLoading() is a wrapper around webkit_web_view_is_loading().

func (*WebView) LoadAlternateHtml

func (v *WebView) LoadAlternateHtml(content, contentUri, baseUri string)

LoadAlternateHtml() is a wrapper around webkit_web_view_load_alternate_html().

func (*WebView) LoadBytes

func (v *WebView) LoadBytes(bytes []byte, mimeType, encoding, baseUri string)

LoadBytes() is a wrapper around webkit_web_view_load_bytes().

func (*WebView) LoadHTML

func (v *WebView) LoadHTML(content, baseUri string)

LoadHtml() is a wrapper around webkit_web_view_load_html().

func (*WebView) LoadPlainText

func (v *WebView) LoadPlainText(text string)

LoadPlainText() is a wrapper around webkit_web_view_load_plain_text().

func (*WebView) LoadURI

func (v *WebView) LoadURI(uri string)

LoadUri() is a wrapper around webkit_web_view_load_uri().

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

func (v *WebView) SetCustomCharset(charset string)

SetCustomCharset() is a wrapper around webkit_web_view_set_custom_charset().

func (*WebView) SetSettings

func (v *WebView) SetSettings(settings *Settings)

SetSettings() is a wrapper around webkit_web_view_set_settings().

func (*WebView) SetZoomLevel

func (v *WebView) SetZoomLevel(zoom float64)

func (*WebView) StopLoading

func (v *WebView) StopLoading()

StopLoading() is a wrapper around webkit_web_view_stop_loading().

type WindowProperties

type WindowProperties struct {
	*glib.Object
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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