From c5dfcd3065116b94d12ddda54f8feefb944ca51a Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Fri, 11 Aug 2023 22:43:15 +0200 Subject: [PATCH] webkit*-*: Update to 2.41.90 --- vapi/webkit2gtk-4.0.vapi | 63 ++++++++++++++++++++++++++++++++++++++ vapi/webkit2gtk-4.1.vapi | 63 ++++++++++++++++++++++++++++++++++++++ vapi/webkitgtk-6.0.vapi | 65 +++++++++++++++++++++++++++++++++++++++- 3 files changed, 190 insertions(+), 1 deletion(-) diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi index 9d433b765..a8cd22e0e 100644 --- a/vapi/webkit2gtk-4.0.vapi +++ b/vapi/webkit2gtk-4.0.vapi @@ -92,6 +92,12 @@ namespace WebKit { public unowned string get_title (); public unowned string get_uri (); } + [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_clipboard_permission_request_get_type ()")] + [Version (since = "2.42")] + public class ClipboardPermissionRequest : GLib.Object, WebKit.PermissionRequest { + [CCode (has_construct_function = false)] + protected ClipboardPermissionRequest (); + } [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_color_chooser_request_get_type ()")] public class ColorChooserRequest : GLib.Object { [CCode (has_construct_function = false)] @@ -173,11 +179,15 @@ namespace WebKit { [Version (deprecated = true, deprecated_since = "2.16")] public void delete_cookies_for_domain (string domain); public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable = null) throws GLib.Error; + [Version (since = "2.42")] + public async GLib.List get_all_cookies (GLib.Cancellable? cancellable = null) throws GLib.Error; [Version (since = "2.20")] public async GLib.List get_cookies (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (array_length = false, array_null_terminated = true)] [Version (deprecated = true, deprecated_since = "2.16")] public async string[] get_domains_with_cookies (GLib.Cancellable? cancellable = null) throws GLib.Error; + [Version (since = "2.42")] + public async bool replace_cookies (GLib.List cookies, GLib.Cancellable? cancellable = null) throws GLib.Error; public void set_accept_policy (WebKit.CookieAcceptPolicy policy); public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage); public signal void changed (); @@ -264,6 +274,28 @@ namespace WebKit { public string get_favicon_uri (string page_uri); public signal void favicon_changed (string page_uri, string favicon_uri); } + [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_feature_ref", type_id = "webkit_feature_get_type ()", unref_function = "webkit_feature_unref")] + [Compact] + [Version (since = "2.42")] + public class Feature { + public unowned string get_category (); + public bool get_default_value (); + public unowned string? get_details (); + public unowned string get_identifier (); + public unowned string? get_name (); + public WebKit.FeatureStatus get_status (); + public unowned WebKit.Feature @ref (); + public void unref (); + } + [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_feature_list_ref", type_id = "webkit_feature_list_get_type ()", unref_function = "webkit_feature_list_unref")] + [Compact] + [Version (since = "2.42")] + public class FeatureList { + public unowned WebKit.Feature @get (size_t index); + public size_t get_length (); + public unowned WebKit.FeatureList @ref (); + public void unref (); + } [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_file_chooser_request_get_type ()")] public class FileChooserRequest : GLib.Object { [CCode (has_construct_function = false)] @@ -748,6 +780,8 @@ namespace WebKit { public static uint32 font_size_to_pixels (uint32 points); [Version (since = "2.20")] public static uint32 font_size_to_points (uint32 pixels); + [Version (since = "2.42")] + public static WebKit.FeatureList get_all_features (); [Version (since = "2.10")] public bool get_allow_file_access_from_file_urls (); public bool get_allow_modal_dialogs (); @@ -761,6 +795,8 @@ namespace WebKit { public unowned string get_default_font_family (); public uint32 get_default_font_size (); public uint32 get_default_monospace_font_size (); + [Version (since = "2.42")] + public static WebKit.FeatureList get_development_features (); [Version (since = "2.40")] public bool get_disable_web_security (); public bool get_draw_compositing_indicators (); @@ -814,11 +850,16 @@ namespace WebKit { public bool get_enable_write_console_messages_to_stdout (); [Version (deprecated = true, deprecated_since = "2.38.")] public bool get_enable_xss_auditor (); + [Version (since = "2.42")] + public static WebKit.FeatureList get_experimental_features (); public unowned string get_fantasy_font_family (); + [Version (since = "2.42")] + public bool get_feature_enabled (WebKit.Feature feature); [Version (since = "2.16")] public WebKit.HardwareAccelerationPolicy get_hardware_acceleration_policy (); public bool get_javascript_can_access_clipboard (); public bool get_javascript_can_open_windows_automatically (); + [Version (deprecated = true, deprecated_since = "2.42")] public bool get_load_icons_ignoring_image_load_setting (); [Version (since = "2.30")] public unowned string get_media_content_types_requiring_hardware_support (); @@ -899,10 +940,13 @@ namespace WebKit { [Version (deprecated = true, deprecated_since = "2.38.")] public void set_enable_xss_auditor (bool enabled); public void set_fantasy_font_family (string fantasy_font_family); + [Version (since = "2.42")] + public void set_feature_enabled (WebKit.Feature feature, bool enabled); [Version (since = "2.16")] public void set_hardware_acceleration_policy (WebKit.HardwareAccelerationPolicy policy); public void set_javascript_can_access_clipboard (bool enabled); public void set_javascript_can_open_windows_automatically (bool enabled); + [Version (deprecated = true, deprecated_since = "2.42")] public void set_load_icons_ignoring_image_load_setting (bool enabled); [Version (since = "2.30")] public void set_media_content_types_requiring_hardware_support (string? content_types); @@ -988,6 +1032,7 @@ namespace WebKit { public WebKit.HardwareAccelerationPolicy hardware_acceleration_policy { get; set construct; } public bool javascript_can_access_clipboard { get; set construct; } public bool javascript_can_open_windows_automatically { get; set construct; } + [Version (deprecated = true, deprecated_since = "2.42")] public bool load_icons_ignoring_image_load_setting { get; set construct; } [Version (since = "2.30")] public string media_content_types_requiring_hardware_support { get; set construct; } @@ -1645,8 +1690,14 @@ namespace WebKit { public string local_storage_directory { get; construct; } [Version (deprecated = true, deprecated_since = "2.40.", since = "2.10")] public string offline_application_cache_directory { get; construct; } + [NoAccessorMethod] + [Version (since = "2.42")] + public double origin_storage_ratio { construct; } [Version (deprecated = true, deprecated_since = "2.40.", since = "2.30")] public string service_worker_registrations_directory { get; construct; } + [NoAccessorMethod] + [Version (since = "2.42")] + public double total_storage_ratio { construct; } [Version (deprecated = true, deprecated_since = "2.24.", since = "2.10")] public string websql_directory { get; construct; } } @@ -1796,6 +1847,18 @@ namespace WebKit { UNDERLINE, STRIKETHROUGH } + [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FEATURE_STATUS_", type_id = "webkit_feature_status_get_type ()")] + [Version (since = "2.42")] + public enum FeatureStatus { + EMBEDDER, + UNSTABLE, + INTERNAL, + DEVELOPER, + TESTABLE, + PREVIEW, + STABLE, + MATURE + } [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")] [Flags] public enum FindOptions { diff --git a/vapi/webkit2gtk-4.1.vapi b/vapi/webkit2gtk-4.1.vapi index c2cc5471c..ce03bec13 100644 --- a/vapi/webkit2gtk-4.1.vapi +++ b/vapi/webkit2gtk-4.1.vapi @@ -92,6 +92,12 @@ namespace WebKit { public unowned string get_title (); public unowned string get_uri (); } + [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_clipboard_permission_request_get_type ()")] + [Version (since = "2.42")] + public class ClipboardPermissionRequest : GLib.Object, WebKit.PermissionRequest { + [CCode (has_construct_function = false)] + protected ClipboardPermissionRequest (); + } [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_color_chooser_request_get_type ()")] public class ColorChooserRequest : GLib.Object { [CCode (has_construct_function = false)] @@ -173,11 +179,15 @@ namespace WebKit { [Version (deprecated = true, deprecated_since = "2.16")] public void delete_cookies_for_domain (string domain); public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable = null) throws GLib.Error; + [Version (since = "2.42")] + public async GLib.List get_all_cookies (GLib.Cancellable? cancellable = null) throws GLib.Error; [Version (since = "2.20")] public async GLib.List get_cookies (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error; [CCode (array_length = false, array_null_terminated = true)] [Version (deprecated = true, deprecated_since = "2.16")] public async string[] get_domains_with_cookies (GLib.Cancellable? cancellable = null) throws GLib.Error; + [Version (since = "2.42")] + public async bool replace_cookies (GLib.List cookies, GLib.Cancellable? cancellable = null) throws GLib.Error; public void set_accept_policy (WebKit.CookieAcceptPolicy policy); public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage); public signal void changed (); @@ -264,6 +274,28 @@ namespace WebKit { public string get_favicon_uri (string page_uri); public signal void favicon_changed (string page_uri, string favicon_uri); } + [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_feature_ref", type_id = "webkit_feature_get_type ()", unref_function = "webkit_feature_unref")] + [Compact] + [Version (since = "2.42")] + public class Feature { + public unowned string get_category (); + public bool get_default_value (); + public unowned string? get_details (); + public unowned string get_identifier (); + public unowned string? get_name (); + public WebKit.FeatureStatus get_status (); + public unowned WebKit.Feature @ref (); + public void unref (); + } + [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_feature_list_ref", type_id = "webkit_feature_list_get_type ()", unref_function = "webkit_feature_list_unref")] + [Compact] + [Version (since = "2.42")] + public class FeatureList { + public unowned WebKit.Feature @get (size_t index); + public size_t get_length (); + public unowned WebKit.FeatureList @ref (); + public void unref (); + } [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_file_chooser_request_get_type ()")] public class FileChooserRequest : GLib.Object { [CCode (has_construct_function = false)] @@ -744,6 +776,8 @@ namespace WebKit { public static uint32 font_size_to_pixels (uint32 points); [Version (since = "2.20")] public static uint32 font_size_to_points (uint32 pixels); + [Version (since = "2.42")] + public static WebKit.FeatureList get_all_features (); [Version (since = "2.10")] public bool get_allow_file_access_from_file_urls (); public bool get_allow_modal_dialogs (); @@ -757,6 +791,8 @@ namespace WebKit { public unowned string get_default_font_family (); public uint32 get_default_font_size (); public uint32 get_default_monospace_font_size (); + [Version (since = "2.42")] + public static WebKit.FeatureList get_development_features (); [Version (since = "2.40")] public bool get_disable_web_security (); public bool get_draw_compositing_indicators (); @@ -810,11 +846,16 @@ namespace WebKit { public bool get_enable_write_console_messages_to_stdout (); [Version (deprecated = true, deprecated_since = "2.38.")] public bool get_enable_xss_auditor (); + [Version (since = "2.42")] + public static WebKit.FeatureList get_experimental_features (); public unowned string get_fantasy_font_family (); + [Version (since = "2.42")] + public bool get_feature_enabled (WebKit.Feature feature); [Version (since = "2.16")] public WebKit.HardwareAccelerationPolicy get_hardware_acceleration_policy (); public bool get_javascript_can_access_clipboard (); public bool get_javascript_can_open_windows_automatically (); + [Version (deprecated = true, deprecated_since = "2.42")] public bool get_load_icons_ignoring_image_load_setting (); [Version (since = "2.30")] public unowned string get_media_content_types_requiring_hardware_support (); @@ -895,10 +936,13 @@ namespace WebKit { [Version (deprecated = true, deprecated_since = "2.38.")] public void set_enable_xss_auditor (bool enabled); public void set_fantasy_font_family (string fantasy_font_family); + [Version (since = "2.42")] + public void set_feature_enabled (WebKit.Feature feature, bool enabled); [Version (since = "2.16")] public void set_hardware_acceleration_policy (WebKit.HardwareAccelerationPolicy policy); public void set_javascript_can_access_clipboard (bool enabled); public void set_javascript_can_open_windows_automatically (bool enabled); + [Version (deprecated = true, deprecated_since = "2.42")] public void set_load_icons_ignoring_image_load_setting (bool enabled); [Version (since = "2.30")] public void set_media_content_types_requiring_hardware_support (string? content_types); @@ -984,6 +1028,7 @@ namespace WebKit { public WebKit.HardwareAccelerationPolicy hardware_acceleration_policy { get; set construct; } public bool javascript_can_access_clipboard { get; set construct; } public bool javascript_can_open_windows_automatically { get; set construct; } + [Version (deprecated = true, deprecated_since = "2.42")] public bool load_icons_ignoring_image_load_setting { get; set construct; } [Version (since = "2.30")] public string media_content_types_requiring_hardware_support { get; set construct; } @@ -1639,8 +1684,14 @@ namespace WebKit { public string local_storage_directory { get; construct; } [Version (deprecated = true, deprecated_since = "2.40.", since = "2.10")] public string offline_application_cache_directory { get; construct; } + [NoAccessorMethod] + [Version (since = "2.42")] + public double origin_storage_ratio { construct; } [Version (deprecated = true, deprecated_since = "2.40.", since = "2.30")] public string service_worker_registrations_directory { get; construct; } + [NoAccessorMethod] + [Version (since = "2.42")] + public double total_storage_ratio { construct; } [Version (deprecated = true, deprecated_since = "2.24.", since = "2.10")] public string websql_directory { get; construct; } } @@ -1790,6 +1841,18 @@ namespace WebKit { UNDERLINE, STRIKETHROUGH } + [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FEATURE_STATUS_", type_id = "webkit_feature_status_get_type ()")] + [Version (since = "2.42")] + public enum FeatureStatus { + EMBEDDER, + UNSTABLE, + INTERNAL, + DEVELOPER, + TESTABLE, + PREVIEW, + STABLE, + MATURE + } [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")] [Flags] public enum FindOptions { diff --git a/vapi/webkitgtk-6.0.vapi b/vapi/webkitgtk-6.0.vapi index 0ede9390c..fc4549a04 100644 --- a/vapi/webkitgtk-6.0.vapi +++ b/vapi/webkitgtk-6.0.vapi @@ -92,6 +92,12 @@ namespace WebKit { public unowned string get_title (); public unowned string get_uri (); } + [CCode (cheader_filename = "webkit/webkit.h", type_id = "webkit_clipboard_permission_request_get_type ()")] + [Version (since = "2.42")] + public sealed class ClipboardPermissionRequest : GLib.Object, WebKit.PermissionRequest { + [CCode (has_construct_function = false)] + protected ClipboardPermissionRequest (); + } [CCode (cheader_filename = "webkit/webkit.h", type_id = "webkit_color_chooser_request_get_type ()")] public sealed class ColorChooserRequest : GLib.Object { [CCode (has_construct_function = false)] @@ -166,8 +172,12 @@ namespace WebKit { [Version (since = "2.20")] public async bool delete_cookie (Soup.Cookie cookie, GLib.Cancellable? cancellable = null) throws GLib.Error; public async WebKit.CookieAcceptPolicy get_accept_policy (GLib.Cancellable? cancellable = null) throws GLib.Error; + [Version (since = "2.42")] + public async GLib.List get_all_cookies (GLib.Cancellable? cancellable = null) throws GLib.Error; [Version (since = "2.20")] public async GLib.List get_cookies (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error; + [Version (since = "2.42")] + public async bool replace_cookies (GLib.List cookies, GLib.Cancellable? cancellable = null) throws GLib.Error; public void set_accept_policy (WebKit.CookieAcceptPolicy policy); public void set_persistent_storage (string filename, WebKit.CookiePersistentStorage storage); public signal void changed (); @@ -254,6 +264,28 @@ namespace WebKit { public string get_favicon_uri (string page_uri); public signal void favicon_changed (string page_uri, string favicon_uri); } + [CCode (cheader_filename = "webkit/webkit.h", ref_function = "webkit_feature_ref", type_id = "webkit_feature_get_type ()", unref_function = "webkit_feature_unref")] + [Compact] + [Version (since = "2.42")] + public class Feature { + public unowned string get_category (); + public bool get_default_value (); + public unowned string? get_details (); + public unowned string get_identifier (); + public unowned string? get_name (); + public WebKit.FeatureStatus get_status (); + public unowned WebKit.Feature @ref (); + public void unref (); + } + [CCode (cheader_filename = "webkit/webkit.h", ref_function = "webkit_feature_list_ref", type_id = "webkit_feature_list_get_type ()", unref_function = "webkit_feature_list_unref")] + [Compact] + [Version (since = "2.42")] + public class FeatureList { + public unowned WebKit.Feature @get (size_t index); + public size_t get_length (); + public unowned WebKit.FeatureList @ref (); + public void unref (); + } [CCode (cheader_filename = "webkit/webkit.h", type_id = "webkit_file_chooser_request_get_type ()")] public sealed class FileChooserRequest : GLib.Object { [CCode (has_construct_function = false)] @@ -686,6 +718,8 @@ namespace WebKit { public static uint32 font_size_to_pixels (uint32 points); [Version (since = "2.20")] public static uint32 font_size_to_points (uint32 pixels); + [Version (since = "2.42")] + public static WebKit.FeatureList get_all_features (); [Version (since = "2.10")] public bool get_allow_file_access_from_file_urls (); public bool get_allow_modal_dialogs (); @@ -699,6 +733,8 @@ namespace WebKit { public unowned string get_default_font_family (); public uint32 get_default_font_size (); public uint32 get_default_monospace_font_size (); + [Version (since = "2.42")] + public static WebKit.FeatureList get_development_features (); [Version (since = "2.40")] public bool get_disable_web_security (); public bool get_draw_compositing_indicators (); @@ -740,11 +776,16 @@ namespace WebKit { public bool get_enable_webrtc (); [Version (since = "2.2")] public bool get_enable_write_console_messages_to_stdout (); + [Version (since = "2.42")] + public static WebKit.FeatureList get_experimental_features (); public unowned string get_fantasy_font_family (); + [Version (since = "2.42")] + public bool get_feature_enabled (WebKit.Feature feature); [Version (since = "2.16")] public WebKit.HardwareAccelerationPolicy get_hardware_acceleration_policy (); public bool get_javascript_can_access_clipboard (); public bool get_javascript_can_open_windows_automatically (); + [Version (deprecated = true, deprecated_since = "2.42")] public bool get_load_icons_ignoring_image_load_setting (); [Version (since = "2.30")] public unowned string get_media_content_types_requiring_hardware_support (); @@ -813,10 +854,13 @@ namespace WebKit { [Version (since = "2.2")] public void set_enable_write_console_messages_to_stdout (bool enabled); public void set_fantasy_font_family (string fantasy_font_family); + [Version (since = "2.42")] + public void set_feature_enabled (WebKit.Feature feature, bool enabled); [Version (since = "2.16")] public void set_hardware_acceleration_policy (WebKit.HardwareAccelerationPolicy policy); public void set_javascript_can_access_clipboard (bool enabled); public void set_javascript_can_open_windows_automatically (bool enabled); + [Version (deprecated = true, deprecated_since = "2.42")] public void set_load_icons_ignoring_image_load_setting (bool enabled); [Version (since = "2.30")] public void set_media_content_types_requiring_hardware_support (string? content_types); @@ -890,6 +934,7 @@ namespace WebKit { public WebKit.HardwareAccelerationPolicy hardware_acceleration_policy { get; set construct; } public bool javascript_can_access_clipboard { get; set construct; } public bool javascript_can_open_windows_automatically { get; set construct; } + [Version (deprecated = true, deprecated_since = "2.42")] public bool load_icons_ignoring_image_load_setting { get; set construct; } [Version (since = "2.30")] public string media_content_types_requiring_hardware_support { get; set construct; } @@ -1004,7 +1049,7 @@ namespace WebKit { public void add_script (WebKit.UserScript script); public void add_style_sheet (WebKit.UserStyleSheet stylesheet); [Version (since = "2.40")] - public bool register_script_message_handler (string name, string world_name); + public bool register_script_message_handler (string name, string? world_name); [Version (since = "2.40")] public bool register_script_message_handler_with_reply (string name, string world_name); [Version (since = "2.24")] @@ -1416,6 +1461,12 @@ namespace WebKit { [NoAccessorMethod] [Version (since = "2.16")] public bool is_ephemeral { get; construct; } + [NoAccessorMethod] + [Version (since = "2.42")] + public double origin_storage_ratio { construct; } + [NoAccessorMethod] + [Version (since = "2.42")] + public double total_storage_ratio { construct; } } [CCode (cheader_filename = "webkit/webkit.h", type_id = "webkit_website_policies_get_type ()")] [Version (since = "2.30")] @@ -1563,6 +1614,18 @@ namespace WebKit { UNDERLINE, STRIKETHROUGH } + [CCode (cheader_filename = "webkit/webkit.h", cprefix = "WEBKIT_FEATURE_STATUS_", type_id = "webkit_feature_status_get_type ()")] + [Version (since = "2.42")] + public enum FeatureStatus { + EMBEDDER, + UNSTABLE, + INTERNAL, + DEVELOPER, + TESTABLE, + PREVIEW, + STABLE, + MATURE + } [CCode (cheader_filename = "webkit/webkit.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")] [Flags] public enum FindOptions { -- 2.47.2