Top |
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 |
WebKitWebView | |
enum | WebKitLoadEvent |
enum | WebKitPolicyDecisionType |
enum | WebKitSaveMode |
enum | WebKitInsecureContentEvent |
enum | WebKitSnapshotOptions |
enum | WebKitSnapshotRegion |
#define | WEBKIT_EDITING_COMMAND_CUT |
#define | WEBKIT_EDITING_COMMAND_COPY |
#define | WEBKIT_EDITING_COMMAND_PASTE |
#define | WEBKIT_EDITING_COMMAND_SELECT_ALL |
#define | WEBKIT_EDITING_COMMAND_UNDO |
#define | WEBKIT_EDITING_COMMAND_REDO |
#define | WEBKIT_EDITING_COMMAND_INSERT_IMAGE |
#define | WEBKIT_EDITING_COMMAND_CREATE_LINK |
WebKitJavascriptResult | |
WebKitScriptDialog | |
enum | WebKitScriptDialogType |
WebKitWebViewSessionState |
GBoxed ├── WebKitJavascriptResult ├── WebKitScriptDialog ╰── WebKitWebViewSessionState GObject ╰── GInitiallyUnowned ╰── GtkWidget ╰── GtkContainer ╰── WebKitWebViewBase ╰── WebKitWebView
GtkWidget *
webkit_web_view_new_with_context (WebKitWebContext *context
);
GtkWidget *
webkit_web_view_new_with_related_view (WebKitWebView *web_view
);
GtkWidget *
webkit_web_view_new_with_settings (WebKitSettings *settings
);
GtkWidget *
webkit_web_view_new_with_user_content_manager
(WebKitUserContentManager *user_content_manager
);
gboolean
webkit_web_view_is_controlled_by_automation
(WebKitWebView *web_view
);
WebKitWebContext *
webkit_web_view_get_context (WebKitWebView *web_view
);
WebKitUserContentManager *
webkit_web_view_get_user_content_manager
(WebKitWebView *web_view
);
WebKitWebsiteDataManager *
webkit_web_view_get_website_data_manager
(WebKitWebView *web_view
);
void webkit_web_view_load_uri (WebKitWebView *web_view
,const gchar *uri
);
void webkit_web_view_load_html (WebKitWebView *web_view
,const gchar *content
,const gchar *base_uri
);
void webkit_web_view_load_alternate_html (WebKitWebView *web_view
,const gchar *content
,const gchar *content_uri
,const gchar *base_uri
);
void webkit_web_view_load_plain_text (WebKitWebView *web_view
,const gchar *plain_text
);
void webkit_web_view_load_bytes (WebKitWebView *web_view
,GBytes *bytes
,const gchar *mime_type
,const gchar *encoding
,const gchar *base_uri
);
void webkit_web_view_load_request (WebKitWebView *web_view
,WebKitURIRequest *request
);
gboolean
webkit_web_view_can_go_forward (WebKitWebView *web_view
);
void
webkit_web_view_reload_bypass_cache (WebKitWebView *web_view
);
gboolean
webkit_web_view_is_playing_audio (WebKitWebView *web_view
);
gdouble
webkit_web_view_get_estimated_load_progress
(WebKitWebView *web_view
);
const gchar *
webkit_web_view_get_custom_charset (WebKitWebView *web_view
);
void webkit_web_view_set_custom_charset (WebKitWebView *web_view
,const gchar *charset
);
WebKitBackForwardList *
webkit_web_view_get_back_forward_list (WebKitWebView *web_view
);
void webkit_web_view_go_to_back_forward_list_item (WebKitWebView *web_view
,WebKitBackForwardListItem *list_item
);
cairo_surface_t *
webkit_web_view_get_favicon (WebKitWebView *web_view
);
void webkit_web_view_set_settings (WebKitWebView *web_view
,WebKitSettings *settings
);
WebKitSettings *
webkit_web_view_get_settings (WebKitWebView *web_view
);
WebKitWindowProperties *
webkit_web_view_get_window_properties (WebKitWebView *web_view
);
void webkit_web_view_set_zoom_level (WebKitWebView *web_view
,gdouble zoom_level
);
void webkit_web_view_can_execute_editing_command (WebKitWebView *web_view
,const gchar *command
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean webkit_web_view_can_execute_editing_command_finish (WebKitWebView *web_view
,GAsyncResult *result
,GError **error
);
void webkit_web_view_execute_editing_command (WebKitWebView *web_view
,const gchar *command
);
void webkit_web_view_execute_editing_command_with_argument (WebKitWebView *web_view
,const char *command
,const char *argument
);
WebKitFindController *
webkit_web_view_get_find_controller (WebKitWebView *web_view
);
WebKitWebInspector *
webkit_web_view_get_inspector (WebKitWebView *web_view
);
JSGlobalContextRef
webkit_web_view_get_javascript_global_context
(WebKitWebView *web_view
);
void webkit_web_view_run_javascript (WebKitWebView *web_view
,const gchar *script
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
WebKitJavascriptResult * webkit_web_view_run_javascript_finish (WebKitWebView *web_view
,GAsyncResult *result
,GError **error
);
void webkit_web_view_run_javascript_from_gresource (WebKitWebView *web_view
,const gchar *resource
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
WebKitJavascriptResult * webkit_web_view_run_javascript_from_gresource_finish (WebKitWebView *web_view
,GAsyncResult *result
,GError **error
);
gboolean webkit_web_view_can_show_mime_type (WebKitWebView *web_view
,const gchar *mime_type
);
void webkit_web_view_save (WebKitWebView *web_view
,WebKitSaveMode save_mode
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
GInputStream * webkit_web_view_save_finish (WebKitWebView *web_view
,GAsyncResult *result
,GError **error
);
void webkit_web_view_save_to_file (WebKitWebView *web_view
,GFile *file
,WebKitSaveMode save_mode
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean webkit_web_view_save_to_file_finish (WebKitWebView *web_view
,GAsyncResult *result
,GError **error
);
WebKitDownload * webkit_web_view_download_uri (WebKitWebView *web_view
,const char *uri
);
gboolean webkit_web_view_get_tls_info (WebKitWebView *web_view
,GTlsCertificate **certificate
,GTlsCertificateFlags *errors
);
void webkit_web_view_get_snapshot (WebKitWebView *web_view
,WebKitSnapshotRegion region
,WebKitSnapshotOptions options
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
cairo_surface_t * webkit_web_view_get_snapshot_finish (WebKitWebView *web_view
,GAsyncResult *result
,GError **error
);
void webkit_web_view_set_background_color (WebKitWebView *web_view
,const GdkRGBA *rgba
);
void webkit_web_view_get_background_color (WebKitWebView *web_view
,GdkRGBA *rgba
);
void webkit_web_view_set_editable (WebKitWebView *web_view
,gboolean editable
);
WebKitEditorState *
webkit_web_view_get_editor_state (WebKitWebView *web_view
);
WebKitWebViewSessionState *
webkit_web_view_get_session_state (WebKitWebView *web_view
);
void webkit_web_view_restore_session_state (WebKitWebView *web_view
,WebKitWebViewSessionState *state
);
WebKitJavascriptResult *
webkit_javascript_result_ref (WebKitJavascriptResult *js_result
);
void
webkit_javascript_result_unref (WebKitJavascriptResult *js_result
);
JSGlobalContextRef
webkit_javascript_result_get_global_context
(WebKitJavascriptResult *js_result
);
JSValueRef
webkit_javascript_result_get_value (WebKitJavascriptResult *js_result
);
WebKitScriptDialogType
webkit_script_dialog_get_dialog_type (WebKitScriptDialog *dialog
);
const gchar *
webkit_script_dialog_get_message (WebKitScriptDialog *dialog
);
void webkit_script_dialog_confirm_set_confirmed (WebKitScriptDialog *dialog
,gboolean confirmed
);
const gchar *
webkit_script_dialog_prompt_get_default_text
(WebKitScriptDialog *dialog
);
void webkit_script_dialog_prompt_set_text (WebKitScriptDialog *dialog
,const gchar *text
);
WebKitWebResource *
webkit_web_view_get_main_resource (WebKitWebView *web_view
);
WebKitWebViewSessionState *
webkit_web_view_session_state_new (GBytes *data
);
WebKitWebViewSessionState *
webkit_web_view_session_state_ref (WebKitWebViewSessionState *state
);
void
webkit_web_view_session_state_unref (WebKitWebViewSessionState *state
);
GBytes *
webkit_web_view_session_state_serialize
(WebKitWebViewSessionState *state
);
Enum values used to denote the different events that happen during a WebKitWebView load operation.
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. |
||
A provisional data source received a server redirect. |
||
The content started arriving for a page load. The necessary transport requirements are established, and the load is being performed. |
||
Load completed. All resources are done loading or there was an error during the load operation. |
Enum values used for determining the type of a policy decision during “decide-policy”.
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
|
||
This type of policy decision
is requested when WebKit is about to create a new window. Acceptable policy
decisions are either |
||
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 |
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 to denote the different events which can trigger the detection of insecure content.
Enum values used to specify options when taking a snapshot from a WebKitWebView.
Enum values used to specify the region from which to get a WebKitWebView snapshot
#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.
#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.
#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.
#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()
.
#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.
#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.
#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
#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
Enum values used for determining the type of WebKitScriptDialog
“editable”
property“editable” gboolean
Whether the content can be modified by the user.
Flags: Read / Write
Default value: FALSE
“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
“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
“is-ephemeral”
property“is-ephemeral” gboolean
Whether the web view is ephemeral.
Flags: Read / Write / Construct Only
Default value: FALSE
“is-loading”
property“is-loading” gboolean
Whether the view is loading a page.
Flags: Read
Default value: FALSE
“is-playing-audio”
property“is-playing-audio” gboolean
Whether the view is playing audio.
Flags: Read
Default value: FALSE
“related-view”
property“related-view” WebKitWebView *
The related WebKitWebView used when creating the view to share the same web process.
Flags: Write / Construct Only
“settings”
property“settings” WebKitSettings *
The WebKitSettings of the view.
Flags: Write / Construct
“uri”
property“uri” gchar *
The current active URI of the view.
Flags: Read
Default value: NULL
“user-content-manager”
property“user-content-manager” WebKitUserContentManager *
The WebKitUserContentManager of the view.
Flags: Read / Write / Construct Only
“web-context”
property“web-context” WebKitWebContext *
The web context for the view.
Flags: Read / Write / Construct Only
“zoom-level”
property“zoom-level” gdouble
The zoom level of the view content.
Flags: Read / Write
Allowed values: >= 0
Default value: 1
“authenticate”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitAuthenticationRequest *arg1, gpointer user_data)
Flags: Run Last
“close”
signalvoid user_function (WebKitWebView *webkitwebview, gpointer user_data)
Flags: Run Last
“context-menu”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitContextMenu *arg1, GdkEvent *arg2, WebKitHitTestResult *arg3, gpointer user_data)
Flags: Run Last
“context-menu-dismissed”
signalvoid user_function (WebKitWebView *webkitwebview, gpointer user_data)
Flags: Run Last
“create”
signalGtkWidget* user_function (WebKitWebView *webkitwebview, WebKitNavigationAction *arg1, gpointer user_data)
Flags: Run Last
“decide-policy”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitPolicyDecision *arg1, WebKitPolicyDecisionType arg2, gpointer user_data)
Flags: Run Last
“enter-fullscreen”
signalgboolean user_function (WebKitWebView *webkitwebview, gpointer user_data)
Flags: Run Last
“insecure-content-detected”
signalvoid user_function (WebKitWebView *webkitwebview, WebKitInsecureContentEvent arg1, gpointer user_data)
Flags: Run Last
“leave-fullscreen”
signalgboolean user_function (WebKitWebView *webkitwebview, gpointer user_data)
Flags: Run Last
“load-changed”
signalvoid user_function (WebKitWebView *webkitwebview, WebKitLoadEvent arg1, gpointer user_data)
Flags: Run Last
“load-failed”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitLoadEvent arg1, gchar *arg2, GError *arg3, gpointer user_data)
Flags: Run Last
“load-failed-with-tls-errors”
signalgboolean user_function (WebKitWebView *webkitwebview, gchar *arg1, GTlsCertificate *arg2, GTlsCertificateFlags arg3, gpointer user_data)
Flags: Run Last
“mouse-target-changed”
signalvoid user_function (WebKitWebView *webkitwebview, WebKitHitTestResult *arg1, guint arg2, gpointer user_data)
Flags: Run Last
“permission-request”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitPermissionRequest *arg1, gpointer user_data)
Flags: Run Last
“print”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitPrintOperation *arg1, gpointer user_data)
Flags: Run Last
“ready-to-show”
signalvoid user_function (WebKitWebView *webkitwebview, gpointer user_data)
Flags: Run Last
“resource-load-started”
signalvoid user_function (WebKitWebView *webkitwebview, WebKitWebResource *arg1, WebKitURIRequest *arg2, gpointer user_data)
Flags: Run Last
“run-as-modal”
signalvoid user_function (WebKitWebView *webkitwebview, gpointer user_data)
Flags: Run Last
“run-color-chooser”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitColorChooserRequest *arg1, gpointer user_data)
Flags: Run Last
“run-file-chooser”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitFileChooserRequest *arg1, gpointer user_data)
Flags: Run Last
“script-dialog”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitScriptDialog *arg1, gpointer user_data)
Flags: Run Last
“show-notification”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitNotification *arg1, gpointer user_data)
Flags: Run Last
“show-option-menu”
signalgboolean user_function (WebKitWebView *webkitwebview, WebKitOptionMenu *arg1, GdkEvent *arg2, GdkRectangle *arg3, gpointer user_data)
Flags: Run Last
“submit-form”
signalvoid user_function (WebKitWebView *webkitwebview, WebKitFormSubmissionRequest *arg1, gpointer user_data)
Flags: Run Last
“web-process-crashed”
signalgboolean user_function (WebKitWebView *webkitwebview, gpointer user_data)
Flags: Run Last