[vala] vapi: Update GIR-based bindings



commit 99de312766a17c6af60f75b4a5849c13364ca2ab
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Jun 12 23:05:42 2016 +0200

    vapi: Update GIR-based bindings

 vapi/gdk-3.0.vapi                      |   31 +++++++++++++++++-
 vapi/gio-2.0.vapi                      |   10 ++++--
 vapi/webkit2gtk-4.0.vapi               |    6 +++
 vapi/webkit2gtk-web-extension-4.0.vapi |   54 ++++++++++++++++++++++++-------
 4 files changed, 84 insertions(+), 17 deletions(-)
---
diff --git a/vapi/gdk-3.0.vapi b/vapi/gdk-3.0.vapi
index 3a1c73a..4840632 100644
--- a/vapi/gdk-3.0.vapi
+++ b/vapi/gdk-3.0.vapi
@@ -4910,6 +4910,23 @@ namespace Gdk {
                [Version (since = "3.20")]
                public signal void drop_performed (int time);
        }
+       [CCode (cheader_filename = "gdk/gdk.h", type_id = "gdk_drawing_context_get_type ()")]
+       public class DrawingContext : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected DrawingContext ();
+               [Version (since = "3.22")]
+               public unowned Cairo.Context get_cairo_context ();
+               [Version (since = "3.22")]
+               public Cairo.Region? get_clip ();
+               [Version (since = "3.22")]
+               public unowned Gdk.Window get_window ();
+               [Version (since = "3.22")]
+               public bool is_valid ();
+               [Version (since = "3.22")]
+               public Cairo.Region clip { owned get; construct; }
+               [Version (since = "3.22")]
+               public Gdk.Window window { get; construct; }
+       }
        [CCode (cheader_filename = "gdk/gdk.h", copy_function = "g_boxed_copy", free_function = 
"g_boxed_free", type_id = "gdk_event_get_type ()")]
        [Compact]
        public class Event {
@@ -5576,10 +5593,14 @@ namespace Gdk {
                public static unowned Gdk.Window at_pointer (out int win_x, out int win_y);
                [Version (since = "2.12")]
                public void beep ();
+               [Version (since = "3.22")]
+               public unowned Gdk.DrawingContext begin_draw_frame (Cairo.Region region);
                public void begin_move_drag (int button, int root_x, int root_y, uint32 timestamp);
                [Version (since = "3.4")]
                public void begin_move_drag_for_device (Gdk.Device device, int button, int root_x, int 
root_y, uint32 timestamp);
+               [Version (deprecated = true, deprecated_since = "3.22")]
                public void begin_paint_rect (Gdk.Rectangle rectangle);
+               [Version (deprecated = true, deprecated_since = "3.22")]
                public void begin_paint_region (Cairo.Region region);
                public void begin_resize_drag (Gdk.WindowEdge edge, int button, int root_x, int root_y, 
uint32 timestamp);
                [Version (since = "3.4")]
@@ -5602,6 +5623,8 @@ namespace Gdk {
                public void destroy ();
                [Version (deprecated = true, deprecated_since = "3.8", since = "2.6")]
                public void enable_synchronized_configure ();
+               [Version (since = "3.22")]
+               public void end_draw_frame (Gdk.DrawingContext context);
                public void end_paint ();
                [Version (since = "2.18")]
                public bool ensure_native ();
@@ -6238,7 +6261,8 @@ namespace Gdk {
                CURSOR,
                KEYBOARD,
                TOUCHSCREEN,
-               TOUCHPAD
+               TOUCHPAD,
+               TRACKPOINT
        }
        [CCode (cheader_filename = "gdk/gdk.h", cprefix = "GDK_MODIFIER_INTENT_", type_id = 
"gdk_modifier_intent_get_type ()")]
        [Version (since = "3.4")]
@@ -6524,7 +6548,7 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static void beep ();
        [CCode (cheader_filename = "gdk/gdk.h")]
-       [Version (since = "2.8")]
+       [Version (deprecated = true, deprecated_since = "3.22", since = "2.8")]
        public static Cairo.Context cairo_create (Gdk.Window window);
        [CCode (cheader_filename = "gdk/gdk.h")]
        [Version (since = "3.16")]
@@ -6532,6 +6556,9 @@ namespace Gdk {
        [CCode (cheader_filename = "gdk/gdk.h")]
        public static bool cairo_get_clip_rectangle (Cairo.Context cr, out Gdk.Rectangle rect);
        [CCode (cheader_filename = "gdk/gdk.h")]
+       [Version (since = "3.22")]
+       public static unowned Gdk.DrawingContext? cairo_get_drawing_context (Cairo.Context cr);
+       [CCode (cheader_filename = "gdk/gdk.h")]
        [Version (since = "2.8")]
        public static void cairo_rectangle (Cairo.Context cr, Gdk.Rectangle rectangle);
        [CCode (cheader_filename = "gdk/gdk.h")]
diff --git a/vapi/gio-2.0.vapi b/vapi/gio-2.0.vapi
index 305d580..a27a78a 100644
--- a/vapi/gio-2.0.vapi
+++ b/vapi/gio-2.0.vapi
@@ -2652,9 +2652,9 @@ namespace GLib {
                public void set_cwd (string cwd);
                public void set_environ (string env);
                public void set_flags (GLib.SubprocessFlags flags);
-               public void set_stderr_file_path (string path);
+               public void set_stderr_file_path (string? path);
                public void set_stdin_file_path (string path);
-               public void set_stdout_file_path (string path);
+               public void set_stdout_file_path (string? path);
                public void setenv (string variable, string value, bool overwrite);
                public GLib.Subprocess spawnv ([CCode (array_length = false, array_null_terminated = true)] 
string[] argv) throws GLib.Error;
                public void take_fd (int source_fd, int target_fd);
@@ -3099,13 +3099,14 @@ namespace GLib {
                public abstract bool equal (GLib.AppInfo appinfo2);
                public static GLib.List<GLib.AppInfo> get_all ();
                public static GLib.List<GLib.AppInfo> get_all_for_type (string content_type);
-               [Version (since = "2.20")]
+               [NoWrapper]
                public abstract unowned string get_commandline ();
                public static GLib.AppInfo get_default_for_type (string content_type, bool must_support_uris);
                public static GLib.AppInfo get_default_for_uri_scheme (string uri_scheme);
                public abstract unowned string get_description ();
                [Version (since = "2.24")]
                public abstract unowned string get_display_name ();
+               [NoWrapper]
                public abstract unowned string get_executable ();
                [Version (since = "2.28")]
                public static GLib.List<GLib.AppInfo> get_fallback_for_type (string content_type);
@@ -3340,12 +3341,15 @@ namespace GLib {
                public abstract bool equal (GLib.File file2);
                public abstract GLib.Mount find_enclosing_mount (GLib.Cancellable? cancellable = null) throws 
GLib.Error;
                public virtual async GLib.Mount find_enclosing_mount_async (int io_priority = 
GLib.Priority.DEFAULT, GLib.Cancellable? cancellable = null) throws GLib.Error;
+               [NoWrapper]
                public abstract string? get_basename ();
                public GLib.File get_child (string name);
                public abstract GLib.File get_child_for_display_name (string display_name) throws GLib.Error;
                public abstract GLib.File? get_parent ();
                public abstract string get_parse_name ();
+               [NoWrapper]
                public abstract string? get_path ();
+               [NoWrapper]
                public abstract string? get_relative_path (GLib.File descendant);
                public abstract string get_uri ();
                public abstract string get_uri_scheme ();
diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi
index d189e74..69b5426 100644
--- a/vapi/webkit2gtk-4.0.vapi
+++ b/vapi/webkit2gtk-4.0.vapi
@@ -441,6 +441,8 @@ namespace WebKit {
                [Version (since = "2.10")]
                public bool get_allow_file_access_from_file_urls ();
                public bool get_allow_modal_dialogs ();
+               [Version (since = "2.14")]
+               public bool get_allow_universal_access_from_file_urls ();
                public bool get_auto_load_images ();
                public unowned string get_cursive_font_family ();
                public unowned string get_default_charset ();
@@ -496,6 +498,8 @@ namespace WebKit {
                [Version (since = "2.10")]
                public void set_allow_file_access_from_file_urls (bool allowed);
                public void set_allow_modal_dialogs (bool allowed);
+               [Version (since = "2.14")]
+               public void set_allow_universal_access_from_file_urls (bool allowed);
                public void set_auto_load_images (bool enabled);
                public void set_cursive_font_family (string cursive_font_family);
                public void set_default_charset (string default_charset);
@@ -552,6 +556,8 @@ namespace WebKit {
                [Version (since = "2.10")]
                public bool allow_file_access_from_file_urls { get; set construct; }
                public bool allow_modal_dialogs { get; set construct; }
+               [Version (since = "2.14")]
+               public bool allow_universal_access_from_file_urls { get; set construct; }
                public bool auto_load_images { get; set construct; }
                public string cursive_font_family { get; set construct; }
                public string default_charset { get; set construct; }
diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi
index e51ef40..7513d5f 100644
--- a/vapi/webkit2gtk-web-extension-4.0.vapi
+++ b/vapi/webkit2gtk-web-extension-4.0.vapi
@@ -534,7 +534,11 @@ namespace WebKit {
                        public uint event_phase { get; }
                        [NoAccessorMethod]
                        public bool is_trusted { get; }
+                       [NoAccessorMethod]
+                       public bool related_target_scoped { get; }
                        public bool return_value { get; set; }
+                       [NoAccessorMethod]
+                       public bool scoped { get; }
                        public WebKit.DOM.EventTarget src_element { owned get; }
                        public WebKit.DOM.EventTarget target { owned get; }
                        public uint time_stamp { get; }
@@ -547,6 +551,8 @@ namespace WebKit {
                        [CCode (has_construct_function = false)]
                        protected File ();
                        public string get_name ();
+                       [NoAccessorMethod]
+                       public int64 last_modified { get; }
                        public string name { owned get; }
                }
                [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = 
"webkit_dom_file_list_get_type ()")]
@@ -610,6 +616,8 @@ namespace WebKit {
                        public string name { owned get; set; }
                        [NoAccessorMethod]
                        public string origin { owned get; }
+                       [NoAccessorMethod]
+                       public string password { owned get; set; }
                        public string pathname { owned get; set; }
                        [NoAccessorMethod]
                        public string ping { owned get; set; }
@@ -624,6 +632,8 @@ namespace WebKit {
                        public string text { owned get; set; }
                        [NoAccessorMethod]
                        public string type { owned get; set; }
+                       [NoAccessorMethod]
+                       public string username { owned get; set; }
                }
                [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = 
"webkit_dom_html_applet_element_get_type ()")]
                [GIR (name = "DOMHTMLAppletElement")]
@@ -690,21 +700,34 @@ namespace WebKit {
                        public void set_target (string value);
                        public string alt { owned get; set; }
                        public string coords { owned get; set; }
-                       public string hash { owned get; }
-                       public string host { owned get; }
-                       public string hostname { owned get; }
+                       [NoAccessorMethod]
+                       public string hash { owned get; set; }
+                       [NoAccessorMethod]
+                       public string host { owned get; set; }
+                       [NoAccessorMethod]
+                       public string hostname { owned get; set; }
                        public string href { owned get; set; }
                        public bool no_href { get; set; }
-                       public string pathname { owned get; }
+                       [NoAccessorMethod]
+                       public string origin { owned get; }
+                       [NoAccessorMethod]
+                       public string password { owned get; set; }
+                       [NoAccessorMethod]
+                       public string pathname { owned get; set; }
                        [NoAccessorMethod]
                        public string ping { owned get; set; }
-                       public string port { owned get; }
-                       public string protocol { owned get; }
+                       [NoAccessorMethod]
+                       public string port { owned get; set; }
+                       [NoAccessorMethod]
+                       public string protocol { owned get; set; }
                        [NoAccessorMethod]
                        public string rel { owned get; set; }
-                       public string search { owned get; }
+                       [NoAccessorMethod]
+                       public string search { owned get; set; }
                        public string shape { owned get; set; }
                        public string target { owned get; set; }
+                       [NoAccessorMethod]
+                       public string username { owned get; set; }
                }
                [CCode (cheader_filename = "webkit2/webkit-web-extension.h", lower_case_cprefix = 
"webkit_dom_html_br_element_", type_id = "webkit_dom_html_br_element_get_type ()")]
                [GIR (name = "DOMHTMLBRElement")]
@@ -1439,7 +1462,11 @@ namespace WebKit {
                        public void set_rev (string value);
                        public void set_target (string value);
                        public void set_type_attr (string value);
+                       [NoAccessorMethod]
+                       public string @as { owned get; set; }
                        public string charset { owned get; set; }
+                       [NoAccessorMethod]
+                       public string cross_origin { owned get; set; }
                        public bool disabled { get; set; }
                        public string href { owned get; set; }
                        public string hreflang { owned get; set; }
@@ -1482,9 +1509,9 @@ namespace WebKit {
                        [NoAccessorMethod]
                        public long loop { get; set; }
                        [NoAccessorMethod]
-                       public long scroll_amount { get; set; }
+                       public ulong scroll_amount { get; set; }
                        [NoAccessorMethod]
-                       public long scroll_delay { get; set; }
+                       public ulong scroll_delay { get; set; }
                        [NoAccessorMethod]
                        public bool true_speed { get; set; }
                        [NoAccessorMethod]
@@ -1813,6 +1840,8 @@ namespace WebKit {
                        public void set_type_attr (string value);
                        public bool disabled { get; set; }
                        public string media { owned get; set; }
+                       [NoAccessorMethod]
+                       public string nonce { owned get; set; }
                        public WebKit.DOM.StyleSheet sheet { owned get; }
                        [NoAccessorMethod]
                        public string type { owned get; set; }
@@ -2196,7 +2225,10 @@ namespace WebKit {
                        [CCode (has_construct_function = false)]
                        protected Node ();
                        public unowned WebKit.DOM.Node append_child (WebKit.DOM.Node newChild) throws 
GLib.Error;
-                       public unowned WebKit.DOM.Node clone_node (bool deep);
+                       [Version (deprecated = true, deprecated_since = "2.14")]
+                       public unowned WebKit.DOM.Node clone_node (bool deep) throws GLib.Error;
+                       [Version (since = "2.14")]
+                       public unowned WebKit.DOM.Node clone_node_with_error (bool deep) throws GLib.Error;
                        public ushort compare_document_position (WebKit.DOM.Node other);
                        public bool contains (WebKit.DOM.Node other);
                        public string get_base_uri ();
@@ -2245,8 +2277,6 @@ namespace WebKit {
                        public string prefix { owned get; set; }
                        public WebKit.DOM.Node previous_sibling { get; }
                        public string text_content { owned get; set; }
-                       [NoAccessorMethod]
-                       public WebKit.DOM.Node tree_root { owned get; }
                }
                [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = 
"webkit_dom_node_iterator_get_type ()")]
                [GIR (name = "DOMNodeIterator")]


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