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