gtk+-4.0: Update to 3.94.0+4e868584
[vala-gnome.git] / vapi / webkit2gtk-4.0.vapi
blobcab7ac9c42161ee86930cc42bd23a772397df388
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.4")]
640                 public bool get_enable_media_stream ();
641                 [Version (since = "2.4")]
642                 public bool get_enable_mediasource ();
643                 public bool get_enable_offline_web_application_cache ();
644                 public bool get_enable_page_cache ();
645                 public bool get_enable_plugins ();
646                 [Version (deprecated = true, deprecated_since = "2.16.")]
647                 public bool get_enable_private_browsing ();
648                 public bool get_enable_resizable_text_areas ();
649                 public bool get_enable_site_specific_quirks ();
650                 public bool get_enable_smooth_scrolling ();
651                 [Version (since = "2.2")]
652                 public bool get_enable_spatial_navigation ();
653                 public bool get_enable_tabs_to_links ();
654                 public bool get_enable_webaudio ();
655                 public bool get_enable_webgl ();
656                 [Version (since = "2.2")]
657                 public bool get_enable_write_console_messages_to_stdout ();
658                 public bool get_enable_xss_auditor ();
659                 public unowned string get_fantasy_font_family ();
660                 [Version (since = "2.16")]
661                 public WebKit.HardwareAccelerationPolicy get_hardware_acceleration_policy ();
662                 public bool get_javascript_can_access_clipboard ();
663                 public bool get_javascript_can_open_windows_automatically ();
664                 public bool get_load_icons_ignoring_image_load_setting ();
665                 public bool get_media_playback_allows_inline ();
666                 public bool get_media_playback_requires_user_gesture ();
667                 public uint32 get_minimum_font_size ();
668                 public unowned string get_monospace_font_family ();
669                 public unowned string get_pictograph_font_family ();
670                 public bool get_print_backgrounds ();
671                 public unowned string get_sans_serif_font_family ();
672                 public unowned string get_serif_font_family ();
673                 public unowned string get_user_agent ();
674                 public bool get_zoom_text_only ();
675                 [Version (since = "2.10")]
676                 public void set_allow_file_access_from_file_urls (bool allowed);
677                 public void set_allow_modal_dialogs (bool allowed);
678                 [Version (since = "2.14")]
679                 public void set_allow_universal_access_from_file_urls (bool allowed);
680                 public void set_auto_load_images (bool enabled);
681                 public void set_cursive_font_family (string cursive_font_family);
682                 public void set_default_charset (string default_charset);
683                 public void set_default_font_family (string default_font_family);
684                 public void set_default_font_size (uint32 font_size);
685                 public void set_default_monospace_font_size (uint32 font_size);
686                 public void set_draw_compositing_indicators (bool enabled);
687                 [Version (since = "2.2")]
688                 public void set_enable_accelerated_2d_canvas (bool enabled);
689                 public void set_enable_caret_browsing (bool enabled);
690                 public void set_enable_developer_extras (bool enabled);
691                 public void set_enable_dns_prefetching (bool enabled);
692                 [Version (since = "2.20")]
693                 public void set_enable_encrypted_media (bool enabled);
694                 public void set_enable_frame_flattening (bool enabled);
695                 public void set_enable_fullscreen (bool enabled);
696                 public void set_enable_html5_database (bool enabled);
697                 public void set_enable_html5_local_storage (bool enabled);
698                 public void set_enable_hyperlink_auditing (bool enabled);
699                 public void set_enable_java (bool enabled);
700                 public void set_enable_javascript (bool enabled);
701                 [Version (since = "2.4")]
702                 public void set_enable_media_stream (bool enabled);
703                 [Version (since = "2.4")]
704                 public void set_enable_mediasource (bool enabled);
705                 public void set_enable_offline_web_application_cache (bool enabled);
706                 public void set_enable_page_cache (bool enabled);
707                 public void set_enable_plugins (bool enabled);
708                 [Version (deprecated = true, deprecated_since = "2.16.")]
709                 public void set_enable_private_browsing (bool enabled);
710                 public void set_enable_resizable_text_areas (bool enabled);
711                 public void set_enable_site_specific_quirks (bool enabled);
712                 public void set_enable_smooth_scrolling (bool enabled);
713                 [Version (since = "2.2")]
714                 public void set_enable_spatial_navigation (bool enabled);
715                 public void set_enable_tabs_to_links (bool enabled);
716                 public void set_enable_webaudio (bool enabled);
717                 public void set_enable_webgl (bool enabled);
718                 [Version (since = "2.2")]
719                 public void set_enable_write_console_messages_to_stdout (bool enabled);
720                 public void set_enable_xss_auditor (bool enabled);
721                 public void set_fantasy_font_family (string fantasy_font_family);
722                 [Version (since = "2.16")]
723                 public void set_hardware_acceleration_policy (WebKit.HardwareAccelerationPolicy policy);
724                 public void set_javascript_can_access_clipboard (bool enabled);
725                 public void set_javascript_can_open_windows_automatically (bool enabled);
726                 public void set_load_icons_ignoring_image_load_setting (bool enabled);
727                 public void set_media_playback_allows_inline (bool enabled);
728                 public void set_media_playback_requires_user_gesture (bool enabled);
729                 public void set_minimum_font_size (uint32 font_size);
730                 public void set_monospace_font_family (string monospace_font_family);
731                 public void set_pictograph_font_family (string pictograph_font_family);
732                 public void set_print_backgrounds (bool print_backgrounds);
733                 public void set_sans_serif_font_family (string sans_serif_font_family);
734                 public void set_serif_font_family (string serif_font_family);
735                 public void set_user_agent (string? user_agent);
736                 public void set_user_agent_with_application_details (string? application_name, string? application_version);
737                 public void set_zoom_text_only (bool zoom_text_only);
738                 [Version (since = "2.10")]
739                 public bool allow_file_access_from_file_urls { get; set construct; }
740                 public bool allow_modal_dialogs { get; set construct; }
741                 [Version (since = "2.14")]
742                 public bool allow_universal_access_from_file_urls { get; set construct; }
743                 public bool auto_load_images { get; set construct; }
744                 public string cursive_font_family { get; set construct; }
745                 public string default_charset { get; set construct; }
746                 public string default_font_family { get; set construct; }
747                 public uint default_font_size { get; set construct; }
748                 public uint default_monospace_font_size { get; set construct; }
749                 public bool draw_compositing_indicators { get; set construct; }
750                 [Version (since = "2.2")]
751                 public bool enable_accelerated_2d_canvas { get; set construct; }
752                 public bool enable_caret_browsing { get; set construct; }
753                 public bool enable_developer_extras { get; set construct; }
754                 public bool enable_dns_prefetching { get; set construct; }
755                 [Version (since = "2.20")]
756                 public bool enable_encrypted_media { get; set construct; }
757                 public bool enable_frame_flattening { get; set construct; }
758                 public bool enable_fullscreen { get; set construct; }
759                 public bool enable_html5_database { get; set construct; }
760                 public bool enable_html5_local_storage { get; set construct; }
761                 public bool enable_hyperlink_auditing { get; set construct; }
762                 public bool enable_java { get; set construct; }
763                 public bool enable_javascript { get; set construct; }
764                 [Version (since = "2.4")]
765                 public bool enable_media_stream { get; set construct; }
766                 [Version (since = "2.4")]
767                 public bool enable_mediasource { get; set construct; }
768                 public bool enable_offline_web_application_cache { get; set construct; }
769                 public bool enable_page_cache { get; set construct; }
770                 public bool enable_plugins { get; set construct; }
771                 [Version (deprecated = true, deprecated_since = "2.16.")]
772                 public bool enable_private_browsing { get; set construct; }
773                 public bool enable_resizable_text_areas { get; set construct; }
774                 public bool enable_site_specific_quirks { get; set construct; }
775                 public bool enable_smooth_scrolling { get; set construct; }
776                 [Version (since = "2.4")]
777                 public bool enable_spatial_navigation { get; set construct; }
778                 public bool enable_tabs_to_links { get; set construct; }
779                 public bool enable_webaudio { get; set construct; }
780                 public bool enable_webgl { get; set construct; }
781                 [Version (since = "2.2")]
782                 public bool enable_write_console_messages_to_stdout { get; set construct; }
783                 public bool enable_xss_auditor { get; set construct; }
784                 public string fantasy_font_family { get; set construct; }
785                 [Version (since = "2.16")]
786                 public WebKit.HardwareAccelerationPolicy hardware_acceleration_policy { get; set construct; }
787                 public bool javascript_can_access_clipboard { get; set construct; }
788                 public bool javascript_can_open_windows_automatically { get; set construct; }
789                 public bool load_icons_ignoring_image_load_setting { get; set construct; }
790                 public bool media_playback_allows_inline { get; set construct; }
791                 public bool media_playback_requires_user_gesture { get; set construct; }
792                 public uint minimum_font_size { get; set construct; }
793                 public string monospace_font_family { get; set construct; }
794                 public string pictograph_font_family { get; set construct; }
795                 public bool print_backgrounds { get; set construct; }
796                 public string sans_serif_font_family { get; set construct; }
797                 public string serif_font_family { get; set construct; }
798                 public string user_agent { get; set construct; }
799                 public bool zoom_text_only { get; set construct; }
800         }
801         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_request_get_type ()")]
802         public class URIRequest : GLib.Object {
803                 [CCode (has_construct_function = false)]
804                 public URIRequest (string uri);
805                 public unowned Soup.MessageHeaders get_http_headers ();
806                 [Version (since = "2.12")]
807                 public unowned string get_http_method ();
808                 public unowned string get_uri ();
809                 public void set_uri (string uri);
810                 public string uri { get; set construct; }
811         }
812         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_response_get_type ()")]
813         public class URIResponse : GLib.Object {
814                 [CCode (has_construct_function = false)]
815                 protected URIResponse ();
816                 public uint64 get_content_length ();
817                 [Version (since = "2.6")]
818                 public unowned Soup.MessageHeaders get_http_headers ();
819                 public unowned string get_mime_type ();
820                 public uint get_status_code ();
821                 public unowned string get_suggested_filename ();
822                 public unowned string get_uri ();
823                 public uint64 content_length { get; }
824                 [Version (since = "2.6")]
825                 public Soup.MessageHeaders http_headers { get; }
826                 public string mime_type { get; }
827                 public uint status_code { get; }
828                 public string suggested_filename { get; }
829                 public string uri { get; }
830         }
831         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_scheme_request_get_type ()")]
832         public class URISchemeRequest : GLib.Object {
833                 [CCode (has_construct_function = false)]
834                 protected URISchemeRequest ();
835                 public void finish (GLib.InputStream stream, int64 stream_length, string? mime_type);
836                 [Version (since = "2.2")]
837                 public void finish_error (GLib.Error error);
838                 public unowned string get_path ();
839                 public unowned string get_scheme ();
840                 public unowned string get_uri ();
841                 public unowned WebKit.WebView get_web_view ();
842         }
843         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_content_manager_get_type ()")]
844         public class UserContentManager : GLib.Object {
845                 [CCode (has_construct_function = false)]
846                 [Version (since = "2.6")]
847                 public UserContentManager ();
848                 [Version (since = "2.6")]
849                 public void add_script (WebKit.UserScript script);
850                 [Version (since = "2.6")]
851                 public void add_style_sheet (WebKit.UserStyleSheet stylesheet);
852                 [Version (since = "2.8")]
853                 public bool register_script_message_handler (string name);
854                 [Version (since = "2.6")]
855                 public void remove_all_scripts ();
856                 [Version (since = "2.6")]
857                 public void remove_all_style_sheets ();
858                 [Version (since = "2.8")]
859                 public void unregister_script_message_handler (string name);
860                 [Version (since = "2.8")]
861                 public signal void script_message_received (WebKit.JavascriptResult js_result);
862         }
863         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_media_permission_request_get_type ()")]
864         public class UserMediaPermissionRequest : GLib.Object, WebKit.PermissionRequest {
865                 [CCode (has_construct_function = false)]
866                 protected UserMediaPermissionRequest ();
867                 [NoAccessorMethod]
868                 public bool is_for_audio_device { get; }
869                 [NoAccessorMethod]
870                 public bool is_for_video_device { get; }
871         }
872         [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")]
873         [Compact]
874         public class UserScript {
875                 [CCode (has_construct_function = false)]
876                 [Version (since = "2.6")]
877                 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);
878                 [Version (since = "2.6")]
879                 public unowned WebKit.UserScript @ref ();
880                 [Version (since = "2.6")]
881                 public void unref ();
882         }
883         [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")]
884         [Compact]
885         public class UserStyleSheet {
886                 [CCode (has_construct_function = false)]
887                 [Version (since = "2.6")]
888                 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);
889                 [Version (since = "2.6")]
890                 public unowned WebKit.UserStyleSheet @ref ();
891                 [Version (since = "2.6")]
892                 public void unref ();
893         }
894         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_context_get_type ()")]
895         public class WebContext : GLib.Object {
896                 [CCode (has_construct_function = false)]
897                 [Version (since = "2.8")]
898                 public WebContext ();
899                 [Version (since = "2.6")]
900                 public void allow_tls_certificate_for_host (GLib.TlsCertificate certificate, string host);
901                 public void clear_cache ();
902                 public WebKit.Download download_uri (string uri);
903                 [CCode (has_construct_function = false)]
904                 [Version (since = "2.16")]
905                 public WebContext.ephemeral ();
906                 public WebKit.CacheModel get_cache_model ();
907                 public unowned WebKit.CookieManager get_cookie_manager ();
908                 public static unowned WebKit.WebContext get_default ();
909                 public unowned WebKit.FaviconDatabase get_favicon_database ();
910                 public unowned string get_favicon_database_directory ();
911                 public async GLib.List<WebKit.Plugin> get_plugins (GLib.Cancellable? cancellable) throws GLib.Error;
912                 [Version (since = "2.4")]
913                 public WebKit.ProcessModel get_process_model ();
914                 public unowned WebKit.SecurityManager get_security_manager ();
915                 public bool get_spell_checking_enabled ();
916                 [CCode (array_length = false, array_null_terminated = true)]
917                 public unowned string[] get_spell_checking_languages ();
918                 public WebKit.TLSErrorsPolicy get_tls_errors_policy ();
919                 [Version (since = "2.10")]
920                 public uint get_web_process_count_limit ();
921                 [Version (since = "2.10")]
922                 public unowned WebKit.WebsiteDataManager get_website_data_manager ();
923                 [Version (since = "2.18")]
924                 public bool is_automation_allowed ();
925                 [Version (since = "2.16")]
926                 public bool is_ephemeral ();
927                 public void prefetch_dns (string hostname);
928                 public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback);
929                 public void set_additional_plugins_directory (string directory);
930                 [Version (since = "2.18")]
931                 public void set_automation_allowed (bool allowed);
932                 public void set_cache_model (WebKit.CacheModel cache_model);
933                 [Version (deprecated = true, deprecated_since = "2.10.")]
934                 public void set_disk_cache_directory (string directory);
935                 public void set_favicon_database_directory (string? path);
936                 [Version (since = "2.16")]
937                 public void set_network_proxy_settings (WebKit.NetworkProxyMode proxy_mode, WebKit.NetworkProxySettings? proxy_settings);
938                 public void set_preferred_languages ([CCode (array_length = false, array_null_terminated = true)] string[]? languages);
939                 [Version (since = "2.4")]
940                 public void set_process_model (WebKit.ProcessModel process_model);
941                 public void set_spell_checking_enabled (bool enabled);
942                 public void set_spell_checking_languages ([CCode (array_length = false, array_null_terminated = true)] string[] languages);
943                 public void set_tls_errors_policy (WebKit.TLSErrorsPolicy policy);
944                 public void set_web_extensions_directory (string directory);
945                 [Version (since = "2.4")]
946                 public void set_web_extensions_initialization_user_data (GLib.Variant user_data);
947                 [Version (since = "2.10")]
948                 public void set_web_process_count_limit (uint limit);
949                 [CCode (has_construct_function = false)]
950                 [Version (since = "2.10")]
951                 public WebContext.with_website_data_manager (WebKit.WebsiteDataManager manager);
952                 [NoAccessorMethod]
953                 [Version (deprecated = true, deprecated_since = "2.10.", since = "2.8")]
954                 public string local_storage_directory { owned get; construct; }
955                 [Version (since = "2.10")]
956                 public WebKit.WebsiteDataManager website_data_manager { get; construct; }
957                 [Version (since = "2.18")]
958                 public virtual signal void automation_started (WebKit.AutomationSession session);
959                 public virtual signal void download_started (WebKit.Download download);
960                 [HasEmitter]
961                 [Version (since = "2.16")]
962                 public virtual signal void initialize_notification_permissions ();
963                 [Version (since = "2.4")]
964                 public virtual signal void initialize_web_extensions ();
965         }
966         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_inspector_get_type ()")]
967         public class WebInspector : GLib.Object {
968                 [CCode (has_construct_function = false)]
969                 protected WebInspector ();
970                 public void close ();
971                 public uint get_attached_height ();
972                 [Version (since = "2.8")]
973                 public bool get_can_attach ();
974                 public unowned string get_inspected_uri ();
975                 public unowned WebKit.WebViewBase get_web_view ();
976                 public bool is_attached ();
977                 public void show ();
978                 public uint attached_height { get; }
979                 [Version (since = "2.8")]
980                 public bool can_attach { get; }
981                 public string inspected_uri { get; }
982                 [HasEmitter]
983                 public signal bool attach ();
984                 public signal bool bring_to_front ();
985                 public signal void closed ();
986                 [HasEmitter]
987                 public signal bool detach ();
988                 public signal bool open_window ();
989         }
990         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_resource_get_type ()")]
991         public class WebResource : GLib.Object {
992                 [CCode (has_construct_function = false)]
993                 protected WebResource ();
994                 public async uint8[] get_data (GLib.Cancellable? cancellable) throws GLib.Error;
995                 public unowned WebKit.URIResponse get_response ();
996                 public unowned string get_uri ();
997                 public WebKit.URIResponse response { get; }
998                 public string uri { get; }
999                 public signal void failed (GLib.Error error);
1000                 [Version (since = "2.8")]
1001                 public signal void failed_with_tls_errors (GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors);
1002                 public signal void finished ();
1003                 public signal void received_data (uint64 data_length);
1004                 public signal void sent_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response);
1005         }
1006         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_get_type ()")]
1007         public class WebView : WebKit.WebViewBase, Atk.Implementor, Gtk.Buildable {
1008                 [CCode (has_construct_function = false, type = "GtkWidget*")]
1009                 public WebView ();
1010                 public async bool can_execute_editing_command (string command, GLib.Cancellable? cancellable) throws GLib.Error;
1011                 public bool can_go_back ();
1012                 public bool can_go_forward ();
1013                 public bool can_show_mime_type (string mime_type);
1014                 public WebKit.Download download_uri (string uri);
1015                 public void execute_editing_command (string command);
1016                 [Version (since = "2.10")]
1017                 public void execute_editing_command_with_argument (string command, string argument);
1018                 public unowned WebKit.BackForwardList get_back_forward_list ();
1019                 [Version (since = "2.8")]
1020                 public Gdk.RGBA get_background_color ();
1021                 public unowned WebKit.WebContext get_context ();
1022                 public unowned string get_custom_charset ();
1023                 [Version (since = "2.10")]
1024                 public unowned WebKit.EditorState get_editor_state ();
1025                 public double get_estimated_load_progress ();
1026                 public unowned Cairo.Surface get_favicon ();
1027                 public unowned WebKit.FindController get_find_controller ();
1028                 public unowned WebKit.WebInspector get_inspector ();
1029                 [Version (deprecated = true, deprecated_since = "2.22")]
1030                 public unowned JS.GlobalContext get_javascript_global_context ();
1031                 public unowned WebKit.WebResource get_main_resource ();
1032                 public uint64 get_page_id ();
1033                 [Version (since = "2.12")]
1034                 public WebKit.WebViewSessionState get_session_state ();
1035                 public unowned WebKit.Settings get_settings ();
1036                 public async Cairo.Surface get_snapshot (WebKit.SnapshotRegion region, WebKit.SnapshotOptions options, GLib.Cancellable? cancellable) throws GLib.Error;
1037                 public unowned string get_title ();
1038                 public bool get_tls_info (out unowned GLib.TlsCertificate certificate, out GLib.TlsCertificateFlags errors);
1039                 public unowned string get_uri ();
1040                 [Version (since = "2.6")]
1041                 public unowned WebKit.UserContentManager get_user_content_manager ();
1042                 [Version (since = "2.16")]
1043                 public unowned WebKit.WebsiteDataManager get_website_data_manager ();
1044                 public unowned WebKit.WindowProperties get_window_properties ();
1045                 public double get_zoom_level ();
1046                 public void go_back ();
1047                 public void go_forward ();
1048                 public void go_to_back_forward_list_item (WebKit.BackForwardListItem list_item);
1049                 public bool is_editable ();
1050                 public void load_alternate_html (string content, string content_uri, string? base_uri);
1051                 [Version (since = "2.6")]
1052                 public void load_bytes (GLib.Bytes bytes, string? mime_type, string? encoding, string? base_uri);
1053                 public void load_html (string content, string? base_uri);
1054                 public void load_plain_text (string plain_text);
1055                 public void load_request (WebKit.URIRequest request);
1056                 public void load_uri (string uri);
1057                 public void reload ();
1058                 public void reload_bypass_cache ();
1059                 [Version (since = "2.12")]
1060                 public void restore_session_state (WebKit.WebViewSessionState state);
1061                 public async WebKit.JavascriptResult run_javascript (string script, GLib.Cancellable? cancellable) throws GLib.Error;
1062                 public async WebKit.JavascriptResult run_javascript_from_gresource (string resource, GLib.Cancellable? cancellable) throws GLib.Error;
1063                 [Version (since = "2.22")]
1064                 public async WebKit.JavascriptResult run_javascript_in_world (string script, string world_name, GLib.Cancellable? cancellable) throws GLib.Error;
1065                 public async GLib.InputStream save (WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
1066                 public async bool save_to_file (GLib.File file, WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
1067                 [Version (since = "2.8")]
1068                 public void set_background_color (Gdk.RGBA rgba);
1069                 public void set_custom_charset (string? charset);
1070                 [Version (since = "2.8")]
1071                 public void set_editable (bool editable);
1072                 public void set_settings (WebKit.Settings settings);
1073                 public void set_zoom_level (double zoom_level);
1074                 [NoWrapper]
1075                 public virtual bool show_option_menu (Gdk.Rectangle rectangle, WebKit.OptionMenu menu);
1076                 public void stop_loading ();
1077                 [Version (since = "2.12")]
1078                 public void try_close ();
1079                 [CCode (has_construct_function = false, type = "GtkWidget*")]
1080                 public WebView.with_context (WebKit.WebContext context);
1081                 [CCode (has_construct_function = false, type = "GtkWidget*")]
1082                 [Version (since = "2.4")]
1083                 public WebView.with_related_view (WebKit.WebView web_view);
1084                 [CCode (has_construct_function = false, type = "GtkWidget*")]
1085                 [Version (since = "2.6")]
1086                 public WebView.with_settings (WebKit.Settings settings);
1087                 [CCode (has_construct_function = false, type = "GtkWidget*")]
1088                 [Version (since = "2.6")]
1089                 public WebView.with_user_content_manager (WebKit.UserContentManager user_content_manager);
1090                 [NoAccessorMethod]
1091                 [Version (since = "2.8")]
1092                 public bool editable { get; set; }
1093                 public double estimated_load_progress { get; }
1094                 public void* favicon { get; }
1095                 [NoAccessorMethod]
1096                 [Version (since = "2.18")]
1097                 public bool is_controlled_by_automation { get; construct; }
1098                 [NoAccessorMethod]
1099                 [Version (since = "2.16")]
1100                 public bool is_ephemeral { get; construct; }
1101                 [NoAccessorMethod]
1102                 public bool is_loading { get; }
1103                 [NoAccessorMethod]
1104                 [Version (since = "2.8")]
1105                 public bool is_playing_audio { get; }
1106                 [NoAccessorMethod]
1107                 [Version (since = "2.4")]
1108                 public WebKit.WebView related_view { construct; }
1109                 [Version (since = "2.6")]
1110                 public WebKit.Settings settings { set construct; }
1111                 public string title { get; }
1112                 public string uri { get; }
1113                 [Version (since = "2.6")]
1114                 public WebKit.UserContentManager user_content_manager { get; construct; }
1115                 [NoAccessorMethod]
1116                 public WebKit.WebContext web_context { owned get; construct; }
1117                 public double zoom_level { get; set; }
1118                 [Version (since = "2.2")]
1119                 public virtual signal bool authenticate (WebKit.AuthenticationRequest request);
1120                 public virtual signal void close ();
1121                 public virtual signal bool context_menu (WebKit.ContextMenu context_menu, Gdk.Event event, WebKit.HitTestResult hit_test_result);
1122                 public virtual signal void context_menu_dismissed ();
1123                 public signal Gtk.Widget create (WebKit.NavigationAction navigation_action);
1124                 public virtual signal bool decide_policy (WebKit.PolicyDecision decision, WebKit.PolicyDecisionType type);
1125                 public virtual signal bool enter_fullscreen ();
1126                 public virtual signal void insecure_content_detected (WebKit.InsecureContentEvent event);
1127                 public virtual signal bool leave_fullscreen ();
1128                 public virtual signal void load_changed (WebKit.LoadEvent load_event);
1129                 public virtual signal bool load_failed (WebKit.LoadEvent load_event, string failing_uri, GLib.Error error);
1130                 [Version (since = "2.6")]
1131                 public virtual signal bool load_failed_with_tls_errors (string failing_uri, GLib.TlsCertificate certificate, GLib.TlsCertificateFlags errors);
1132                 public virtual signal void mouse_target_changed (WebKit.HitTestResult hit_test_result, uint modifiers);
1133                 [CCode (cname = "show-option-menu")]
1134                 [Version (since = "2.18")]
1135                 public signal bool on_show_option_menu (WebKit.OptionMenu menu, Gdk.Event event, Gdk.Rectangle rectangle);
1136                 public virtual signal bool permission_request (WebKit.PermissionRequest permission_request);
1137                 public virtual signal bool print (WebKit.PrintOperation print_operation);
1138                 public virtual signal void ready_to_show ();
1139                 public virtual signal void resource_load_started (WebKit.WebResource resource, WebKit.URIRequest request);
1140                 public virtual signal void run_as_modal ();
1141                 [Version (since = "2.8")]
1142                 public virtual signal bool run_color_chooser (WebKit.ColorChooserRequest request);
1143                 public virtual signal bool run_file_chooser (WebKit.FileChooserRequest request);
1144                 public virtual signal bool script_dialog (WebKit.ScriptDialog dialog);
1145                 [Version (since = "2.8")]
1146                 public virtual signal bool show_notification (WebKit.Notification notification);
1147                 public virtual signal void submit_form (WebKit.FormSubmissionRequest request);
1148                 [Version (deprecated = true, deprecated_since = "2.20")]
1149                 public virtual signal bool web_process_crashed ();
1150                 [Version (since = "2.20")]
1151                 public virtual signal void web_process_terminated (WebKit.WebProcessTerminationReason reason);
1152         }
1153         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_base_get_type ()")]
1154         public class WebViewBase : Gtk.Container, Atk.Implementor, Gtk.Buildable {
1155                 [CCode (has_construct_function = false)]
1156                 protected WebViewBase ();
1157         }
1158         [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")]
1159         [Compact]
1160         public class WebViewSessionState {
1161                 [CCode (has_construct_function = false)]
1162                 [Version (since = "2.12")]
1163                 public WebViewSessionState (GLib.Bytes data);
1164                 [Version (since = "2.12")]
1165                 public unowned WebKit.WebViewSessionState @ref ();
1166                 [Version (since = "2.12")]
1167                 public GLib.Bytes serialize ();
1168                 [Version (since = "2.12")]
1169                 public void unref ();
1170         }
1171         [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")]
1172         [Compact]
1173         public class WebsiteData {
1174                 [Version (since = "2.16")]
1175                 public unowned string get_name ();
1176                 [Version (since = "2.16")]
1177                 public uint64 get_size (WebKit.WebsiteDataTypes types);
1178                 [Version (since = "2.16")]
1179                 public WebKit.WebsiteDataTypes get_types ();
1180                 [Version (since = "2.16")]
1181                 public unowned WebKit.WebsiteData @ref ();
1182                 [Version (since = "2.16")]
1183                 public void unref ();
1184         }
1185         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_website_data_manager_get_type ()")]
1186         public class WebsiteDataManager : GLib.Object {
1187                 [CCode (has_construct_function = false)]
1188                 protected WebsiteDataManager ();
1189                 [Version (since = "2.16")]
1190                 public async bool clear (WebKit.WebsiteDataTypes types, GLib.TimeSpan timespan, GLib.Cancellable? cancellable) throws GLib.Error;
1191                 [CCode (has_construct_function = false)]
1192                 [Version (since = "2.16")]
1193                 public WebsiteDataManager.ephemeral ();
1194                 [Version (since = "2.16")]
1195                 public async GLib.List<WebKit.WebsiteData> fetch (WebKit.WebsiteDataTypes types, GLib.Cancellable? cancellable) throws GLib.Error;
1196                 [Version (since = "2.10")]
1197                 public unowned string? get_base_cache_directory ();
1198                 [Version (since = "2.10")]
1199                 public unowned string? get_base_data_directory ();
1200                 [Version (since = "2.16")]
1201                 public unowned WebKit.CookieManager get_cookie_manager ();
1202                 [Version (since = "2.10")]
1203                 public unowned string? get_disk_cache_directory ();
1204                 [Version (since = "2.10")]
1205                 public unowned string? get_indexeddb_directory ();
1206                 [Version (since = "2.10")]
1207                 public unowned string? get_local_storage_directory ();
1208                 [Version (since = "2.10")]
1209                 public unowned string? get_offline_application_cache_directory ();
1210                 [Version (since = "2.10")]
1211                 public unowned string? get_websql_directory ();
1212                 [Version (since = "2.16")]
1213                 public async bool remove (WebKit.WebsiteDataTypes types, GLib.List<WebKit.WebsiteData> website_data, GLib.Cancellable? cancellable) throws GLib.Error;
1214                 [Version (since = "2.10")]
1215                 public string base_cache_directory { get; construct; }
1216                 [Version (since = "2.10")]
1217                 public string base_data_directory { get; construct; }
1218                 [Version (since = "2.10")]
1219                 public string disk_cache_directory { get; construct; }
1220                 [Version (since = "2.10")]
1221                 public string indexeddb_directory { get; construct; }
1222                 [NoAccessorMethod]
1223                 [Version (since = "2.16")]
1224                 public bool is_ephemeral { get; construct; }
1225                 [Version (since = "2.10")]
1226                 public string local_storage_directory { get; construct; }
1227                 [Version (since = "2.10")]
1228                 public string offline_application_cache_directory { get; construct; }
1229                 [Version (since = "2.10")]
1230                 public string websql_directory { get; construct; }
1231         }
1232         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_window_properties_get_type ()")]
1233         public class WindowProperties : GLib.Object {
1234                 [CCode (has_construct_function = false)]
1235                 protected WindowProperties ();
1236                 public bool get_fullscreen ();
1237                 public Gdk.Rectangle get_geometry ();
1238                 public bool get_locationbar_visible ();
1239                 public bool get_menubar_visible ();
1240                 public bool get_resizable ();
1241                 public bool get_scrollbars_visible ();
1242                 public bool get_statusbar_visible ();
1243                 public bool get_toolbar_visible ();
1244                 public bool fullscreen { get; construct; }
1245                 public Gdk.Rectangle geometry { get; construct; }
1246                 public bool locationbar_visible { get; construct; }
1247                 public bool menubar_visible { get; construct; }
1248                 public bool resizable { get; construct; }
1249                 public bool scrollbars_visible { get; construct; }
1250                 public bool statusbar_visible { get; construct; }
1251                 public bool toolbar_visible { get; construct; }
1252         }
1253         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_permission_request_get_type ()")]
1254         public interface PermissionRequest : GLib.Object {
1255                 public abstract void allow ();
1256                 public abstract void deny ();
1257         }
1258         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_AUTHENTICATION_SCHEME_", type_id = "webkit_authentication_scheme_get_type ()")]
1259         [Version (since = "2.2")]
1260         public enum AuthenticationScheme {
1261                 DEFAULT,
1262                 HTTP_BASIC,
1263                 HTTP_DIGEST,
1264                 HTML_FORM,
1265                 NTLM,
1266                 NEGOTIATE,
1267                 CLIENT_CERTIFICATE_REQUESTED,
1268                 SERVER_TRUST_EVALUATION_REQUESTED,
1269                 UNKNOWN
1270         }
1271         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CACHE_MODEL_", type_id = "webkit_cache_model_get_type ()")]
1272         public enum CacheModel {
1273                 DOCUMENT_VIEWER,
1274                 WEB_BROWSER,
1275                 DOCUMENT_BROWSER
1276         }
1277         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CONTEXT_MENU_ACTION_", type_id = "webkit_context_menu_action_get_type ()")]
1278         public enum ContextMenuAction {
1279                 NO_ACTION,
1280                 OPEN_LINK,
1281                 OPEN_LINK_IN_NEW_WINDOW,
1282                 DOWNLOAD_LINK_TO_DISK,
1283                 COPY_LINK_TO_CLIPBOARD,
1284                 OPEN_IMAGE_IN_NEW_WINDOW,
1285                 DOWNLOAD_IMAGE_TO_DISK,
1286                 COPY_IMAGE_TO_CLIPBOARD,
1287                 COPY_IMAGE_URL_TO_CLIPBOARD,
1288                 OPEN_FRAME_IN_NEW_WINDOW,
1289                 GO_BACK,
1290                 GO_FORWARD,
1291                 STOP,
1292                 RELOAD,
1293                 COPY,
1294                 CUT,
1295                 PASTE,
1296                 DELETE,
1297                 SELECT_ALL,
1298                 INPUT_METHODS,
1299                 UNICODE,
1300                 SPELLING_GUESS,
1301                 NO_GUESSES_FOUND,
1302                 IGNORE_SPELLING,
1303                 LEARN_SPELLING,
1304                 IGNORE_GRAMMAR,
1305                 FONT_MENU,
1306                 BOLD,
1307                 ITALIC,
1308                 UNDERLINE,
1309                 OUTLINE,
1310                 INSPECT_ELEMENT,
1311                 OPEN_VIDEO_IN_NEW_WINDOW,
1312                 OPEN_AUDIO_IN_NEW_WINDOW,
1313                 COPY_VIDEO_LINK_TO_CLIPBOARD,
1314                 COPY_AUDIO_LINK_TO_CLIPBOARD,
1315                 TOGGLE_MEDIA_CONTROLS,
1316                 TOGGLE_MEDIA_LOOP,
1317                 ENTER_VIDEO_FULLSCREEN,
1318                 MEDIA_PLAY,
1319                 MEDIA_PAUSE,
1320                 MEDIA_MUTE,
1321                 DOWNLOAD_VIDEO_TO_DISK,
1322                 DOWNLOAD_AUDIO_TO_DISK,
1323                 CUSTOM
1324         }
1325         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_POLICY_ACCEPT_", type_id = "webkit_cookie_accept_policy_get_type ()")]
1326         public enum CookieAcceptPolicy {
1327                 ALWAYS,
1328                 NEVER,
1329                 NO_THIRD_PARTY
1330         }
1331         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_PERSISTENT_STORAGE_", type_id = "webkit_cookie_persistent_storage_get_type ()")]
1332         public enum CookiePersistentStorage {
1333                 TEXT,
1334                 SQLITE
1335         }
1336         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CREDENTIAL_PERSISTENCE_", type_id = "webkit_credential_persistence_get_type ()")]
1337         [Version (since = "2.2")]
1338         public enum CredentialPersistence {
1339                 NONE,
1340                 FOR_SESSION,
1341                 PERMANENT
1342         }
1343         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_EDITOR_TYPING_ATTRIBUTE_", type_id = "webkit_editor_typing_attributes_get_type ()")]
1344         [Flags]
1345         [Version (since = "2.10")]
1346         public enum EditorTypingAttributes {
1347                 NONE,
1348                 BOLD,
1349                 ITALIC,
1350                 UNDERLINE,
1351                 STRIKETHROUGH
1352         }
1353         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")]
1354         [Flags]
1355         public enum FindOptions {
1356                 NONE,
1357                 CASE_INSENSITIVE,
1358                 AT_WORD_STARTS,
1359                 TREAT_MEDIAL_CAPITAL_AS_WORD_START,
1360                 BACKWARDS,
1361                 WRAP_AROUND
1362         }
1363         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HARDWARE_ACCELERATION_POLICY_", type_id = "webkit_hardware_acceleration_policy_get_type ()")]
1364         [Version (since = "2.16")]
1365         public enum HardwareAccelerationPolicy {
1366                 ON_DEMAND,
1367                 ALWAYS,
1368                 NEVER
1369         }
1370         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", type_id = "webkit_hit_test_result_context_get_type ()")]
1371         [Flags]
1372         public enum HitTestResultContext {
1373                 DOCUMENT,
1374                 LINK,
1375                 IMAGE,
1376                 MEDIA,
1377                 EDITABLE,
1378                 SCROLLBAR,
1379                 SELECTION
1380         }
1381         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INSECURE_CONTENT_", type_id = "webkit_insecure_content_event_get_type ()")]
1382         public enum InsecureContentEvent {
1383                 RUN,
1384                 DISPLAYED
1385         }
1386         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_LOAD_", type_id = "webkit_load_event_get_type ()")]
1387         public enum LoadEvent {
1388                 STARTED,
1389                 REDIRECTED,
1390                 COMMITTED,
1391                 FINISHED
1392         }
1393         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NAVIGATION_TYPE_", type_id = "webkit_navigation_type_get_type ()")]
1394         public enum NavigationType {
1395                 LINK_CLICKED,
1396                 FORM_SUBMITTED,
1397                 BACK_FORWARD,
1398                 RELOAD,
1399                 FORM_RESUBMITTED,
1400                 OTHER
1401         }
1402         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_PROXY_MODE_", type_id = "webkit_network_proxy_mode_get_type ()")]
1403         [Version (since = "2.16")]
1404         public enum NetworkProxyMode {
1405                 DEFAULT,
1406                 NO_PROXY,
1407                 CUSTOM
1408         }
1409         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_DECISION_TYPE_", type_id = "webkit_policy_decision_type_get_type ()")]
1410         public enum PolicyDecisionType {
1411                 NAVIGATION_ACTION,
1412                 NEW_WINDOW_ACTION,
1413                 RESPONSE
1414         }
1415         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_OPERATION_RESPONSE_", type_id = "webkit_print_operation_response_get_type ()")]
1416         public enum PrintOperationResponse {
1417                 PRINT,
1418                 CANCEL
1419         }
1420         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PROCESS_MODEL_", type_id = "webkit_process_model_get_type ()")]
1421         [Version (since = "2.4")]
1422         public enum ProcessModel {
1423                 SHARED_SECONDARY_PROCESS,
1424                 MULTIPLE_SECONDARY_PROCESSES
1425         }
1426         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SAVE_MODE_", type_id = "webkit_save_mode_get_type ()")]
1427         public enum SaveMode {
1428                 MHTML
1429         }
1430         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SCRIPT_DIALOG_", type_id = "webkit_script_dialog_type_get_type ()")]
1431         public enum ScriptDialogType {
1432                 ALERT,
1433                 CONFIRM,
1434                 PROMPT,
1435                 BEFORE_UNLOAD_CONFIRM
1436         }
1437         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_OPTIONS_", type_id = "webkit_snapshot_options_get_type ()")]
1438         [Flags]
1439         public enum SnapshotOptions {
1440                 NONE,
1441                 INCLUDE_SELECTION_HIGHLIGHTING,
1442                 TRANSPARENT_BACKGROUND
1443         }
1444         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_REGION_", type_id = "webkit_snapshot_region_get_type ()")]
1445         public enum SnapshotRegion {
1446                 VISIBLE,
1447                 FULL_DOCUMENT
1448         }
1449         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_TLS_ERRORS_POLICY_", type_id = "webkit_tls_errors_policy_get_type ()")]
1450         public enum TLSErrorsPolicy {
1451                 IGNORE,
1452                 FAIL
1453         }
1454         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_CONTENT_INJECT_", type_id = "webkit_user_content_injected_frames_get_type ()")]
1455         [Version (since = "2.6")]
1456         public enum UserContentInjectedFrames {
1457                 ALL_FRAMES,
1458                 TOP_FRAME
1459         }
1460         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_", type_id = "webkit_user_script_injection_time_get_type ()")]
1461         [Version (since = "2.6")]
1462         public enum UserScriptInjectionTime {
1463                 START,
1464                 END
1465         }
1466         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_STYLE_LEVEL_", type_id = "webkit_user_style_level_get_type ()")]
1467         [Version (since = "2.6")]
1468         public enum UserStyleLevel {
1469                 USER,
1470                 AUTHOR
1471         }
1472         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_WEB_PROCESS_", type_id = "webkit_web_process_termination_reason_get_type ()")]
1473         [Version (since = "2.20")]
1474         public enum WebProcessTerminationReason {
1475                 CRASHED,
1476                 EXCEEDED_MEMORY_LIMIT
1477         }
1478         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_WEBSITE_DATA_", type_id = "webkit_website_data_types_get_type ()")]
1479         [Flags]
1480         [Version (since = "2.16")]
1481         public enum WebsiteDataTypes {
1482                 MEMORY_CACHE,
1483                 DISK_CACHE,
1484                 OFFLINE_APPLICATION_CACHE,
1485                 SESSION_STORAGE,
1486                 LOCAL_STORAGE,
1487                 WEBSQL_DATABASES,
1488                 INDEXEDDB_DATABASES,
1489                 PLUGIN_DATA,
1490                 COOKIES,
1491                 ALL
1492         }
1493         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_DOWNLOAD_ERROR_")]
1494         public errordomain DownloadError {
1495                 NETWORK,
1496                 CANCELLED_BY_USER,
1497                 DESTINATION;
1498                 public static GLib.Quark quark ();
1499         }
1500         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FAVICON_DATABASE_ERROR_")]
1501         public errordomain FaviconDatabaseError {
1502                 NOT_INITIALIZED,
1503                 FAVICON_NOT_FOUND,
1504                 FAVICON_UNKNOWN;
1505                 public static GLib.Quark quark ();
1506         }
1507         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_JAVASCRIPT_ERROR_SCRIPT_")]
1508         public errordomain JavascriptError {
1509                 FAILED;
1510                 public static GLib.Quark quark ();
1511         }
1512         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_ERROR_")]
1513         public errordomain NetworkError {
1514                 FAILED,
1515                 TRANSPORT,
1516                 UNKNOWN_PROTOCOL,
1517                 CANCELLED,
1518                 FILE_DOES_NOT_EXIST;
1519                 public static GLib.Quark quark ();
1520         }
1521         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PLUGIN_ERROR_")]
1522         public errordomain PluginError {
1523                 FAILED,
1524                 CANNOT_FIND_PLUGIN,
1525                 CANNOT_LOAD_PLUGIN,
1526                 JAVA_UNAVAILABLE,
1527                 CONNECTION_CANCELLED,
1528                 WILL_HANDLE_LOAD;
1529                 public static GLib.Quark quark ();
1530         }
1531         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_ERROR_")]
1532         public errordomain PolicyError {
1533                 FAILED,
1534                 CANNOT_SHOW_MIME_TYPE,
1535                 CANNOT_SHOW_URI,
1536                 FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE,
1537                 CANNOT_USE_RESTRICTED_PORT;
1538                 public static GLib.Quark quark ();
1539         }
1540         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_ERROR_")]
1541         public errordomain PrintError {
1542                 GENERAL,
1543                 PRINTER_NOT_FOUND,
1544                 INVALID_PAGE_RANGE;
1545                 public static GLib.Quark quark ();
1546         }
1547         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_ERROR_FAILED_TO_")]
1548         public errordomain SnapshotError {
1549                 CREATE;
1550                 public static GLib.Quark quark ();
1551         }
1552         [CCode (cheader_filename = "webkit2/webkit2.h", instance_pos = 1.9)]
1553         public delegate void URISchemeRequestCallback (WebKit.URISchemeRequest request);
1554         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_COPY")]
1555         public const string EDITING_COMMAND_COPY;
1556         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CREATE_LINK")]
1557         [Version (since = "2.10")]
1558         public const string EDITING_COMMAND_CREATE_LINK;
1559         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CUT")]
1560         public const string EDITING_COMMAND_CUT;
1561         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_INSERT_IMAGE")]
1562         [Version (since = "2.10")]
1563         public const string EDITING_COMMAND_INSERT_IMAGE;
1564         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_PASTE")]
1565         public const string EDITING_COMMAND_PASTE;
1566         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_REDO")]
1567         public const string EDITING_COMMAND_REDO;
1568         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_SELECT_ALL")]
1569         public const string EDITING_COMMAND_SELECT_ALL;
1570         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_UNDO")]
1571         public const string EDITING_COMMAND_UNDO;
1572         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MAJOR_VERSION")]
1573         public const int MAJOR_VERSION;
1574         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MICRO_VERSION")]
1575         public const int MICRO_VERSION;
1576         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_MINOR_VERSION")]
1577         public const int MINOR_VERSION;
1578         [CCode (cheader_filename = "webkit2/webkit2.h")]
1579         public static uint get_major_version ();
1580         [CCode (cheader_filename = "webkit2/webkit2.h")]
1581         public static uint get_micro_version ();
1582         [CCode (cheader_filename = "webkit2/webkit2.h")]
1583         public static uint get_minor_version ();
1584         [CCode (cheader_filename = "webkit2/webkit2.h")]
1585         [Version (since = "2.8")]
1586         public static bool user_media_permission_is_for_audio_device (WebKit.UserMediaPermissionRequest request);
1587         [CCode (cheader_filename = "webkit2/webkit2.h")]
1588         [Version (since = "2.8")]
1589         public static bool user_media_permission_is_for_video_device (WebKit.UserMediaPermissionRequest request);