WebKitWebView

WebKitWebView

Functions

GtkWidget * webkit_web_view_new ()
GtkWidget * webkit_web_view_new_with_context ()
GtkWidget * webkit_web_view_new_with_related_view ()
GtkWidget * webkit_web_view_new_with_settings ()
GtkWidget * webkit_web_view_new_with_user_content_manager ()
gboolean webkit_web_view_is_ephemeral ()
gboolean webkit_web_view_is_controlled_by_automation ()
WebKitWebContext * webkit_web_view_get_context ()
WebKitUserContentManager * webkit_web_view_get_user_content_manager ()
WebKitWebsiteDataManager * webkit_web_view_get_website_data_manager ()
void webkit_web_view_try_close ()
void webkit_web_view_load_uri ()
void webkit_web_view_load_html ()
void webkit_web_view_load_alternate_html ()
void webkit_web_view_load_plain_text ()
void webkit_web_view_load_bytes ()
void webkit_web_view_load_request ()
gboolean webkit_web_view_can_go_back ()
void webkit_web_view_go_back ()
gboolean webkit_web_view_can_go_forward ()
void webkit_web_view_go_forward ()
const gchar * webkit_web_view_get_title ()
guint64 webkit_web_view_get_page_id ()
void webkit_web_view_reload ()
void webkit_web_view_reload_bypass_cache ()
void webkit_web_view_stop_loading ()
gboolean webkit_web_view_is_loading ()
gboolean webkit_web_view_is_playing_audio ()
gdouble webkit_web_view_get_estimated_load_progress ()
const gchar * webkit_web_view_get_custom_charset ()
void webkit_web_view_set_custom_charset ()
WebKitBackForwardList * webkit_web_view_get_back_forward_list ()
void webkit_web_view_go_to_back_forward_list_item ()
const gchar * webkit_web_view_get_uri ()
cairo_surface_t * webkit_web_view_get_favicon ()
void webkit_web_view_set_settings ()
WebKitSettings * webkit_web_view_get_settings ()
WebKitWindowProperties * webkit_web_view_get_window_properties ()
void webkit_web_view_set_zoom_level ()
gdouble webkit_web_view_get_zoom_level ()
void webkit_web_view_can_execute_editing_command ()
gboolean webkit_web_view_can_execute_editing_command_finish ()
void webkit_web_view_execute_editing_command ()
void webkit_web_view_execute_editing_command_with_argument ()
WebKitFindController * webkit_web_view_get_find_controller ()
WebKitWebInspector * webkit_web_view_get_inspector ()
JSGlobalContextRef webkit_web_view_get_javascript_global_context ()
void webkit_web_view_run_javascript ()
WebKitJavascriptResult * webkit_web_view_run_javascript_finish ()
void webkit_web_view_run_javascript_from_gresource ()
WebKitJavascriptResult * webkit_web_view_run_javascript_from_gresource_finish ()
gboolean webkit_web_view_can_show_mime_type ()
void webkit_web_view_save ()
GInputStream * webkit_web_view_save_finish ()
void webkit_web_view_save_to_file ()
gboolean webkit_web_view_save_to_file_finish ()
WebKitDownload * webkit_web_view_download_uri ()
gboolean webkit_web_view_get_tls_info ()
void webkit_web_view_get_snapshot ()
cairo_surface_t * webkit_web_view_get_snapshot_finish ()
void webkit_web_view_set_background_color ()
void webkit_web_view_get_background_color ()
void webkit_web_view_set_editable ()
gboolean webkit_web_view_is_editable ()
WebKitEditorState * webkit_web_view_get_editor_state ()
WebKitWebViewSessionState * webkit_web_view_get_session_state ()
void webkit_web_view_restore_session_state ()
WebKitJavascriptResult * webkit_javascript_result_ref ()
void webkit_javascript_result_unref ()
JSGlobalContextRef webkit_javascript_result_get_global_context ()
JSValueRef webkit_javascript_result_get_value ()
WebKitScriptDialogType webkit_script_dialog_get_dialog_type ()
const gchar * webkit_script_dialog_get_message ()
void webkit_script_dialog_confirm_set_confirmed ()
const gchar * webkit_script_dialog_prompt_get_default_text ()
void webkit_script_dialog_prompt_set_text ()
WebKitWebResource * webkit_web_view_get_main_resource ()
WebKitWebViewSessionState * webkit_web_view_session_state_new ()
WebKitWebViewSessionState * webkit_web_view_session_state_ref ()
void webkit_web_view_session_state_unref ()
GBytes * webkit_web_view_session_state_serialize ()

