]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
webkit2gtk-4.0: Update to 2.19.5
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Jan 2018 15:23:19 +0000 (16:23 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 10 Jan 2018 16:05:37 +0000 (17:05 +0100)
vapi/webkit2gtk-4.0.vapi
vapi/webkit2gtk-web-extension-4.0.vapi

index eabe3f3273fda956503424b44b8d3a69a5fb231f..76170a9903afbcfbce596e6a72444904e8d6966c 100644 (file)
@@ -294,7 +294,10 @@ namespace WebKit {
        public class FormSubmissionRequest : GLib.Object {
                [CCode (has_construct_function = false)]
                protected FormSubmissionRequest ();
-               public unowned GLib.HashTable<void*,void*> get_text_fields ();
+               [Version (deprecated = true, deprecated_since = "2.20.")]
+               public unowned GLib.HashTable<void*,void*>? get_text_fields ();
+               [Version (since = "2.20")]
+               public bool list_text_fields (out unowned GLib.GenericArray<string> field_names, out unowned GLib.GenericArray<string> field_values);
                public void submit ();
        }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_geolocation_permission_request_get_type ()")]
@@ -1134,7 +1137,10 @@ 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 (deprecated = true, deprecated_since = "2.20")]
                public virtual signal bool web_process_crashed ();
+               [Version (since = "2.20")]
+               public virtual signal void web_process_terminated (WebKit.WebProcessTerminationReason reason);
        }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_web_view_base_get_type ()")]
        public class WebViewBase : Gtk.Container, Atk.Implementor, Gtk.Buildable {
@@ -1463,6 +1469,12 @@ namespace WebKit {
                USER,
                AUTHOR
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_WEB_PROCESS_", type_id = "webkit_web_process_termination_reason_get_type ()")]
+       [Version (since = "2.20")]
+       public enum WebProcessTerminationReason {
+               CRASHED,
+               EXCEEDED_MEMORY_LIMIT
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_WEBSITE_DATA_", type_id = "webkit_website_data_types_get_type ()")]
        [Flags]
        [Version (since = "2.16")]
index 9f8d9f53dc84eaadf56ea2dc87c86bb1e4e38a29..8c5e702a546e36f9003faf154359f6fb7cc8589b 100644 (file)
@@ -3032,8 +3032,10 @@ namespace WebKit {
                [Version (since = "2.16")]
                public signal void form_controls_associated (GLib.GenericArray<WebKit.DOM.Element> elements);
                public signal bool send_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response);
+               [Version (since = "2.20")]
+               public signal void will_submit_form (WebKit.DOM.HTMLFormElement form, WebKit.FormSubmissionStep step, WebKit.Frame source_frame, WebKit.Frame target_frame, GLib.GenericArray<string> text_field_names, GLib.GenericArray<string> text_field_values);
        }
-       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_CONSOLE_MESSAGE_LEVEL_", has_type_id = false)]
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_CONSOLE_MESSAGE_LEVEL_", type_id = "webkit_console_message_level_get_type ()")]
        [Version (since = "2.12")]
        public enum ConsoleMessageLevel {
                INFO,
@@ -3042,7 +3044,7 @@ namespace WebKit {
                ERROR,
                DEBUG
        }
-       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_CONSOLE_MESSAGE_SOURCE_", has_type_id = false)]
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_CONSOLE_MESSAGE_SOURCE_", type_id = "webkit_console_message_source_get_type ()")]
        [Version (since = "2.12")]
        public enum ConsoleMessageSource {
                JAVASCRIPT,
@@ -3099,6 +3101,12 @@ namespace WebKit {
                DOWNLOAD_AUDIO_TO_DISK,
                CUSTOM
        }
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_FORM_SUBMISSION_WILL_", type_id = "webkit_form_submission_step_get_type ()")]
+       [Version (since = "2.20")]
+       public enum FormSubmissionStep {
+               SEND_DOM_EVENT,
+               COMPLETE
+       }
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_HIT_TEST_RESULT_CONTEXT_", has_type_id = false)]
        [Flags]
        public enum HitTestResultContext {