Namespace

WPEWebKit – 1.1

The WPE WebKit library

Version2.35.1
AuthorsThe WebKit GTK and WPE teams
LicenseBSD, LGPL-2.1
Websitehttps://webkit.org
Source

Build

C headerswpe/webkit.h
pkg-config fileswpe-webkit-1.1

Dependencies

GObject—2.0 The base type system library
Browse documentation
Gio—2.0 GObject Interfaces and Objects, Networking, IPC, and I/O
Browse documentation
Soup—3.0 HTTP client/server library
Browse documentation

Additional documentation

Classes

AuthenticationRequest

Represents an authentication request.

AutomationSession

Automation Session.

BackForwardList

List of visited pages.

BackForwardListItem

One item of the WebKitBackForwardList.

ContextMenu

Represents the context menu in a WebKitWebView.

ContextMenuItem

One item of a WebKitContextMenu.

CookieManager

Defines how to handle cookies in a WebKitWebContext.

DeviceInfoPermissionRequest

A permission request for accessing user’s audio/video devices.

Download

Object used to communicate with the application when downloading.

EditorState

Web editor state.

FaviconDatabase

Provides access to the icons associated with web sites.

FileChooserRequest

A request to open a file chooser.

FindController

Controls text search in a WebKitWebView.

FormSubmissionRequest

Represents a form submission request.

GeolocationManager

Geolocation manager.

GeolocationPermissionRequest

A permission request for sharing the user’s location.

HitTestResult

Result of a Hit Test.

InputMethodContext

Base class for input method contexts.

InstallMissingMediaPluginsPermissionRequest

A permission request for installing missing media plugins.

MediaKeySystemPermissionRequest

A permission request for using an EME Content Decryption Module.

NavigationPolicyDecision

A policy decision for navigation actions.

Notification

Holds information about a notification that should be shown to the user.

NotificationPermissionRequest

A permission request for displaying web notifications.

OptionMenu

Represents the dropdown menu of a select element in a WebKitWebView.

Plugin

Represents a plugin, enabling fine-grained control.

PolicyDecision

A pending policy decision.

ResponsePolicyDecision

A policy decision for resource responses.

SecurityManager

Controls security settings in a WebKitWebContext.

Settings

Control the behaviour of a WebKitWebView.

URIRequest

Represents a URI request.

URIResponse

Represents an URI response.

URISchemeRequest

Represents a URI scheme request.

URISchemeResponse

Represents a URI scheme response.

UserContentFilterStore

Handles storage of user content filters on disk.

UserContentManager

Manages user-defined content which affects web pages.

UserMediaPermissionRequest

A permission request for accessing user’s audio/video devices.

UserMessage

Message that can be sent between the UI process and web extensions.

WebContext

Manages aspects common to all WebKitWebViews.

WebResource

Represents a resource at the end of a URI.

WebsiteDataAccessPermissionRequest

A permission request for accessing website data from third-party domains.

WebsiteDataManager

Manages data stored locally by web sites.

WebsitePolicies

View specific website policies.

WebView

The central class of the WPE WebKit and WebKitGTK APIs.

WindowProperties

Window properties of a WebKitWebView.

Interfaces

PermissionRequest

A permission request.

Structs

ApplicationInfo

Information about an application running in automation mode.

Color

Boxed type representing a RGBA color.

Credential

Groups information used for user authentication.

GeolocationPosition

WebKitGeolocationPosition is an opaque struct used to provide position updates to a WebKitGeolocationManager using webkit_geolocation_manager_update_position().

InputMethodUnderline

Range of text in an preedit string to be shown underlined.

ITPFirstParty

Describes a first party origin.

ITPThirdParty

Describes a third party origin.

JavascriptResult

Result of JavaScript evaluation in a web view.

MemoryPressureSettings

A boxed type representing the settings for the memory pressure handler.

MimeInfo

Information about a MIME type.

NavigationAction

Provides details about interaction resulting in a resource load.

NetworkProxySettings

Configures network proxies.

OptionMenuItem

One item of a WebKitOptionMenu.

Rectangle

Boxed type representing a rectangle with integer coordiantes.

ScriptDialog

Carries details to be shown in user-facing dialogs.

SecurityOrigin

A security boundary for websites.

UserContentFilter

A compiled set of rules which applied to resource loads.

UserScript

A JavaScript snippet which can be injected in loaded pages.

UserStyleSheet

A CSS style sheet which can be injected in loaded pages.

WebsiteData

Data stored locally by a web site.

WebViewBackend

A web view backend.

WebViewSessionState