Properties

gboolean editable Read / Write
gdouble estimated-load-progress Read
gpointer favicon Read
gboolean is-controlled-by-automation Read / Write / Construct Only
gboolean is-ephemeral Read / Write / Construct Only
gboolean is-loading Read
gboolean is-playing-audio Read
WebKitWebView * related-view Write / Construct Only
WebKitSettings * settings Write / Construct
gchar * title Read
gchar * uri Read
WebKitUserContentManager * user-content-manager Read / Write / Construct Only
WebKitWebContext * web-context Read / Write / Construct Only
gdouble zoom-level Read / Write

Signals

Types and Values

Object Hierarchy

    GBoxed
    ├── WebKitJavascriptResult
    ├── WebKitScriptDialog
    ╰── WebKitWebViewSessionState
    GObject
    ╰── GInitiallyUnowned
        ╰── GtkWidget
            ╰── GtkContainer
                ╰── WebKitWebViewBase
                    ╰── WebKitWebView

Implemented Interfaces

WebKitWebView implements AtkImplementorIface and GtkBuildable.

Description

Functions

webkit_web_view_new ()

GtkWidget *
webkit_web_view_new (void);

webkit_web_view_new_with_context ()

GtkWidget *
webkit_web_view_new_with_context (WebKitWebContext *context);

webkit_web_view_new_with_related_view ()

GtkWidget *
webkit_web_view_new_with_related_view (WebKitWebView *web_view);

webkit_web_view_new_with_settings ()

GtkWidget *
webkit_web_view_new_with_settings (WebKitSettings *settings);

webkit_web_view_new_with_user_content_manager ()

GtkWidget *
webkit_web_view_new_with_user_content_manager
                               (WebKitUserContentManager *user_content_manager);

webkit_web_view_is_ephemeral ()

gboolean
webkit_web_view_is_ephemeral (WebKitWebView *web_view);

webkit_web_view_is_controlled_by_automation ()

gboolean
webkit_web_view_is_controlled_by_automation
                               (WebKitWebView *web_view);

webkit_web_view_get_context ()

WebKitWebContext *
webkit_web_view_get_context (WebKitWebView *web_view);

webkit_web_view_get_user_content_manager ()

WebKitUserContentManager *
webkit_web_view_get_user_content_manager
                               (WebKitWebView *web_view);

webkit_web_view_get_website_data_manager ()

WebKitWebsiteDataManager *
webkit_web_view_get_website_data_manager
                               (WebKitWebView *web_view);

webkit_web_view_try_close ()

void
webkit_web_view_try_close (WebKitWebView *web_view);

webkit_web_view_load_uri ()

void
webkit_web_view_load_uri (WebKitWebView *web_view,
                          const gchar *uri);

webkit_web_view_load_html ()

void
webkit_web_view_load_html (WebKitWebView *web_view,
                           const gchar *content,
                           const gchar *base_uri);

webkit_web_view_load_alternate_html ()

void
webkit_web_view_load_alternate_html (WebKitWebView *web_view,
                                     const gchar *content,
                                     const gchar *content_uri,
                                     const gchar *base_uri);

webkit_web_view_load_plain_text ()

void
webkit_web_view_load_plain_text (WebKitWebView *web_view,
                                 const gchar *plain_text);

webkit_web_view_load_bytes ()

void
webkit_web_view_load_bytes (WebKitWebView *web_view,
                            GBytes *bytes,
                            const gchar *mime_type,
                            const gchar *encoding,
                            const gchar *base_uri);

webkit_web_view_load_request ()

void
webkit_web_view_load_request (WebKitWebView *web_view,
                              WebKitURIRequest *request);

webkit_web_view_can_go_back ()

gboolean
webkit_web_view_can_go_back (WebKitWebView *web_view);

webkit_web_view_go_back ()

void
webkit_web_view_go_back (WebKitWebView *web_view);

webkit_web_view_can_go_forward ()

gboolean
webkit_web_view_can_go_forward (WebKitWebView *web_view);

webkit_web_view_go_forward ()

void
webkit_web_view_go_forward (WebKitWebView *web_view);

webkit_web_view_get_title ()

const gchar *
webkit_web_view_get_title (WebKitWebView *web_view);

