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



commit f54ea2fa13200b6f297fe0dbfbb429eeceab216a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Jan 20 20:03:57 2020 +0100

    webkit2gtk-4.0: Update to 2.27.4

 vapi/javascriptcoregtk-4.0.vapi |  5 +++
 vapi/webkit2gtk-4.0.vapi        | 80 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 85 insertions(+)
---
diff --git a/vapi/javascriptcoregtk-4.0.vapi b/vapi/javascriptcoregtk-4.0.vapi
index 79fdad7d4..0e2cbbcc4 100644
--- a/vapi/javascriptcoregtk-4.0.vapi
+++ b/vapi/javascriptcoregtk-4.0.vapi
@@ -280,6 +280,9 @@ namespace JSC {
                [CCode (has_construct_function = false)]
                public Value.boolean (JSC.Context context, bool value);
                public JSC.Value constructor_callv ([CCode (array_length_cname = "n_parameters", 
array_length_pos = 0.5, array_length_type = "guint")] JSC.Value[]? parameters);
+               [CCode (has_construct_function = false)]
+               [Version (since = "2.28")]
+               public Value.from_json (JSC.Context context, global::string json);
                public JSC.Value function_callv ([CCode (array_length_cname = "n_parameters", 
array_length_pos = 0.5, array_length_type = "guint")] JSC.Value[]? parameters);
                [CCode (has_construct_function = false)]
                public Value.function_variadic (JSC.Context context, global::string? name, GLib.Callback 
callback, void* user_data, GLib.DestroyNotify? destroy_notify, GLib.Type return_type);
@@ -320,6 +323,8 @@ namespace JSC {
                public bool to_boolean ();
                public double to_double ();
                public int32 to_int32 ();
+               [Version (since = "2.28")]
+               public global::string to_json (uint indent);
                public global::string to_string ();
                public GLib.Bytes to_string_as_bytes ();
                [CCode (has_construct_function = false)]
diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi
index e764d299f..5b71a395f 100644
--- a/vapi/webkit2gtk-4.0.vapi
+++ b/vapi/webkit2gtk-4.0.vapi
@@ -365,6 +365,59 @@ namespace WebKit {
                public string link_uri { get; construct; }
                public string media_uri { get; construct; }
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_input_method_context_get_type ()")]
+       public abstract class InputMethodContext : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected InputMethodContext ();
+               [Version (since = "2.28")]
+               public virtual bool filter_key_event (Gdk.EventKey key_event);
+               [Version (since = "2.28")]
+               public WebKit.InputHints get_input_hints ();
+               [Version (since = "2.28")]
+               public WebKit.InputPurpose get_input_purpose ();
+               [Version (since = "2.28")]
+               public virtual void get_preedit (out string? text, out 
GLib.List<WebKit.InputMethodUnderline>? underlines, out uint cursor_offset);
+               [Version (since = "2.28")]
+               public virtual void notify_cursor_area (int x, int y, int width, int height);
+               [Version (since = "2.28")]
+               public virtual void notify_focus_in ();
+               [Version (since = "2.28")]
+               public virtual void notify_focus_out ();
+               [Version (since = "2.28")]
+               public virtual void notify_surrounding (string text, uint length, uint cursor_index);
+               [Version (since = "2.28")]
+               public virtual void reset ();
+               [Version (since = "2.28")]
+               public virtual void set_enable_preedit (bool enabled);
+               public void set_input_hints (WebKit.InputHints hints);
+               [Version (since = "2.28")]
+               public void set_input_purpose (WebKit.InputPurpose purpose);
+               public WebKit.InputHints input_hints { get; set; }
+               public WebKit.InputPurpose input_purpose { get; set; }
+               [Version (since = "2.28")]
+               public virtual signal void committed (string text);
+               [Version (since = "2.28")]
+               public virtual signal void delete_surrounding (int offset, uint n_chars);
+               [Version (since = "2.28")]
+               public virtual signal void preedit_changed ();
+               [Version (since = "2.28")]
+               public virtual signal void preedit_finished ();
+               [Version (since = "2.28")]
+               public virtual signal void preedit_started ();
+       }
+       [CCode (cheader_filename = "webkit2/webkit2.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "webkit_input_method_underline_get_type ()")]
+       [Compact]
+       public class InputMethodUnderline {
+               [CCode (has_construct_function = false)]
+               [Version (since = "2.28")]
+               public InputMethodUnderline (uint start_offset, uint end_offset);
+               [Version (since = "2.28")]
+               public WebKit.InputMethodUnderline copy ();
+               [Version (since = "2.28")]
+               public void free ();
+               [Version (since = "2.28")]
+               public void set_color (Gdk.RGBA? rgba);
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = 
"webkit_install_missing_media_plugins_permission_request_get_type ()")]
        public class InstallMissingMediaPluginsPermissionRequest : GLib.Object, WebKit.PermissionRequest {
                [CCode (has_construct_function = false)]
@@ -1192,6 +1245,8 @@ namespace WebKit {
                public double get_estimated_load_progress ();
                public unowned Cairo.Surface get_favicon ();
                public unowned WebKit.FindController get_find_controller ();
+               [Version (since = "2.28")]
+               public unowned WebKit.InputMethodContext? get_input_method_context ();
                public unowned WebKit.WebInspector get_inspector ();
                [Version (deprecated = true, deprecated_since = "2.22")]
                public unowned JS.GlobalContext get_javascript_global_context ();
@@ -1238,6 +1293,8 @@ namespace WebKit {
                public void set_custom_charset (string? charset);
                [Version (since = "2.8")]
                public void set_editable (bool editable);
+               [Version (since = "2.28")]
+               public void set_input_method_context (WebKit.InputMethodContext? context);
                public void set_settings (WebKit.Settings settings);
                public void set_zoom_level (double zoom_level);
                [NoWrapper]
@@ -1564,6 +1621,29 @@ namespace WebKit {
                SCROLLBAR,
                SELECTION
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INPUT_HINT_", type_id = 
"webkit_input_hints_get_type ()")]
+       [Flags]
+       [Version (since = "2.28")]
+       public enum InputHints {
+               NONE,
+               SPELLCHECK,
+               LOWERCASE,
+               UPPERCASE_CHARS,
+               UPPERCASE_WORDS,
+               UPPERCASE_SENTENCES,
+               INHIBIT_OSK
+       }
+       [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INPUT_PURPOSE_", type_id = 
"webkit_input_purpose_get_type ()")]
+       [Version (since = "2.28")]
+       public enum InputPurpose {
+               FREE_FORM,
+               DIGITS,
+               NUMBER,
+               PHONE,
+               URL,
+               EMAIL,
+               PASSWORD
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_INSECURE_CONTENT_", type_id = 
"webkit_insecure_content_event_get_type ()")]
        public enum InsecureContentEvent {
                RUN,


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