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