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