webkit_web_view_get_page_id ()

guint64
webkit_web_view_get_page_id (WebKitWebView *web_view);

webkit_web_view_reload ()

void
webkit_web_view_reload (WebKitWebView *web_view);

webkit_web_view_reload_bypass_cache ()

void
webkit_web_view_reload_bypass_cache (WebKitWebView *web_view);

webkit_web_view_stop_loading ()

void
webkit_web_view_stop_loading (WebKitWebView *web_view);

webkit_web_view_is_loading ()

gboolean
webkit_web_view_is_loading (WebKitWebView *web_view);

webkit_web_view_is_playing_audio ()

gboolean
webkit_web_view_is_playing_audio (WebKitWebView *web_view);

webkit_web_view_get_estimated_load_progress ()

gdouble
webkit_web_view_get_estimated_load_progress
                               (WebKitWebView *web_view);

webkit_web_view_get_custom_charset ()

const gchar *
webkit_web_view_get_custom_charset (WebKitWebView *web_view);

webkit_web_view_set_custom_charset ()

void
webkit_web_view_set_custom_charset (WebKitWebView *web_view,
                                    const gchar *charset);

webkit_web_view_get_back_forward_list ()

WebKitBackForwardList *
webkit_web_view_get_back_forward_list (WebKitWebView *web_view);

webkit_web_view_go_to_back_forward_list_item ()

void
webkit_web_view_go_to_back_forward_list_item
                               (WebKitWebView *web_view,
                                WebKitBackForwardListItem *list_item);

webkit_web_view_get_uri ()

const gchar *
webkit_web_view_get_uri (WebKitWebView *web_view);

webkit_web_view_get_favicon ()

cairo_surface_t *
webkit_web_view_get_favicon (WebKitWebView *web_view);

webkit_web_view_set_settings ()

void
webkit_web_view_set_settings (WebKitWebView *web_view,
                              WebKitSettings *settings);

webkit_web_view_get_settings ()

WebKitSettings *
webkit_web_view_get_settings (WebKitWebView *web_view);

webkit_web_view_get_window_properties ()

WebKitWindowProperties *
webkit_web_view_get_window_properties (WebKitWebView *web_view);

webkit_web_view_set_zoom_level ()

void
webkit_web_view_set_zoom_level (WebKitWebView *web_view,
                                gdouble zoom_level);

webkit_web_view_get_zoom_level ()

gdouble
webkit_web_view_get_zoom_level (WebKitWebView *web_view);

webkit_web_view_can_execute_editing_command ()

