[vala/staging] webkit2gtk-4.0: Update to 2.27.2



commit b8bd419bf51b084076eea48b3cfae30b430edb22
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Tue Oct 22 17:56:45 2019 +0200

    webkit2gtk-4.0: Update to 2.27.2

 vapi/webkit2gtk-4.0.vapi               | 39 +++++++++++++++++++++++++++++++++-
 vapi/webkit2gtk-web-extension-4.0.vapi | 38 +++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+), 1 deletion(-)
---
diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi
index 8ce04834f..e1f9a2238 100644
--- a/vapi/webkit2gtk-4.0.vapi
+++ b/vapi/webkit2gtk-4.0.vapi
@@ -904,7 +904,7 @@ namespace WebKit {
        public class URISchemeRequest : GLib.Object {
                [CCode (has_construct_function = false)]
                protected URISchemeRequest ();
-               public void finish (GLib.InputStream stream, int64 stream_length, string? mime_type);
+               public void finish (GLib.InputStream stream, int64 stream_length, string? content_type);
                [Version (since = "2.2")]
                public void finish_error (GLib.Error error);
                public unowned string get_path ();
@@ -983,6 +983,29 @@ namespace WebKit {
                [NoAccessorMethod]
                public bool is_for_video_device { get; }
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_user_message_get_type ()")]
+       public class UserMessage : GLib.InitiallyUnowned {
+               [CCode (has_construct_function = false)]
+               [Version (since = "2.28")]
+               public UserMessage (string name, GLib.Variant? parameters);
+               [Version (since = "2.28")]
+               public unowned GLib.UnixFDList get_fd_list ();
+               [Version (since = "2.28")]
+               public unowned string get_name ();
+               [Version (since = "2.28")]
+               public unowned GLib.Variant get_parameters ();
+               [Version (since = "2.28")]
+               public void send_reply (WebKit.UserMessage reply);
+               [CCode (has_construct_function = false)]
+               [Version (since = "2.28")]
+               public UserMessage.with_fd_list (string name, GLib.Variant? parameters, GLib.UnixFDList? 
fd_list);
+               [Version (since = "2.28")]
+               public GLib.UnixFDList fd_list { get; construct; }
+               [Version (since = "2.28")]
+               public string name { get; construct; }
+               [Version (since = "2.28")]
+               public GLib.Variant parameters { get; construct; }
+       }
        [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")]
        [Compact]
        public class UserScript {
@@ -1055,6 +1078,8 @@ namespace WebKit {
                public bool is_ephemeral ();
                public void prefetch_dns (string hostname);
                public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback 
callback);
+               [Version (since = "2.28")]
+               public void send_message_to_all_extensions (WebKit.UserMessage message);
                public void set_additional_plugins_directory (string directory);
                [Version (since = "2.18")]
                public void set_automation_allowed (bool allowed);
@@ -1095,6 +1120,8 @@ namespace WebKit {
                public virtual signal void initialize_notification_permissions ();
                [Version (since = "2.4")]
                public virtual signal void initialize_web_extensions ();
+               [Version (since = "2.28")]
+               public virtual signal bool user_message_received (WebKit.UserMessage message);
        }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_inspector_get_type ()")]
        public class WebInspector : GLib.Object {
@@ -1197,6 +1224,8 @@ namespace WebKit {
                public async WebKit.JavascriptResult run_javascript_in_world (string script, string 
world_name, GLib.Cancellable? cancellable = null) throws GLib.Error;
                public async GLib.InputStream save (WebKit.SaveMode save_mode, GLib.Cancellable? cancellable 
= null) throws GLib.Error;
                public async bool save_to_file (GLib.File file, WebKit.SaveMode save_mode, GLib.Cancellable? 
cancellable = null) throws GLib.Error;
+               [Version (since = "2.28")]
+               public async WebKit.UserMessage send_message_to_page (WebKit.UserMessage message, 
GLib.Cancellable? cancellable = null) throws GLib.Error;
                [Version (since = "2.8")]
                public void set_background_color (Gdk.RGBA rgba);
                public void set_custom_charset (string? charset);
@@ -1280,6 +1309,8 @@ namespace WebKit {
                [Version (since = "2.8")]
                public virtual signal bool show_notification (WebKit.Notification notification);
                public virtual signal void submit_form (WebKit.FormSubmissionRequest request);
+               [Version (since = "2.28")]
+               public virtual signal bool user_message_received (WebKit.UserMessage message);
                [Version (deprecated = true, deprecated_since = "2.20")]
                public virtual signal bool web_process_crashed ();
                [Version (since = "2.20")]
@@ -1698,6 +1729,12 @@ namespace WebKit {
                NOT_FOUND;
                public static GLib.Quark quark ();
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_USER_MESSAGE_UNHANDLED_")]
+       [Version (since = "2.28")]
+       public errordomain UserMessageError {
+               MESSAGE;
+               public static GLib.Quark quark ();
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", instance_pos = 1.9)]
        public delegate void URISchemeRequestCallback (WebKit.URISchemeRequest request);
        [CCode (cheader_filename = "webkit2/webkit2.h", cname = "WEBKIT_EDITING_COMMAND_COPY")]
diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi
index 8886ce2f4..6ba9a2643 100644
--- a/vapi/webkit2gtk-web-extension-4.0.vapi
+++ b/vapi/webkit2gtk-web-extension-4.0.vapi
@@ -4097,6 +4097,30 @@ namespace WebKit {
                public string suggested_filename { get; }
                public string uri { get; }
        }
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_user_message_get_type 
()")]
+       public class UserMessage : GLib.InitiallyUnowned {
+               [CCode (has_construct_function = false)]
+               [Version (since = "2.28")]
+               public UserMessage (string name, GLib.Variant? parameters);
+               public static GLib.Quark error_quark ();
+               [Version (since = "2.28")]
+               public unowned GLib.UnixFDList get_fd_list ();
+               [Version (since = "2.28")]
+               public unowned string get_name ();
+               [Version (since = "2.28")]
+               public unowned GLib.Variant get_parameters ();
+               [Version (since = "2.28")]
+               public void send_reply (WebKit.UserMessage reply);
+               [CCode (has_construct_function = false)]
+               [Version (since = "2.28")]
+               public UserMessage.with_fd_list (string name, GLib.Variant? parameters, GLib.UnixFDList? 
fd_list);
+               [Version (since = "2.28")]
+               public GLib.UnixFDList fd_list { get; construct; }
+               [Version (since = "2.28")]
+               public string name { get; construct; }
+               [Version (since = "2.28")]
+               public GLib.Variant parameters { get; construct; }
+       }
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_web_editor_get_type 
()")]
        public class WebEditor : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -4111,7 +4135,11 @@ namespace WebKit {
                [CCode (has_construct_function = false)]
                protected WebExtension ();
                public unowned WebKit.WebPage get_page (uint64 page_id);
+               [Version (since = "2.28")]
+               public async WebKit.UserMessage send_message_to_context (WebKit.UserMessage message, 
GLib.Cancellable? cancellable) throws GLib.Error;
                public signal void page_created (WebKit.WebPage web_page);
+               [Version (since = "2.28")]
+               public signal void user_message_received (WebKit.UserMessage message);
        }
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = 
"webkit_web_hit_test_result_get_type ()")]
        public class WebHitTestResult : WebKit.HitTestResult {
@@ -4132,6 +4160,8 @@ namespace WebKit {
                [Version (since = "2.2")]
                public unowned WebKit.Frame get_main_frame ();
                public unowned string get_uri ();
+               [Version (since = "2.28")]
+               public async WebKit.UserMessage send_message_to_view (WebKit.UserMessage message, 
GLib.Cancellable? cancellable) throws GLib.Error;
                public string uri { get; }
                [Version (since = "2.12")]
                public signal void console_message_sent (WebKit.ConsoleMessage console_message);
@@ -4143,6 +4173,8 @@ namespace WebKit {
                [Version (since = "2.26")]
                public signal void form_controls_associated_for_frame (GLib.GenericArray<WebKit.DOM.Element> 
elements, WebKit.Frame frame);
                public signal bool send_request (WebKit.URIRequest request, WebKit.URIResponse 
redirected_response);
+               [Version (since = "2.28")]
+               public signal bool user_message_received (WebKit.UserMessage message);
                [Version (since = "2.20")]
                public signal void will_submit_form (WebKit.DOM.Element form, WebKit.FormSubmissionStep step, 
WebKit.Frame source_frame, WebKit.Frame target_frame, GLib.GenericArray<string> text_field_names, 
GLib.GenericArray<string> text_field_values);
        }
@@ -4230,6 +4262,12 @@ namespace WebKit {
                SCROLLBAR,
                SELECTION
        }
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = 
"WEBKIT_USER_MESSAGE_UNHANDLED_", has_type_id = false)]
+       [Version (since = "2.28")]
+       public enum UserMessageError {
+               [CCode (cname = "WEBKIT_USER_MESSAGE_UNHANDLED_MESSAGE")]
+               USER_MESSAGE_UNHANDLED_MESSAGE
+       }
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", has_target = false)]
        public delegate void WebExtensionInitializeFunction (WebKit.WebExtension extension);
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", has_target = false)]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]