Settings
Help

Crate webkit6

Crate webkit6 

Source
Expand description

§Migration to GTK4 api

Upstream webkit2gtk project has a document to help with the migration to the GTK4 api: https://webkitgtk.org/reference/webkit2gtk/unstable/migrating-to-webkitgtk-6.0.html

Re-exports§

pub use ffi;
pub use gdk;
pub use gio;
pub use glib;
pub use gtk;
pub use javascriptcore;
pub use soup;

Modules§

functions
prelude

Structs§

ApplicationInfo
Information about an application running in automation mode.
AuthenticationRequest
Represents an authentication request.
AutomationSession
Automation Session.
BackForwardList
List of visited pages.
BackForwardListItem
One item of the #WebKitBackForwardList.
ClipboardPermissionRequestv2_42
A permission request for reading clipboard contents.
ColorChooserRequest
A request to open a color chooser.
ContextMenu
Represents the context menu in a #WebKitWebView.
ContextMenuItem
One item of a #WebKitContextMenu.
CookieManager
Defines how to handle cookies in a #WebKitWebContext.
Credential
Groups information used for user authentication.
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.
EditorTypingAttributes
Enum values with flags representing typing attributes.
FaviconDatabase
Provides access to the icons associated with web sites.
Featurev2_42
Describes a web engine feature that may be toggled at runtime.
FeatureListv2_42
Contains a set of toggle-able web engine features.
FileChooserRequest
A request to open a file chooser.
FindController
Controls text search in a #WebKitWebView.
FindOptions
Enum values used to specify search options.
FormSubmissionRequest
Represents a form submission request.
GeolocationManager
Geolocation manager.
GeolocationPermissionRequest
A permission request for sharing the user’s location.
GeolocationPosition
An opaque struct to provide position updates to a #WebKitGeolocationManager.
HitTestResult
Result of a Hit Test.
HitTestResultContext
Enum values with flags representing the context of a #WebKitHitTestResult.
ITPFirstParty
Describes a first party origin.
ITPThirdParty
Describes a third party origin.
InputHints
Enum values used to describe hints that might be taken into account by input methods.
InputMethodContext
Base class for input method contexts.
InputMethodUnderline
Range of text in an preedit string to be shown underlined.
MediaKeySystemPermissionRequest
A permission request for using an EME Content Decryption Module.
MemoryPressureSettings
A boxed type representing the settings for the memory pressure handler
NavigationAction
Provides details about interaction resulting in a resource load.
NavigationPolicyDecision
A policy decision for navigation actions.
NetworkProxySettings
Configures network proxies.
NetworkSession
Manages network configuration.
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.
OptionMenuItem
One item of a #WebKitOptionMenu.
PermissionRequest
A permission request.
PermissionStateQuery
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.
PointerLockPermissionRequest
A permission request for locking the pointer.
PolicyDecision
A pending policy decision.
PrintOperation
Controls a print operation.
ResponsePolicyDecision
A policy decision for resource responses.
ScriptDialog
Carries details to be shown in user-facing dialogs.
ScriptMessageReply
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.
SecurityManager
Controls security settings in a #WebKitWebContext.
SecurityOrigin
A security boundary for websites.
Settings
Control the behaviour of a #WebKitWebView.
SnapshotOptions
Enum values used to specify options when taking a snapshot from a #WebKitWebView.
URIRequest
Represents a URI request.
URIResponse
Represents an URI response.
URISchemeRequest
Represents a URI scheme request.
URISchemeResponse
Represents a URI scheme response.
UserContentFilter
A compiled set of rules which applied to resource loads.
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 process extensions.
UserScript
A JavaScript snippet which can be injected in loaded pages.
UserStyleSheet
A CSS style sheet which can be injected in loaded pages.
WebContext
Manages aspects common to all #WebKitWebViews
WebExtensionMatchPatternv2_48
Represents a way to specify a group of URLs for use in WebExtensions.
WebExtensionMatchPatternOptionsv2_48
Enum values representing matching options.
WebInspector
Access to the WebKit inspector.
WebResource
Represents a resource at the end of a URI.
WebView
The central class of the WPE WebKit and WebKitGTK APIs.
WebViewBase
Implements
WebViewSessionState
Handles serialization of a web view’s browsing state.
WebsiteData
Data stored locally by a web site.
WebsiteDataAccessPermissionRequest
A permission request for accessing website data from third-party domains.
WebsiteDataManager
Manages data stored locally by web sites.
WebsiteDataTypes
Enum values with flags representing types of Website data.
WebsitePolicies
View specific website policies.
WindowProperties
Window properties of a #WebKitWebView.

Enums§

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.
DownloadError
Enum values used to denote the various download errors.
FaviconDatabaseError
Enum values used to denote the various errors related to the #WebKitFaviconDatabase.
FeatureStatusv2_42
Describes the status of a WebKitFeature.
HardwareAccelerationPolicy
Enum values used for determining the hardware acceleration policy.
InputPurpose
Enum values used to describe the primary purpose of the active editable element.
InsecureContentEventDeprecated
Enum values previously used to denote the different events which can trigger the detection of insecure content. Since 2.46, WebKit generally no longer loads insecure content in secure contexts.
JavascriptError
Enum values used to denote errors happening when executing JavaScript
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.
MediaError
Enum values used to denote the various media errors.
NavigationType
Enum values used to denote the various navigation types.
NetworkError
Enum values used to denote the various network errors.
NetworkProxyMode
Enum values used to set the network proxy mode.
PermissionState
Enum values representing query permission results.
PolicyDecisionType
Enum values used for determining the type of a policy decision during #WebKitWebView::decide-policy.
PolicyError
Enum values used to denote the various policy errors.
PrintError
Enum values used to denote the various print errors.
PrintOperationResponse
Enum values representing the response of the print dialog shown with webkit_print_operation_run_dialog().
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
SnapshotError
Enum values used to denote errors happening when creating snapshots of #WebKitWebView
SnapshotRegion
Enum values used to specify the region from which to get a #WebKitWebView snapshot
TLSErrorsPolicy
Enum values used to denote the TLS errors policy.
UserContentFilterError
Errors that can occur while compiling content filters.
UserContentInjectedFrames
Specifies in which frames user style sheets are to be inserted in.
UserMessageError
Enum values used to denote errors happening when sending user messages.
UserScriptInjectionTime
Specifies at which place of documents an user script will be inserted.
UserStyleLevel
Specifies how to treat an user style sheet.
WebExtensionMatchPatternError
Enum values used to denote errors happening when creating a #WebKitWebExtensionMatchPattern
WebExtensionMode
Enum values used for setting if a #WebKitWebView is intended for WebExtensions.
WebProcessTerminationReason
Enum values used to specify the reason why the web process terminated abnormally.

Statics§

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.