WPEWebExtension – 1.1
Description: Reference for WPEWebExtension-1.1

### Namespace

# WPEWebExtension – 1.1

The WPE WebKit web extension and DOM library

Version | 2.40.5
Authors | The WebKit GTK and WPE teams
License | BSD, LGPL-2.1
Website | https://webkit.org
Source |

#### Build

C headers | `wpe/wpe-web-extension.h`
pkg-config files | `wpe-web-extension-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 Hierarchy

#### Classes

ContextMenu | Represents the context menu in a `WebKitWebView`.
ContextMenuItem | One item of a `WebKitContextMenu`.
DOMDocument |
DOMElement |
DOMNode |
DOMObject |
Frame | A web page frame. since: 2.26
HitTestResult | Result of a Hit Test.
ScriptWorld |
URIRequest | Represents a URI request.
URIResponse | Represents an URI response.
UserMessage | Message that can be sent between the UI process and web process extensions. since: 2.28
WebEditor | Access to editing capabilities of a `WebKitWebPage`. since: 2.10
WebExtension | Represents an extension of the WebProcess.
WebFormManager | Form manager of a `WebKitWebPage` in a `WebKitScriptWorld`. since: 2.40
WebHitTestResult | Result of a Hit Test (Web Process Extensions). since: 2.8
WebPage | A loaded web page.

#### Structs

ConsoleMessage |

#### Enumerations

ConsoleMessageLevel | Enum values used to denote the various levels of console messages. deprecated: 2.40 since: 2.12
ConsoleMessageSource | Enum values used to denote the various sources of console messages. deprecated: 2.40 since: 2.12
ContextMenuAction | Enum values used to denote the stock actions for `WebKitContextMenuItem`s.
FormSubmissionStep | Used to indicate a particular stage in form submission. See `WebKitWebPage::will-submit-form`. deprecated: 2.40 since: 2.20
UserMessageError | Enum values used to denote errors happening when sending user messages. since: 2.28

#### Bitfields

HitTestResultContext | Enum values with flags representing the context of a `WebKitHitTestResult`.

#### Callbacks

WebExtensionInitializeFunction | Type definition for a function that will be called to initialize the web extension when the web process starts.
WebExtensionInitializeWithUserDataFunction | Type definition for a function that will be called to initialize the web extensions when the web process starts, and which receives as additional argument the user data set with webkit_web_context_set_web_extensions_initialization_user_data(). since: 2.4

#### Function Macros

DEPRECATED_FOR |
DOM_DOCUMENT |
DOM_DOCUMENT_CLASS |
DOM_ELEMENT |
DOM_ELEMENT_CLASS |
DOM_NODE |
DOM_NODE_CLASS |
DOM_OBJECT |
DOM_OBJECT_CLASS |
URI_REQUEST |
URI_REQUEST_CLASS |
URI_RESPONSE |
URI_RESPONSE_CLASS |