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

Modules

Structs

Enums

  • 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 #WebKitContextMenuItems
  • 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.
  • Enum values used to denote the various download errors.
  • Enum values used to denote the various errors related to the #WebKitFaviconDatabase.
  • 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 errors happening when executing JavaScript
  • 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 media errors.
  • Enum values used to denote the various navigation types.
  • Enum values used to denote the various network errors.
  • 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 used to denote the various policy errors.
  • Enum values used to denote the various print errors.
  • Enum values representing the response of the print dialog shown with webkit_print_operation_run_dialog().
  • 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 denote errors happening when creating snapshots of #WebKitWebView
  • Enum values used to specify the region from which to get a #WebKitWebView snapshot
  • Enum values used to denote the TLS errors policy.
  • Errors that can occur while compiling content filters.
  • Specifies in which frames user style sheets are to be inserted in.
  • Enum values used to denote errors happening when sending user messages.
  • 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.

Statics

  • 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.