Namespace
WebKit2 – 4.1
The WebKit library
Build
webkit2/webkit2.h
webkit2gtk-4.1
Dependencies
Additional documentation
Classes
Represents an authentication request.
Automation Session.
List of visited pages.
One item of the WebKitBackForwardList
.
A permission request for reading clipboard contents.
A request to open a color chooser.
Represents the context menu in a WebKitWebView
.
One item of a WebKitContextMenu
.
Defines how to handle cookies in a WebKitWebContext
.
A permission request for accessing user’s audio/video devices.
Object used to communicate with the application when downloading.
Web editor state.
Provides access to the icons associated with web sites.
A request to open a file chooser.
Controls text search in a WebKitWebView
.
Represents a form submission request.
Geolocation manager.
A permission request for sharing the user’s location.
Result of a Hit Test.
Base class for input method contexts.
Previously, a permission request for installing missing media plugins.
A permission request for using an EME Content Decryption Module.
A policy decision for navigation actions.
Holds information about a notification that should be shown to the user.
A permission request for displaying web notifications.
Represents the dropdown menu of a select
element in a WebKitWebView
.
Represents a plugin, enabling fine-grained control.
A permission request for locking the pointer.
A pending policy decision.
Allows to embed a custom widget in print dialog.
Controls a print operation.
A policy decision for resource responses.
Controls security settings in a WebKitWebContext
.
Control the behaviour of a WebKitWebView
.
Represents a URI request.
Represents an URI response.
Represents a URI scheme request.
Represents a URI scheme response.
Handles storage of user content filters on disk.
Manages user-defined content which affects web pages.
A permission request for accessing user’s audio/video devices.
Message that can be sent between the UI process and web process extensions.
Manages aspects common to all WebKitWebView
s.
Access to the WebKit inspector.
Represents a resource at the end of a URI.
A permission request for accessing website data from third-party domains.
Manages data stored locally by web sites.
View specific website policies.
The central class of the WPE WebKit and WebKitGTK APIs.
Window properties of a WebKitWebView
.
Interfaces
A permission request.
Structs
Information about an application running in automation mode.
Groups information used for user authentication.
Describes a web engine feature that may be toggled at runtime.
Contains a set of toggle-able web engine features.
An opaque struct to provide position updates to a WebKitGeolocationManager
.
Range of text in an preedit string to be shown underlined.
Describes a first party origin.
Describes a third party origin.
Result of JavaScript evaluation in a web view.
A boxed type representing the settings for the memory pressure handler.
Information about a MIME type.
Provides details about interaction resulting in a resource load.
Configures network proxies.
One item of a WebKitOptionMenu
.
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.
Carries details to be shown in user-facing dialogs.
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.
A security boundary for websites.
A compiled set of rules which applied to resource loads.
A JavaScript snippet which can be injected in loaded pages.
A CSS style sheet which can be injected in loaded pages.
Data stored locally by a web site.
Handles serialization of a web view’s browsing state.
Enumerations
Enum values representing the authentication scheme.
Enum values used for determining the automation browsing context presentation.
Enum values used to specify autoplay policies.
Enum values used for determining the WebKitWebContext
cache model.
Enum values used to denote the stock actions for
WebKitContextMenuItem
s.
Enum values used to denote the cookie acceptance policies.
Enum values used to denote the cookie persistent storage types.
Enum values representing the duration for which a credential persists.
Describes the status of a WebKitFeature
.
Enum values used for determining the hardware acceleration policy.
Enum values used to describe the primary purpose of the active editable element.
Enum values used to denote the different events which can trigger the detection of insecure content.
Enum values used to denote the different events that happen during a
WebKitWebView
load operation.
Enum values used to specify the capture state of a media device.
Enum values used to denote the various navigation types.
Enum values used to set the network proxy mode.
Enum values representing query permission results.
Enum values used for determining the type of a policy decision during
WebKitWebView::decide-policy
.
Enum values representing the response of the print dialog shown with webkit_print_operation_run_dialog().
Enum values used for determining the WebKitWebContext
process model.
Enum values to specify the different ways in which a WebKitWebView
can save its current web page into a self-contained file.
Enum values used for determining the type of WebKitScriptDialog
.
Enum values used to specify the region from which to get a WebKitWebView
snapshot.
Enum values used to denote the TLS errors policy.
Specifies in which frames user style sheets are to be inserted in.
Specifies at which place of documents an user script will be inserted.
Specifies how to treat an user style sheet.
Enum values used for setting if a WebKitWebView
is intended for WebExtensions.
Enum values used to specify the reason why the web process terminated abnormally.
Bitfields
Enum values with flags representing typing attributes.
Enum values used to specify search options.
Enum values with flags representing the context of a WebKitHitTestResult
.
Enum values used to describe hints that might be taken into account by input methods.
Enum values used to specify options when taking a snapshot
from a WebKitWebView
.
Enum values with flags representing types of Website data.
Error Domains
Enum values used to denote the various download errors.
Enum values used to denote the various errors related to the WebKitFaviconDatabase
.
Enum values used to denote errors happening when executing JavaScript.
Enum values used to denote the various network errors.
Enum values used to denote the various plugin and media errors.
Enum values used to denote the various policy errors.
Enum values used to denote the various print errors.
Enum values used to denote errors happening when creating snapshots of WebKitWebView
.
Errors that can occur while compiling content filters.
Enum values used to denote errors happening when sending user messages.
Callbacks
Type definition for a function that will be called back when an URI request is made for a user registered URI scheme.
Functions
Returns the major version number of the WebKit library.
Returns the micro version number of the WebKit library.
Returns the minor version number of the WebKit library.
Get the key system for which access permission is being requested.
Use this function to format a URI for display.
Check whether the permission request is for an audio device.
Check whether the permission request is for a display device.
Check whether the permission request is for a video device.
Function Macros
Check the version of the WebKit headers at compilation time.
Marks a symbol as deprecated, indicating a replacement.
Constants
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
.
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()
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.
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().
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.
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.
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.
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().
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.
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.
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.
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.