Handles serialization of a web view’s browsing state.

Enumerations

AuthenticationScheme

Enum values representing the authentication scheme.

AutomationBrowsingContextPresentation

Enum values used for determining the automation browsing context presentation.

AutoplayPolicy

Enum values used to specify autoplay policies.

CacheModel

Enum values used for determining the WebKitWebContext cache model.

ContextMenuAction

Enum values used to denote the stock actions for WebKitContextMenuItems.

CookieAcceptPolicy

Enum values used to denote the cookie acceptance policies.

CookiePersistentStorage

Enum values used to denote the cookie persistent storage types.

CredentialPersistence

Enum values representing the duration for which a credential persists.

InputPurpose

Enum values used to describe the primary purpose of the active editable element.

InsecureContentEvent

Enum values used to denote the different events which can trigger the detection of insecure content.

LoadEvent

Enum values used to denote the different events that happen during a WebKitWebView load operation.

MediaCaptureState

Enum values used to specify the capture state of a media device.

NavigationType

Enum values used to denote the various navigation types.

NetworkProxyMode

Enum values used to set the network proxy mode.

PolicyDecisionType

Enum values used for determining the type of a policy decision during WebKitWebView::decide-policy.

ProcessModel

Enum values used for determining the WebKitWebContext process model.

SaveMode

Enum values to specify the different ways in which a WebKitWebView can save its current web page into a self-contained file.

ScriptDialogType

Enum values used for determining the type of WebKitScriptDialog.

TLSErrorsPolicy

Enum values used to denote the TLS errors policy.

UserContentInjectedFrames

Specifies in which frames user style sheets are to be inserted in.

UserScriptInjectionTime

Specifies at which place of documents an user script will be inserted.

UserStyleLevel

Specifies how to treat an user style sheet.

WebProcessTerminationReason

Enum values used to specify the reason why the web process terminated abnormally.

Bitfields

EditorTypingAttributes

Enum values with flags representing typing attributes.

FindOptions

Enum values used to specify search options.

HitTestResultContext

Enum values with flags representing the context of a WebKitHitTestResult.

InputHints

Enum values used to describe hints that might be taken into account by input methods.

WebsiteDataTypes

Enum values with flags representing types of Website data.

Error Domains

DownloadError

Enum values used to denote the various download errors.

FaviconDatabaseError

Enum values used to denote the various errors related to the WebKitFaviconDatabase.

JavascriptError

Enum values used to denote errors happening when executing JavaScript.

NetworkError

Enum values used to denote the various network errors.

PluginError

Enum values used to denote the various plugin and media errors.

PolicyError

Enum values used to denote the various policy errors.

SnapshotError

Enum values used to denote errors happening when creating snapshots of WebKitWebView.

UserContentFilterError

Errors that can occur while compiling content filters.

UserMessageError

Enum values used to denote errors happening when sending user messages.

Callbacks

FrameDisplayedCallback

Callback to be called when a frame is displayed in a #webKitWebView.

URISchemeRequestCallback

Type definition for a function that will be called back when an URI request is made for a user registered URI scheme.

Functions

get_major_version

Returns the major version number of the WebKit library. (e.g. in WebKit version 1.8.3 this is 1.)

get_micro_version

Returns the micro version number of the WebKit library. (e.g. in WebKit version 1.8.3 this is 3.)

get_minor_version

Returns the minor version number of the WebKit library. (e.g. in WebKit version 1.8.3 this is 8.)

media_key_system_permission_get_name

Get the key system for which access permission is being requested.

uri_for_display

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.

user_media_permission_is_for_audio_device

Check whether the permission request is for an audio device.

user_media_permission_is_for_display_device

Check whether the permission request is for a display device.

user_media_permission_is_for_video_device

Check whether the permission request is for a video device.

Function Macros

CHECK_VERSION

Check the version of the WebKit headers at compilation time.

DEPRECATED_FOR

Marks a symbol as deprecated, indicating a replacement.

URI_REQUEST
URI_REQUEST_CLASS
URI_RESPONSE
URI_RESPONSE_CLASS
URI_SCHEME_REQUEST
URI_SCHEME_REQUEST_CLASS
URI_SCHEME_RESPONSE
URI_SCHEME_RESPONSE_CLASS

Constants

EDITING_COMMAND_COPY

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_CREATE_LINK

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_CUT

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_INSERT_IMAGE

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_PASTE

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_AS_PLAIN_TEXT

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_REDO

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_SELECT_ALL

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_UNDO

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.

MAJOR_VERSION

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.

MICRO_VERSION

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.

MINOR_VERSION

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.