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



commit 6b021bb03c2a23b8395ba1406eda8c11f685726a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon May 27 18:02:32 2019 +0200

    webkit2gtk-4.0: Update to 2.25.1

 vapi/javascriptcoregtk-4.0.vapi        |  2 +-
 vapi/webkit2gtk-4.0.vapi               | 46 ++++++++++++++++++++++++++++++++++
 vapi/webkit2gtk-web-extension-4.0.vapi |  7 +++++-
 3 files changed, 53 insertions(+), 2 deletions(-)
---
diff --git a/vapi/javascriptcoregtk-4.0.vapi b/vapi/javascriptcoregtk-4.0.vapi
index 2351da8f4..79fdad7d4 100644
--- a/vapi/javascriptcoregtk-4.0.vapi
+++ b/vapi/javascriptcoregtk-4.0.vapi
@@ -225,7 +225,7 @@ namespace JSC {
                public unowned string get_name ();
                public unowned JSC.Class get_parent ();
                [NoAccessorMethod]
-               public JSC.Context context { owned get; construct; }
+               public JSC.Context context { construct; }
                public string name { get; construct; }
                public JSC.Class parent { get; construct; }
        }
diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi
index bb58797f3..3a9521e15 100644
--- a/vapi/webkit2gtk-4.0.vapi
+++ b/vapi/webkit2gtk-4.0.vapi
@@ -305,11 +305,42 @@ namespace WebKit {
                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_manager_get_type ()")]
+       public class GeolocationManager : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected GeolocationManager ();
+               [Version (since = "2.26")]
+               public void failed (string error_message);
+               [Version (since = "2.26")]
+               public bool get_enable_high_accuracy ();
+               [Version (since = "2.26")]
+               public void update_position (WebKit.GeolocationPosition position);
+               [Version (since = "2.26")]
+               public bool enable_high_accuracy { get; }
+               [Version (since = "2.26")]
+               public signal bool start ();
+               [Version (since = "2.26")]
+               public signal void stop ();
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = 
"webkit_geolocation_permission_request_get_type ()")]
        public class GeolocationPermissionRequest : GLib.Object, WebKit.PermissionRequest {
                [CCode (has_construct_function = false)]
                protected GeolocationPermissionRequest ();
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "webkit_geolocation_position_get_type ()")]
+       [Compact]
+       [Version (since = "2.26")]
+       public class GeolocationPosition {
+               [CCode (has_construct_function = false)]
+               public GeolocationPosition (double latitude, double longitude, double accuracy);
+               public WebKit.GeolocationPosition copy ();
+               public void free ();
+               public void set_altitude (double altitude);
+               public void set_altitude_accuracy (double altitude_accuracy);
+               public void set_heading (double heading);
+               public void set_speed (double speed);
+               public void set_timestamp (uint64 timestamp);
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_hit_test_result_get_type ()")]
        public class HitTestResult : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -651,6 +682,8 @@ namespace WebKit {
                public bool get_enable_javascript ();
                [Version (since = "2.24")]
                public bool get_enable_javascript_markup ();
+               [Version (since = "2.26")]
+               public bool get_enable_media ();
                [Version (since = "2.22")]
                public bool get_enable_media_capabilities ();
                [Version (since = "2.4")]
@@ -721,6 +754,8 @@ namespace WebKit {
                public void set_enable_javascript (bool enabled);
                [Version (since = "2.24")]
                public void set_enable_javascript_markup (bool enabled);
+               [Version (since = "2.26")]
+               public void set_enable_media (bool enabled);
                [Version (since = "2.22")]
                public void set_enable_media_capabilities (bool enabled);
                [Version (since = "2.4")]
@@ -792,6 +827,8 @@ namespace WebKit {
                public bool enable_javascript { get; set construct; }
                [Version (since = "2.24")]
                public bool enable_javascript_markup { get; set construct; }
+               [Version (since = "2.26")]
+               public bool enable_media { get; set construct; }
                [Version (since = "2.22")]
                public bool enable_media_capabilities { get; set construct; }
                [Version (since = "2.4")]
@@ -977,6 +1014,8 @@ namespace WebKit {
                [CCode (has_construct_function = false)]
                [Version (since = "2.8")]
                public WebContext ();
+               [Version (since = "2.26")]
+               public void add_path_to_sandbox (string path, bool read_only);
                [Version (since = "2.6")]
                public void allow_tls_certificate_for_host (GLib.TlsCertificate certificate, string host);
                public void clear_cache ();
@@ -989,9 +1028,13 @@ namespace WebKit {
                public static unowned WebKit.WebContext get_default ();
                public unowned WebKit.FaviconDatabase get_favicon_database ();
                public unowned string get_favicon_database_directory ();
+               [Version (since = "2.26")]
+               public unowned WebKit.GeolocationManager get_geolocation_manager ();
                public async GLib.List<WebKit.Plugin> get_plugins (GLib.Cancellable? cancellable = null) 
throws GLib.Error;
                [Version (since = "2.4")]
                public WebKit.ProcessModel get_process_model ();
+               [Version (since = "2.26")]
+               public bool get_sandbox_enabled ();
                public unowned WebKit.SecurityManager get_security_manager ();
                public bool get_spell_checking_enabled ();
                [CCode (array_length = false, array_null_terminated = true)]
@@ -1019,6 +1062,8 @@ namespace WebKit {
                public void set_preferred_languages ([CCode (array_length = false, array_null_terminated = 
true)] string[]? languages);
                [Version (since = "2.4")]
                public void set_process_model (WebKit.ProcessModel process_model);
+               [Version (since = "2.26")]
+               public void set_sandbox_enabled (bool enabled);
                public void set_spell_checking_enabled (bool enabled);
                public void set_spell_checking_languages ([CCode (array_length = false, array_null_terminated 
= true)] string[] languages);
                public void set_tls_errors_policy (WebKit.TLSErrorsPolicy policy);
@@ -1401,6 +1446,7 @@ namespace WebKit {
                MEDIA_MUTE,
                DOWNLOAD_VIDEO_TO_DISK,
                DOWNLOAD_AUDIO_TO_DISK,
+               INSERT_EMOJI,
                CUSTOM
        }
        [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_COOKIE_POLICY_ACCEPT_", type_id = 
"webkit_cookie_accept_policy_get_type ()")]
diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi
index 76d9d56e3..8886ce2f4 100644
--- a/vapi/webkit2gtk-web-extension-4.0.vapi
+++ b/vapi/webkit2gtk-web-extension-4.0.vapi
@@ -4009,6 +4009,8 @@ namespace WebKit {
        public class Frame : GLib.Object {
                [CCode (has_construct_function = false)]
                protected Frame ();
+               [Version (since = "2.26")]
+               public uint64 get_id ();
                [Version (deprecated = true, deprecated_since = "2.22", since = "2.2")]
                public unowned JS.GlobalContext get_javascript_context_for_script_world (WebKit.ScriptWorld 
world);
                [Version (deprecated = true, deprecated_since = "2.22", since = "2.2")]
@@ -4136,8 +4138,10 @@ namespace WebKit {
                [Version (since = "2.8")]
                public signal bool context_menu (WebKit.ContextMenu context_menu, WebKit.WebHitTestResult 
hit_test_result);
                public signal void document_loaded ();
-               [Version (since = "2.16")]
+               [Version (deprecated = true, deprecated_since = "2.26", since = "2.16")]
                public signal void form_controls_associated (GLib.GenericArray<WebKit.DOM.Element> elements);
+               [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.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);
@@ -4206,6 +4210,7 @@ namespace WebKit {
                MEDIA_MUTE,
                DOWNLOAD_VIDEO_TO_DISK,
                DOWNLOAD_AUDIO_TO_DISK,
+               INSERT_EMOJI,
                CUSTOM
        }
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = 
"WEBKIT_FORM_SUBMISSION_WILL_", type_id = "webkit_form_submission_step_get_type ()")]


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