Builder4/MainWindow.bjs
[app.Builder.js] / webkit2gtk-3.0.vapi
1 /* webkit2gtk-3.0.vapi generated by vapigen, do not modify. */
2
3 [CCode (cprefix = "WebKit", gir_namespace = "WebKit2", gir_version = "3.0", lower_case_cprefix = "webkit_")]
4 namespace WebKit {
5         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_get_type ()")]
6         public class BackForwardList : GLib.Object {
7                 [CCode (has_construct_function = false)]
8                 protected BackForwardList ();
9                 public unowned WebKit.BackForwardListItem get_back_item ();
10                 public GLib.List<weak WebKit.BackForwardListItem> get_back_list ();
11                 public GLib.List<weak WebKit.BackForwardListItem> get_back_list_with_limit (uint limit);
12                 public unowned WebKit.BackForwardListItem get_current_item ();
13                 public unowned WebKit.BackForwardListItem get_forward_item ();
14                 public GLib.List<weak WebKit.BackForwardListItem> get_forward_list ();
15                 public GLib.List<weak WebKit.BackForwardListItem> get_forward_list_with_limit (uint limit);
16                 public uint get_length ();
17                 public unowned WebKit.BackForwardListItem get_nth_item (int index);
18                 public signal void changed (WebKit.BackForwardListItem? item_added, void* items_removed);
19         }
20         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_back_forward_list_item_get_type ()")]
21         public class BackForwardListItem : GLib.InitiallyUnowned {
22                 [CCode (has_construct_function = false)]
23                 protected BackForwardListItem ();
24                 public unowned string get_original_uri ();
25                 public unowned string get_title ();
26                 public unowned string get_uri ();
27         }
28         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_get_type ()")]
29         public class ContextMenu : GLib.Object {
30                 [CCode (has_construct_function = false)]
31                 public ContextMenu ();
32                 public void append (WebKit.ContextMenuItem item);
33                 public unowned WebKit.ContextMenuItem first ();
34                 public unowned WebKit.ContextMenuItem get_item_at_position (uint position);
35                 public unowned GLib.List<WebKit.ContextMenuItem> get_items ();
36                 public uint get_n_items ();
37                 public void insert (WebKit.ContextMenuItem item, int position);
38                 public unowned WebKit.ContextMenuItem last ();
39                 public void move_item (WebKit.ContextMenuItem item, int position);
40                 public void prepend (WebKit.ContextMenuItem item);
41                 public void remove (WebKit.ContextMenuItem item);
42                 public void remove_all ();
43                 [CCode (has_construct_function = false)]
44                 public ContextMenu.with_items (GLib.List<WebKit.ContextMenuItem> items);
45         }
46         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_context_menu_item_get_type ()")]
47         public class ContextMenuItem : GLib.InitiallyUnowned {
48                 [CCode (has_construct_function = false)]
49                 public ContextMenuItem (Gtk.Action action);
50                 [CCode (has_construct_function = false)]
51                 public ContextMenuItem.from_stock_action (WebKit.ContextMenuAction action);
52                 [CCode (has_construct_function = false)]
53                 public ContextMenuItem.from_stock_action_with_label (WebKit.ContextMenuAction action, string label);
54                 public unowned Gtk.Action get_action ();
55                 public WebKit.ContextMenuAction get_stock_action ();
56                 public unowned WebKit.ContextMenu get_submenu ();
57                 public bool is_separator ();
58                 [CCode (has_construct_function = false)]
59                 public ContextMenuItem.separator ();
60                 public void set_submenu (WebKit.ContextMenu? submenu);
61                 [CCode (has_construct_function = false)]
62                 public ContextMenuItem.with_submenu (string label, WebKit.ContextMenu submenu);
63         }
64         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_cookie_manager_get_type ()")]
65         public class CookieManager : GLib.Object {
66                 [CCode (has_construct_function = false)]
67                 protected CookieManager ();
68                 public void delete_all_cookies ();
69                 public void delete_cookies_for_domain (string domain);
70                 public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable) throws GLib.Error;
71                 [CCode (array_length = false, array_null_terminated = true)]
72                 public async string[] get_domains_with_cookies (GLib.Cancellable? cancellable) throws GLib.Error;
73                 public void set_accept_policy (WebKit.CookieAcceptPolicy policy);
74                 public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage);
75                 public signal void changed ();
76         }
77         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_favicon_database_get_type ()")]
78         public class FaviconDatabase : GLib.Object {
79                 [CCode (has_construct_function = false)]
80                 protected FaviconDatabase ();
81                 public async Cairo.Surface? get_favicon (string page_uri, GLib.Cancellable? cancellable) throws GLib.Error;
82                 public string? get_favicon_uri (string page_uri);
83                 public void clear ();
84         }
85         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_download_get_type ()")]
86         public class Download : GLib.Object {
87                 [CCode (has_construct_function = false)]
88                 protected Download ();
89                 public void cancel ();
90                 public unowned string get_destination ();
91                 public double get_elapsed_time ();
92                 public double get_estimated_progress ();
93                 public uint64 get_received_data_length ();
94                 public unowned WebKit.URIRequest get_request ();
95                 public unowned WebKit.URIResponse get_response ();
96                 public void set_destination (string uri);
97                 public string destination { get; }
98                 public double estimated_progress { get; }
99                 public WebKit.URIResponse response { get; }
100                 public signal bool created_destination (string destination);
101                 public virtual signal bool decide_destination (string suggested_filename);
102                 public signal void failed (void* error);
103                 public signal void finished ();
104                 public signal void received_data (uint64 data_length);
105         }
106         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_file_chooser_request_get_type ()")]
107         public class FileChooserRequest : GLib.Object {
108                 [CCode (has_construct_function = false)]
109                 protected FileChooserRequest ();
110                 public void cancel ();
111                 [CCode (array_length = false, array_null_terminated = true)]
112                 public unowned string[] get_mime_types ();
113                 public unowned Gtk.FileFilter get_mime_types_filter ();
114                 public bool get_select_multiple ();
115                 [CCode (array_length = false, array_null_terminated = true)]
116                 public unowned string[] get_selected_files ();
117                 public void select_files ([CCode (array_length = false, array_null_terminated = true)] string[] files);
118                 [NoAccessorMethod]
119                 public Gtk.FileFilter filter { owned get; }
120                 [CCode (array_length = false, array_null_terminated = true)]
121                 public string[] mime_types { get; }
122                 public bool select_multiple { get; }
123                 [CCode (array_length = false, array_null_terminated = true)]
124                 public string[] selected_files { get; }
125         }
126         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_find_controller_get_type ()")]
127         public class FindController : GLib.Object {
128                 [CCode (has_construct_function = false)]
129                 protected FindController ();
130                 public void count_matches (string search_text, uint32 find_options, uint max_match_count);
131                 public uint get_max_match_count ();
132                 public uint32 get_options ();
133                 public unowned string get_search_text ();
134                 public unowned WebKit.WebView get_web_view ();
135                 public void search (string search_text, uint32 find_options, uint max_match_count);
136                 public void search_finish ();
137                 public void search_next ();
138                 public void search_previous ();
139                 public uint max_match_count { get; }
140                 public WebKit.FindOptions options { get; }
141                 [NoAccessorMethod]
142                 public string text { owned get; }
143                 public WebKit.WebView web_view { get; construct; }
144                 public signal void counted_matches (uint match_count);
145                 public signal void failed_to_find_text ();
146                 public signal void found_text (uint match_count);
147         }
148         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_form_submission_request_get_type ()")]
149         public class FormSubmissionRequest : GLib.Object {
150                 [CCode (has_construct_function = false)]
151                 protected FormSubmissionRequest ();
152                 public unowned GLib.HashTable<void*,void*> get_text_fields ();
153                 public void submit ();
154         }
155         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_geolocation_permission_request_get_type ()")]
156         public class GeolocationPermissionRequest : GLib.Object, WebKit.PermissionRequest {
157                 [CCode (has_construct_function = false)]
158                 protected GeolocationPermissionRequest ();
159         }
160         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_hit_test_result_get_type ()")]
161         public class HitTestResult : GLib.Object {
162                 [CCode (has_construct_function = false)]
163                 protected HitTestResult ();
164                 public bool context_is_editable ();
165                 public bool context_is_image ();
166                 public bool context_is_link ();
167                 public bool context_is_media ();
168                 public uint get_context ();
169                 public unowned string get_image_uri ();
170                 public unowned string get_link_label ();
171                 public unowned string get_link_title ();
172                 public unowned string get_link_uri ();
173                 public unowned string get_media_uri ();
174                 public uint context { get; construct; }
175                 public string image_uri { get; construct; }
176                 public string link_label { get; construct; }
177                 public string link_title { get; construct; }
178                 public string link_uri { get; construct; }
179                 public string media_uri { get; construct; }
180         }
181         [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_javascript_result_get_type ()")]
182         [Compact]
183         public class JavascriptResult {
184                 public WebKit.JavascriptResult @ref ();
185                 public void unref ();
186         }
187         [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_mime_info_get_type ()")]
188         [Compact]
189         public class MimeInfo {
190                 public unowned string get_description ();
191                 [CCode (array_length = false, array_null_terminated = true)]
192                 public unowned string[] get_extensions ();
193                 public unowned string get_mime_type ();
194                 public WebKit.MimeInfo @ref ();
195                 public void unref ();
196         }
197         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_navigation_policy_decision_get_type ()")]
198         public class NavigationPolicyDecision : WebKit.PolicyDecision {
199                 [CCode (has_construct_function = false)]
200                 protected NavigationPolicyDecision ();
201                 public unowned string get_frame_name ();
202                 public uint get_modifiers ();
203                 public uint get_mouse_button ();
204                 public WebKit.NavigationType get_navigation_type ();
205                 public unowned WebKit.URIRequest get_request ();
206                 public string frame_name { get; }
207                 public uint modifiers { get; }
208                 public uint mouse_button { get; }
209                 public WebKit.NavigationType navigation_type { get; }
210                 public WebKit.URIRequest request { get; }
211         }
212         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_plugin_get_type ()")]
213         public class Plugin : GLib.Object {
214                 [CCode (has_construct_function = false)]
215                 protected Plugin ();
216                 public unowned string get_description ();
217                 public unowned GLib.List<WebKit.MimeInfo> get_mime_info_list ();
218                 public unowned string get_name ();
219                 public unowned string get_path ();
220         }
221         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_policy_decision_get_type ()")]
222         public abstract class PolicyDecision : GLib.Object {
223                 [CCode (has_construct_function = false)]
224                 protected PolicyDecision ();
225                 public void download ();
226                 public void ignore ();
227                 public void use ();
228         }
229         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_print_operation_get_type ()")]
230         public class PrintOperation : GLib.Object {
231                 [CCode (has_construct_function = false)]
232                 public PrintOperation (WebKit.WebView web_view);
233                 public unowned Gtk.PageSetup get_page_setup ();
234                 public unowned Gtk.PrintSettings get_print_settings ();
235                 public void print ();
236                 public WebKit.PrintOperationResponse run_dialog (Gtk.Window? parent);
237                 public void set_page_setup (Gtk.PageSetup page_setup);
238                 public void set_print_settings (Gtk.PrintSettings print_settings);
239                 public Gtk.PageSetup page_setup { get; set; }
240                 public Gtk.PrintSettings print_settings { get; set; }
241                 [NoAccessorMethod]
242                 public WebKit.WebView web_view { owned get; construct; }
243                 public signal void failed (void* error);
244                 public signal void finished ();
245         }
246         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_response_policy_decision_get_type ()")]
247         public class ResponsePolicyDecision : WebKit.PolicyDecision {
248                 [CCode (has_construct_function = false)]
249                 protected ResponsePolicyDecision ();
250                 public unowned WebKit.URIRequest get_request ();
251                 public unowned WebKit.URIResponse get_response ();
252                 public WebKit.URIRequest request { get; }
253                 public WebKit.URIRequest response { get; }
254         }
255         [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_script_dialog_get_type ()")]
256         [Compact]
257         public class ScriptDialog {
258                 public void confirm_set_confirmed (bool confirmed);
259                 public WebKit.ScriptDialogType get_dialog_type ();
260                 public unowned string get_message ();
261                 public unowned string prompt_get_default_text ();
262                 public void prompt_set_text (string text);
263         }
264         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_settings_get_type ()")]
265         public class Settings : GLib.Object {
266                 [CCode (has_construct_function = false)]
267                 public Settings ();
268                 public bool get_allow_modal_dialogs ();
269                 public bool get_auto_load_images ();
270                 public unowned string get_cursive_font_family ();
271                 public unowned string get_default_charset ();
272                 public unowned string get_default_font_family ();
273                 public uint32 get_default_font_size ();
274                 public uint32 get_default_monospace_font_size ();
275                 public bool get_draw_compositing_indicators ();
276                 public bool get_enable_caret_browsing ();
277                 public bool get_enable_developer_extras ();
278                 public bool get_enable_dns_prefetching ();
279                 public bool get_enable_frame_flattening ();
280                 public bool get_enable_fullscreen ();
281                 public bool get_enable_html5_database ();
282                 public bool get_enable_html5_local_storage ();
283                 public bool get_enable_hyperlink_auditing ();
284                 public bool get_enable_java ();
285                 public bool get_enable_javascript ();
286                 public bool get_enable_offline_web_application_cache ();
287                 public bool get_enable_page_cache ();
288                 public bool get_enable_plugins ();
289                 public bool get_enable_private_browsing ();
290                 public bool get_enable_resizable_text_areas ();
291                 public bool get_enable_site_specific_quirks ();
292                 public bool get_enable_tabs_to_links ();
293                 public bool get_enable_webaudio ();
294                 public bool get_enable_webgl ();
295                 public bool get_enable_xss_auditor ();
296                 public unowned string get_fantasy_font_family ();
297                 public bool get_javascript_can_access_clipboard ();
298                 public bool get_javascript_can_open_windows_automatically ();
299                 public bool get_load_icons_ignoring_image_load_setting ();
300                 public bool get_media_playback_allows_inline ();
301                 public bool get_media_playback_requires_user_gesture ();
302                 public uint32 get_minimum_font_size ();
303                 public unowned string get_monospace_font_family ();
304                 public unowned string get_pictograph_font_family ();
305                 public bool get_print_backgrounds ();
306                 public unowned string get_sans_serif_font_family ();
307                 public unowned string get_serif_font_family ();
308                 public bool get_zoom_text_only ();
309                 public void set_allow_modal_dialogs (bool allowed);
310                 public void set_auto_load_images (bool enabled);
311                 public void set_cursive_font_family (string cursive_font_family);
312                 public void set_default_charset (string default_charset);
313                 public void set_default_font_family (string default_font_family);
314                 public void set_default_font_size (uint32 font_size);
315                 public void set_default_monospace_font_size (uint32 font_size);
316                 public void set_draw_compositing_indicators (bool enabled);
317                 public void set_enable_caret_browsing (bool enabled);
318                 public void set_enable_developer_extras (bool enabled);
319                 public void set_enable_dns_prefetching (bool enabled);
320                 public void set_enable_frame_flattening (bool enabled);
321                 public void set_enable_fullscreen (bool enabled);
322                 public void set_enable_html5_database (bool enabled);
323                 public void set_enable_html5_local_storage (bool enabled);
324                 public void set_enable_hyperlink_auditing (bool enabled);
325                 public void set_enable_java (bool enabled);
326                 public void set_enable_javascript (bool enabled);
327                 public void set_enable_offline_web_application_cache (bool enabled);
328                 public void set_enable_page_cache (bool enabled);
329                 public void set_enable_plugins (bool enabled);
330                 public void set_enable_private_browsing (bool enabled);
331                 public void set_enable_resizable_text_areas (bool enabled);
332                 public void set_enable_site_specific_quirks (bool enabled);
333                 public void set_enable_tabs_to_links (bool enabled);
334                 public void set_enable_webaudio (bool enabled);
335                 public void set_enable_webgl (bool enabled);
336                 public void set_enable_xss_auditor (bool enabled);
337                 public void set_fantasy_font_family (string fantasy_font_family);
338                 public void set_javascript_can_access_clipboard (bool enabled);
339                 public void set_javascript_can_open_windows_automatically (bool enabled);
340                 public void set_load_icons_ignoring_image_load_setting (bool enabled);
341                 public void set_media_playback_allows_inline (bool enabled);
342                 public void set_media_playback_requires_user_gesture (bool enabled);
343                 public void set_minimum_font_size (uint32 font_size);
344                 public void set_monospace_font_family (string monospace_font_family);
345                 public void set_pictograph_font_family (string pictograph_font_family);
346                 public void set_print_backgrounds (bool print_backgrounds);
347                 public void set_sans_serif_font_family (string sans_serif_font_family);
348                 public void set_serif_font_family (string serif_font_family);
349                 public void set_zoom_text_only (bool zoom_text_only);
350                 public bool allow_modal_dialogs { get; set construct; }
351                 public bool auto_load_images { get; set construct; }
352                 public string cursive_font_family { get; set construct; }
353                 public string default_charset { get; set construct; }
354                 public string default_font_family { get; set construct; }
355                 public uint default_font_size { get; set construct; }
356                 public uint default_monospace_font_size { get; set construct; }
357                 public bool draw_compositing_indicators { get; set construct; }
358                 public bool enable_caret_browsing { get; set construct; }
359                 public bool enable_developer_extras { get; set construct; }
360                 public bool enable_dns_prefetching { get; set construct; }
361                 public bool enable_frame_flattening { get; set construct; }
362                 public bool enable_fullscreen { get; set construct; }
363                 public bool enable_html5_database { get; set construct; }
364                 public bool enable_html5_local_storage { get; set construct; }
365                 public bool enable_hyperlink_auditing { get; set construct; }
366                 public bool enable_java { get; set construct; }
367                 public bool enable_javascript { get; set construct; }
368                 public bool enable_offline_web_application_cache { get; set construct; }
369                 public bool enable_page_cache { get; set construct; }
370                 public bool enable_plugins { get; set construct; }
371                 public bool enable_private_browsing { get; set construct; }
372                 public bool enable_resizable_text_areas { get; set construct; }
373                 public bool enable_site_specific_quirks { get; set construct; }
374                 public bool enable_tabs_to_links { get; set construct; }
375                 public bool enable_webaudio { get; set construct; }
376                 public bool enable_webgl { get; set construct; }
377                 public bool enable_xss_auditor { get; set construct; }
378                 public string fantasy_font_family { get; set construct; }
379                 public bool javascript_can_access_clipboard { get; set construct; }
380                 public bool javascript_can_open_windows_automatically { get; set construct; }
381                 public bool load_icons_ignoring_image_load_setting { get; set construct; }
382                 public bool media_playback_allows_inline { get; set construct; }
383                 public bool media_playback_requires_user_gesture { get; set construct; }
384                 public uint minimum_font_size { get; set construct; }
385                 public string monospace_font_family { get; set construct; }
386                 public string pictograph_font_family { get; set construct; }
387                 public bool print_backgrounds { get; set construct; }
388                 public string sans_serif_font_family { get; set construct; }
389                 public string serif_font_family { get; set construct; }
390                 public bool zoom_text_only { get; set construct; }
391         }
392         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_request_get_type ()")]
393         public class URIRequest : GLib.Object {
394                 [CCode (has_construct_function = false)]
395                 public URIRequest (string uri);
396                 public unowned string get_uri ();
397                 public string uri { get; construct; }
398         }
399         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_response_get_type ()")]
400         public class URIResponse : GLib.Object {
401                 [CCode (has_construct_function = false)]
402                 protected URIResponse ();
403                 public uint64 get_content_length ();
404                 public bool get_https_status (out unowned GLib.TlsCertificate certificate, out GLib.TlsCertificateFlags errors);
405                 public unowned string get_mime_type ();
406                 public uint get_status_code ();
407                 public unowned string get_uri ();
408                 public uint64 content_length { get; }
409                 public string mime_type { get; }
410                 public uint status_code { get; }
411                 public string uri { get; }
412         }
413         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_uri_scheme_request_get_type ()")]
414         public class URISchemeRequest : GLib.Object {
415                 [CCode (has_construct_function = false)]
416                 protected URISchemeRequest ();
417                 public void finish (GLib.InputStream stream, int64 stream_length, string? mime_type);
418                 public unowned string get_path ();
419                 public unowned string get_scheme ();
420                 public unowned string get_uri ();
421         }
422         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_context_get_type ()")]
423         public class WebContext : GLib.Object {
424                 [CCode (has_construct_function = false)]
425                 protected WebContext ();
426                 public void clear_cache ();
427                 public WebKit.Download download_uri (string uri);
428                 public WebKit.CacheModel get_cache_model ();
429                 public unowned WebKit.CookieManager get_cookie_manager ();
430                 public unowned WebKit.FaviconDatabase get_favicon_database ();
431                 public void set_favicon_database_directory (string path);
432                 public static unowned WebKit.WebContext get_default ();
433                 public void set_disk_cache_directory (string path);
434                 public async GLib.List<WebKit.Plugin> get_plugins (GLib.Cancellable? cancellable) throws GLib.Error;
435                 public bool get_spell_checking_enabled ();
436                 public unowned string[] get_spell_checking_languages ();
437                 public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback);
438                 public void set_additional_plugins_directory (string directory);
439                 public void set_process_model (WebKit.ProcessModel process_model);
440                 public void set_cache_model (WebKit.CacheModel cache_model);
441                 public void set_spell_checking_enabled (bool enabled);
442                 public void set_spell_checking_languages (string[] languages);
443                 public void set_preferred_languages (string[] languages);
444                 public signal void download_started (WebKit.Download download);
445                 public void set_web_extensions_directory (string path);
446         }
447         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_inspector_get_type ()")]
448         public class WebInspector : GLib.Object {
449                 [CCode (has_construct_function = false)]
450                 protected WebInspector ();
451                 public void close ();
452                 public uint get_attached_height ();
453                 public unowned string get_inspected_uri ();
454                 public unowned WebKit.WebViewBase get_web_view ();
455                 public bool is_attached ();
456                 public void show ();
457                 public uint attached_height { get; }
458                 public string inspected_uri { get; }
459                 [HasEmitter]
460                 public signal bool attach ();
461                 public signal bool bring_to_front ();
462                 public signal void closed ();
463                 [HasEmitter]
464                 public signal bool detach ();
465                 public signal bool open_window ();
466         public virtual signal unowned WebKit.WebView inspect_web_view (WebKit.WebView p0);
467
468         }
469         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_resource_get_type ()")]
470         public class WebResource : GLib.Object {
471                 [CCode (has_construct_function = false)]
472                 protected WebResource ();
473                 public async uint8 get_data (GLib.Cancellable? cancellable, out size_t length) throws GLib.Error;
474                 public unowned WebKit.URIResponse get_response ();
475                 public unowned string get_uri ();
476                 public WebKit.URIResponse response { get; }
477                 public string uri { get; }
478                 public signal void failed (void* error);
479                 public signal void finished ();
480                 public signal void received_data (uint64 data_length);
481                 public signal void sent_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response);
482         }
483         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_VIEW_MODE_")]
484         public enum ViewMode {
485                 WEB,
486                 SOURCE
487         }
488         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_get_type ()")]
489         public class WebView : WebKit.WebViewBase, Atk.Implementor, Gtk.Buildable {
490                 [CCode (has_construct_function = false, type = "GtkWidget*")]
491                 public WebView ();
492                 public WebView.with_related_view (WebKit.WebView related);
493                 public async bool can_execute_editing_command (string command, GLib.Cancellable? cancellable) throws GLib.Error;
494                 public bool can_go_back ();
495         public void execute_script (string script);
496
497                 public bool can_go_forward ();
498                 public bool can_show_mime_type (string mime_type);
499                 public void execute_editing_command (string command);
500                 public unowned WebKit.BackForwardList get_back_forward_list ();
501                 public unowned WebKit.WebContext get_context ();
502                 public unowned string get_custom_charset ();
503                 public double get_estimated_load_progress ();
504                 public unowned WebKit.FindController get_find_controller ();
505                 public unowned WebKit.WebInspector get_inspector ();
506                 public unowned WebKit.WebResource get_main_resource ();
507                 public unowned WebKit.Settings get_settings ();
508                 public GLib.List<weak WebKit.WebResource> get_subresources ();
509                 public unowned string get_title ();
510                 public unowned string get_uri ();
511                 public unowned WebKit.WindowProperties get_window_properties ();
512                 public double get_zoom_level ();
513                 public void go_back ();
514                 public void go_forward ();
515                 public void go_to_back_forward_list_item (WebKit.BackForwardListItem list_item);
516                 public void load_html (string content, string? base_uri);
517                 public void load_plain_text (string plain_text);
518                 public void load_request (WebKit.URIRequest request);
519                 public void load_uri (string uri);
520                 public void reload ();
521                 public void reload_bypass_cache ();
522                 public void replace_content (string content, string content_uri, string? base_uri);
523                 public async WebKit.JavascriptResult run_javascript (string script, GLib.Cancellable? cancellable) throws GLib.Error;
524                 public void set_custom_charset (string? charset);
525                 public void set_settings (WebKit.Settings settings);
526                 public void set_zoom_level (double zoom_level);
527                 public void stop_loading ();
528                 [CCode (has_construct_function = false, type = "GtkWidget*")]
529                 public WebView.with_context (WebKit.WebContext context);
530                 public double estimated_load_progress { get; }
531                 public string title { get; }
532                 public string uri { get; }
533                 [NoAccessorMethod]
534                 public WebKit.WebContext web_context { owned get; construct; }
535                 public double zoom_level { get; set; }
536                 public WebKit.ViewMode view_mode { get; set; }
537                 public virtual signal void close ();
538                 public virtual signal bool context_menu (WebKit.ContextMenu context_menu, Gdk.Event event, WebKit.HitTestResult hit_test_result);
539                 public virtual signal void context_menu_dismissed ();
540                 public signal Gtk.Widget create ();
541                 public virtual signal bool decide_policy (WebKit.PolicyDecision decision, WebKit.PolicyDecisionType type);
542                 public virtual signal bool enter_fullscreen ();
543                 public virtual signal bool leave_fullscreen ();
544                 public virtual signal void load_changed (WebKit.LoadEvent load_event);
545                 public virtual signal bool load_failed (WebKit.LoadEvent load_event, string failing_uri, void* error);
546                 public virtual signal void mouse_target_changed (WebKit.HitTestResult hit_test_result, uint modifiers);
547                 public virtual signal bool permission_request (WebKit.PermissionRequest permission_request);
548                 public virtual signal bool print_requested (WebKit.PrintOperation print_operation);
549                 public virtual signal void ready_to_show ();
550                 public virtual signal void resource_load_started (WebKit.WebResource resource, WebKit.URIRequest request);
551                 public virtual signal void run_as_modal ();
552                 public virtual signal bool run_file_chooser (WebKit.FileChooserRequest request);
553                 public virtual signal bool script_dialog (WebKit.ScriptDialog dialog);
554                 public virtual signal void submit_form (WebKit.FormSubmissionRequest request);
555         }
556         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_base_get_type ()")]
557         public class WebViewBase : Gtk.Container, Atk.Implementor, Gtk.Buildable {
558                 [CCode (has_construct_function = false)]
559                 protected WebViewBase ();
560         }
561         [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_web_extension_get_type ()")]
562         public class WebExtension : GLib.Object {
563                 [CCode (has_construct_function = false)]
564                 protected WebExtension ();
565                 public WebKit.WebPage get_page (uint64 page_id);
566                 public signal void page_created (WebKit.WebPage web_page);
567         }
568         [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_web_extension_get_type ()")]
569         public class WebPage : GLib.Object {
570                 [CCode (has_construct_function = false)]
571                 protected WebPage ();
572                 public uint64 get_id ();
573                 public string uri { get; }
574                 public signal bool send_request (WebKit.URIRequest request, WebKit.URIResponse? redirected_response);
575                 public signal void document_loaded ();
576         }
577         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_window_properties_get_type ()")]
578         public class WindowProperties : GLib.Object {
579                 [CCode (has_construct_function = false)]
580                 protected WindowProperties ();
581                 public bool get_fullscreen ();
582                 public Gdk.Rectangle get_geometry ();
583                 public bool get_locationbar_visible ();
584                 public bool get_menubar_visible ();
585                 public bool get_resizable ();
586                 public bool get_scrollbars_visible ();
587                 public bool get_statusbar_visible ();
588                 public bool get_toolbar_visible ();
589                 public bool fullscreen { get; construct; }
590                 public Cairo.RectangleInt geometry { get; construct; }
591                 public bool locationbar_visible { get; construct; }
592                 public bool menubar_visible { get; construct; }
593                 public bool resizable { get; construct; }
594                 public bool scrollbars_visible { get; construct; }
595                 public bool statusbar_visible { get; construct; }
596                 public bool toolbar_visible { get; construct; }
597         }
598         [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_permission_request_get_type ()")]
599         public interface PermissionRequest : GLib.Object {
600                 public abstract void allow ();
601                 public abstract void deny ();
602         }
603         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PROCESS_MODEL_")]
604         public enum ProcessModel {
605                 SHARED_SECONDARY_PROCESS,
606                 MULTIPLE_SECONDARY_PROCESSES
607         }
608         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CACHE_MODEL_")]
609         public enum CacheModel {
610                 DOCUMENT_VIEWER,
611                 WEB_BROWSER,
612                 DOCUMENT_BROWSER
613         }
614         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_CONTEXT_MENU_ACTION_")]
615         public enum ContextMenuAction {
616                 NO_ACTION,
617                 OPEN_LINK,
618                 OPEN_LINK_IN_NEW_WINDOW,
619                 DOWNLOAD_LINK_TO_DISK,
620                 COPY_LINK_TO_CLIPBOARD,
621                 OPEN_IMAGE_IN_NEW_WINDOW,
622                 DOWNLOAD_IMAGE_TO_DISK,
623                 COPY_IMAGE_TO_CLIPBOARD,
624                 COPY_IMAGE_URL_TO_CLIPBOARD,
625                 OPEN_FRAME_IN_NEW_WINDOW,
626                 GO_BACK,
627                 GO_FORWARD,
628                 STOP,
629                 RELOAD,
630                 COPY,
631                 CUT,
632                 PASTE,
633                 DELETE,
634                 SELECT_ALL,
635                 INPUT_METHODS,
636                 UNICODE,
637                 SPELLING_GUESS,
638                 NO_GUESSES_FOUND,
639                 IGNORE_SPELLING,
640                 LEARN_SPELLING,
641                 IGNORE_GRAMMAR,
642                 FONT_MENU,
643                 BOLD,
644                 ITALIC,
645                 UNDERLINE,
646                 OUTLINE,
647                 INSPECT_ELEMENT,
648                 OPEN_VIDEO_IN_NEW_WINDOW,
649                 OPEN_AUDIO_IN_NEW_WINDOW,
650                 COPY_VIDEO_LINK_TO_CLIPBOARD,
651                 COPY_AUDIO_LINK_TO_CLIPBOARD,
652                 TOGGLE_MEDIA_CONTROLS,
653                 TOGGLE_MEDIA_LOOP,
654                 ENTER_VIDEO_FULLSCREEN,
655                 MEDIA_PLAY,
656                 MEDIA_PAUSE,
657                 MEDIA_MUTE,
658                 CUSTOM
659         }
660         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_POLICY_ACCEPT_")]
661         public enum CookieAcceptPolicy {
662                 ALWAYS,
663                 NEVER,
664                 NO_THIRD_PARTY
665         }
666         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_PERSISTENT_STORAGE_")]
667         public enum CookiePersistentStorage {
668                 TEXT,
669                 SQLITE
670         }
671         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_DOWNLOAD_ERROR_")]
672         public enum DownloadError {
673                 NETWORK,
674                 CANCELLED_BY_USER,
675                 DESTINATION;
676                 public static GLib.Quark quark ();
677         }
678         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_")]
679         [Flags]
680         public enum FindOptions {
681                 NONE,
682                 CASE_INSENSITIVE,
683                 AT_WORD_STARTS,
684                 TREAT_MEDIAL_CAPITAL_AS_WORD_START,
685                 BACKWARDS,
686                 WRAP_AROUND
687         }
688         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_")]
689         [Flags]
690         public enum HitTestResultContext {
691                 DOCUMENT,
692                 LINK,
693                 IMAGE,
694                 MEDIA,
695                 EDITABLE
696         }
697         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_JAVASCRIPT_ERROR_SCRIPT_")]
698         public enum JavascriptError {
699                 FAILED;
700                 public static GLib.Quark quark ();
701         }
702         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_LOAD_")]
703         public enum LoadEvent {
704                 STARTED,
705                 REDIRECTED,
706                 COMMITTED,
707                 FINISHED
708         }
709         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NAVIGATION_TYPE_")]
710         public enum NavigationType {
711                 LINK_CLICKED,
712                 FORM_SUBMITTED,
713                 BACK_FORWARD,
714                 RELOAD,
715                 FORM_RESUBMITTED,
716                 OTHER
717         }
718         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_NETWORK_ERROR_")]
719         public enum NetworkError {
720                 FAILED,
721                 TRANSPORT,
722                 UNKNOWN_PROTOCOL,
723                 CANCELLED,
724                 FILE_DOES_NOT_EXIST;
725                 public static GLib.Quark quark ();
726         }
727         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PLUGIN_ERROR_")]
728         public enum PluginError {
729                 FAILED,
730                 CANNOT_FIND_PLUGIN,
731                 CANNOT_LOAD_PLUGIN,
732                 JAVA_UNAVAILABLE,
733                 CONNECTION_CANCELLED,
734                 WILL_HANDLE_LOAD;
735                 public static GLib.Quark quark ();
736         }
737         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_DECISION_TYPE_")]
738         public enum PolicyDecisionType {
739                 NAVIGATION_ACTION,
740                 NEW_WINDOW_ACTION,
741                 RESPONSE
742         }
743         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_POLICY_ERROR_")]
744         public enum PolicyError {
745                 FAILED,
746                 CANNOT_SHOW_MIME_TYPE,
747                 CANNOT_SHOW_URI,
748                 FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE,
749                 CANNOT_USE_RESTRICTED_PORT;
750                 public static GLib.Quark quark ();
751         }
752         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_ERROR_")]
753         public enum PrintError {
754                 GENERAL,
755                 PRINTER_NOT_FOUND,
756                 INVALID_PAGE_RANGE;
757                 public static GLib.Quark quark ();
758         }
759         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_PRINT_OPERATION_RESPONSE_")]
760         public enum PrintOperationResponse {
761                 PRINT,
762                 CANCEL
763         }
764         [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SCRIPT_DIALOG_")]
765         public enum ScriptDialogType {
766                 ALERT,
767                 CONFIRM,
768                 PROMPT
769         }
770         [CCode (cheader_filename = "webkit2/webkit2.h", instance_pos = 1.9)]
771         public delegate void URISchemeRequestCallback (WebKit.URISchemeRequest request);
772         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_COPY")]
773         public const string EDITING_COMMAND_COPY;
774         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_CUT")]
775         public const string EDITING_COMMAND_CUT;
776         [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_PASTE")]
777         public const string EDITING_COMMAND_PASTE;
778 }