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