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		public ApplicationInfo ();
10		public unowned string get_name ();
11		public void get_version (out uint64 major, out uint64 minor, out uint64 micro);
12		public unowned WebKit.ApplicationInfo @ref ();
13		public void set_name (string name);
14		public void set_version (uint64 major, uint64 minor, uint64 micro);
15		public void unref ();
16	}
17	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_authentication_request_get_type ()")]
18	public class AuthenticationRequest : GLib.Object {
19		[CCode (has_construct_function = false)]
20		protected AuthenticationRequest ();
21		public void authenticate (WebKit.Credential? credential);
22		public bool can_save_credentials ();
23		public void cancel ();
24		public unowned string get_host ();
25		public uint get_port ();
26		public WebKit.Credential get_proposed_credential ();
27		public unowned string get_realm ();
28		public WebKit.AuthenticationScheme get_scheme ();
29		public bool is_for_proxy ();
30		public bool is_retry ();
31		public signal void cancelled ();
32	}
33	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_automation_session_get_type ()")]
34	public class AutomationSession : GLib.Object {
35		[CCode (has_construct_function = false)]
36		protected AutomationSession ();
37		public unowned WebKit.ApplicationInfo get_application_info ();
38		public unowned string get_id ();
39		public void set_application_info (WebKit.ApplicationInfo info);
40		public string id { get; construct; }
41		public signal unowned WebKit.WebView create_web_view ();
42	}
43	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_get_type ()")]
44	public class BackForwardList : GLib.Object {
45		[CCode (has_construct_function = false)]
46		protected BackForwardList ();
47		public unowned WebKit.BackForwardListItem get_back_item ();
48		public GLib.List<weak WebKit.BackForwardListItem> get_back_list ();
49		public GLib.List<weak WebKit.BackForwardListItem> get_back_list_with_limit (uint limit);
50		public unowned WebKit.BackForwardListItem get_current_item ();
51		public unowned WebKit.BackForwardListItem get_forward_item ();
52		public GLib.List<weak WebKit.BackForwardListItem> get_forward_list ();
53		public GLib.List<weak WebKit.BackForwardListItem> get_forward_list_with_limit (uint limit);
54		public uint get_length ();
55		public unowned WebKit.BackForwardListItem get_nth_item (int index);
56		public signal void changed (WebKit.BackForwardListItem? item_added, void* items_removed);
57	}
58	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_item_get_type ()")]
59	public class BackForwardListItem : GLib.InitiallyUnowned {
60		[CCode (has_construct_function = false)]
61		protected BackForwardListItem ();
62		public unowned string get_original_uri ();
63		public unowned string get_title ();
64		public unowned string get_uri ();
65	}
66	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_color_chooser_request_get_type ()")]
67	public class ColorChooserRequest : GLib.Object {
68		[CCode (has_construct_function = false)]
69		protected ColorChooserRequest ();
70		public void cancel ();
71		public void finish ();
72		public Gdk.Rectangle get_element_rectangle ();
73		public Gdk.RGBA get_rgba ();
74		public void set_rgba (Gdk.RGBA rgba);
75		public Gdk.RGBA rgba { get; set construct; }
76		public signal void finished ();
77	}
78	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_get_type ()")]
79	public class ContextMenu : GLib.Object {
80		[CCode (has_construct_function = false)]
81		public ContextMenu ();
82		public void append (WebKit.ContextMenuItem item);
83		public unowned WebKit.ContextMenuItem first ();
84		public unowned WebKit.ContextMenuItem get_item_at_position (uint position);
85		public unowned GLib.List<WebKit.ContextMenuItem> get_items ();
86		public uint get_n_items ();
87		public unowned GLib.Variant get_user_data ();
88		public void insert (WebKit.ContextMenuItem item, int position);
89		public unowned WebKit.ContextMenuItem last ();
90		public void move_item (WebKit.ContextMenuItem item, int position);
91		public void prepend (WebKit.ContextMenuItem item);
92		public void remove (WebKit.ContextMenuItem item);
93		public void remove_all ();
94		public void set_user_data (GLib.Variant user_data);
95		[CCode (has_construct_function = false)]
96		public ContextMenu.with_items (GLib.List<WebKit.ContextMenuItem> items);
97	}
98	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_item_get_type ()")]
99	public class ContextMenuItem : GLib.InitiallyUnowned {
100		[CCode (has_construct_function = false)]
101		public ContextMenuItem (Gtk.Action action);
102		[CCode (has_construct_function = false)]
103		public ContextMenuItem.from_gaction (GLib.Action action, string label, GLib.Variant? target);
104		[CCode (has_construct_function = false)]
105		public ContextMenuItem.from_stock_action (WebKit.ContextMenuAction action);
106		[CCode (has_construct_function = false)]
107		public ContextMenuItem.from_stock_action_with_label (WebKit.ContextMenuAction action, string label);
108		public unowned GLib.Action get_gaction ();
109		public WebKit.ContextMenuAction get_stock_action ();
110		public unowned WebKit.ContextMenu get_submenu ();
111		public bool is_separator ();
112		[CCode (has_construct_function = false)]
113		public ContextMenuItem.separator ();
114		public void set_submenu (WebKit.ContextMenu? submenu);
115		[CCode (has_construct_function = false)]
116		public ContextMenuItem.with_submenu (string label, WebKit.ContextMenu submenu);
117	}
118	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_cookie_manager_get_type ()")]
119	public class CookieManager : GLib.Object {
120		[CCode (has_construct_function = false)]
121		protected CookieManager ();
122		public void delete_all_cookies ();
123		public void delete_cookies_for_domain (string domain);
124		public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable) throws GLib.Error;
125		public async string[] get_domains_with_cookies (GLib.Cancellable? cancellable) throws GLib.Error;
126		public void set_accept_policy (WebKit.CookieAcceptPolicy policy);
127		public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage);
128		public signal void changed ();
129	}
130	[CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_credential_get_type ()")]
131	[Compact]
132	public class Credential {
133		[CCode (has_construct_function = false)]
134		public Credential (string username, string password, WebKit.CredentialPersistence persistence);
135		public WebKit.Credential copy ();
136		public void free ();
137		public unowned string get_password ();
138		public WebKit.CredentialPersistence get_persistence ();
139		public unowned string get_username ();
140		public bool has_password ();
141	}
142	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_download_get_type ()")]
143	public class Download : GLib.Object {
144		[CCode (has_construct_function = false)]
145		protected Download ();
146		public void cancel ();
147		public bool get_allow_overwrite ();
148		public unowned string get_destination ();
149		public double get_elapsed_time ();
150		public double get_estimated_progress ();
151		public uint64 get_received_data_length ();
152		public unowned WebKit.URIRequest get_request ();
153		public unowned WebKit.URIResponse get_response ();
154		public unowned WebKit.WebView get_web_view ();
155		public void set_allow_overwrite (bool allowed);
156		public void set_destination (string uri);
157		public bool allow_overwrite { get; set; }
158		public string destination { get; }
159		public double estimated_progress { get; }
160		public WebKit.URIResponse response { get; }
161		public signal void created_destination (string destination);
162		public virtual signal bool decide_destination (string suggested_filename);
163		public signal void failed (WebKit.DownloadError error);
164		public signal void finished ();
165		public signal void received_data (uint64 data_length);
166	}
167	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_editor_state_get_type ()")]
168	public class EditorState : GLib.Object {
169		[CCode (has_construct_function = false)]
170		protected EditorState ();
171		public uint get_typing_attributes ();
172		public uint typing_attributes { get; }
173	}
174	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_favicon_database_get_type ()")]
175	public class FaviconDatabase : GLib.Object {
176		[CCode (has_construct_function = false)]
177		protected FaviconDatabase ();
178		public void clear ();
179		public async Cairo.Surface get_favicon (string page_uri, GLib.Cancellable? cancellable) throws GLib.Error;
180		public string get_favicon_uri (string page_uri);
181		public signal void favicon_changed (string page_uri, string favicon_uri);
182	}
183	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_file_chooser_request_get_type ()")]
184	public class FileChooserRequest : GLib.Object {
185		[CCode (has_construct_function = false)]
186		protected FileChooserRequest ();
187		public void cancel ();
188		[CCode (array_length = false, array_null_terminated = true)]
189		public unowned string[] get_mime_types ();
190		public unowned Gtk.FileFilter get_mime_types_filter ();
191		public bool get_select_multiple ();
192		[CCode (array_length = false, array_null_terminated = true)]
193		public unowned string[] get_selected_files ();
194		public void select_files ([CCode (array_length = false, array_null_terminated = true)] string[] files);
195		[NoAccessorMethod]
196		public Gtk.FileFilter filter { owned get; }
197		[CCode (array_length = false, array_null_terminated = true)]
198		public string[] mime_types { get; }
199		public bool select_multiple { get; }
200		[CCode (array_length = false, array_null_terminated = true)]
201		public string[] selected_files { get; }
202	}
203	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_find_controller_get_type ()")]
204	public class FindController : GLib.Object {
205		[CCode (has_construct_function = false)]
206		protected FindController ();
207		public void count_matches (string search_text, uint32 find_options, uint max_match_count);
208		public uint get_max_match_count ();
209		public uint32 get_options ();
210		public unowned string get_search_text ();
211		public unowned WebKit.WebView get_web_view ();
212		public void search (string search_text, uint32 find_options, uint max_match_count);
213		public void search_finish ();
214		public void search_next ();
215		public void search_previous ();
216		public uint max_match_count { get; }
217		public WebKit.FindOptions options { get; }
218		[NoAccessorMethod]
219		public string text { owned get; }
220		public WebKit.WebView web_view { get; construct; }
221		public signal void counted_matches (uint match_count);
222		public signal void failed_to_find_text ();
223		public signal void found_text (uint match_count);
224	}
225	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_form_submission_request_get_type ()")]
226	public class FormSubmissionRequest : GLib.Object {
227		[CCode (has_construct_function = false)]
228		protected FormSubmissionRequest ();
229		public unowned GLib.HashTable<void*,void*>? get_text_fields ();
230		public bool list_text_fields (out unowned GLib.GenericArray<string> field_names, out unowned GLib.GenericArray<string> field_values);
231		public void submit ();
232	}
233	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_geolocation_permission_request_get_type ()")]
234	public class GeolocationPermissionRequest : GLib.Object, WebKit.PermissionRequest {
235		[CCode (has_construct_function = false)]
236		protected GeolocationPermissionRequest ();
237	}
238	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_hit_test_result_get_type ()")]
239	public class HitTestResult : GLib.Object {
240		[CCode (has_construct_function = false)]
241		protected HitTestResult ();
242		public bool context_is_editable ();
243		public bool context_is_image ();
244		public bool context_is_link ();
245		public bool context_is_media ();
246		public bool context_is_scrollbar ();
247		public bool context_is_selection ();
248		public uint get_context ();
249		public unowned string get_image_uri ();
250		public unowned string get_link_label ();
251		public unowned string get_link_title ();
252		public unowned string get_link_uri ();
253		public unowned string get_media_uri ();
254		public uint context { get; construct; }
255		public string image_uri { get; construct; }
256		public string link_label { get; construct; }
257		public string link_title { get; construct; }
258		public string link_uri { get; construct; }
259		public string media_uri { get; construct; }
260	}
261	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_install_missing_media_plugins_permission_request_get_type ()")]
262	public class InstallMissingMediaPluginsPermissionRequest : GLib.Object, WebKit.PermissionRequest {
263		[CCode (has_construct_function = false)]
264		protected InstallMissingMediaPluginsPermissionRequest ();
265		public unowned string get_description ();
266	}
267	[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")]
268	[Compact]
269	public class JavascriptResult {
270		public unowned JS.GlobalContext get_global_context ();
271		public unowned JS.Value get_value ();
272		public unowned WebKit.JavascriptResult @ref ();
273		public void unref ();
274	}
275	[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")]
276	[Compact]
277	public class MimeInfo {
278		public unowned string get_description ();
279		[CCode (array_length = false, array_null_terminated = true)]
280		public unowned string[] get_extensions ();
281		public unowned string get_mime_type ();
282		public unowned WebKit.MimeInfo @ref ();
283		public void unref ();
284	}
285	[CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_navigation_action_get_type ()")]
286	[Compact]
287	public class NavigationAction {
288		public WebKit.NavigationAction copy ();
289		public void free ();
290		public uint get_modifiers ();
291		public uint get_mouse_button ();
292		public WebKit.NavigationType get_navigation_type ();
293		public unowned WebKit.URIRequest get_request ();
294		public bool is_user_gesture ();
295	}
296	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_navigation_policy_decision_get_type ()")]
297	public class NavigationPolicyDecision : WebKit.PolicyDecision {
298		[CCode (has_construct_function = false)]
299		protected NavigationPolicyDecision ();
300		public unowned string get_frame_name ();
301		public unowned WebKit.NavigationAction get_navigation_action ();
302		public string frame_name { get; }
303		public WebKit.NavigationAction navigation_action { get; }
304	}
305	[CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_network_proxy_settings_get_type ()")]
306	[Compact]
307	public class NetworkProxySettings {
308		[CCode (has_construct_function = false)]
309		public NetworkProxySettings (string? default_proxy_uri, string? ignore_hosts);
310		public void add_proxy_for_scheme (string scheme, string proxy_uri);
311		public WebKit.NetworkProxySettings copy ();
312		public void free ();
313	}
314	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_notification_get_type ()")]
315	public class Notification : GLib.Object {
316		[CCode (has_construct_function = false)]
317		protected Notification ();
318		public void close ();
319		public unowned string get_body ();
320		public uint64 get_id ();
321		public unowned string? get_tag ();
322		public unowned string get_title ();
323		public string body { get; }
324		public uint64 id { get; }
325		public string tag { get; }
326		public string title { get; }
327		[HasEmitter]
328		public signal void clicked ();
329		public signal void closed ();
330	}
331	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_notification_permission_request_get_type ()")]
332	public class NotificationPermissionRequest : GLib.Object, WebKit.PermissionRequest {
333		[CCode (has_construct_function = false)]
334		protected NotificationPermissionRequest ();
335	}
336	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_option_menu_get_type ()")]
337	public class OptionMenu : GLib.Object {
338		[CCode (has_construct_function = false)]
339		protected OptionMenu ();
340		public void activate_item (uint index);
341		public unowned WebKit.OptionMenuItem get_item (uint index);
342		public uint get_n_items ();
343		public void select_item (uint index);
344		[HasEmitter]
345		public signal void close ();
346	}
347	[CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_option_menu_item_get_type ()")]
348	[Compact]
349	public class OptionMenuItem {
350		public WebKit.OptionMenuItem copy ();
351		public void free ();
352		public unowned string get_label ();
353		public unowned string get_tooltip ();
354		public bool is_enabled ();
355		public bool is_group_child ();
356		public bool is_group_label ();
357		public bool is_selected ();
358	}
359	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_plugin_get_type ()")]
360	public class Plugin : GLib.Object {
361		[CCode (has_construct_function = false)]
362		protected Plugin ();
363		public unowned string get_description ();
364		public unowned GLib.List<WebKit.MimeInfo> get_mime_info_list ();
365		public unowned string get_name ();
366		public unowned string get_path ();
367	}
368	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_policy_decision_get_type ()")]
369	public abstract class PolicyDecision : GLib.Object {
370		[CCode (has_construct_function = false)]
371		protected PolicyDecision ();
372		public void download ();
373		public void ignore ();
374		public void use ();
375	}
376	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_custom_widget_get_type ()")]
377	public class PrintCustomWidget : GLib.Object {
378		[CCode (has_construct_function = false)]
379		public PrintCustomWidget (Gtk.Widget widget, string title);
380		public unowned string get_title ();
381		public unowned Gtk.Widget get_widget ();
382		public string title { get; construct; }
383		public Gtk.Widget widget { get; construct; }
384		public virtual signal void apply ();
385		public virtual signal void update (Gtk.PageSetup widget, Gtk.PrintSettings page_setup);
386	}
387	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_operation_get_type ()")]
388	public class PrintOperation : GLib.Object {
389		[CCode (has_construct_function = false)]
390		public PrintOperation (WebKit.WebView web_view);
391		public unowned Gtk.PageSetup get_page_setup ();
392		public unowned Gtk.PrintSettings get_print_settings ();
393		public void print ();
394		public WebKit.PrintOperationResponse run_dialog (Gtk.Window? parent);
395		public void set_page_setup (Gtk.PageSetup page_setup);
396		public void set_print_settings (Gtk.PrintSettings print_settings);
397		public Gtk.PageSetup page_setup { get; set; }
398		public Gtk.PrintSettings print_settings { get; set; }
399		[NoAccessorMethod]
400		public WebKit.WebView web_view { owned get; construct; }
401		public signal WebKit.PrintCustomWidget create_custom_widget ();
402		public signal void failed (WebKit.PrintError error);
403		public signal void finished ();
404	}
405	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_response_policy_decision_get_type ()")]
406	public class ResponsePolicyDecision : WebKit.PolicyDecision {
407		[CCode (has_construct_function = false)]
408		protected ResponsePolicyDecision ();
409		public unowned WebKit.URIRequest get_request ();
410		public unowned WebKit.URIResponse get_response ();
411		public bool is_mime_type_supported ();
412		public WebKit.URIRequest request { get; }
413		public WebKit.URIResponse response { get; }
414	}
415	[CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_script_dialog_get_type ()")]
416	[Compact]
417	public class ScriptDialog {
418		public void confirm_set_confirmed (bool confirmed);
419		public WebKit.ScriptDialogType get_dialog_type ();
420		public unowned string get_message ();
421		public unowned string prompt_get_default_text ();
422		public void prompt_set_text (string text);
423	}
424	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_security_manager_get_type ()")]
425	public class SecurityManager : GLib.Object {
426		[CCode (has_construct_function = false)]
427		protected SecurityManager ();
428		public void register_uri_scheme_as_cors_enabled (string scheme);
429		public void register_uri_scheme_as_display_isolated (string scheme);
430		public void register_uri_scheme_as_empty_document (string scheme);
431		public void register_uri_scheme_as_local (string scheme);
432		public void register_uri_scheme_as_no_access (string scheme);
433		public void register_uri_scheme_as_secure (string scheme);
434		public bool uri_scheme_is_cors_enabled (string scheme);
435		public bool uri_scheme_is_display_isolated (string scheme);
436		public bool uri_scheme_is_empty_document (string scheme);
437		public bool uri_scheme_is_local (string scheme);
438		public bool uri_scheme_is_no_access (string scheme);
439		public bool uri_scheme_is_secure (string scheme);
440	}
441	[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")]
442	[Compact]
443	public class SecurityOrigin {
444		[CCode (has_construct_function = false)]
445		public SecurityOrigin (string protocol, string host, uint16 port);
446		[CCode (has_construct_function = false)]
447		public SecurityOrigin.for_uri (string uri);
448		public unowned string? get_host ();
449		public uint16 get_port ();
450		public unowned string? get_protocol ();
451		public bool is_opaque ();
452		public unowned WebKit.SecurityOrigin @ref ();
453		public string? to_string ();
454		public void unref ();
455	}
456	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_settings_get_type ()")]
457	public class Settings : GLib.Object {
458		[CCode (has_construct_function = false)]
459		public Settings ();
460		public bool get_allow_file_access_from_file_urls ();
461		public bool get_allow_modal_dialogs ();
462		public bool get_allow_universal_access_from_file_urls ();
463		public bool get_auto_load_images ();
464		public unowned string get_cursive_font_family ();
465		public unowned string get_default_charset ();
466		public unowned string get_default_font_family ();
467		public uint32 get_default_font_size ();
468		public uint32 get_default_monospace_font_size ();
469		public bool get_draw_compositing_indicators ();
470		public bool get_enable_accelerated_2d_canvas ();
471		public bool get_enable_caret_browsing ();
472		public bool get_enable_developer_extras ();
473		public bool get_enable_dns_prefetching ();
474		public bool get_enable_frame_flattening ();
475		public bool get_enable_fullscreen ();
476		public bool get_enable_html5_database ();
477		public bool get_enable_html5_local_storage ();
478		public bool get_enable_hyperlink_auditing ();
479		public bool get_enable_java ();
480		public bool get_enable_javascript ();
481		public bool get_enable_media_stream ();
482		public bool get_enable_mediasource ();
483		public bool get_enable_offline_web_application_cache ();
484		public bool get_enable_page_cache ();
485		public bool get_enable_plugins ();
486		public bool get_enable_resizable_text_areas ();
487		public bool get_enable_site_specific_quirks ();
488		public bool get_enable_smooth_scrolling ();
489		public bool get_enable_spatial_navigation ();
490		public bool get_enable_tabs_to_links ();
491		public bool get_enable_webaudio ();
492		public bool get_enable_webgl ();
493		public bool get_enable_write_console_messages_to_stdout ();
494		public bool get_enable_xss_auditor ();
495		public unowned string get_fantasy_font_family ();
496		public WebKit.HardwareAccelerationPolicy get_hardware_acceleration_policy ();
497		public bool get_javascript_can_access_clipboard ();
498		public bool get_javascript_can_open_windows_automatically ();
499		public bool get_load_icons_ignoring_image_load_setting ();
500		public bool get_media_playback_allows_inline ();
501		public bool get_media_playback_requires_user_gesture ();
502		public uint32 get_minimum_font_size ();
503		public unowned string get_monospace_font_family ();
504		public unowned string get_pictograph_font_family ();
505		public bool get_print_backgrounds ();
506		public unowned string get_sans_serif_font_family ();
507		public unowned string get_serif_font_family ();
508		public unowned string get_user_agent ();
509		public bool get_zoom_text_only ();
510		public void set_allow_file_access_from_file_urls (bool allowed);
511		public void set_allow_modal_dialogs (bool allowed);
512		public void set_allow_universal_access_from_file_urls (bool allowed);
513		public void set_auto_load_images (bool enabled);
514		public void set_cursive_font_family (string cursive_font_family);
515		public void set_default_charset (string default_charset);
516		public void set_default_font_family (string default_font_family);
517		public void set_default_font_size (uint32 font_size);
518		public void set_default_monospace_font_size (uint32 font_size);
519		public void set_draw_compositing_indicators (bool enabled);
520		public void set_enable_accelerated_2d_canvas (bool enabled);
521		public void set_enable_caret_browsing (bool enabled);
522		public void set_enable_developer_extras (bool enabled);
523		public void set_enable_dns_prefetching (bool enabled);
524		public void set_enable_frame_flattening (bool enabled);
525		public void set_enable_fullscreen (bool enabled);
526		public void set_enable_html5_database (bool enabled);
527		public void set_enable_html5_local_storage (bool enabled);
528		public void set_enable_hyperlink_auditing (bool enabled);
529		public void set_enable_java (bool enabled);
530		public void set_enable_javascript (bool enabled);
531		public void set_enable_media_stream (bool enabled);
532		public void set_enable_mediasource (bool enabled);
533		public void set_enable_offline_web_application_cache (bool enabled);
534		public void set_enable_page_cache (bool enabled);
535		public void set_enable_plugins (bool enabled);
536		public void set_enable_resizable_text_areas (bool enabled);
537		public void set_enable_site_specific_quirks (bool enabled);
538		public void set_enable_smooth_scrolling (bool enabled);
539		public void set_enable_spatial_navigation (bool enabled);
540		public void set_enable_tabs_to_links (bool enabled);
541		public void set_enable_webaudio (bool enabled);
542		public void set_enable_webgl (bool enabled);
543		public void set_enable_write_console_messages_to_stdout (bool enabled);
544		public void set_enable_xss_auditor (bool enabled);
545		public void set_fantasy_font_family (string fantasy_font_family);
546		public void set_hardware_acceleration_policy (WebKit.HardwareAccelerationPolicy policy);
547		public void set_javascript_can_access_clipboard (bool enabled);
548		public void set_javascript_can_open_windows_automatically (bool enabled);
549		public void set_load_icons_ignoring_image_load_setting (bool enabled);
550		public void set_media_playback_allows_inline (bool enabled);
551		public void set_media_playback_requires_user_gesture (bool enabled);
552		public void set_minimum_font_size (uint32 font_size);
553		public void set_monospace_font_family (string monospace_font_family);
554		public void set_pictograph_font_family (string pictograph_font_family);
555		public void set_print_backgrounds (bool print_backgrounds);
556		public void set_sans_serif_font_family (string sans_serif_font_family);
557		public void set_serif_font_family (string serif_font_family);
558		public void set_user_agent (string? user_agent);
559		public void set_user_agent_with_application_details (string? application_name, string? application_version);
560		public void set_zoom_text_only (bool zoom_text_only);
561		public bool allow_file_access_from_file_urls { get; set construct; }
562		public bool allow_modal_dialogs { get; set construct; }
563		public bool allow_universal_access_from_file_urls { get; set construct; }
564		public bool auto_load_images { get; set construct; }
565		public string cursive_font_family { get; set construct; }
566		public string default_charset { get; set construct; }
567		public string default_font_family { get; set construct; }
568		public uint default_font_size { get; set construct; }
569		public uint default_monospace_font_size { get; set construct; }
570		public bool draw_compositing_indicators { get; set construct; }
571		public bool enable_accelerated_2d_canvas { get; set construct; }
572		public bool enable_caret_browsing { get; set construct; }
573		public bool enable_developer_extras { get; set construct; }
574		public bool enable_dns_prefetching { get; set construct; }
575		public bool enable_frame_flattening { get; set construct; }
576		public bool enable_fullscreen { get; set construct; }
577		public bool enable_html5_database { get; set construct; }
578		public bool enable_html5_local_storage { get; set construct; }
579		public bool enable_hyperlink_auditing { get; set construct; }
580		public bool enable_java { get; set construct; }
581		public bool enable_javascript { get; set construct; }
582		public bool enable_media_stream { get; set construct; }
583		public bool enable_mediasource { get; set construct; }
584		public bool enable_offline_web_application_cache { get; set construct; }
585		public bool enable_page_cache { get; set construct; }
586		public bool enable_plugins { get; set construct; }
587		public bool enable_resizable_text_areas { get; set construct; }
588		public bool enable_site_specific_quirks { get; set construct; }
589		public bool enable_smooth_scrolling { get; set construct; }
590		public bool enable_spatial_navigation { get; set construct; }
591		public bool enable_tabs_to_links { get; set construct; }
592		public bool enable_webaudio { get; set construct; }
593		public bool enable_webgl { get; set construct; }
594		public bool enable_write_console_messages_to_stdout { get; set construct; }
595		public bool enable_xss_auditor { get; set construct; }
596		public string fantasy_font_family { get; set construct; }
597		public WebKit.HardwareAccelerationPolicy hardware_acceleration_policy { get; set construct; }
598		public bool javascript_can_access_clipboard { get; set construct; }
599		public bool javascript_can_open_windows_automatically { get; set construct; }
600		public bool load_icons_ignoring_image_load_setting { get; set construct; }
601		public bool media_playback_allows_inline { get; set construct; }
602		public bool media_playback_requires_user_gesture { get; set construct; }
603		public uint minimum_font_size { get; set construct; }
604		public string monospace_font_family { get; set construct; }
605		public string pictograph_font_family { get; set construct; }
606		public bool print_backgrounds { get; set construct; }
607		public string sans_serif_font_family { get; set construct; }
608		public string serif_font_family { get; set construct; }
609		public string user_agent { get; set construct; }
610		public bool zoom_text_only { get; set construct; }
611	}
612	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_request_get_type ()")]
613	public class URIRequest : GLib.Object {
614		[CCode (has_construct_function = false)]
615		public URIRequest (string uri);
616		public unowned Soup.MessageHeaders get_http_headers ();
617		public unowned string get_http_method ();
618		public unowned string get_uri ();
619		public void set_uri (string uri);
620		public string uri { get; set construct; }
621	}
622	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_response_get_type ()")]
623	public class URIResponse : GLib.Object {
624		[CCode (has_construct_function = false)]
625		protected URIResponse ();
626		public uint64 get_content_length ();
627		public unowned Soup.MessageHeaders get_http_headers ();
628		public unowned string get_mime_type ();
629		public uint get_status_code ();
630		public unowned string get_suggested_filename ();
631		public unowned string get_uri ();
632		public uint64 content_length { get; }
633		public Soup.MessageHeaders http_headers { get; }
634		public string mime_type { get; }
635		public uint status_code { get; }
636		public string suggested_filename { get; }
637		public string uri { get; }
638	}
639	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_scheme_request_get_type ()")]
640	public class URISchemeRequest : GLib.Object {
641		[CCode (has_construct_function = false)]
642		protected URISchemeRequest ();
643		public void finish (GLib.InputStream stream, int64 stream_length, string? mime_type);
644		public void finish_error (GLib.Error error);
645		public unowned string get_path ();
646		public unowned string get_scheme ();
647		public unowned string get_uri ();
648		public unowned WebKit.WebView get_web_view ();
649	}
650	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_content_manager_get_type ()")]
651	public class UserContentManager : GLib.Object {
652		[CCode (has_construct_function = false)]
653		public UserContentManager ();
654		public void add_script (WebKit.UserScript script);
655		public void add_style_sheet (WebKit.UserStyleSheet stylesheet);
656		public bool register_script_message_handler (string name);
657		public void remove_all_scripts ();
658		public void remove_all_style_sheets ();
659		public void unregister_script_message_handler (string name);
660		public signal void script_message_received (WebKit.JavascriptResult js_result);
661	}
662	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_media_permission_request_get_type ()")]
663	public class UserMediaPermissionRequest : GLib.Object, WebKit.PermissionRequest {
664		[CCode (has_construct_function = false)]
665		protected UserMediaPermissionRequest ();
666		[NoAccessorMethod]
667		public bool is_for_audio_device { get; }
668		[NoAccessorMethod]
669		public bool is_for_video_device { get; }
670	}
671	[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")]
672	[Compact]
673	public class UserScript {
674		[CCode (has_construct_function = false)]
675		public UserScript (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserScriptInjectionTime injection_time, [CCode (array_length = false, array_null_terminated = true)] string[]? whitelist, [CCode (array_length = false, array_null_terminated = true)] string[]? blacklist);
676		public unowned WebKit.UserScript @ref ();
677		public void unref ();
678	}
679	[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")]
680	[Compact]
681	public class UserStyleSheet {
682		[CCode (has_construct_function = false)]
683		public UserStyleSheet (string source, WebKit.UserContentInjectedFrames injected_frames, WebKit.UserStyleLevel level, [CCode (array_length = false, array_null_terminated = true)] string[]? whitelist, [CCode (array_length = false, array_null_terminated = true)] string[]? blacklist);
684		public unowned WebKit.UserStyleSheet @ref ();
685		public void unref ();
686	}
687	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_context_get_type ()")]
688	public class WebContext : GLib.Object {
689		[CCode (has_construct_function = false)]
690		public WebContext ();
691		public void allow_tls_certificate_for_host (GLib.TlsCertificate certificate, string host);
692		public void clear_cache ();
693		public WebKit.Download download_uri (string uri);
694		[CCode (has_construct_function = false)]
695		public WebContext.ephemeral ();
696		public WebKit.CacheModel get_cache_model ();
697		public unowned WebKit.CookieManager get_cookie_manager ();
698		public static unowned WebKit.WebContext get_default ();
699		public unowned WebKit.FaviconDatabase get_favicon_database ();
700		public unowned string get_favicon_database_directory ();
701		public async GLib.List<WebKit.Plugin> get_plugins (GLib.Cancellable? cancellable) throws GLib.Error;
702		public WebKit.ProcessModel get_process_model ();
703		public unowned WebKit.SecurityManager get_security_manager ();
704		public bool get_spell_checking_enabled ();
705		[CCode (array_length = false, array_null_terminated = true)]
706		public unowned string[] get_spell_checking_languages ();
707		public WebKit.TLSErrorsPolicy get_tls_errors_policy ();
708		public uint get_web_process_count_limit ();
709		public unowned WebKit.WebsiteDataManager get_website_data_manager ();
710		public bool is_automation_allowed ();
711		public bool is_ephemeral ();
712		public void prefetch_dns (string hostname);
713		public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback);
714		public void set_additional_plugins_directory (string directory);
715		public void set_automation_allowed (bool allowed);
716		public void set_cache_model (WebKit.CacheModel cache_model);
717		public void set_favicon_database_directory (string? path);
718		public void set_network_proxy_settings (WebKit.NetworkProxyMode proxy_mode, WebKit.NetworkProxySettings? proxy_settings);
719		public void set_preferred_languages ([CCode (array_length = false, array_null_terminated = true)] string[]? languages);
720		public void set_process_model (WebKit.ProcessModel process_model);
721		public void set_spell_checking_enabled (bool enabled);
722		public void set_spell_checking_languages ([CCode (array_length = false, array_null_terminated = true)] string[] languages);
723		public void set_tls_errors_policy (WebKit.TLSErrorsPolicy policy);
724		public void set_web_extensions_directory (string directory);
725		public void set_web_extensions_initialization_user_data (GLib.Variant user_data);
726		public void set_web_process_count_limit (uint limit);
727		[CCode (has_construct_function = false)]
728		public WebContext.with_website_data_manager (WebKit.WebsiteDataManager manager);
729		public WebKit.WebsiteDataManager website_data_manager { get; construct; }
730		public virtual signal void automation_started (WebKit.AutomationSession session);
731		public virtual signal void download_started (WebKit.Download download);
732		[HasEmitter]
733		public virtual signal void initialize_notification_permissions ();
734		public virtual signal void initialize_web_extensions ();
735	}
736	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_inspector_get_type ()")]
737	public class WebInspector : GLib.Object {
738		[CCode (has_construct_function = false)]
739		protected WebInspector ();
740		public void close ();
741		public uint get_attached_height ();
742		public bool get_can_attach ();
743		public unowned string get_inspected_uri ();
744		public unowned WebKit.WebViewBase get_web_view ();
745		public bool is_attached ();
746		public void show ();
747		public uint attached_height { get; }
748		public bool can_attach { get; }
749		public string inspected_uri { get; }
750		[HasEmitter]
751		public signal bool attach ();
752		public signal bool bring_to_front ();
753		public signal void closed ();
754		[HasEmitter]
755		public signal bool detach ();
756		public signal bool open_window ();
757	}
758	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_resource_get_type ()")]
759	public class WebResource : GLib.Object {
760		[CCode (has_construct_function = false)]
761		protected WebResource ();
762		public async uint8[] get_data (GLib.Cancellable? cancellable) throws GLib.Error;
763		public unowned WebKit.URIResponse get_response ();
764		public unowned string get_uri ();
765		public WebKit.URIResponse response { get; }
766		public string uri { get; }
767		public signal void failed (GLib.Error error);
768		public signal void failed_with_tls_errors (GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors);
769		public signal void finished ();
770		public signal void received_data (uint64 data_length);
771		public signal void sent_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response);
772	}
773	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_get_type ()")]
774	public class WebView : WebKit.WebViewBase, Atk.Implementor, Gtk.Buildable {
775		[CCode (has_construct_function = false, type = "GtkWidget*")]
776		public WebView ();
777		public async bool can_execute_editing_command (string command, GLib.Cancellable? cancellable) throws GLib.Error;
778		public bool can_go_back ();
779		public bool can_go_forward ();
780		public bool can_show_mime_type (string mime_type);
781		public WebKit.Download download_uri (string uri);
782		public void execute_editing_command (string command);
783		public void execute_editing_command_with_argument (string command, string argument);
784		public unowned WebKit.BackForwardList get_back_forward_list ();
785		public Gdk.RGBA get_background_color ();
786		public unowned WebKit.WebContext get_context ();
787		public unowned string get_custom_charset ();
788		public unowned WebKit.EditorState get_editor_state ();
789		public double get_estimated_load_progress ();
790		public unowned Cairo.Surface get_favicon ();
791		public unowned WebKit.FindController get_find_controller ();
792		public unowned WebKit.WebInspector get_inspector ();
793		public unowned JS.GlobalContext get_javascript_global_context ();
794		public unowned WebKit.WebResource get_main_resource ();
795		public uint64 get_page_id ();
796		public WebKit.WebViewSessionState get_session_state ();
797		public unowned WebKit.Settings get_settings ();
798		public async Cairo.Surface get_snapshot (WebKit.SnapshotRegion region, WebKit.SnapshotOptions options, GLib.Cancellable? cancellable) throws GLib.Error;
799		public unowned string get_title ();
800		public bool get_tls_info (out unowned GLib.TlsCertificate certificate, out GLib.TlsCertificateFlags errors);
801		public unowned string get_uri ();
802		public unowned WebKit.UserContentManager get_user_content_manager ();
803		public unowned WebKit.WebsiteDataManager get_website_data_manager ();
804		public unowned WebKit.WindowProperties get_window_properties ();
805		public double get_zoom_level ();
806		public void go_back ();
807		public void go_forward ();
808		public void go_to_back_forward_list_item (WebKit.BackForwardListItem list_item);
809		public bool is_editable ();
810		public void load_alternate_html (string content, string content_uri, string? base_uri);
811		public void load_bytes (GLib.Bytes bytes, string? mime_type, string? encoding, string? base_uri);
812		public void load_html (string content, string? base_uri = null);
813		public void load_plain_text (string plain_text);
814		public void load_request (WebKit.URIRequest request);
815		public void load_uri (string uri);
816		public void reload ();
817		public void reload_bypass_cache ();
818		public void restore_session_state (WebKit.WebViewSessionState state);
819		public async WebKit.JavascriptResult run_javascript (string script, GLib.Cancellable? cancellable = null) throws GLib.Error;
820		public async WebKit.JavascriptResult run_javascript_from_gresource (string resource, GLib.Cancellable? cancellable = null) throws GLib.Error;
821		public async GLib.InputStream save (WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
822		public async bool save_to_file (GLib.File file, WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
823		public void set_background_color (Gdk.RGBA rgba);
824		public void set_custom_charset (string? charset);
825		public void set_editable (bool editable);
826		public void set_settings (WebKit.Settings settings);
827		public void set_zoom_level (double zoom_level);
828		[NoWrapper]
829		public virtual bool show_option_menu (Gdk.Rectangle rectangle, WebKit.OptionMenu menu);
830		public void stop_loading ();
831		public void try_close ();
832		[CCode (has_construct_function = false, type = "GtkWidget*")]
833		public WebView.with_context (WebKit.WebContext context);
834		[CCode (has_construct_function = false, type = "GtkWidget*")]
835		public WebView.with_related_view (WebKit.WebView web_view);
836		[CCode (has_construct_function = false, type = "GtkWidget*")]
837		public WebView.with_settings (WebKit.Settings settings);
838		[CCode (has_construct_function = false, type = "GtkWidget*")]
839		public WebView.with_user_content_manager (WebKit.UserContentManager user_content_manager);
840		[NoAccessorMethod]
841		public bool editable { get; set; }
842		public double estimated_load_progress { get; }
843		public void* favicon { get; }
844		[NoAccessorMethod]
845		public bool is_controlled_by_automation { get; construct; }
846		[NoAccessorMethod]
847		public bool is_ephemeral { get; construct; }
848		[NoAccessorMethod]
849		public bool is_loading { get; }
850		[NoAccessorMethod]
851		public bool is_playing_audio { get; }
852		[NoAccessorMethod]
853		public WebKit.WebView related_view { construct; }
854		public WebKit.Settings settings { set construct; }
855		public string title { get; }
856		public string uri { get; }
857		public WebKit.UserContentManager user_content_manager { get; construct; }
858		[NoAccessorMethod]
859		public WebKit.WebContext web_context { owned get; construct; }
860		public double zoom_level { get; set; }
861		public virtual signal bool authenticate (WebKit.AuthenticationRequest request);
862		public virtual signal void close ();
863		public virtual signal bool context_menu (WebKit.ContextMenu context_menu, Gdk.Event event, WebKit.HitTestResult hit_test_result);
864		public virtual signal void context_menu_dismissed ();
865		public signal Gtk.Widget create (WebKit.NavigationAction navigation_action);
866		public virtual signal bool decide_policy (WebKit.PolicyDecision decision, WebKit.PolicyDecisionType type);
867		public virtual signal bool enter_fullscreen ();
868		public virtual signal void insecure_content_detected (WebKit.InsecureContentEvent event);
869		public virtual signal bool leave_fullscreen ();
870		public virtual signal void load_changed (WebKit.LoadEvent load_event);
871		public virtual signal bool load_failed (WebKit.LoadEvent load_event, string failing_uri, GLib.Error error);
872		public virtual signal bool load_failed_with_tls_errors (string failing_uri, GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors);
873		public virtual signal void mouse_target_changed (WebKit.HitTestResult hit_test_result, uint modifiers);
874		[CCode (cname = "show-option-menu")]
875		public signal bool on_show_option_menu (WebKit.OptionMenu menu, Gdk.Event event, Gdk.Rectangle rectangle);
876		public virtual signal bool permission_request (WebKit.PermissionRequest permission_request);
877		public virtual signal bool print (WebKit.PrintOperation print_operation);
878		public virtual signal void ready_to_show ();
879		public virtual signal void resource_load_started (WebKit.WebResource resource, WebKit.URIRequest request);
880		public virtual signal void run_as_modal ();
881		public virtual signal bool run_color_chooser (WebKit.ColorChooserRequest request);
882		public virtual signal bool run_file_chooser (WebKit.FileChooserRequest request);
883		public virtual signal bool script_dialog (WebKit.ScriptDialog dialog);
884		public virtual signal bool show_notification (WebKit.Notification notification);
885		public virtual signal void submit_form (WebKit.FormSubmissionRequest request);
886		public virtual signal bool web_process_crashed ();
887	}
888	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_base_get_type ()")]
889	public class WebViewBase : Gtk.Container, Atk.Implementor, Gtk.Buildable {
890		[CCode (has_construct_function = false)]
891		protected WebViewBase ();
892	}
893	[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")]
894	[Compact]
895	public class WebViewSessionState {
896		[CCode (has_construct_function = false)]
897		public WebViewSessionState (GLib.Bytes data);
898		public unowned WebKit.WebViewSessionState @ref ();
899		public GLib.Bytes serialize ();
900		public void unref ();
901	}
902	[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")]
903	[Compact]
904	public class WebsiteData {
905		public unowned string get_name ();
906		public uint64 get_size (WebKit.WebsiteDataTypes types);
907		public WebKit.WebsiteDataTypes get_types ();
908		public unowned WebKit.WebsiteData @ref ();
909		public void unref ();
910	}
911	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_website_data_manager_get_type ()")]
912	public class WebsiteDataManager : GLib.Object {
913		[CCode (has_construct_function = false)]
914		protected WebsiteDataManager ();
915		public async bool clear (WebKit.WebsiteDataTypes types, GLib.TimeSpan timespan, GLib.Cancellable? cancellable) throws GLib.Error;
916		[CCode (has_construct_function = false)]
917		public WebsiteDataManager.ephemeral ();
918		public async GLib.List<WebKit.WebsiteData> fetch (WebKit.WebsiteDataTypes types, GLib.Cancellable? cancellable) throws GLib.Error;
919		public unowned string? get_base_cache_directory ();
920		public unowned string? get_base_data_directory ();
921		public unowned WebKit.CookieManager get_cookie_manager ();
922		public unowned string? get_disk_cache_directory ();
923		public unowned string? get_indexeddb_directory ();
924		public unowned string? get_local_storage_directory ();
925		public unowned string? get_offline_application_cache_directory ();
926		public unowned string? get_websql_directory ();
927		public async bool remove (WebKit.WebsiteDataTypes types, GLib.List<WebKit.WebsiteData> website_data, GLib.Cancellable? cancellable) throws GLib.Error;
928		public string base_cache_directory { get; construct; }
929		public string base_data_directory { get; construct; }
930		public string disk_cache_directory { get; construct; }
931		public string indexeddb_directory { get; construct; }
932		[NoAccessorMethod]
933		public bool is_ephemeral { get; construct; }
934		public string local_storage_directory { get; construct; }
935		public string offline_application_cache_directory { get; construct; }
936		public string websql_directory { get; construct; }
937	}
938	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_window_properties_get_type ()")]
939	public class WindowProperties : GLib.Object {
940		[CCode (has_construct_function = false)]
941		protected WindowProperties ();
942		public bool get_fullscreen ();
943		public Gdk.Rectangle get_geometry ();
944		public bool get_locationbar_visible ();
945		public bool get_menubar_visible ();
946		public bool get_resizable ();
947		public bool get_scrollbars_visible ();
948		public bool get_statusbar_visible ();
949		public bool get_toolbar_visible ();
950		public bool fullscreen { get; construct; }
951		public Gdk.Rectangle geometry { get; construct; }
952		public bool locationbar_visible { get; construct; }
953		public bool menubar_visible { get; construct; }
954		public bool resizable { get; construct; }
955		public bool scrollbars_visible { get; construct; }
956		public bool statusbar_visible { get; construct; }
957		public bool toolbar_visible { get; construct; }
958	}
959	[CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_permission_request_get_type ()")]
960	public interface PermissionRequest : GLib.Object {
961		public abstract void allow ();
962		public abstract void deny ();
963	}
964	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_AUTHENTICATION_SCHEME_", type_id = "webkit_authentication_scheme_get_type ()")]
965	public enum AuthenticationScheme {
966		DEFAULT,
967		HTTP_BASIC,
968		HTTP_DIGEST,
969		HTML_FORM,
970		NTLM,
971		NEGOTIATE,
972		CLIENT_CERTIFICATE_REQUESTED,
973		SERVER_TRUST_EVALUATION_REQUESTED,
974		UNKNOWN
975	}
976	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CACHE_MODEL_", type_id = "webkit_cache_model_get_type ()")]
977	public enum CacheModel {
978		DOCUMENT_VIEWER,
979		WEB_BROWSER,
980		DOCUMENT_BROWSER
981	}
982	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CONTEXT_MENU_ACTION_", type_id = "webkit_context_menu_action_get_type ()")]
983	public enum ContextMenuAction {
984		NO_ACTION,
985		OPEN_LINK,
986		OPEN_LINK_IN_NEW_WINDOW,
987		DOWNLOAD_LINK_TO_DISK,
988		COPY_LINK_TO_CLIPBOARD,
989		OPEN_IMAGE_IN_NEW_WINDOW,
990		DOWNLOAD_IMAGE_TO_DISK,
991		COPY_IMAGE_TO_CLIPBOARD,
992		COPY_IMAGE_URL_TO_CLIPBOARD,
993		OPEN_FRAME_IN_NEW_WINDOW,
994		GO_BACK,
995		GO_FORWARD,
996		STOP,
997		RELOAD,
998		COPY,
999		CUT,
1000		PASTE,
1001		DELETE,
1002		SELECT_ALL,
1003		INPUT_METHODS,
1004		UNICODE,
1005		SPELLING_GUESS,
1006		NO_GUESSES_FOUND,
1007		IGNORE_SPELLING,
1008		LEARN_SPELLING,
1009		IGNORE_GRAMMAR,
1010		FONT_MENU,
1011		BOLD,
1012		ITALIC,
1013		UNDERLINE,
1014		OUTLINE,
1015		INSPECT_ELEMENT,
1016		OPEN_VIDEO_IN_NEW_WINDOW,
1017		OPEN_AUDIO_IN_NEW_WINDOW,
1018		COPY_VIDEO_LINK_TO_CLIPBOARD,
1019		COPY_AUDIO_LINK_TO_CLIPBOARD,
1020		TOGGLE_MEDIA_CONTROLS,
1021		TOGGLE_MEDIA_LOOP,
1022		ENTER_VIDEO_FULLSCREEN,
1023		MEDIA_PLAY,
1024		MEDIA_PAUSE,
1025		MEDIA_MUTE,
1026		DOWNLOAD_VIDEO_TO_DISK,
1027		DOWNLOAD_AUDIO_TO_DISK,
1028		CUSTOM
1029	}
1030	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_POLICY_ACCEPT_", type_id = "webkit_cookie_accept_policy_get_type ()")]
1031	public enum CookieAcceptPolicy {
1032		ALWAYS,
1033		NEVER,
1034		NO_THIRD_PARTY
1035	}
1036	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_PERSISTENT_STORAGE_", type_id = "webkit_cookie_persistent_storage_get_type ()")]
1037	public enum CookiePersistentStorage {
1038		TEXT,
1039		SQLITE
1040	}
1041	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CREDENTIAL_PERSISTENCE_", type_id = "webkit_credential_persistence_get_type ()")]
1042	public enum CredentialPersistence {
1043		NONE,
1044		FOR_SESSION,
1045		PERMANENT
1046	}
1047	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_EDITOR_TYPING_ATTRIBUTE_", type_id = "webkit_editor_typing_attributes_get_type ()")]
1048	[Flags]
1049	public enum EditorTypingAttributes {
1050		NONE,
1051		BOLD,
1052		ITALIC,
1053		UNDERLINE,
1054		STRIKETHROUGH
1055	}
1056	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")]
1057	[Flags]
1058	public enum FindOptions {
1059		NONE,
1060		CASE_INSENSITIVE,
1061		AT_WORD_STARTS,
1062		TREAT_MEDIAL_CAPITAL_AS_WORD_START,
1063		BACKWARDS,
1064		WRAP_AROUND
1065	}
1066	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HARDWARE_ACCELERATION_POLICY_", type_id = "webkit_hardware_acceleration_policy_get_type ()")]
1067	public enum HardwareAccelerationPolicy {
1068		ON_DEMAND,
1069		ALWAYS,
1070		NEVER
1071	}
1072	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", type_id = "webkit_hit_test_result_context_get_type ()")]
1073	[Flags]
1074	public enum HitTestResultContext {
1075		DOCUMENT,
1076		LINK,
1077		IMAGE,
1078		MEDIA,
1079		EDITABLE,
1080		SCROLLBAR,
1081		SELECTION
1082	}
1083	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INSECURE_CONTENT_", type_id = "webkit_insecure_content_event_get_type ()")]
1084	public enum InsecureContentEvent {
1085		RUN,
1086		DISPLAYED
1087	}
1088	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_LOAD_", type_id = "webkit_load_event_get_type ()")]
1089	public enum LoadEvent {
1090		STARTED,
1091		REDIRECTED,
1092		COMMITTED,
1093		FINISHED
1094	}
1095	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NAVIGATION_TYPE_", type_id = "webkit_navigation_type_get_type ()")]
1096	public enum NavigationType {
1097		LINK_CLICKED,
1098		FORM_SUBMITTED,
1099		BACK_FORWARD,
1100		RELOAD,
1101		FORM_RESUBMITTED,
1102		OTHER
1103	}
1104	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_PROXY_MODE_", type_id = "webkit_network_proxy_mode_get_type ()")]
1105	public enum NetworkProxyMode {
1106		DEFAULT,
1107		NO_PROXY,
1108		CUSTOM
1109	}
1110	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_DECISION_TYPE_", type_id = "webkit_policy_decision_type_get_type ()")]
1111	public enum PolicyDecisionType {
1112		NAVIGATION_ACTION,
1113		NEW_WINDOW_ACTION,
1114		RESPONSE
1115	}
1116	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_OPERATION_RESPONSE_", type_id = "webkit_print_operation_response_get_type ()")]
1117	public enum PrintOperationResponse {
1118		PRINT,
1119		CANCEL
1120	}
1121	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PROCESS_MODEL_", type_id = "webkit_process_model_get_type ()")]
1122	public enum ProcessModel {
1123		SHARED_SECONDARY_PROCESS,
1124		MULTIPLE_SECONDARY_PROCESSES
1125	}
1126	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SAVE_MODE_", type_id = "webkit_save_mode_get_type ()")]
1127	public enum SaveMode {
1128		MHTML
1129	}
1130	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SCRIPT_DIALOG_", type_id = "webkit_script_dialog_type_get_type ()")]
1131	public enum ScriptDialogType {
1132		ALERT,
1133		CONFIRM,
1134		PROMPT,
1135		BEFORE_UNLOAD_CONFIRM
1136	}
1137	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_OPTIONS_", type_id = "webkit_snapshot_options_get_type ()")]
1138	[Flags]
1139	public enum SnapshotOptions {
1140		NONE,
1141		INCLUDE_SELECTION_HIGHLIGHTING,
1142		TRANSPARENT_BACKGROUND
1143	}
1144	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_REGION_", type_id = "webkit_snapshot_region_get_type ()")]
1145	public enum SnapshotRegion {
1146		VISIBLE,
1147		FULL_DOCUMENT
1148	}
1149	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_TLS_ERRORS_POLICY_", type_id = "webkit_tls_errors_policy_get_type ()")]
1150	public enum TLSErrorsPolicy {
1151		IGNORE,
1152		FAIL
1153	}
1154	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_CONTENT_INJECT_", type_id = "webkit_user_content_injected_frames_get_type ()")]
1155	public enum UserContentInjectedFrames {
1156		ALL_FRAMES,
1157		TOP_FRAME
1158	}
1159	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_", type_id = "webkit_user_script_injection_time_get_type ()")]
1160	public enum UserScriptInjectionTime {
1161		START,
1162		END
1163	}
1164	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_STYLE_LEVEL_", type_id = "webkit_user_style_level_get_type ()")]
1165	public enum UserStyleLevel {
1166		USER,
1167		AUTHOR
1168	}
1169	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_WEBSITE_DATA_", type_id = "webkit_website_data_types_get_type ()")]
1170	[Flags]
1171	public enum WebsiteDataTypes {
1172		MEMORY_CACHE,
1173		DISK_CACHE,
1174		OFFLINE_APPLICATION_CACHE,
1175		SESSION_STORAGE,
1176		LOCAL_STORAGE,
1177		WEBSQL_DATABASES,
1178		INDEXEDDB_DATABASES,
1179		PLUGIN_DATA,
1180		COOKIES,
1181		ALL
1182	}
1183	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_DOWNLOAD_ERROR_")]
1184	public errordomain DownloadError {
1185		NETWORK,
1186		CANCELLED_BY_USER,
1187		DESTINATION;
1188		public static GLib.Quark quark ();
1189	}
1190	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FAVICON_DATABASE_ERROR_")]
1191	public errordomain FaviconDatabaseError {
1192		NOT_INITIALIZED,
1193		FAVICON_NOT_FOUND,
1194		FAVICON_UNKNOWN;
1195		public static GLib.Quark quark ();
1196	}
1197	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_JAVASCRIPT_ERROR_SCRIPT_")]
1198	public errordomain JavascriptError {
1199		FAILED;
1200		public static GLib.Quark quark ();
1201	}
1202	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_ERROR_")]
1203	public errordomain NetworkError {
1204		FAILED,
1205		TRANSPORT,
1206		UNKNOWN_PROTOCOL,
1207		CANCELLED,
1208		FILE_DOES_NOT_EXIST;
1209		public static GLib.Quark quark ();
1210	}
1211	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PLUGIN_ERROR_")]
1212	public errordomain PluginError {
1213		FAILED,
1214		CANNOT_FIND_PLUGIN,
1215		CANNOT_LOAD_PLUGIN,
1216		JAVA_UNAVAILABLE,
1217		CONNECTION_CANCELLED,
1218		WILL_HANDLE_LOAD;
1219		public static GLib.Quark quark ();
1220	}
1221	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_ERROR_")]
1222	public errordomain PolicyError {
1223		FAILED,
1224		CANNOT_SHOW_MIME_TYPE,
1225		CANNOT_SHOW_URI,
1226		FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE,
1227		CANNOT_USE_RESTRICTED_PORT;
1228		public static GLib.Quark quark ();
1229	}
1230	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_ERROR_")]
1231	public errordomain PrintError {
1232		GENERAL,
1233		PRINTER_NOT_FOUND,
1234		INVALID_PAGE_RANGE;
1235		public static GLib.Quark quark ();
1236	}
1237	[CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_ERROR_FAILED_TO_")]
1238	public errordomain SnapshotError {
1239		CREATE;
1240		public static GLib.Quark quark ();
1241	}
1242	[CCode (cheader_filename = "webkit2/webkit2.h", instance_pos = 1.9)]
1243	public delegate void URISchemeRequestCallback (WebKit.URISchemeRequest request);
1244	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_COPY")]
1245	public const string EDITING_COMMAND_COPY;
1246	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CREATE_LINK")]
1247	public const string EDITING_COMMAND_CREATE_LINK;
1248	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CUT")]
1249	public const string EDITING_COMMAND_CUT;
1250	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_INSERT_IMAGE")]
1251	public const string EDITING_COMMAND_INSERT_IMAGE;
1252	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_PASTE")]
1253	public const string EDITING_COMMAND_PASTE;
1254	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_REDO")]
1255	public const string EDITING_COMMAND_REDO;
1256	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_SELECT_ALL")]
1257	public const string EDITING_COMMAND_SELECT_ALL;
1258	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_UNDO")]
1259	public const string EDITING_COMMAND_UNDO;
1260	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MAJOR_VERSION")]
1261	public const int MAJOR_VERSION;
1262	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MICRO_VERSION")]
1263	public const int MICRO_VERSION;
1264	[CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MINOR_VERSION")]
1265	public const int MINOR_VERSION;
1266	[CCode (cheader_filename = "webkit2/webkit2.h")]
1267	public static uint get_major_version ();
1268	[CCode (cheader_filename = "webkit2/webkit2.h")]
1269	public static uint get_micro_version ();
1270	[CCode (cheader_filename = "webkit2/webkit2.h")]
1271	public static uint get_minor_version ();
1272	[CCode (cheader_filename = "webkit2/webkit2.h")]
1273	public static bool user_media_permission_is_for_audio_device (WebKit.UserMediaPermissionRequest request);
1274	[CCode (cheader_filename = "webkit2/webkit2.h")]
1275	public static bool user_media_permission_is_for_video_device (WebKit.UserMediaPermissionRequest request);
1276}
1277