void
webkit_web_view_can_execute_editing_command
                               (WebKitWebView *web_view,
                                const gchar *command,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

webkit_web_view_can_execute_editing_command_finish ()

gboolean
webkit_web_view_can_execute_editing_command_finish
                               (WebKitWebView *web_view,
                                GAsyncResult *result,
                                GError **error);

webkit_web_view_execute_editing_command ()

void
webkit_web_view_execute_editing_command
                               (WebKitWebView *web_view,
                                const gchar *command);

webkit_web_view_execute_editing_command_with_argument ()

void
webkit_web_view_execute_editing_command_with_argument
                               (WebKitWebView *web_view,
                                const char *command,
                                const char *argument);

webkit_web_view_get_find_controller ()

WebKitFindController *
webkit_web_view_get_find_controller (WebKitWebView *web_view);

webkit_web_view_get_inspector ()

WebKitWebInspector *
webkit_web_view_get_inspector (WebKitWebView *web_view);

webkit_web_view_get_javascript_global_context ()

JSGlobalContextRef
webkit_web_view_get_javascript_global_context
                               (WebKitWebView *web_view);

webkit_web_view_run_javascript ()

void
webkit_web_view_run_javascript (WebKitWebView *web_view,
                                const gchar *script,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

webkit_web_view_run_javascript_finish ()

WebKitJavascriptResult *
webkit_web_view_run_javascript_finish (WebKitWebView *web_view,
                                       GAsyncResult *result,
                                       GError **error);

webkit_web_view_run_javascript_from_gresource ()

void
webkit_web_view_run_javascript_from_gresource
                               (WebKitWebView *web_view,
                                const gchar *resource,
                                GCancellable *cancellable,
                                GAsyncReadyCallback callback,
                                gpointer user_data);

webkit_web_view_run_javascript_from_gresource_finish ()

WebKitJavascriptResult *
webkit_web_view_run_javascript_from_gresource_finish
                               (WebKitWebView *web_view,
                                GAsyncResult *result,
                                GError **error);

webkit_web_view_can_show_mime_type ()

gboolean
webkit_web_view_can_show_mime_type (WebKitWebView *web_view,
                                    const gchar *mime_type);

webkit_web_view_save ()

void
webkit_web_view_save (WebKitWebView *web_view,
                      WebKitSaveMode save_mode,
                      GCancellable *cancellable,
                      GAsyncReadyCallback callback,
                      gpointer user_data);

webkit_web_view_save_finish ()

GInputStream *
webkit_web_view_save_finish (WebKitWebView *web_view,
                             GAsyncResult *result,
                             GError **error);

webkit_web_view_save_to_file ()

void
webkit_web_view_save_to_file (WebKitWebView *web_view,
                              GFile *file,
                              WebKitSaveMode save_mode,
                              GCancellable *cancellable,
                              GAsyncReadyCallback callback,
                              gpointer user_data);

webkit_web_view_save_to_file_finish ()

gboolean
webkit_web_view_save_to_file_finish (WebKitWebView *web_view,
                                     GAsyncResult *result,
                                     GError **error);

webkit_web_view_download_uri ()

WebKitDownload *
webkit_web_view_download_uri (WebKitWebView *web_view,
                              const char *uri);

webkit_web_view_get_tls_info ()

gboolean
webkit_web_view_get_tls_info (WebKitWebView *web_view,
                              GTlsCertificate **certificate,
                              GTlsCertificateFlags *errors);

webkit_web_view_get_snapshot ()

void
webkit_web_view_get_snapshot (WebKitWebView *web_view,
                              WebKitSnapshotRegion region,
                              WebKitSnapshotOptions options,
                              GCancellable *cancellable,
                              GAsyncReadyCallback callback,
                              gpointer user_data);

webkit_web_view_get_snapshot_finish ()

cairo_surface_t *
webkit_web_view_get_snapshot_finish (WebKitWebView *web_view,
                                     GAsyncResult *result,
                                     GError **error);

webkit_web_view_set_background_color ()

void
webkit_web_view_set_background_color (WebKitWebView *web_view,
                                      const GdkRGBA *rgba);

webkit_web_view_get_background_color ()

void
webkit_web_view_get_background_color (WebKitWebView *web_view,
                                      GdkRGBA *rgba);

webkit_web_view_set_editable ()

void
webkit_web_view_set_editable (WebKitWebView *web_view,
                              gboolean editable);

webkit_web_view_is_editable ()

gboolean
webkit_web_view_is_editable (WebKitWebView *web_view);

webkit_web_view_get_editor_state ()

WebKitEditorState *
webkit_web_view_get_editor_state (WebKitWebView *web_view);

webkit_web_view_get_session_state ()

WebKitWebViewSessionState *
webkit_web_view_get_session_state (WebKitWebView *web_view);

webkit_web_view_restore_session_state ()

void
webkit_web_view_restore_session_state (WebKitWebView *web_view,
                                       WebKitWebViewSessionState *state);

webkit_javascript_result_ref ()

WebKitJavascriptResult *
webkit_javascript_result_ref (WebKitJavascriptResult *js_result);

webkit_javascript_result_unref ()

void
webkit_javascript_result_unref (WebKitJavascriptResult *js_result);

webkit_javascript_result_get_global_context ()

JSGlobalContextRef
webkit_javascript_result_get_global_context
                               (WebKitJavascriptResult *js_result);

webkit_javascript_result_get_value ()

JSValueRef
webkit_javascript_result_get_value (WebKitJavascriptResult *js_result);

webkit_script_dialog_get_dialog_type ()

WebKitScriptDialogType
webkit_script_dialog_get_dialog_type (WebKitScriptDialog *dialog);

webkit_script_dialog_get_message ()

const gchar *
webkit_script_dialog_get_message (WebKitScriptDialog *dialog);

webkit_script_dialog_confirm_set_confirmed ()

void
webkit_script_dialog_confirm_set_confirmed
                               (WebKitScriptDialog *dialog,
                                gboolean confirmed);

webkit_script_dialog_prompt_get_default_text ()

const gchar *
webkit_script_dialog_prompt_get_default_text
                               (WebKitScriptDialog *dialog);

webkit_script_dialog_prompt_set_text ()

void
webkit_script_dialog_prompt_set_text (WebKitScriptDialog *dialog,
                                      const gchar *text);

webkit_web_view_get_main_resource ()

WebKitWebResource *
webkit_web_view_get_main_resource (WebKitWebView *web_view);

webkit_web_view_session_state_new ()

WebKitWebViewSessionState *
webkit_web_view_session_state_new (GBytes *data);

webkit_web_view_session_state_ref ()

WebKitWebViewSessionState *
webkit_web_view_session_state_ref (WebKitWebViewSessionState *state);

webkit_web_view_session_state_unref ()

void
webkit_web_view_session_state_unref (WebKitWebViewSessionState *state);

webkit_web_view_session_state_serialize ()

GBytes *
webkit_web_view_session_state_serialize
                               (WebKitWebViewSessionState *state);

Types and Values

WebKitWebView

typedef struct _WebKitWebView WebKitWebView;

enum WebKitLoadEvent

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

Members

WEBKIT_LOAD_STARTED

A new load request has been made. No data has been received yet, empty structures have been allocated to perform the load; the load may still fail due to transport issues such as not being able to resolve a name, or connect to a port.

 

WEBKIT_LOAD_REDIRECTED

A provisional data source received a server redirect.

 

WEBKIT_LOAD_COMMITTED

The content started arriving for a page load. The necessary transport requirements are established, and the load is being performed.

 

WEBKIT_LOAD_FINISHED

Load completed. All resources are done loading or there was an error during the load operation.

 

enum WebKitPolicyDecisionType

Enum values used for determining the type of a policy decision during “decide-policy”.

Members

WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION

This type of policy decision is requested when WebKit is about to navigate to a new page in either the main frame or a subframe. Acceptable policy decisions are either webkit_policy_decision_use() or webkit_policy_decision_ignore(). This type of policy decision is always a WebKitNavigationPolicyDecision.

 

WEBKIT_POLICY_DECISION_TYPE_NEW_WINDOW_ACTION

This type of policy decision is requested when WebKit is about to create a new window. Acceptable policy decisions are either webkit_policy_decision_use() or webkit_policy_decision_ignore(). This type of policy decision is always a WebKitNavigationPolicyDecision. These decisions are useful for implementing special actions for new windows, such as forcing the new window to open in a tab when a keyboard modifier is active or handling a special target attribute on <a> elements.

 

WEBKIT_POLICY_DECISION_TYPE_RESPONSE

This type of decision is used when WebKit has received a response for a network resource and is about to start the load. Note that these resources include all subresources of a page such as images and stylesheets as well as main documents. Appropriate policy responses to this decision are webkit_policy_decision_use(), webkit_policy_decision_ignore(), or webkit_policy_decision_download(). This type of policy decision is always a WebKitResponsePolicyDecision. This decision is useful for forcing some types of resources to be downloaded rather than rendered in the WebView or to block the transfer of resources entirely.

 

enum WebKitSaveMode

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

Members

WEBKIT_SAVE_MODE_MHTML

Save the current page using the MHTML format.

 

enum WebKitInsecureContentEvent

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

Members

WEBKIT_INSECURE_CONTENT_RUN

Insecure content has been detected by trying to execute any kind of logic (e.g. a script) from an untrusted source.

 

WEBKIT_INSECURE_CONTENT_DISPLAYED

Insecure content has been detected by trying to display any kind of resource (e.g. an image) from an untrusted source.

 

enum WebKitSnapshotOptions

Enum values used to specify options when taking a snapshot from a WebKitWebView.

Members

WEBKIT_SNAPSHOT_OPTIONS_NONE

Do not include any special options.

 

WEBKIT_SNAPSHOT_OPTIONS_INCLUDE_SELECTION_HIGHLIGHTING

Whether to include in the snapshot the highlight of the selected content.

 

WEBKIT_SNAPSHOT_OPTIONS_TRANSPARENT_BACKGROUND

Do not fill the background with white before rendering the snapshot. Since 2.8

 

enum WebKitSnapshotRegion

Enum values used to specify the region from which to get a WebKitWebView snapshot

Members

WEBKIT_SNAPSHOT_REGION_VISIBLE

Specifies a snapshot only for the area that is visible in the webview

 

WEBKIT_SNAPSHOT_REGION_FULL_DOCUMENT

A snapshot of the entire document.

 

WEBKIT_EDITING_COMMAND_CUT

#define WEBKIT_EDITING_COMMAND_CUT "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.


WEBKIT_EDITING_COMMAND_COPY

#define WEBKIT_EDITING_COMMAND_COPY "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.


WEBKIT_EDITING_COMMAND_PASTE

#define WEBKIT_EDITING_COMMAND_PASTE "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.


WEBKIT_EDITING_COMMAND_SELECT_ALL

#define WEBKIT_EDITING_COMMAND_SELECT_ALL "SelectAll"

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().


WEBKIT_EDITING_COMMAND_UNDO

#define WEBKIT_EDITING_COMMAND_UNDO "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.


WEBKIT_EDITING_COMMAND_REDO

#define WEBKIT_EDITING_COMMAND_REDO "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.


WEBKIT_EDITING_COMMAND_INSERT_IMAGE

#define WEBKIT_EDITING_COMMAND_INSERT_IMAGE "InsertImage"

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().

Since: 2.10


WEBKIT_EDITING_COMMAND_CREATE_LINK

#define WEBKIT_EDITING_COMMAND_CREATE_LINK "CreateLink"

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()

Since: 2.10


WebKitJavascriptResult

typedef struct _WebKitJavascriptResult WebKitJavascriptResult;

WebKitScriptDialog

typedef struct _WebKitScriptDialog WebKitScriptDialog;

enum WebKitScriptDialogType

Enum values used for determining the type of WebKitScriptDialog

Members

WEBKIT_SCRIPT_DIALOG_ALERT

Alert script dialog, used to show a message to the user.

 

WEBKIT_SCRIPT_DIALOG_CONFIRM

Confirm script dialog, used to ask confirmation to the user.

 

WEBKIT_SCRIPT_DIALOG_PROMPT

Prompt script dialog, used to ask information to the user.

 

WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM

Before unload confirm dialog, used to ask confirmation to leave the current page to the user. Since 2.12

 

WebKitWebViewSessionState

typedef struct _WebKitWebViewSessionState WebKitWebViewSessionState;

Property Details

The “editable” property

  “editable”                 gboolean

Whether the content can be modified by the user.

Flags: Read / Write

Default value: FALSE


The “estimated-load-progress” property

  “estimated-load-progress”  gdouble

An estimate of the percent completion for a document load.

Flags: Read

Allowed values: [0,1]

Default value: 0


The “favicon” property

  “favicon”                  gpointer

The favicon associated to the view, if any.

Flags: Read


The “is-controlled-by-automation” property

  “is-controlled-by-automation” gboolean

Whether the web view is controlled by automation.

Flags: Read / Write / Construct Only

Default value: FALSE


The “is-ephemeral” property

  “is-ephemeral”             gboolean

Whether the web view is ephemeral.

Flags: Read / Write / Construct Only

Default value: FALSE


The “is-loading” property

  “is-loading”               gboolean

Whether the view is loading a page.

Flags: Read

Default value: FALSE


The “is-playing-audio” property

  “is-playing-audio”         gboolean

Whether the view is playing audio.

Flags: Read

Default value: FALSE


The “related-view” property

  “related-view”             WebKitWebView *

The related WebKitWebView used when creating the view to share the same web process.

Flags: Write / Construct Only


The “settings” property

  “settings”                 WebKitSettings *

The WebKitSettings of the view.

Flags: Write / Construct


The “title” property

  “title”                    gchar *

Main frame document title.

Flags: Read

Default value: NULL


The “uri” property

  “uri”                      gchar *

The current active URI of the view.

Flags: Read

Default value: NULL


The “user-content-manager” property

  “user-content-manager”     WebKitUserContentManager *

The WebKitUserContentManager of the view.

Flags: Read / Write / Construct Only


The “web-context” property

  “web-context”              WebKitWebContext *

The web context for the view.

Flags: Read / Write / Construct Only


The “zoom-level” property

  “zoom-level”               gdouble

The zoom level of the view content.

Flags: Read / Write

Allowed values: >= 0

Default value: 1

Signal Details

The “authenticate” signal

gboolean
user_function (WebKitWebView               *webkitwebview,
               WebKitAuthenticationRequest *arg1,
               gpointer                     user_data)

Flags: Run Last


The “close” signal

void
user_function (WebKitWebView *webkitwebview,
               gpointer       user_data)

Flags: Run Last


The “context-menu” signal

gboolean
user_function (WebKitWebView       *webkitwebview,
               WebKitContextMenu   *arg1,
               GdkEvent            *arg2,
               WebKitHitTestResult *arg3,
               gpointer             user_data)

Flags: Run Last


The “context-menu-dismissed” signal

void
user_function (WebKitWebView *webkitwebview,
               gpointer       user_data)

Flags: Run Last


The “create” signal

GtkWidget*
user_function (WebKitWebView          *webkitwebview,
               WebKitNavigationAction *arg1,
               gpointer                user_data)

Flags: Run Last


The “decide-policy” signal

gboolean
user_function (WebKitWebView           *webkitwebview,
               WebKitPolicyDecision    *arg1,
               WebKitPolicyDecisionType arg2,
               gpointer                 user_data)

Flags: Run Last


The “enter-fullscreen” signal

gboolean
user_function (WebKitWebView *webkitwebview,
               gpointer       user_data)

Flags: Run Last


The “insecure-content-detected” signal

void
user_function (WebKitWebView             *webkitwebview,
               WebKitInsecureContentEvent arg1,
               gpointer                   user_data)

Flags: Run Last


The “leave-fullscreen” signal

gboolean
user_function (WebKitWebView *webkitwebview,
               gpointer       user_data)

Flags: Run Last


The “load-changed” signal

void
user_function (WebKitWebView  *webkitwebview,
               WebKitLoadEvent arg1,
               gpointer        user_data)

Flags: Run Last


The “load-failed” signal

gboolean
user_function (WebKitWebView  *webkitwebview,
               WebKitLoadEvent arg1,
               gchar          *arg2,
               GError         *arg3,
               gpointer        user_data)

Flags: Run Last


The “load-failed-with-tls-errors” signal

gboolean
user_function (WebKitWebView       *webkitwebview,
               gchar               *arg1,
               GTlsCertificate     *arg2,
               GTlsCertificateFlags arg3,
               gpointer             user_data)

Flags: Run Last


The “mouse-target-changed” signal

void
user_function (WebKitWebView       *webkitwebview,
               WebKitHitTestResult *arg1,
               guint                arg2,
               gpointer             user_data)

Flags: Run Last


The “permission-request” signal

gboolean
user_function (WebKitWebView           *webkitwebview,
               WebKitPermissionRequest *arg1,
               gpointer                 user_data)

Flags: Run Last


The “print” signal

gboolean
user_function (WebKitWebView        *webkitwebview,
               WebKitPrintOperation *arg1,
               gpointer              user_data)

Flags: Run Last


The “ready-to-show” signal

void
user_function (WebKitWebView *webkitwebview,
               gpointer       user_data)

Flags: Run Last


The “resource-load-started” signal

void
user_function (WebKitWebView     *webkitwebview,
               WebKitWebResource *arg1,
               WebKitURIRequest  *arg2,
               gpointer           user_data)

Flags: Run Last


The “run-as-modal” signal

void
user_function (WebKitWebView *webkitwebview,
               gpointer       user_data)

Flags: Run Last


The “run-color-chooser” signal

gboolean
user_function (WebKitWebView             *webkitwebview,
               WebKitColorChooserRequest *arg1,
               gpointer                   user_data)

Flags: Run Last


The “run-file-chooser” signal

gboolean
user_function (WebKitWebView            *webkitwebview,
               WebKitFileChooserRequest *arg1,
               gpointer                  user_data)

Flags: Run Last


The “script-dialog” signal

gboolean
user_function (WebKitWebView      *webkitwebview,
               WebKitScriptDialog *arg1,
               gpointer            user_data)

Flags: Run Last


The “show-notification” signal

gboolean
user_function (WebKitWebView      *webkitwebview,
               WebKitNotification *arg1,
               gpointer            user_data)

Flags: Run Last


The “show-option-menu” signal

gboolean
user_function (WebKitWebView    *webkitwebview,
               WebKitOptionMenu *arg1,
               GdkEvent         *arg2,
               GdkRectangle     *arg3,
               gpointer          user_data)

Flags: Run Last


The “submit-form” signal

void
user_function (WebKitWebView               *webkitwebview,
               WebKitFormSubmissionRequest *arg1,
               gpointer                     user_data)

Flags: Run Last


The “web-process-crashed” signal

gboolean
user_function (WebKitWebView *webkitwebview,
               gpointer       user_data)

Flags: Run Last