1/* webkit2gtk-4.0.vapi generated by vapigen, do not modify. */ 2 3[CCode (cprefix = "WebKit", gir_namespace = "WebKit2", gir_version = "4.0", lower_case_cprefix = "webkit_")] 4namespace WebKit { 5 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_application_info_ref", type_id = "webkit_application_info_get_type ()", unref_function = "webkit_application_info_unref")] 6 [Compact] 7 public class ApplicationInfo { 8 [CCode (has_construct_function = false)] 9 [Version (since = "2.18")] 10 public ApplicationInfo (); 11 [Version (since = "2.18")] 12 public unowned string get_name (); 13 [Version (since = "2.18")] 14 public void get_version (out uint64 major, out uint64 minor, out uint64 micro); 15 [Version (since = "2.18")] 16 public unowned WebKit.ApplicationInfo @ref (); 17 [Version (since = "2.18")] 18 public void set_name (string name); 19 [Version (since = "2.18")] 20 public void set_version (uint64 major, uint64 minor, uint64 micro); 21 [Version (since = "2.18")] 22 public void unref (); 23 } 24 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_authentication_request_get_type ()")] 25 public class AuthenticationRequest : GLib.Object { 26 [CCode (has_construct_function = false)] 27 protected AuthenticationRequest (); 28 [Version (since = "2.2")] 29 public void authenticate (WebKit.Credential? credential); 30 [Version (since = "2.2")] 31 public bool can_save_credentials (); 32 [Version (since = "2.2")] 33 public void cancel (); 34 [Version (since = "2.2")] 35 public unowned string get_host (); 36 [Version (since = "2.2")] 37 public uint get_port (); 38 [Version (since = "2.2")] 39 public WebKit.Credential get_proposed_credential (); 40 [Version (since = "2.2")] 41 public unowned string get_realm (); 42 [Version (since = "2.2")] 43 public WebKit.AuthenticationScheme get_scheme (); 44 [Version (since = "2.30")] 45 public WebKit.SecurityOrigin get_security_origin (); 46 [Version (since = "2.2")] 47 public bool is_for_proxy (); 48 [Version (since = "2.2")] 49 public bool is_retry (); 50 [Version (since = "2.30")] 51 public void set_can_save_credentials (bool enabled); 52 [Version (since = "2.30")] 53 public void set_proposed_credential (WebKit.Credential credential); 54 [Version (since = "2.30")] 55 public signal void authenticated (WebKit.Credential credential); 56 [Version (since = "2.2")] 57 public signal void cancelled (); 58 } 59 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_automation_session_get_type ()")] 60 public class AutomationSession : GLib.Object { 61 [CCode (has_construct_function = false)] 62 protected AutomationSession (); 63 [Version (since = "2.18")] 64 public unowned WebKit.ApplicationInfo get_application_info (); 65 [Version (since = "2.18")] 66 public unowned string get_id (); 67 [Version (since = "2.18")] 68 public void set_application_info (WebKit.ApplicationInfo info); 69 [Version (since = "2.18")] 70 public string id { get; construct; } 71 [Version (since = "2.18")] 72 public signal unowned WebKit.WebView create_web_view (); 73 } 74 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_get_type ()")] 75 public class BackForwardList : GLib.Object { 76 [CCode (has_construct_function = false)] 77 protected BackForwardList (); 78 public unowned WebKit.BackForwardListItem? get_back_item (); 79 public GLib.List<weak WebKit.BackForwardListItem> get_back_list (); 80 public GLib.List<weak WebKit.BackForwardListItem> get_back_list_with_limit (uint limit); 81 public unowned WebKit.BackForwardListItem? get_current_item (); 82 public unowned WebKit.BackForwardListItem? get_forward_item (); 83 public GLib.List<weak WebKit.BackForwardListItem> get_forward_list (); 84 public GLib.List<weak WebKit.BackForwardListItem> get_forward_list_with_limit (uint limit); 85 public uint get_length (); 86 public unowned WebKit.BackForwardListItem? get_nth_item (int index); 87 public signal void changed (WebKit.BackForwardListItem? item_added, void* items_removed); 88 } 89 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_item_get_type ()")] 90 public class BackForwardListItem : GLib.InitiallyUnowned { 91 [CCode (has_construct_function = false)] 92 protected BackForwardListItem (); 93 public unowned string get_original_uri (); 94 public unowned string get_title (); 95 public unowned string get_uri (); 96 } 97 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_color_chooser_request_get_type ()")] 98 public class ColorChooserRequest : GLib.Object { 99 [CCode (has_construct_function = false)] 100 protected ColorChooserRequest (); 101 [Version (since = "2.8")] 102 public void cancel (); 103 [Version (since = "2.8")] 104 public void finish (); 105 [Version (since = "2.8")] 106 public Gdk.Rectangle get_element_rectangle (); 107 [Version (since = "2.8")] 108 public Gdk.RGBA get_rgba (); 109 [Version (since = "2.8")] 110 public void set_rgba (Gdk.RGBA rgba); 111 public Gdk.RGBA rgba { get; set construct; } 112 [Version (since = "2.8")] 113 public signal void finished (); 114 } 115 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_get_type ()")] 116 public class ContextMenu : GLib.Object { 117 [CCode (has_construct_function = false)] 118 public ContextMenu (); 119 public void append (WebKit.ContextMenuItem item); 120 public unowned WebKit.ContextMenuItem first (); 121 public unowned WebKit.ContextMenuItem get_item_at_position (uint position); 122 public unowned GLib.List<WebKit.ContextMenuItem> get_items (); 123 public uint get_n_items (); 124 [Version (since = "2.8")] 125 public unowned GLib.Variant get_user_data (); 126 public void insert (WebKit.ContextMenuItem item, int position); 127 public unowned WebKit.ContextMenuItem last (); 128 public void move_item (WebKit.ContextMenuItem item, int position); 129 public void prepend (WebKit.ContextMenuItem item); 130 public void remove (WebKit.ContextMenuItem item); 131 public void remove_all (); 132 [Version (since = "2.8")] 133 public void set_user_data (GLib.Variant user_data); 134 [CCode (has_construct_function = false)] 135 public ContextMenu.with_items (GLib.List<WebKit.ContextMenuItem> items); 136 } 137 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_item_get_type ()")] 138 public class ContextMenuItem : GLib.InitiallyUnowned { 139 [CCode (has_construct_function = false)] 140 [Version (deprecated = true, deprecated_since = "2.18")] 141 public ContextMenuItem (Gtk.Action action); 142 [CCode (has_construct_function = false)] 143 [Version (since = "2.18")] 144 public ContextMenuItem.from_gaction (GLib.Action action, string label, GLib.Variant? target); 145 [CCode (has_construct_function = false)] 146 public ContextMenuItem.from_stock_action (WebKit.ContextMenuAction action); 147 [CCode (has_construct_function = false)] 148 public ContextMenuItem.from_stock_action_with_label (WebKit.ContextMenuAction action, string label); 149 [Version (deprecated = true, deprecated_since = "2.18")] 150 public unowned Gtk.Action get_action (); 151 [Version (since = "2.18")] 152 public unowned GLib.Action get_gaction (); 153 public WebKit.ContextMenuAction get_stock_action (); 154 public unowned WebKit.ContextMenu get_submenu (); 155 public bool is_separator (); 156 [CCode (has_construct_function = false)] 157 public ContextMenuItem.separator (); 158 public void set_submenu (WebKit.ContextMenu? submenu); 159 [CCode (has_construct_function = false)] 160 public ContextMenuItem.with_submenu (string label, WebKit.ContextMenu submenu); 161 } 162 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_cookie_manager_get_type ()")] 163 public class CookieManager : GLib.Object { 164 [CCode (has_construct_function = false)] 165 protected CookieManager (); 166 [Version (since = "2.20")] 167 public async bool add_cookie (Soup.Cookie cookie, GLib.Cancellable? cancellable = null) throws GLib.Error; 168 [Version (deprecated = true, deprecated_since = "2.16")] 169 public void delete_all_cookies (); 170 [Version (since = "2.20")] 171 public async bool delete_cookie (Soup.Cookie cookie, GLib.Cancellable? cancellable = null) throws GLib.Error; 172 [Version (deprecated = true, deprecated_since = "2.16")] 173 public void delete_cookies_for_domain (string domain); 174 public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable = null) throws GLib.Error; 175 [Version (since = "2.20")] 176 public async GLib.List<Soup.Cookie> get_cookies (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error; 177 [CCode (array_length = false, array_null_terminated = true)] 178 [Version (deprecated = true, deprecated_since = "2.16")] 179 public async string[] get_domains_with_cookies (GLib.Cancellable? cancellable = null) throws GLib.Error; 180 public void set_accept_policy (WebKit.CookieAcceptPolicy policy); 181 public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage); 182 public signal void changed (); 183 } 184 [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_credential_get_type ()")] 185 [Compact] 186 public class Credential { 187 [CCode (has_construct_function = false)] 188 [Version (since = "2.2")] 189 public Credential (string username, string password, WebKit.CredentialPersistence persistence); 190 [Version (since = "2.2")] 191 public WebKit.Credential copy (); 192 [Version (since = "2.2")] 193 public void free (); 194 [Version (since = "2.2")] 195 public unowned string get_password (); 196 [Version (since = "2.2")] 197 public WebKit.CredentialPersistence get_persistence (); 198 [Version (since = "2.2")] 199 public unowned string get_username (); 200 [Version (since = "2.2")] 201 public bool has_password (); 202 } 203 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_device_info_permission_request_get_type ()")] 204 public class DeviceInfoPermissionRequest : GLib.Object, WebKit.PermissionRequest { 205 [CCode (has_construct_function = false)] 206 protected DeviceInfoPermissionRequest (); 207 } 208 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_download_get_type ()")] 209 public class Download : GLib.Object { 210 [CCode (has_construct_function = false)] 211 protected Download (); 212 public void cancel (); 213 [Version (since = "2.6")] 214 public bool get_allow_overwrite (); 215 public unowned string get_destination (); 216 public double get_elapsed_time (); 217 public double get_estimated_progress (); 218 public uint64 get_received_data_length (); 219 public unowned WebKit.URIRequest get_request (); 220 public unowned WebKit.URIResponse get_response (); 221 public unowned WebKit.WebView get_web_view (); 222 [Version (since = "2.6")] 223 public void set_allow_overwrite (bool allowed); 224 public void set_destination (string uri); 225 [Version (since = "2.6")] 226 public bool allow_overwrite { get; set; } 227 public string destination { get; } 228 public double estimated_progress { get; } 229 public WebKit.URIResponse response { get; } 230 public signal void created_destination (string destination); 231 public virtual signal bool decide_destination (string suggested_filename); 232 public signal void failed (WebKit.DownloadError error); 233 public signal void finished (); 234 public signal void received_data (uint64 data_length); 235 } 236 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_editor_state_get_type ()")] 237 public class EditorState : GLib.Object { 238 [CCode (has_construct_function = false)] 239 protected EditorState (); 240 [Version (since = "2.10")] 241 public uint get_typing_attributes (); 242 [Version (since = "2.20")] 243 public bool is_copy_available (); 244 [Version (since = "2.20")] 245 public bool is_cut_available (); 246 [Version (since = "2.20")] 247 public bool is_paste_available (); 248 [Version (since = "2.20")] 249 public bool is_redo_available (); 250 [Version (since = "2.20")] 251 public bool is_undo_available (); 252 [Version (since = "2.10")] 253 public uint typing_attributes { get; } 254 } 255 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_favicon_database_get_type ()")] 256 public class FaviconDatabase : GLib.Object { 257 [CCode (has_construct_function = false)] 258 protected FaviconDatabase (); 259 public void clear (); 260 public async Cairo.Surface get_favicon (string page_uri, GLib.Cancellable? cancellable = null) throws GLib.Error; 261 public string get_favicon_uri (string page_uri); 262 public signal void favicon_changed (string page_uri, string favicon_uri); 263 } 264 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_file_chooser_request_get_type ()")] 265 public class FileChooserRequest : GLib.Object { 266 [CCode (has_construct_function = false)] 267 protected FileChooserRequest (); 268 public void cancel (); 269 [CCode (array_length = false, array_null_terminated = true)] 270 public unowned string[] get_mime_types (); 271 public unowned Gtk.FileFilter get_mime_types_filter (); 272 public bool get_select_multiple (); 273 [CCode (array_length = false, array_null_terminated = true)] 274 public unowned string[] get_selected_files (); 275 public void select_files ([CCode (array_length = false, array_null_terminated = true)] string[] files); 276 [NoAccessorMethod] 277 public Gtk.FileFilter filter { owned get; } 278 [CCode (array_length = false, array_null_terminated = true)] 279 public string[] mime_types { get; } 280 public bool select_multiple { get; } 281 [CCode (array_length = false, array_null_terminated = true)] 282 public string[] selected_files { get; } 283 } 284 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_find_controller_get_type ()")] 285 public class FindController : GLib.Object { 286 [CCode (has_construct_function = false)] 287 protected FindController (); 288 public void count_matches (string search_text, uint32 find_options, uint max_match_count); 289 public uint get_max_match_count (); 290 public uint32 get_options (); 291 public unowned string get_search_text (); 292 public unowned WebKit.WebView get_web_view (); 293 public void search (string search_text, uint32 find_options, uint max_match_count); 294 public void search_finish (); 295 public void search_next (); 296 public void search_previous (); 297 public uint max_match_count { get; } 298 public WebKit.FindOptions options { get; } 299 [NoAccessorMethod] 300 public string text { owned get; } 301 public WebKit.WebView web_view { get; construct; } 302 public signal void counted_matches (uint match_count); 303 public signal void failed_to_find_text (); 304 public signal void found_text (uint match_count); 305 } 306 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_form_submission_request_get_type ()")] 307 public class FormSubmissionRequest : GLib.Object { 308 [CCode (has_construct_function = false)] 309 protected FormSubmissionRequest (); 310 [Version (deprecated = true, deprecated_since = "2.20.")] 311 public unowned GLib.HashTable<void*,void*>? get_text_fields (); 312 [Version (since = "2.20")] 313 public bool list_text_fields (out unowned GLib.GenericArray<string> field_names, out unowned GLib.GenericArray<string> field_values); 314 public void submit (); 315 } 316 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_geolocation_manager_get_type ()")] 317 public class GeolocationManager : GLib.Object { 318 [CCode (has_construct_function = false)] 319 protected GeolocationManager (); 320 [Version (since = "2.26")] 321 public void failed (string error_message); 322 [Version (since = "2.26")] 323 public bool get_enable_high_accuracy (); 324 [Version (since = "2.26")] 325 public void update_position (WebKit.GeolocationPosition position); 326 [Version (since = "2.26")] 327 public bool enable_high_accuracy { get; } 328 [Version (since = "2.26")] 329 public signal bool start (); 330 [Version (since = "2.26")] 331 public signal void stop (); 332 } 333 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_geolocation_permission_request_get_type ()")] 334 public class GeolocationPermissionRequest : GLib.Object, WebKit.PermissionRequest { 335 [CCode (has_construct_function = false)] 336 protected GeolocationPermissionRequest (); 337 } 338 [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_geolocation_position_get_type ()")] 339 [Compact] 340 [Version (since = "2.26")] 341 public class GeolocationPosition { 342 [CCode (has_construct_function = false)] 343 public GeolocationPosition (double latitude, double longitude, double accuracy); 344 public WebKit.GeolocationPosition copy (); 345 public void free (); 346 public void set_altitude (double altitude); 347 public void set_altitude_accuracy (double altitude_accuracy); 348 public void set_heading (double heading); 349 public void set_speed (double speed); 350 public void set_timestamp (uint64 timestamp); 351 } 352 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_hit_test_result_get_type ()")] 353 public class HitTestResult : GLib.Object { 354 [CCode (has_construct_function = false)] 355 protected HitTestResult (); 356 public bool context_is_editable (); 357 public bool context_is_image (); 358 public bool context_is_link (); 359 public bool context_is_media (); 360 public bool context_is_scrollbar (); 361 [Version (since = "2.8")] 362 public bool context_is_selection (); 363 public uint get_context (); 364 public unowned string get_image_uri (); 365 public unowned string get_link_label (); 366 public unowned string get_link_title (); 367 public unowned string get_link_uri (); 368 public unowned string get_media_uri (); 369 public uint context { get; construct; } 370 public string image_uri { get; construct; } 371 public string link_label { get; construct; } 372 public string link_title { get; construct; } 373 public string link_uri { get; construct; } 374 public string media_uri { get; construct; } 375 } 376 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_itp_first_party_ref", type_id = "webkit_itp_first_party_get_type ()", unref_function = "webkit_itp_first_party_unref")] 377 [Compact] 378 public class ITPFirstParty { 379 [Version (since = "2.30")] 380 public unowned string get_domain (); 381 [Version (since = "2.30")] 382 public unowned GLib.DateTime get_last_update_time (); 383 [Version (since = "2.30")] 384 public bool get_website_data_access_allowed (); 385 [Version (since = "2.30")] 386 public unowned WebKit.ITPFirstParty @ref (); 387 [Version (since = "2.30")] 388 public void unref (); 389 } 390 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_itp_third_party_ref", type_id = "webkit_itp_third_party_get_type ()", unref_function = "webkit_itp_third_party_unref")] 391 [Compact] 392 public class ITPThirdParty { 393 [Version (since = "2.30")] 394 public unowned string get_domain (); 395 [Version (since = "2.30")] 396 public unowned GLib.List<WebKit.ITPFirstParty> get_first_parties (); 397 [Version (since = "2.30")] 398 public unowned WebKit.ITPThirdParty @ref (); 399 [Version (since = "2.30")] 400 public void unref (); 401 } 402 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_input_method_context_get_type ()")] 403 public abstract class InputMethodContext : GLib.Object { 404 [CCode (has_construct_function = false)] 405 protected InputMethodContext (); 406 [Version (since = "2.28")] 407 public virtual bool filter_key_event (Gdk.EventKey key_event); 408 [Version (since = "2.28")] 409 public WebKit.InputHints get_input_hints (); 410 [Version (since = "2.28")] 411 public WebKit.InputPurpose get_input_purpose (); 412 [Version (since = "2.28")] 413 public virtual void get_preedit (out string? text, out GLib.List<WebKit.InputMethodUnderline>? underlines, out uint cursor_offset); 414 [Version (since = "2.28")] 415 public virtual void notify_cursor_area (int x, int y, int width, int height); 416 [Version (since = "2.28")] 417 public virtual void notify_focus_in (); 418 [Version (since = "2.28")] 419 public virtual void notify_focus_out (); 420 [Version (since = "2.28")] 421 public virtual void notify_surrounding (string text, uint length, uint cursor_index, uint selection_index); 422 [Version (since = "2.28")] 423 public virtual void reset (); 424 [Version (since = "2.28")] 425 public virtual void set_enable_preedit (bool enabled); 426 public void set_input_hints (WebKit.InputHints hints); 427 [Version (since = "2.28")] 428 public void set_input_purpose (WebKit.InputPurpose purpose); 429 public WebKit.InputHints input_hints { get; set; } 430 public WebKit.InputPurpose input_purpose { get; set; } 431 [Version (since = "2.28")] 432 public virtual signal void committed (string text); 433 [Version (since = "2.28")] 434 public virtual signal void delete_surrounding (int offset, uint n_chars); 435 [Version (since = "2.28")] 436 public virtual signal void preedit_changed (); 437 [Version (since = "2.28")] 438 public virtual signal void preedit_finished (); 439 [Version (since = "2.28")] 440 public virtual signal void preedit_started (); 441 } 442 [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_input_method_underline_get_type ()")] 443 [Compact] 444 public class InputMethodUnderline { 445 [CCode (has_construct_function = false)] 446 [Version (since = "2.28")] 447 public InputMethodUnderline (uint start_offset, uint end_offset); 448 [Version (since = "2.28")] 449 public WebKit.InputMethodUnderline copy (); 450 [Version (since = "2.28")] 451 public void free (); 452 [Version (since = "2.28")] 453 public void set_color (Gdk.RGBA? rgba); 454 } 455 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_install_missing_media_plugins_permission_request_get_type ()")] 456 public class InstallMissingMediaPluginsPermissionRequest : GLib.Object, WebKit.PermissionRequest { 457 [CCode (has_construct_function = false)] 458 protected InstallMissingMediaPluginsPermissionRequest (); 459 [Version (since = "2.10")] 460 public unowned string get_description (); 461 } 462 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_javascript_result_ref", type_id = "webkit_javascript_result_get_type ()", unref_function = "webkit_javascript_result_unref")] 463 [Compact] 464 public class JavascriptResult { 465 [Version (deprecated = true, deprecated_since = "2.22")] 466 public unowned JS.GlobalContext get_global_context (); 467 [Version (since = "2.22")] 468 public unowned JSC.Value get_js_value (); 469 [Version (deprecated = true, deprecated_since = "2.22")] 470 public unowned JS.Value get_value (); 471 public unowned WebKit.JavascriptResult @ref (); 472 public void unref (); 473 } 474 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_media_key_system_permission_request_get_type ()")] 475 public class MediaKeySystemPermissionRequest : GLib.Object, WebKit.PermissionRequest { 476 [CCode (has_construct_function = false)] 477 protected MediaKeySystemPermissionRequest (); 478 } 479 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_mime_info_ref", type_id = "webkit_mime_info_get_type ()", unref_function = "webkit_mime_info_unref")] 480 [Compact] 481 public class MimeInfo { 482 [Version (deprecated = true, deprecated_since = "2.32")] 483 public unowned string get_description (); 484 [CCode (array_length = false, array_null_terminated = true)] 485 [Version (deprecated = true, deprecated_since = "2.32")] 486 public unowned string[] get_extensions (); 487 [Version (deprecated = true, deprecated_since = "2.32")] 488 public unowned string get_mime_type (); 489 [Version (deprecated = true, deprecated_since = "2.32")] 490 public unowned WebKit.MimeInfo @ref (); 491 [Version (deprecated = true, deprecated_since = "2.32")] 492 public void unref (); 493 } 494 [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_navigation_action_get_type ()")] 495 [Compact] 496 public class NavigationAction { 497 [Version (since = "2.6")] 498 public WebKit.NavigationAction copy (); 499 [Version (since = "2.6")] 500 public void free (); 501 [Version (since = "2.6")] 502 public uint get_modifiers (); 503 [Version (since = "2.6")] 504 public uint get_mouse_button (); 505 [Version (since = "2.6")] 506 public WebKit.NavigationType get_navigation_type (); 507 [Version (since = "2.6")] 508 public unowned WebKit.URIRequest get_request (); 509 [Version (since = "2.20")] 510 public bool is_redirect (); 511 [Version (since = "2.6")] 512 public bool is_user_gesture (); 513 } 514 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_navigation_policy_decision_get_type ()")] 515 public class NavigationPolicyDecision : WebKit.PolicyDecision { 516 [CCode (has_construct_function = false)] 517 protected NavigationPolicyDecision (); 518 public unowned string get_frame_name (); 519 [Version (deprecated = true, deprecated_since = "2.6")] 520 public uint get_modifiers (); 521 [Version (deprecated = true, deprecated_since = "2.6")] 522 public uint get_mouse_button (); 523 [Version (since = "2.6")] 524 public unowned WebKit.NavigationAction get_navigation_action (); 525 [Version (deprecated = true, deprecated_since = "2.6")] 526 public WebKit.NavigationType get_navigation_type (); 527 [Version (deprecated = true, deprecated_since = "2.6")] 528 public unowned WebKit.URIRequest get_request (); 529 public string frame_name { get; } 530 [Version (deprecated = true, deprecated_since = "2.6")] 531 public uint modifiers { get; } 532 [Version (deprecated = true, deprecated_since = "2.6")] 533 public uint mouse_button { get; } 534 [Version (since = "2.6")] 535 public WebKit.NavigationAction navigation_action { get; } 536 [Version (deprecated = true, deprecated_since = "2.6")] 537 public WebKit.NavigationType navigation_type { get; } 538 [Version (deprecated = true, deprecated_since = "2.6")] 539 public WebKit.URIRequest request { get; } 540 } 541 [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_network_proxy_settings_get_type ()")] 542 [Compact] 543 public class NetworkProxySettings { 544 [CCode (has_construct_function = false)] 545 [Version (since = "2.16")] 546 public NetworkProxySettings (string? default_proxy_uri, [CCode (array_length = false, array_null_terminated = true)] string[]? ignore_hosts); 547 [Version (since = "2.16")] 548 public void add_proxy_for_scheme (string scheme, string proxy_uri); 549 [Version (since = "2.16")] 550 public WebKit.NetworkProxySettings copy (); 551 [Version (since = "2.16")] 552 public void free (); 553 } 554 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_notification_get_type ()")] 555 public class Notification : GLib.Object { 556 [CCode (has_construct_function = false)] 557 protected Notification (); 558 [Version (since = "2.8")] 559 public void close (); 560 [Version (since = "2.8")] 561 public unowned string get_body (); 562 [Version (since = "2.8")] 563 public uint64 get_id (); 564 [Version (since = "2.16")] 565 public unowned string? get_tag (); 566 [Version (since = "2.8")] 567 public unowned string get_title (); 568 [Version (since = "2.8")] 569 public string body { get; } 570 [Version (since = "2.8")] 571 public uint64 id { get; } 572 [Version (since = "2.16")] 573 public string tag { get; } 574 [Version (since = "2.8")] 575 public string title { get; } 576 [HasEmitter] 577 [Version (since = "2.12")] 578 public signal void clicked (); 579 [Version (since = "2.8")] 580 public signal void closed (); 581 } 582 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_notification_permission_request_get_type ()")] 583 public class NotificationPermissionRequest : GLib.Object, WebKit.PermissionRequest { 584 [CCode (has_construct_function = false)] 585 protected NotificationPermissionRequest (); 586 } 587 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_option_menu_get_type ()")] 588 public class OptionMenu : GLib.Object { 589 [CCode (has_construct_function = false)] 590 protected OptionMenu (); 591 [Version (since = "2.18")] 592 public void activate_item (uint index); 593 [Version (since = "2.18")] 594 public unowned WebKit.OptionMenuItem get_item (uint index); 595 [Version (since = "2.18")] 596 public uint get_n_items (); 597 [Version (since = "2.18")] 598 public void select_item (uint index); 599 [HasEmitter] 600 [Version (since = "2.18")] 601 public signal void close (); 602 } 603 [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_option_menu_item_get_type ()")] 604 [Compact] 605 public class OptionMenuItem { 606 [Version (since = "2.18")] 607 public WebKit.OptionMenuItem copy (); 608 [Version (since = "2.18")] 609 public void free (); 610 [Version (since = "2.18")] 611 public unowned string get_label (); 612 [Version (since = "2.18")] 613 public unowned string get_tooltip (); 614 [Version (since = "2.18")] 615 public bool is_enabled (); 616 [Version (since = "2.18")] 617 public bool is_group_child (); 618 [Version (since = "2.18")] 619 public bool is_group_label (); 620 [Version (since = "2.18")] 621 public bool is_selected (); 622 } 623 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_plugin_get_type ()")] 624 public class Plugin : GLib.Object { 625 [CCode (has_construct_function = false)] 626 protected Plugin (); 627 [Version (deprecated = true, deprecated_since = "2.32")] 628 public unowned string get_description (); 629 [Version (deprecated = true, deprecated_since = "2.32")] 630 public unowned GLib.List<WebKit.MimeInfo> get_mime_info_list (); 631 [Version (deprecated = true, deprecated_since = "2.32")] 632 public unowned string get_name (); 633 [Version (deprecated = true, deprecated_since = "2.32")] 634 public unowned string get_path (); 635 } 636 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_pointer_lock_permission_request_get_type ()")] 637 public class PointerLockPermissionRequest : GLib.Object, WebKit.PermissionRequest { 638 [CCode (has_construct_function = false)] 639 protected PointerLockPermissionRequest (); 640 } 641 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_policy_decision_get_type ()")] 642 public abstract class PolicyDecision : GLib.Object { 643 [CCode (has_construct_function = false)] 644 protected PolicyDecision (); 645 public void download (); 646 public void ignore (); 647 public void use (); 648 [Version (since = "2.30")] 649 public void use_with_policies (WebKit.WebsitePolicies policies); 650 } 651 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_custom_widget_get_type ()")] 652 public class PrintCustomWidget : GLib.Object { 653 [CCode (has_construct_function = false)] 654 [Version (since = "2.16")] 655 public PrintCustomWidget (Gtk.Widget widget, string title); 656 [Version (since = "2.16")] 657 public unowned string get_title (); 658 [Version (since = "2.16")] 659 public unowned Gtk.Widget get_widget (); 660 [Version (since = "2.16")] 661 public string title { get; construct; } 662 [Version (since = "2.16")] 663 public Gtk.Widget widget { get; construct; } 664 [Version (since = "2.16")] 665 public virtual signal void apply (); 666 [Version (since = "2.16")] 667 public virtual signal void update (Gtk.PageSetup widget, Gtk.PrintSettings page_setup); 668 } 669 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_operation_get_type ()")] 670 public class PrintOperation : GLib.Object { 671 [CCode (has_construct_function = false)] 672 public PrintOperation (WebKit.WebView web_view); 673 public unowned Gtk.PageSetup get_page_setup (); 674 public unowned Gtk.PrintSettings get_print_settings (); 675 public void print (); 676 public WebKit.PrintOperationResponse run_dialog (Gtk.Window? parent); 677 public void set_page_setup (Gtk.PageSetup page_setup); 678 public void set_print_settings (Gtk.PrintSettings print_settings); 679 public Gtk.PageSetup page_setup { get; set; } 680 public Gtk.PrintSettings print_settings { get; set; } 681 [NoAccessorMethod] 682 public WebKit.WebView web_view { owned get; construct; } 683 [Version (since = "2.16")] 684 public signal WebKit.PrintCustomWidget create_custom_widget (); 685 public signal void failed (WebKit.PrintError error); 686 public signal void finished (); 687 } 688 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_response_policy_decision_get_type ()")] 689 public class ResponsePolicyDecision : WebKit.PolicyDecision { 690 [CCode (has_construct_function = false)] 691 protected ResponsePolicyDecision (); 692 public unowned WebKit.URIRequest get_request (); 693 public unowned WebKit.URIResponse get_response (); 694 [Version (since = "2.4")] 695 public bool is_mime_type_supported (); 696 public WebKit.URIRequest request { get; } 697 public WebKit.URIResponse response { get; } 698 } 699 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_script_dialog_ref", type_id = "webkit_script_dialog_get_type ()", unref_function = "webkit_script_dialog_unref")] 700 [Compact] 701 public class ScriptDialog { 702 [Version (since = "2.24")] 703 public void close (); 704 public void confirm_set_confirmed (bool confirmed); 705 public WebKit.ScriptDialogType get_dialog_type (); 706 public unowned string get_message (); 707 public unowned string prompt_get_default_text (); 708 public void prompt_set_text (string text); 709 [Version (since = "2.24")] 710 public unowned WebKit.ScriptDialog @ref (); 711 [Version (since = "2.24")] 712 public void unref (); 713 } 714 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_security_manager_get_type ()")] 715 public class SecurityManager : GLib.Object { 716 [CCode (has_construct_function = false)] 717 protected SecurityManager (); 718 public void register_uri_scheme_as_cors_enabled (string scheme); 719 public void register_uri_scheme_as_display_isolated (string scheme); 720 public void register_uri_scheme_as_empty_document (string scheme); 721 public void register_uri_scheme_as_local (string scheme); 722 public void register_uri_scheme_as_no_access (string scheme); 723 public void register_uri_scheme_as_secure (string scheme); 724 public bool uri_scheme_is_cors_enabled (string scheme); 725 public bool uri_scheme_is_display_isolated (string scheme); 726 public bool uri_scheme_is_empty_document (string scheme); 727 public bool uri_scheme_is_local (string scheme); 728 public bool uri_scheme_is_no_access (string scheme); 729 public bool uri_scheme_is_secure (string scheme); 730 } 731 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_security_origin_ref", type_id = "webkit_security_origin_get_type ()", unref_function = "webkit_security_origin_unref")] 732 [Compact] 733 public class SecurityOrigin { 734 [CCode (has_construct_function = false)] 735 [Version (since = "2.16")] 736 public SecurityOrigin (string protocol, string host, uint16 port); 737 [CCode (has_construct_function = false)] 738 [Version (since = "2.16")] 739 public SecurityOrigin.for_uri (string uri); 740 [Version (since = "2.16")] 741 public unowned string? get_host (); 742 [Version (since = "2.16")] 743 public uint16 get_port (); 744 [Version (since = "2.16")] 745 public unowned string? get_protocol (); 746 [Version (deprecated = true, deprecated_since = "2.32", since = "2.16")] 747 public bool is_opaque (); 748 [Version (since = "2.16")] 749 public unowned WebKit.SecurityOrigin @ref (); 750 [Version (since = "2.16")] 751 public string? to_string (); 752 [Version (since = "2.16")] 753 public void unref (); 754 } 755 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_settings_get_type ()")] 756 public class Settings : GLib.Object { 757 [CCode (has_construct_function = false)] 758 public Settings (); 759 [Version (since = "2.20")] 760 public static uint32 font_size_to_pixels (uint32 points); 761 [Version (since = "2.20")] 762 public static uint32 font_size_to_points (uint32 pixels); 763 [Version (since = "2.10")] 764 public bool get_allow_file_access_from_file_urls (); 765 public bool get_allow_modal_dialogs (); 766 [Version (since = "2.28")] 767 public bool get_allow_top_navigation_to_data_urls (); 768 [Version (since = "2.14")] 769 public bool get_allow_universal_access_from_file_urls (); 770 public bool get_auto_load_images (); 771 public unowned string get_cursive_font_family (); 772 public unowned string get_default_charset (); 773 public unowned string get_default_font_family (); 774 public uint32 get_default_font_size (); 775 public uint32 get_default_monospace_font_size (); 776 public bool get_draw_compositing_indicators (); 777 [Version (deprecated = true, deprecated_since = "2.32.", since = "2.2")] 778 public bool get_enable_accelerated_2d_canvas (); 779 [Version (since = "2.24")] 780 public bool get_enable_back_forward_navigation_gestures (); 781 public bool get_enable_caret_browsing (); 782 public bool get_enable_developer_extras (); 783 public bool get_enable_dns_prefetching (); 784 [Version (since = "2.20")] 785 public bool get_enable_encrypted_media (); 786 public bool get_enable_frame_flattening (); 787 public bool get_enable_fullscreen (); 788 public bool get_enable_html5_database (); 789 public bool get_enable_html5_local_storage (); 790 public bool get_enable_hyperlink_auditing (); 791 public bool get_enable_java (); 792 public bool get_enable_javascript (); 793 [Version (since = "2.24")] 794 public bool get_enable_javascript_markup (); 795 [Version (since = "2.26")] 796 public bool get_enable_media (); 797 [Version (since = "2.22")] 798 public bool get_enable_media_capabilities (); 799 [Version (since = "2.4")] 800 public bool get_enable_media_stream (); 801 [Version (since = "2.4")] 802 public bool get_enable_mediasource (); 803 [Version (since = "2.24")] 804 public bool get_enable_mock_capture_devices (); 805 public bool get_enable_offline_web_application_cache (); 806 public bool get_enable_page_cache (); 807 [Version (deprecated = true, deprecated_since = "2.32")] 808 public bool get_enable_plugins (); 809 [Version (deprecated = true, deprecated_since = "2.16.")] 810 public bool get_enable_private_browsing (); 811 public bool get_enable_resizable_text_areas (); 812 public bool get_enable_site_specific_quirks (); 813 public bool get_enable_smooth_scrolling (); 814 [Version (since = "2.2")] 815 public bool get_enable_spatial_navigation (); 816 public bool get_enable_tabs_to_links (); 817 public bool get_enable_webaudio (); 818 public bool get_enable_webgl (); 819 [Version (since = "2.2")] 820 public bool get_enable_write_console_messages_to_stdout (); 821 public bool get_enable_xss_auditor (); 822 public unowned string get_fantasy_font_family (); 823 [Version (since = "2.16")] 824 public WebKit.HardwareAccelerationPolicy get_hardware_acceleration_policy (); 825 public bool get_javascript_can_access_clipboard (); 826 public bool get_javascript_can_open_windows_automatically (); 827 public bool get_load_icons_ignoring_image_load_setting (); 828 [Version (since = "2.30")] 829 public unowned string get_media_content_types_requiring_hardware_support (); 830 public bool get_media_playback_allows_inline (); 831 public bool get_media_playback_requires_user_gesture (); 832 public uint32 get_minimum_font_size (); 833 public unowned string get_monospace_font_family (); 834 public unowned string get_pictograph_font_family (); 835 public bool get_print_backgrounds (); 836 public unowned string get_sans_serif_font_family (); 837 public unowned string get_serif_font_family (); 838 public unowned string get_user_agent (); 839 public bool get_zoom_text_only (); 840 [Version (since = "2.10")] 841 public void set_allow_file_access_from_file_urls (bool allowed); 842 public void set_allow_modal_dialogs (bool allowed); 843 [Version (since = "2.28")] 844 public void set_allow_top_navigation_to_data_urls (bool allowed); 845 [Version (since = "2.14")] 846 public void set_allow_universal_access_from_file_urls (bool allowed); 847 public void set_auto_load_images (bool enabled); 848 public void set_cursive_font_family (string cursive_font_family); 849 public void set_default_charset (string default_charset); 850 public void set_default_font_family (string default_font_family); 851 public void set_default_font_size (uint32 font_size); 852 public void set_default_monospace_font_size (uint32 font_size); 853 public void set_draw_compositing_indicators (bool enabled); 854 [Version (deprecated = true, deprecated_since = "2.32.", since = "2.2")] 855 public void set_enable_accelerated_2d_canvas (bool enabled); 856 [Version (since = "2.24")] 857 public void set_enable_back_forward_navigation_gestures (bool enabled); 858 public void set_enable_caret_browsing (bool enabled); 859 public void set_enable_developer_extras (bool enabled); 860 public void set_enable_dns_prefetching (bool enabled); 861 [Version (since = "2.20")] 862 public void set_enable_encrypted_media (bool enabled); 863 public void set_enable_frame_flattening (bool enabled); 864 public void set_enable_fullscreen (bool enabled); 865 public void set_enable_html5_database (bool enabled); 866 public void set_enable_html5_local_storage (bool enabled); 867 public void set_enable_hyperlink_auditing (bool enabled); 868 public void set_enable_java (bool enabled); 869 public void set_enable_javascript (bool enabled); 870 [Version (since = "2.24")] 871 public void set_enable_javascript_markup (bool enabled); 872 [Version (since = "2.26")] 873 public void set_enable_media (bool enabled); 874 [Version (since = "2.22")] 875 public void set_enable_media_capabilities (bool enabled); 876 [Version (since = "2.4")] 877 public void set_enable_media_stream (bool enabled); 878 [Version (since = "2.4")] 879 public void set_enable_mediasource (bool enabled); 880 [Version (since = "2.4")] 881 public void set_enable_mock_capture_devices (bool enabled); 882 public void set_enable_offline_web_application_cache (bool enabled); 883 public void set_enable_page_cache (bool enabled); 884 [Version (deprecated = true, deprecated_since = "2.32")] 885 public void set_enable_plugins (bool enabled); 886 [Version (deprecated = true, deprecated_since = "2.16.")] 887 public void set_enable_private_browsing (bool enabled); 888 public void set_enable_resizable_text_areas (bool enabled); 889 public void set_enable_site_specific_quirks (bool enabled); 890 public void set_enable_smooth_scrolling (bool enabled); 891 [Version (since = "2.2")] 892 public void set_enable_spatial_navigation (bool enabled); 893 public void set_enable_tabs_to_links (bool enabled); 894 public void set_enable_webaudio (bool enabled); 895 public void set_enable_webgl (bool enabled); 896 [Version (since = "2.2")] 897 public void set_enable_write_console_messages_to_stdout (bool enabled); 898 public void set_enable_xss_auditor (bool enabled); 899 public void set_fantasy_font_family (string fantasy_font_family); 900 [Version (since = "2.16")] 901 public void set_hardware_acceleration_policy (WebKit.HardwareAccelerationPolicy policy); 902 public void set_javascript_can_access_clipboard (bool enabled); 903 public void set_javascript_can_open_windows_automatically (bool enabled); 904 public void set_load_icons_ignoring_image_load_setting (bool enabled); 905 [Version (since = "2.30")] 906 public void set_media_content_types_requiring_hardware_support (string? content_types); 907 public void set_media_playback_allows_inline (bool enabled); 908 public void set_media_playback_requires_user_gesture (bool enabled); 909 public void set_minimum_font_size (uint32 font_size); 910 public void set_monospace_font_family (string monospace_font_family); 911 public void set_pictograph_font_family (string pictograph_font_family); 912 public void set_print_backgrounds (bool print_backgrounds); 913 public void set_sans_serif_font_family (string sans_serif_font_family); 914 public void set_serif_font_family (string serif_font_family); 915 public void set_user_agent (string? user_agent); 916 public void set_user_agent_with_application_details (string? application_name, string? application_version); 917 public void set_zoom_text_only (bool zoom_text_only); 918 [Version (since = "2.10")] 919 public bool allow_file_access_from_file_urls { get; set construct; } 920 public bool allow_modal_dialogs { get; set construct; } 921 [Version (since = "2.28")] 922 public bool allow_top_navigation_to_data_urls { get; set construct; } 923 [Version (since = "2.14")] 924 public bool allow_universal_access_from_file_urls { get; set construct; } 925 public bool auto_load_images { get; set construct; } 926 public string cursive_font_family { get; set construct; } 927 public string default_charset { get; set construct; } 928 public string default_font_family { get; set construct; } 929 public uint default_font_size { get; set construct; } 930 public uint default_monospace_font_size { get; set construct; } 931 public bool draw_compositing_indicators { get; set construct; } 932 [Version (deprecated = true, deprecated_since = "2.32.", since = "2.2")] 933 public bool enable_accelerated_2d_canvas { get; set construct; } 934 [Version (since = "2.24")] 935 public bool enable_back_forward_navigation_gestures { get; set construct; } 936 public bool enable_caret_browsing { get; set construct; } 937 public bool enable_developer_extras { get; set construct; } 938 public bool enable_dns_prefetching { get; set construct; } 939 [Version (since = "2.20")] 940 public bool enable_encrypted_media { get; set construct; } 941 public bool enable_frame_flattening { get; set construct; } 942 public bool enable_fullscreen { get; set construct; } 943 public bool enable_html5_database { get; set construct; } 944 public bool enable_html5_local_storage { get; set construct; } 945 public bool enable_hyperlink_auditing { get; set construct; } 946 public bool enable_java { get; set construct; } 947 public bool enable_javascript { get; set construct; } 948 [Version (since = "2.24")] 949 public bool enable_javascript_markup { get; set construct; } 950 [Version (since = "2.26")] 951 public bool enable_media { get; set construct; } 952 [Version (since = "2.22")] 953 public bool enable_media_capabilities { get; set construct; } 954 [Version (since = "2.4")] 955 public bool enable_media_stream { get; set construct; } 956 [Version (since = "2.4")] 957 public bool enable_mediasource { get; set construct; } 958 [Version (since = "2.24")] 959 public bool enable_mock_capture_devices { get; set construct; } 960 public bool enable_offline_web_application_cache { get; set construct; } 961 public bool enable_page_cache { get; set construct; } 962 [Version (deprecated = true, deprecated_since = "2.32")] 963 public bool enable_plugins { get; set construct; } 964 [Version (deprecated = true, deprecated_since = "2.16.")] 965 public bool enable_private_browsing { get; set construct; } 966 public bool enable_resizable_text_areas { get; set construct; } 967 public bool enable_site_specific_quirks { get; set construct; } 968 public bool enable_smooth_scrolling { get; set construct; } 969 [Version (since = "2.4")] 970 public bool enable_spatial_navigation { get; set construct; } 971 public bool enable_tabs_to_links { get; set construct; } 972 public bool enable_webaudio { get; set construct; } 973 public bool enable_webgl { get; set construct; } 974 [Version (since = "2.2")] 975 public bool enable_write_console_messages_to_stdout { get; set construct; } 976 public bool enable_xss_auditor { get; set construct; } 977 public string fantasy_font_family { get; set construct; } 978 [Version (since = "2.16")] 979 public WebKit.HardwareAccelerationPolicy hardware_acceleration_policy { get; set construct; } 980 public bool javascript_can_access_clipboard { get; set construct; } 981 public bool javascript_can_open_windows_automatically { get; set construct; } 982 public bool load_icons_ignoring_image_load_setting { get; set construct; } 983 [Version (since = "2.30")] 984 public string media_content_types_requiring_hardware_support { get; set construct; } 985 public bool media_playback_allows_inline { get; set construct; } 986 public bool media_playback_requires_user_gesture { get; set construct; } 987 public uint minimum_font_size { get; set construct; } 988 public string monospace_font_family { get; set construct; } 989 public string pictograph_font_family { get; set construct; } 990 public bool print_backgrounds { get; set construct; } 991 public string sans_serif_font_family { get; set construct; } 992 public string serif_font_family { get; set construct; } 993 public string user_agent { get; set construct; } 994 public bool zoom_text_only { get; set construct; } 995 } 996 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_request_get_type ()")] 997 public class URIRequest : GLib.Object { 998 [CCode (has_construct_function = false)] 999 public URIRequest (string uri); 1000 public unowned Soup.MessageHeaders get_http_headers (); 1001 [Version (since = "2.12")] 1002 public unowned string get_http_method (); 1003 public unowned string get_uri (); 1004 public void set_uri (string uri); 1005 public string uri { get; set construct; } 1006 } 1007 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_response_get_type ()")] 1008 public class URIResponse : GLib.Object { 1009 [CCode (has_construct_function = false)] 1010 protected URIResponse (); 1011 public uint64 get_content_length (); 1012 [Version (since = "2.6")] 1013 public unowned Soup.MessageHeaders get_http_headers (); 1014 public unowned string get_mime_type (); 1015 public uint get_status_code (); 1016 public unowned string get_suggested_filename (); 1017 public unowned string get_uri (); 1018 public uint64 content_length { get; } 1019 [Version (since = "2.6")] 1020 public Soup.MessageHeaders http_headers { get; } 1021 public string mime_type { get; } 1022 public uint status_code { get; } 1023 public string suggested_filename { get; } 1024 public string uri { get; } 1025 } 1026 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_scheme_request_get_type ()")] 1027 public class URISchemeRequest : GLib.Object { 1028 [CCode (has_construct_function = false)] 1029 protected URISchemeRequest (); 1030 public void finish (GLib.InputStream stream, int64 stream_length, string? content_type); 1031 [Version (since = "2.2")] 1032 public void finish_error (GLib.Error error); 1033 public unowned string get_path (); 1034 public unowned string get_scheme (); 1035 public unowned string get_uri (); 1036 public unowned WebKit.WebView get_web_view (); 1037 } 1038 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_user_content_filter_ref", type_id = "webkit_user_content_filter_get_type ()", unref_function = "webkit_user_content_filter_unref")] 1039 [Compact] 1040 public class UserContentFilter { 1041 [Version (since = "2.24")] 1042 public unowned string get_identifier (); 1043 [Version (since = "2.24")] 1044 public unowned WebKit.UserContentFilter @ref (); 1045 [Version (since = "2.24")] 1046 public void unref (); 1047 } 1048 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_content_filter_store_get_type ()")] 1049 public class UserContentFilterStore : GLib.Object { 1050 [CCode (has_construct_function = false)] 1051 [Version (since = "2.24")] 1052 public UserContentFilterStore (string storage_path); 1053 [CCode (array_length = false, array_null_terminated = true)] 1054 [Version (since = "2.24")] 1055 public async string[] fetch_identifiers (GLib.Cancellable? cancellable = null); 1056 [Version (since = "2.24")] 1057 public unowned string get_path (); 1058 [Version (since = "2.24")] 1059 public async WebKit.UserContentFilter load (string identifier, GLib.Cancellable? cancellable = null) throws GLib.Error; 1060 [Version (since = "2.24")] 1061 public async bool remove (string identifier, GLib.Cancellable? cancellable = null) throws GLib.Error; 1062 [Version (since = "2.24")] 1063 public async WebKit.UserContentFilter save (string identifier, GLib.Bytes source, GLib.Cancellable? cancellable = null) throws GLib.Error; 1064 [Version (since = "2.24")] 1065 public async WebKit.UserContentFilter save_from_file (string identifier, GLib.File file, GLib.Cancellable? cancellable = null) throws GLib.Error; 1066 [Version (since = "2.24")] 1067 public string path { get; construct; } 1068 } 1069 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_content_manager_get_type ()")] 1070 public class UserContentManager : GLib.Object { 1071 [CCode (has_construct_function = false)] 1072 [Version (since = "2.6")] 1073 public UserContentManager (); 1074 [Version (since = "2.24")] 1075 public void add_filter (WebKit.UserContentFilter filter); 1076 [Version (since = "2.6")] 1077 public void add_script (WebKit.UserScript script); 1078 [Version (since = "2.6")] 1079 public void add_style_sheet (WebKit.UserStyleSheet stylesheet); 1080 [Version (since = "2.8")] 1081 public bool register_script_message_handler (string name); 1082 [Version (since = "2.22")] 1083 public bool register_script_message_handler_in_world (string name, string world_name); 1084 [Version (since = "2.24")] 1085 public void remove_all_filters (); 1086 [Version (since = "2.6")] 1087 public void remove_all_scripts (); 1088 [Version (since = "2.6")] 1089 public void remove_all_style_sheets (); 1090 public void remove_filter (WebKit.UserContentFilter filter); 1091 [Version (since = "2.26")] 1092 public void remove_filter_by_id (string filter_id); 1093 [Version (since = "2.32")] 1094 public void remove_script (WebKit.UserScript script); 1095 [Version (since = "2.32")] 1096 public void remove_style_sheet (WebKit.UserStyleSheet stylesheet); 1097 [Version (since = "2.8")] 1098 public void unregister_script_message_handler (string name); 1099 [Version (since = "2.22")] 1100 public void unregister_script_message_handler_in_world (string name, string world_name); 1101 [Version (since = "2.8")] 1102 public signal void script_message_received (WebKit.JavascriptResult js_result); 1103 } 1104 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_media_permission_request_get_type ()")] 1105 public class UserMediaPermissionRequest : GLib.Object, WebKit.PermissionRequest { 1106 [CCode (has_construct_function = false)] 1107 protected UserMediaPermissionRequest (); 1108 [NoAccessorMethod] 1109 public bool is_for_audio_device { get; } 1110 [NoAccessorMethod] 1111 public bool is_for_video_device { get; } 1112 } 1113 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_message_get_type ()")] 1114 public class UserMessage : GLib.InitiallyUnowned { 1115 [CCode (has_construct_function = false)] 1116 [Version (since = "2.28")] 1117 public UserMessage (string name, GLib.Variant? parameters); 1118 [Version (since = "2.28")] 1119 public unowned GLib.UnixFDList? get_fd_list (); 1120 [Version (since = "2.28")] 1121 public unowned string get_name (); 1122 [Version (since = "2.28")] 1123 public unowned GLib.Variant? get_parameters (); 1124 [Version (since = "2.28")] 1125 public void send_reply (WebKit.UserMessage reply); 1126 [CCode (has_construct_function = false)] 1127 [Version (since = "2.28")] 1128 public UserMessage.with_fd_list (string name, GLib.Variant? parameters, GLib.UnixFDList? fd_list); 1129 [Version (since = "2.28")] 1130 public GLib.UnixFDList fd_list { get; construct; } 1131 [Version (since = "2.28")] 1132 public string name { get; construct; } 1133 [Version (since = "2.28")] 1134 public GLib.Variant parameters { get; construct; } 1135 } 1136 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_user_script_ref", type_id = "webkit_user_script_get_type ()", unref_function = "webkit_user_script_unref")] 1137 [Compact] 1138 public class UserScript { 1139 [CCode (has_construct_function = false)] 1140 [Version (since = "2.6")] 1141 public UserScript (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserScriptInjectionTime injection_time, [CCode (array_length = false, array_null_terminated = true)] string[]? allow_list, [CCode (array_length = false, array_null_terminated = true)] string[]? block_list); 1142 [CCode (has_construct_function = false)] 1143 [Version (since = "2.22")] 1144 public UserScript.for_world (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserScriptInjectionTime injection_time, string world_name, [CCode (array_length = false, array_null_terminated = true)] string[]? allow_list, [CCode (array_length = false, array_null_terminated = true)] string[]? block_list); 1145 [Version (since = "2.6")] 1146 public unowned WebKit.UserScript @ref (); 1147 [Version (since = "2.6")] 1148 public void unref (); 1149 } 1150 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_user_style_sheet_ref", type_id = "webkit_user_style_sheet_get_type ()", unref_function = "webkit_user_style_sheet_unref")] 1151 [Compact] 1152 public class UserStyleSheet { 1153 [CCode (has_construct_function = false)] 1154 [Version (since = "2.6")] 1155 public UserStyleSheet (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserStyleLevel level, [CCode (array_length = false, array_null_terminated = true)] string[]? allow_list, [CCode (array_length = false, array_null_terminated = true)] string[]? block_list); 1156 [CCode (has_construct_function = false)] 1157 [Version (since = "2.22")] 1158 public UserStyleSheet.for_world (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserStyleLevel level, string world_name, [CCode (array_length = false, array_null_terminated = true)] string[]? allow_list, [CCode (array_length = false, array_null_terminated = true)] string[]? block_list); 1159 [Version (since = "2.6")] 1160 public unowned WebKit.UserStyleSheet @ref (); 1161 [Version (since = "2.6")] 1162 public void unref (); 1163 } 1164 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_context_get_type ()")] 1165 public class WebContext : GLib.Object { 1166 [CCode (has_construct_function = false)] 1167 [Version (since = "2.8")] 1168 public WebContext (); 1169 [Version (since = "2.26")] 1170 public void add_path_to_sandbox (string path, bool read_only); 1171 [Version (since = "2.6")] 1172 public void allow_tls_certificate_for_host (GLib.TlsCertificate certificate, string host); 1173 public void clear_cache (); 1174 public WebKit.Download download_uri (string uri); 1175 [CCode (has_construct_function = false)] 1176 [Version (since = "2.16")] 1177 public WebContext.ephemeral (); 1178 public WebKit.CacheModel get_cache_model (); 1179 public unowned WebKit.CookieManager get_cookie_manager (); 1180 public static unowned WebKit.WebContext get_default (); 1181 public unowned WebKit.FaviconDatabase get_favicon_database (); 1182 public unowned string get_favicon_database_directory (); 1183 [Version (since = "2.26")] 1184 public unowned WebKit.GeolocationManager get_geolocation_manager (); 1185 [Version (deprecated = true, deprecated_since = "2.32")] 1186 public async GLib.List<WebKit.Plugin> get_plugins (GLib.Cancellable? cancellable = null) throws GLib.Error; 1187 [Version (since = "2.4")] 1188 public WebKit.ProcessModel get_process_model (); 1189 [Version (since = "2.26")] 1190 public bool get_sandbox_enabled (); 1191 public unowned WebKit.SecurityManager get_security_manager (); 1192 public bool get_spell_checking_enabled (); 1193 [CCode (array_length = false, array_null_terminated = true)] 1194 public unowned string[] get_spell_checking_languages (); 1195 [Version (deprecated = true, deprecated_since = "2.32.")] 1196 public WebKit.TLSErrorsPolicy get_tls_errors_policy (); 1197 [Version (since = "2.30")] 1198 public bool get_use_system_appearance_for_scrollbars (); 1199 [Version (deprecated = true, deprecated_since = "2.26", since = "2.10")] 1200 public uint get_web_process_count_limit (); 1201 [Version (since = "2.10")] 1202 public unowned WebKit.WebsiteDataManager get_website_data_manager (); 1203 [CCode (cname = "webkit_web_context_initialize_notification_permissions")] 1204 [Version (since = "2.16")] 1205 public void init_notification_permissions (GLib.List<WebKit.SecurityOrigin> allowed_origins, GLib.List<WebKit.SecurityOrigin> disallowed_origins); 1206 [Version (since = "2.18")] 1207 public bool is_automation_allowed (); 1208 [Version (since = "2.16")] 1209 public bool is_ephemeral (); 1210 public void prefetch_dns (string hostname); 1211 public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback); 1212 [Version (since = "2.28")] 1213 public void send_message_to_all_extensions (WebKit.UserMessage message); 1214 [Version (deprecated = true, deprecated_since = "2.32")] 1215 public void set_additional_plugins_directory (string directory); 1216 [Version (since = "2.18")] 1217 public void set_automation_allowed (bool allowed); 1218 public void set_cache_model (WebKit.CacheModel cache_model); 1219 [Version (deprecated = true, deprecated_since = "2.10.")] 1220 public void set_disk_cache_directory (string directory); 1221 public void set_favicon_database_directory (string? path); 1222 [Version (deprecated = true, deprecated_since = "2.32.", since = "2.16")] 1223 public void set_network_proxy_settings (WebKit.NetworkProxyMode proxy_mode, WebKit.NetworkProxySettings? proxy_settings); 1224 public void set_preferred_languages ([CCode (array_length = false, array_null_terminated = true)] string[]? languages); 1225 [Version (since = "2.4")] 1226 public void set_process_model (WebKit.ProcessModel process_model); 1227 [Version (since = "2.26")] 1228 public void set_sandbox_enabled (bool enabled); 1229 public void set_spell_checking_enabled (bool enabled); 1230 public void set_spell_checking_languages ([CCode (array_length = false, array_null_terminated = true)] string[] languages); 1231 [Version (deprecated = true, deprecated_since = "2.32.")] 1232 public void set_tls_errors_policy (WebKit.TLSErrorsPolicy policy); 1233 [Version (since = "2.30")] 1234 public void set_use_system_appearance_for_scrollbars (bool enabled); 1235 public void set_web_extensions_directory (string directory); 1236 [Version (since = "2.4")] 1237 public void set_web_extensions_initialization_user_data (GLib.Variant user_data); 1238 [Version (deprecated = true, deprecated_since = "2.26", since = "2.10")] 1239 public void set_web_process_count_limit (uint limit); 1240 [CCode (has_construct_function = false)] 1241 [Version (since = "2.10")] 1242 public WebContext.with_website_data_manager (WebKit.WebsiteDataManager manager); 1243 [NoAccessorMethod] 1244 [Version (deprecated = true, deprecated_since = "2.10.", since = "2.8")] 1245 public string local_storage_directory { owned get; construct; } 1246 [NoAccessorMethod] 1247 [Version (since = "2.28")] 1248 public bool process_swap_on_cross_site_navigation_enabled { get; construct; } 1249 [Version (since = "2.30")] 1250 public bool use_system_appearance_for_scrollbars { get; set construct; } 1251 [Version (since = "2.10")] 1252 public WebKit.WebsiteDataManager website_data_manager { get; construct; } 1253 [Version (since = "2.18")] 1254 public virtual signal void automation_started (WebKit.AutomationSession session); 1255 public virtual signal void download_started (WebKit.Download download); 1256 [Version (since = "2.16")] 1257 public virtual signal void initialize_notification_permissions (); 1258 [Version (since = "2.4")] 1259 public virtual signal void initialize_web_extensions (); 1260 [Version (since = "2.28")] 1261 public virtual signal bool user_message_received (WebKit.UserMessage message); 1262 } 1263 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_inspector_get_type ()")] 1264 public class WebInspector : GLib.Object { 1265 [CCode (has_construct_function = false)] 1266 protected WebInspector (); 1267 public void close (); 1268 public uint get_attached_height (); 1269 [Version (since = "2.8")] 1270 public bool get_can_attach (); 1271 public unowned string get_inspected_uri (); 1272 public unowned WebKit.WebViewBase get_web_view (); 1273 public bool is_attached (); 1274 public void show (); 1275 public uint attached_height { get; } 1276 [Version (since = "2.8")] 1277 public bool can_attach { get; } 1278 public string inspected_uri { get; } 1279 [HasEmitter] 1280 public signal bool attach (); 1281 public signal bool bring_to_front (); 1282 public signal void closed (); 1283 [HasEmitter] 1284 public signal bool detach (); 1285 public signal bool open_window (); 1286 } 1287 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_resource_get_type ()")] 1288 public class WebResource : GLib.Object { 1289 [CCode (has_construct_function = false)] 1290 protected WebResource (); 1291 public async uint8[] get_data (GLib.Cancellable? cancellable = null) throws GLib.Error; 1292 public unowned WebKit.URIResponse get_response (); 1293 public unowned string get_uri (); 1294 public WebKit.URIResponse response { get; } 1295 public string uri { get; } 1296 public signal void failed (GLib.Error error); 1297 [Version (since = "2.8")] 1298 public signal void failed_with_tls_errors (GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors); 1299 public signal void finished (); 1300 public signal void received_data (uint64 data_length); 1301 public signal void sent_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response); 1302 } 1303 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_get_type ()")] 1304 public class WebView : WebKit.WebViewBase, Atk.Implementor, Gtk.Buildable { 1305 [CCode (has_construct_function = false, type = "GtkWidget*")] 1306 public WebView (); 1307 public async bool can_execute_editing_command (string command, GLib.Cancellable? cancellable = null) throws GLib.Error; 1308 public bool can_go_back (); 1309 public bool can_go_forward (); 1310 public bool can_show_mime_type (string mime_type); 1311 public WebKit.Download download_uri (string uri); 1312 public void execute_editing_command (string command); 1313 [Version (since = "2.10")] 1314 public void execute_editing_command_with_argument (string command, string argument); 1315 [Version (since = "2.28")] 1316 public WebKit.AutomationBrowsingContextPresentation get_automation_presentation_type (); 1317 public unowned WebKit.BackForwardList get_back_forward_list (); 1318 [Version (since = "2.8")] 1319 public Gdk.RGBA get_background_color (); 1320 public unowned WebKit.WebContext get_context (); 1321 public unowned string get_custom_charset (); 1322 [Version (since = "2.10")] 1323 public unowned WebKit.EditorState get_editor_state (); 1324 public double get_estimated_load_progress (); 1325 public unowned Cairo.Surface get_favicon (); 1326 public unowned WebKit.FindController get_find_controller (); 1327 [Version (since = "2.28")] 1328 public unowned WebKit.InputMethodContext? get_input_method_context (); 1329 public unowned WebKit.WebInspector get_inspector (); 1330 [Version (since = "2.30")] 1331 public bool get_is_muted (); 1332 [Version (deprecated = true, deprecated_since = "2.22")] 1333 public unowned JS.GlobalContext get_javascript_global_context (); 1334 public unowned WebKit.WebResource get_main_resource (); 1335 public uint64 get_page_id (); 1336 [Version (since = "2.12")] 1337 public WebKit.WebViewSessionState get_session_state (); 1338 public unowned WebKit.Settings get_settings (); 1339 public async Cairo.Surface get_snapshot (WebKit.SnapshotRegion region, WebKit.SnapshotOptions options, GLib.Cancellable? cancellable = null) throws GLib.Error; 1340 public unowned string get_title (); 1341 public bool get_tls_info (out unowned GLib.TlsCertificate certificate, out GLib.TlsCertificateFlags errors); 1342 public unowned string get_uri (); 1343 [Version (since = "2.6")] 1344 public unowned WebKit.UserContentManager get_user_content_manager (); 1345 [Version (since = "2.16")] 1346 public unowned WebKit.WebsiteDataManager get_website_data_manager (); 1347 [Version (since = "2.30")] 1348 public unowned WebKit.WebsitePolicies get_website_policies (); 1349 public unowned WebKit.WindowProperties get_window_properties (); 1350 public double get_zoom_level (); 1351 public void go_back (); 1352 public void go_forward (); 1353 public void go_to_back_forward_list_item (WebKit.BackForwardListItem list_item); 1354 public bool is_editable (); 1355 public void load_alternate_html (string content, string content_uri, string? base_uri); 1356 [Version (since = "2.6")] 1357 public void load_bytes (GLib.Bytes bytes, string? mime_type, string? encoding, string? base_uri); 1358 public void load_html (string content, string? base_uri); 1359 public void load_plain_text (string plain_text); 1360 public void load_request (WebKit.URIRequest request); 1361 public void load_uri (string uri); 1362 public void reload (); 1363 public void reload_bypass_cache (); 1364 [Version (since = "2.12")] 1365 public void restore_session_state (WebKit.WebViewSessionState state); 1366 public async WebKit.JavascriptResult run_javascript (string script, GLib.Cancellable? cancellable = null) throws GLib.Error; 1367 public async WebKit.JavascriptResult run_javascript_from_gresource (string resource, GLib.Cancellable? cancellable = null) throws GLib.Error; 1368 [Version (since = "2.22")] 1369 public async WebKit.JavascriptResult run_javascript_in_world (string script, string world_name, GLib.Cancellable? cancellable = null) throws GLib.Error; 1370 public async GLib.InputStream save (WebKit.SaveMode save_mode, GLib.Cancellable? cancellable = null) throws GLib.Error; 1371 public async bool save_to_file (GLib.File file, WebKit.SaveMode save_mode, GLib.Cancellable? cancellable = null) throws GLib.Error; 1372 [Version (since = "2.28")] 1373 public async WebKit.UserMessage send_message_to_page (WebKit.UserMessage message, GLib.Cancellable? cancellable = null) throws GLib.Error; 1374 [Version (since = "2.8")] 1375 public void set_background_color (Gdk.RGBA rgba); 1376 public void set_custom_charset (string? charset); 1377 [Version (since = "2.8")] 1378 public void set_editable (bool editable); 1379 [Version (since = "2.28")] 1380 public void set_input_method_context (WebKit.InputMethodContext? context); 1381 [Version (since = "2.30")] 1382 public void set_is_muted (bool muted); 1383 public void set_settings (WebKit.Settings settings); 1384 public void set_zoom_level (double zoom_level); 1385 [NoWrapper] 1386 public virtual bool show_option_menu (Gdk.Rectangle rectangle, WebKit.OptionMenu menu); 1387 public void stop_loading (); 1388 [Version (since = "2.12")] 1389 public void try_close (); 1390 [CCode (has_construct_function = false, type = "GtkWidget*")] 1391 public WebView.with_context (WebKit.WebContext context); 1392 [CCode (has_construct_function = false, type = "GtkWidget*")] 1393 [Version (since = "2.4")] 1394 public WebView.with_related_view (WebKit.WebView web_view); 1395 [CCode (has_construct_function = false, type = "GtkWidget*")] 1396 [Version (since = "2.6")] 1397 public WebView.with_settings (WebKit.Settings settings); 1398 [CCode (has_construct_function = false, type = "GtkWidget*")] 1399 [Version (since = "2.6")] 1400 public WebView.with_user_content_manager (WebKit.UserContentManager user_content_manager); 1401 [Version (since = "2.28")] 1402 public WebKit.AutomationBrowsingContextPresentation automation_presentation_type { get; construct; } 1403 [NoAccessorMethod] 1404 [Version (since = "2.8")] 1405 public bool editable { get; set; } 1406 public double estimated_load_progress { get; } 1407 public void* favicon { get; } 1408 [NoAccessorMethod] 1409 [Version (since = "2.18")] 1410 public bool is_controlled_by_automation { get; construct; } 1411 [NoAccessorMethod] 1412 [Version (since = "2.16")] 1413 public bool is_ephemeral { get; construct; } 1414 [NoAccessorMethod] 1415 public bool is_loading { get; } 1416 [Version (since = "2.30")] 1417 public bool is_muted { get; set; } 1418 [NoAccessorMethod] 1419 [Version (since = "2.8")] 1420 public bool is_playing_audio { get; } 1421 [Version (since = "2.28")] 1422 public uint64 page_id { get; } 1423 [NoAccessorMethod] 1424 [Version (since = "2.4")] 1425 public WebKit.WebView related_view { construct; } 1426 [Version (since = "2.6")] 1427 public WebKit.Settings settings { set construct; } 1428 public string title { get; } 1429 public string uri { get; } 1430 [Version (since = "2.6")] 1431 public WebKit.UserContentManager user_content_manager { get; construct; } 1432 [NoAccessorMethod] 1433 public WebKit.WebContext web_context { owned get; construct; } 1434 [Version (since = "2.30")] 1435 public WebKit.WebsitePolicies website_policies { get; construct; } 1436 public double zoom_level { get; set; } 1437 [Version (since = "2.2")] 1438 public virtual signal bool authenticate (WebKit.AuthenticationRequest request); 1439 public virtual signal void close (); 1440 public virtual signal bool context_menu (WebKit.ContextMenu context_menu, Gdk.Event event, WebKit.HitTestResult hit_test_result); 1441 public virtual signal void context_menu_dismissed (); 1442 public signal Gtk.Widget create (WebKit.NavigationAction navigation_action); 1443 public virtual signal bool decide_policy (WebKit.PolicyDecision decision, WebKit.PolicyDecisionType type); 1444 public virtual signal bool enter_fullscreen (); 1445 public virtual signal void insecure_content_detected (WebKit.InsecureContentEvent event); 1446 public virtual signal bool leave_fullscreen (); 1447 public virtual signal void load_changed (WebKit.LoadEvent load_event); 1448 public virtual signal bool load_failed (WebKit.LoadEvent load_event, string failing_uri, GLib.Error error); 1449 [Version (since = "2.6")] 1450 public virtual signal bool load_failed_with_tls_errors (string failing_uri, GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors); 1451 public virtual signal void mouse_target_changed (WebKit.HitTestResult hit_test_result, uint modifiers); 1452 [CCode (cname = "show-option-menu")] 1453 [Version (since = "2.28")] 1454 public signal bool on_show_option_menu (WebKit.OptionMenu object, Gdk.Event p0, Gdk.Rectangle p1); 1455 public virtual signal bool permission_request (WebKit.PermissionRequest permission_request); 1456 public virtual signal bool print (WebKit.PrintOperation print_operation); 1457 public virtual signal void ready_to_show (); 1458 public virtual signal void resource_load_started (WebKit.WebResource resource, WebKit.URIRequest request); 1459 public virtual signal void run_as_modal (); 1460 [Version (since = "2.8")] 1461 public virtual signal bool run_color_chooser (WebKit.ColorChooserRequest request); 1462 public virtual signal bool run_file_chooser (WebKit.FileChooserRequest request); 1463 public virtual signal bool script_dialog (WebKit.ScriptDialog dialog); 1464 [Version (since = "2.8")] 1465 public virtual signal bool show_notification (WebKit.Notification notification); 1466 public virtual signal void submit_form (WebKit.FormSubmissionRequest request); 1467 [Version (since = "2.28")] 1468 public virtual signal bool user_message_received (WebKit.UserMessage message); 1469 [Version (deprecated = true, deprecated_since = "2.20")] 1470 public virtual signal bool web_process_crashed (); 1471 [Version (since = "2.20")] 1472 public virtual signal void web_process_terminated (WebKit.WebProcessTerminationReason reason); 1473 } 1474 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_base_get_type ()")] 1475 public class WebViewBase : Gtk.Container, Atk.Implementor, Gtk.Buildable { 1476 [CCode (has_construct_function = false)] 1477 protected WebViewBase (); 1478 } 1479 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_web_view_session_state_ref", type_id = "webkit_web_view_session_state_get_type ()", unref_function = "webkit_web_view_session_state_unref")] 1480 [Compact] 1481 public class WebViewSessionState { 1482 [CCode (has_construct_function = false)] 1483 [Version (since = "2.12")] 1484 public WebViewSessionState (GLib.Bytes data); 1485 [Version (since = "2.12")] 1486 public unowned WebKit.WebViewSessionState @ref (); 1487 [Version (since = "2.12")] 1488 public GLib.Bytes serialize (); 1489 [Version (since = "2.12")] 1490 public void unref (); 1491 } 1492 [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_website_data_ref", type_id = "webkit_website_data_get_type ()", unref_function = "webkit_website_data_unref")] 1493 [Compact] 1494 public class WebsiteData { 1495 [Version (since = "2.16")] 1496 public unowned string get_name (); 1497 [Version (since = "2.16")] 1498 public uint64 get_size (WebKit.WebsiteDataTypes types); 1499 [Version (since = "2.16")] 1500 public WebKit.WebsiteDataTypes get_types (); 1501 [Version (since = "2.16")] 1502 public unowned WebKit.WebsiteData @ref (); 1503 [Version (since = "2.16")] 1504 public void unref (); 1505 } 1506 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_website_data_access_permission_request_get_type ()")] 1507 public class WebsiteDataAccessPermissionRequest : GLib.Object, WebKit.PermissionRequest { 1508 [CCode (has_construct_function = false)] 1509 protected WebsiteDataAccessPermissionRequest (); 1510 [Version (since = "2.30")] 1511 public unowned string get_current_domain (); 1512 [Version (since = "2.30")] 1513 public unowned string get_requesting_domain (); 1514 } 1515 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_website_data_manager_get_type ()")] 1516 public class WebsiteDataManager : GLib.Object { 1517 [CCode (has_construct_function = false)] 1518 protected WebsiteDataManager (); 1519 [Version (since = "2.16")] 1520 public async bool clear (WebKit.WebsiteDataTypes types, GLib.TimeSpan timespan, GLib.Cancellable? cancellable = null) throws GLib.Error; 1521 [CCode (has_construct_function = false)] 1522 [Version (since = "2.16")] 1523 public WebsiteDataManager.ephemeral (); 1524 [Version (since = "2.16")] 1525 public async GLib.List<WebKit.WebsiteData> fetch (WebKit.WebsiteDataTypes types, GLib.Cancellable? cancellable = null) throws GLib.Error; 1526 [Version (since = "2.10")] 1527 public unowned string? get_base_cache_directory (); 1528 [Version (since = "2.10")] 1529 public unowned string? get_base_data_directory (); 1530 [Version (since = "2.16")] 1531 public unowned WebKit.CookieManager get_cookie_manager (); 1532 [Version (since = "2.10")] 1533 public unowned string? get_disk_cache_directory (); 1534 [Version (since = "2.30")] 1535 public unowned string? get_dom_cache_directory (); 1536 [Version (since = "2.26")] 1537 public unowned string? get_hsts_cache_directory (); 1538 [Version (since = "2.10")] 1539 public unowned string? get_indexeddb_directory (); 1540 [Version (since = "2.30")] 1541 public unowned string? get_itp_directory (); 1542 [Version (since = "2.30")] 1543 public bool get_itp_enabled (); 1544 [Version (since = "2.30")] 1545 public async GLib.List<WebKit.ITPThirdParty> get_itp_summary (GLib.Cancellable? cancellable = null) throws GLib.Error; 1546 [Version (since = "2.10")] 1547 public unowned string? get_local_storage_directory (); 1548 [Version (since = "2.10")] 1549 public unowned string? get_offline_application_cache_directory (); 1550 [Version (since = "2.30")] 1551 public bool get_persistent_credential_storage_enabled (); 1552 [Version (since = "2.30")] 1553 public unowned string? get_service_worker_registrations_directory (); 1554 [Version (since = "2.32")] 1555 public WebKit.TLSErrorsPolicy get_tls_errors_policy (); 1556 [Version (deprecated = true, deprecated_since = "2.24.", since = "2.10")] 1557 public unowned string? get_websql_directory (); 1558 [Version (since = "2.16")] 1559 public async bool remove (WebKit.WebsiteDataTypes types, GLib.List<WebKit.WebsiteData> website_data, GLib.Cancellable? cancellable = null) throws GLib.Error; 1560 [Version (since = "2.30")] 1561 public void set_itp_enabled (bool enabled); 1562 [Version (since = "2.32")] 1563 public void set_network_proxy_settings (WebKit.NetworkProxyMode proxy_mode, WebKit.NetworkProxySettings? proxy_settings); 1564 [Version (since = "2.30")] 1565 public void set_persistent_credential_storage_enabled (bool enabled); 1566 [Version (since = "2.32")] 1567 public void set_tls_errors_policy (WebKit.TLSErrorsPolicy policy); 1568 [Version (since = "2.10")] 1569 public string base_cache_directory { get; construct; } 1570 [Version (since = "2.10")] 1571 public string base_data_directory { get; construct; } 1572 [Version (since = "2.10")] 1573 public string disk_cache_directory { get; construct; } 1574 [Version (since = "2.30")] 1575 public string dom_cache_directory { get; construct; } 1576 [Version (since = "2.26")] 1577 public string hsts_cache_directory { get; construct; } 1578 [Version (since = "2.10")] 1579 public string indexeddb_directory { get; construct; } 1580 [NoAccessorMethod] 1581 [Version (since = "2.16")] 1582 public bool is_ephemeral { get; construct; } 1583 [Version (since = "2.30")] 1584 public string itp_directory { get; construct; } 1585 [Version (since = "2.10")] 1586 public string local_storage_directory { get; construct; } 1587 [Version (since = "2.10")] 1588 public string offline_application_cache_directory { get; construct; } 1589 [Version (since = "2.30")] 1590 public string service_worker_registrations_directory { get; construct; } 1591 [Version (deprecated = true, deprecated_since = "2.24.", since = "2.10")] 1592 public string websql_directory { get; construct; } 1593 } 1594 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_website_policies_get_type ()")] 1595 public class WebsitePolicies : GLib.Object { 1596 [CCode (has_construct_function = false)] 1597 [Version (since = "2.30")] 1598 public WebsitePolicies (); 1599 [Version (since = "2.30")] 1600 public WebKit.AutoplayPolicy get_autoplay_policy (); 1601 [NoAccessorMethod] 1602 [Version (since = "2.30")] 1603 public WebKit.AutoplayPolicy autoplay { get; construct; } 1604 } 1605 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_window_properties_get_type ()")] 1606 public class WindowProperties : GLib.Object { 1607 [CCode (has_construct_function = false)] 1608 protected WindowProperties (); 1609 public bool get_fullscreen (); 1610 public Gdk.Rectangle get_geometry (); 1611 public bool get_locationbar_visible (); 1612 public bool get_menubar_visible (); 1613 public bool get_resizable (); 1614 public bool get_scrollbars_visible (); 1615 public bool get_statusbar_visible (); 1616 public bool get_toolbar_visible (); 1617 public bool fullscreen { get; construct; } 1618 public Gdk.Rectangle geometry { get; construct; } 1619 public bool locationbar_visible { get; construct; } 1620 public bool menubar_visible { get; construct; } 1621 public bool resizable { get; construct; } 1622 public bool scrollbars_visible { get; construct; } 1623 public bool statusbar_visible { get; construct; } 1624 public bool toolbar_visible { get; construct; } 1625 } 1626 [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_permission_request_get_type ()")] 1627 public interface PermissionRequest : GLib.Object { 1628 public abstract void allow (); 1629 public abstract void deny (); 1630 } 1631 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_AUTHENTICATION_SCHEME_", type_id = "webkit_authentication_scheme_get_type ()")] 1632 [Version (since = "2.2")] 1633 public enum AuthenticationScheme { 1634 DEFAULT, 1635 HTTP_BASIC, 1636 HTTP_DIGEST, 1637 HTML_FORM, 1638 NTLM, 1639 NEGOTIATE, 1640 CLIENT_CERTIFICATE_REQUESTED, 1641 SERVER_TRUST_EVALUATION_REQUESTED, 1642 UNKNOWN 1643 } 1644 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_AUTOMATION_BROWSING_CONTEXT_PRESENTATION_", type_id = "webkit_automation_browsing_context_presentation_get_type ()")] 1645 [Version (since = "2.28")] 1646 public enum AutomationBrowsingContextPresentation { 1647 WINDOW, 1648 TAB 1649 } 1650 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_AUTOPLAY_", type_id = "webkit_autoplay_policy_get_type ()")] 1651 [Version (since = "2.30")] 1652 public enum AutoplayPolicy { 1653 ALLOW, 1654 ALLOW_WITHOUT_SOUND, 1655 DENY 1656 } 1657 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CACHE_MODEL_", type_id = "webkit_cache_model_get_type ()")] 1658 public enum CacheModel { 1659 DOCUMENT_VIEWER, 1660 WEB_BROWSER, 1661 DOCUMENT_BROWSER 1662 } 1663 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CONTEXT_MENU_ACTION_", type_id = "webkit_context_menu_action_get_type ()")] 1664 public enum ContextMenuAction { 1665 NO_ACTION, 1666 OPEN_LINK, 1667 OPEN_LINK_IN_NEW_WINDOW, 1668 DOWNLOAD_LINK_TO_DISK, 1669 COPY_LINK_TO_CLIPBOARD, 1670 OPEN_IMAGE_IN_NEW_WINDOW, 1671 DOWNLOAD_IMAGE_TO_DISK, 1672 COPY_IMAGE_TO_CLIPBOARD, 1673 COPY_IMAGE_URL_TO_CLIPBOARD, 1674 OPEN_FRAME_IN_NEW_WINDOW, 1675 GO_BACK, 1676 GO_FORWARD, 1677 STOP, 1678 RELOAD, 1679 COPY, 1680 CUT, 1681 PASTE, 1682 DELETE, 1683 SELECT_ALL, 1684 INPUT_METHODS, 1685 UNICODE, 1686 SPELLING_GUESS, 1687 NO_GUESSES_FOUND, 1688 IGNORE_SPELLING, 1689 LEARN_SPELLING, 1690 IGNORE_GRAMMAR, 1691 FONT_MENU, 1692 BOLD, 1693 ITALIC, 1694 UNDERLINE, 1695 OUTLINE, 1696 INSPECT_ELEMENT, 1697 OPEN_VIDEO_IN_NEW_WINDOW, 1698 OPEN_AUDIO_IN_NEW_WINDOW, 1699 COPY_VIDEO_LINK_TO_CLIPBOARD, 1700 COPY_AUDIO_LINK_TO_CLIPBOARD, 1701 TOGGLE_MEDIA_CONTROLS, 1702 TOGGLE_MEDIA_LOOP, 1703 ENTER_VIDEO_FULLSCREEN, 1704 MEDIA_PLAY, 1705 MEDIA_PAUSE, 1706 MEDIA_MUTE, 1707 DOWNLOAD_VIDEO_TO_DISK, 1708 DOWNLOAD_AUDIO_TO_DISK, 1709 INSERT_EMOJI, 1710 PASTE_AS_PLAIN_TEXT, 1711 CUSTOM 1712 } 1713 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_POLICY_ACCEPT_", type_id = "webkit_cookie_accept_policy_get_type ()")] 1714 public enum CookieAcceptPolicy { 1715 ALWAYS, 1716 NEVER, 1717 NO_THIRD_PARTY 1718 } 1719 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_PERSISTENT_STORAGE_", type_id = "webkit_cookie_persistent_storage_get_type ()")] 1720 public enum CookiePersistentStorage { 1721 TEXT, 1722 SQLITE 1723 } 1724 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CREDENTIAL_PERSISTENCE_", type_id = "webkit_credential_persistence_get_type ()")] 1725 [Version (since = "2.2")] 1726 public enum CredentialPersistence { 1727 NONE, 1728 FOR_SESSION, 1729 PERMANENT 1730 } 1731 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_EDITOR_TYPING_ATTRIBUTE_", type_id = "webkit_editor_typing_attributes_get_type ()")] 1732 [Flags] 1733 [Version (since = "2.10")] 1734 public enum EditorTypingAttributes { 1735 NONE, 1736 BOLD, 1737 ITALIC, 1738 UNDERLINE, 1739 STRIKETHROUGH 1740 } 1741 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")] 1742 [Flags] 1743 public enum FindOptions { 1744 NONE, 1745 CASE_INSENSITIVE, 1746 AT_WORD_STARTS, 1747 TREAT_MEDIAL_CAPITAL_AS_WORD_START, 1748 BACKWARDS, 1749 WRAP_AROUND 1750 } 1751 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HARDWARE_ACCELERATION_POLICY_", type_id = "webkit_hardware_acceleration_policy_get_type ()")] 1752 [Version (since = "2.16")] 1753 public enum HardwareAccelerationPolicy { 1754 ON_DEMAND, 1755 ALWAYS, 1756 NEVER 1757 } 1758 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", type_id = "webkit_hit_test_result_context_get_type ()")] 1759 [Flags] 1760 public enum HitTestResultContext { 1761 DOCUMENT, 1762 LINK, 1763 IMAGE, 1764 MEDIA, 1765 EDITABLE, 1766 SCROLLBAR, 1767 SELECTION 1768 } 1769 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INPUT_HINT_", type_id = "webkit_input_hints_get_type ()")] 1770 [Flags] 1771 [Version (since = "2.28")] 1772 public enum InputHints { 1773 NONE, 1774 SPELLCHECK, 1775 LOWERCASE, 1776 UPPERCASE_CHARS, 1777 UPPERCASE_WORDS, 1778 UPPERCASE_SENTENCES, 1779 INHIBIT_OSK 1780 } 1781 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INPUT_PURPOSE_", type_id = "webkit_input_purpose_get_type ()")] 1782 [Version (since = "2.28")] 1783 public enum InputPurpose { 1784 FREE_FORM, 1785 DIGITS, 1786 NUMBER, 1787 PHONE, 1788 URL, 1789 EMAIL, 1790 PASSWORD 1791 } 1792 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INSECURE_CONTENT_", type_id = "webkit_insecure_content_event_get_type ()")] 1793 public enum InsecureContentEvent { 1794 RUN, 1795 DISPLAYED 1796 } 1797 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_LOAD_", type_id = "webkit_load_event_get_type ()")] 1798 public enum LoadEvent { 1799 STARTED, 1800 REDIRECTED, 1801 COMMITTED, 1802 FINISHED 1803 } 1804 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NAVIGATION_TYPE_", type_id = "webkit_navigation_type_get_type ()")] 1805 public enum NavigationType { 1806 LINK_CLICKED, 1807 FORM_SUBMITTED, 1808 BACK_FORWARD, 1809 RELOAD, 1810 FORM_RESUBMITTED, 1811 OTHER 1812 } 1813 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_PROXY_MODE_", type_id = "webkit_network_proxy_mode_get_type ()")] 1814 [Version (since = "2.16")] 1815 public enum NetworkProxyMode { 1816 DEFAULT, 1817 NO_PROXY, 1818 CUSTOM 1819 } 1820 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_DECISION_TYPE_", type_id = "webkit_policy_decision_type_get_type ()")] 1821 public enum PolicyDecisionType { 1822 NAVIGATION_ACTION, 1823 NEW_WINDOW_ACTION, 1824 RESPONSE 1825 } 1826 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_OPERATION_RESPONSE_", type_id = "webkit_print_operation_response_get_type ()")] 1827 public enum PrintOperationResponse { 1828 PRINT, 1829 CANCEL 1830 } 1831 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PROCESS_MODEL_", type_id = "webkit_process_model_get_type ()")] 1832 [Version (since = "2.4")] 1833 public enum ProcessModel { 1834 SHARED_SECONDARY_PROCESS, 1835 MULTIPLE_SECONDARY_PROCESSES 1836 } 1837 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SAVE_MODE_", type_id = "webkit_save_mode_get_type ()")] 1838 public enum SaveMode { 1839 MHTML 1840 } 1841 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SCRIPT_DIALOG_", type_id = "webkit_script_dialog_type_get_type ()")] 1842 public enum ScriptDialogType { 1843 ALERT, 1844 CONFIRM, 1845 PROMPT, 1846 BEFORE_UNLOAD_CONFIRM 1847 } 1848 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_OPTIONS_", type_id = "webkit_snapshot_options_get_type ()")] 1849 [Flags] 1850 public enum SnapshotOptions { 1851 NONE, 1852 INCLUDE_SELECTION_HIGHLIGHTING, 1853 TRANSPARENT_BACKGROUND 1854 } 1855 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_REGION_", type_id = "webkit_snapshot_region_get_type ()")] 1856 public enum SnapshotRegion { 1857 VISIBLE, 1858 FULL_DOCUMENT 1859 } 1860 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_TLS_ERRORS_POLICY_", type_id = "webkit_tls_errors_policy_get_type ()")] 1861 public enum TLSErrorsPolicy { 1862 IGNORE, 1863 FAIL 1864 } 1865 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_CONTENT_INJECT_", type_id = "webkit_user_content_injected_frames_get_type ()")] 1866 [Version (since = "2.6")] 1867 public enum UserContentInjectedFrames { 1868 ALL_FRAMES, 1869 TOP_FRAME 1870 } 1871 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_", type_id = "webkit_user_script_injection_time_get_type ()")] 1872 [Version (since = "2.6")] 1873 public enum UserScriptInjectionTime { 1874 START, 1875 END 1876 } 1877 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_STYLE_LEVEL_", type_id = "webkit_user_style_level_get_type ()")] 1878 [Version (since = "2.6")] 1879 public enum UserStyleLevel { 1880 USER, 1881 AUTHOR 1882 } 1883 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_WEB_PROCESS_", type_id = "webkit_web_process_termination_reason_get_type ()")] 1884 [Version (since = "2.20")] 1885 public enum WebProcessTerminationReason { 1886 CRASHED, 1887 EXCEEDED_MEMORY_LIMIT 1888 } 1889 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_WEBSITE_DATA_", type_id = "webkit_website_data_types_get_type ()")] 1890 [Flags] 1891 [Version (since = "2.16")] 1892 public enum WebsiteDataTypes { 1893 MEMORY_CACHE, 1894 DISK_CACHE, 1895 OFFLINE_APPLICATION_CACHE, 1896 SESSION_STORAGE, 1897 LOCAL_STORAGE, 1898 WEBSQL_DATABASES, 1899 INDEXEDDB_DATABASES, 1900 PLUGIN_DATA, 1901 COOKIES, 1902 DEVICE_ID_HASH_SALT, 1903 HSTS_CACHE, 1904 ITP, 1905 SERVICE_WORKER_REGISTRATIONS, 1906 DOM_CACHE, 1907 ALL 1908 } 1909 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_DOWNLOAD_ERROR_")] 1910 public errordomain DownloadError { 1911 NETWORK, 1912 CANCELLED_BY_USER, 1913 DESTINATION; 1914 public static GLib.Quark quark (); 1915 } 1916 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FAVICON_DATABASE_ERROR_")] 1917 public errordomain FaviconDatabaseError { 1918 NOT_INITIALIZED, 1919 FAVICON_NOT_FOUND, 1920 FAVICON_UNKNOWN; 1921 public static GLib.Quark quark (); 1922 } 1923 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_JAVASCRIPT_ERROR_SCRIPT_")] 1924 public errordomain JavascriptError { 1925 FAILED; 1926 public static GLib.Quark quark (); 1927 } 1928 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_ERROR_")] 1929 public errordomain NetworkError { 1930 FAILED, 1931 TRANSPORT, 1932 UNKNOWN_PROTOCOL, 1933 CANCELLED, 1934 FILE_DOES_NOT_EXIST; 1935 public static GLib.Quark quark (); 1936 } 1937 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PLUGIN_ERROR_")] 1938 public errordomain PluginError { 1939 FAILED, 1940 CANNOT_FIND_PLUGIN, 1941 CANNOT_LOAD_PLUGIN, 1942 JAVA_UNAVAILABLE, 1943 CONNECTION_CANCELLED, 1944 WILL_HANDLE_LOAD; 1945 public static GLib.Quark quark (); 1946 } 1947 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_ERROR_")] 1948 public errordomain PolicyError { 1949 FAILED, 1950 CANNOT_SHOW_MIME_TYPE, 1951 CANNOT_SHOW_URI, 1952 FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE, 1953 CANNOT_USE_RESTRICTED_PORT; 1954 public static GLib.Quark quark (); 1955 } 1956 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_ERROR_")] 1957 public errordomain PrintError { 1958 GENERAL, 1959 PRINTER_NOT_FOUND, 1960 INVALID_PAGE_RANGE; 1961 public static GLib.Quark quark (); 1962 } 1963 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_ERROR_FAILED_TO_")] 1964 public errordomain SnapshotError { 1965 CREATE; 1966 public static GLib.Quark quark (); 1967 } 1968 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_CONTENT_FILTER_ERROR_")] 1969 [Version (since = "2.24")] 1970 public errordomain UserContentFilterError { 1971 INVALID_SOURCE, 1972 NOT_FOUND; 1973 public static GLib.Quark quark (); 1974 } 1975 [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_MESSAGE_UNHANDLED_")] 1976 [Version (since = "2.28")] 1977 public errordomain UserMessageError { 1978 MESSAGE; 1979 public static GLib.Quark quark (); 1980 } 1981 [CCode (cheader_filename = "webkit2/webkit2.h", instance_pos = 1.9)] 1982 public delegate void URISchemeRequestCallback (WebKit.URISchemeRequest request); 1983 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_COPY")] 1984 public const string EDITING_COMMAND_COPY; 1985 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CREATE_LINK")] 1986 [Version (since = "2.10")] 1987 public const string EDITING_COMMAND_CREATE_LINK; 1988 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CUT")] 1989 public const string EDITING_COMMAND_CUT; 1990 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_INSERT_IMAGE")] 1991 [Version (since = "2.10")] 1992 public const string EDITING_COMMAND_INSERT_IMAGE; 1993 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_PASTE")] 1994 public const string EDITING_COMMAND_PASTE; 1995 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_PASTE_AS_PLAIN_TEXT")] 1996 [Version (since = "2.30")] 1997 public const string EDITING_COMMAND_PASTE_AS_PLAIN_TEXT; 1998 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_REDO")] 1999 public const string EDITING_COMMAND_REDO; 2000 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_SELECT_ALL")] 2001 public const string EDITING_COMMAND_SELECT_ALL; 2002 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_UNDO")] 2003 public const string EDITING_COMMAND_UNDO; 2004 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MAJOR_VERSION")] 2005 public const int MAJOR_VERSION; 2006 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MICRO_VERSION")] 2007 public const int MICRO_VERSION; 2008 [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MINOR_VERSION")] 2009 public const int MINOR_VERSION; 2010 [CCode (cheader_filename = "webkit2/webkit2.h")] 2011 public static uint get_major_version (); 2012 [CCode (cheader_filename = "webkit2/webkit2.h")] 2013 public static uint get_micro_version (); 2014 [CCode (cheader_filename = "webkit2/webkit2.h")] 2015 public static uint get_minor_version (); 2016 [CCode (cheader_filename = "webkit2/webkit2.h")] 2017 [Version (since = "2.32")] 2018 public static unowned string media_key_system_permission_get_name (WebKit.MediaKeySystemPermissionRequest request); 2019 [CCode (cheader_filename = "webkit2/webkit2.h")] 2020 [Version (since = "2.24")] 2021 public static string? uri_for_display (string uri); 2022 [CCode (cheader_filename = "webkit2/webkit2.h")] 2023 [Version (since = "2.8")] 2024 public static bool user_media_permission_is_for_audio_device (WebKit.UserMediaPermissionRequest request); 2025 [CCode (cheader_filename = "webkit2/webkit2.h")] 2026 [Version (since = "2.8")] 2027 public static bool user_media_permission_is_for_video_device (WebKit.UserMediaPermissionRequest request); 2028} 2029