]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapi: Update GIR-based bindings
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 18 Jan 2016 10:50:56 +0000 (11:50 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 18 Jan 2016 10:50:56 +0000 (11:50 +0100)
vapi/clutter-1.0.vapi
vapi/libsoup-2.4.vapi
vapi/libwnck-3.0.vapi
vapi/packagekit-glib2.vapi
vapi/webkit2gtk-4.0.vapi
vapi/webkit2gtk-web-extension-4.0.vapi

index 3ca9ae95fec95369c6f56aca617870e667f40762..86f4feb7d8efb67e9966dc51eedfb18eeb594f04 100644 (file)
@@ -5846,6 +5846,8 @@ namespace Clutter {
                public unowned Clutter.Actor get_related ();
                public void get_scroll_delta (out double dx, out double dy);
                public Clutter.ScrollDirection get_scroll_direction ();
+               public Clutter.ScrollFinishFlags get_scroll_finish_flags ();
+               public Clutter.ScrollSource get_scroll_source ();
                public unowned Clutter.Actor get_source ();
                public unowned Clutter.InputDevice get_source_device ();
                public unowned Clutter.Stage get_stage ();
@@ -6551,8 +6553,10 @@ namespace Clutter {
                public double axes;
                public weak Clutter.InputDevice device;
                public Clutter.ScrollDirection direction;
+               public Clutter.ScrollFinishFlags finish_flags;
                public Clutter.EventFlags flags;
                public Clutter.ModifierType modifier_state;
+               public Clutter.ScrollSource scroll_source;
                public weak Clutter.Actor source;
                public weak Clutter.Stage stage;
                public uint32 time;
@@ -8016,6 +8020,13 @@ namespace Clutter {
                RIGHT,
                SMOOTH
        }
+       [CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_SCROLL_FINISHED_", type_id = "clutter_scroll_finish_flags_get_type ()")]
+       [Flags]
+       public enum ScrollFinishFlags {
+               NONE,
+               HORIZONTAL,
+               VERTICAL
+       }
        [CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_SCROLL_", type_id = "clutter_scroll_mode_get_type ()")]
        [Flags]
        public enum ScrollMode {
@@ -8024,6 +8035,13 @@ namespace Clutter {
                VERTICALLY,
                BOTH
        }
+       [CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_SCROLL_SOURCE_", type_id = "clutter_scroll_source_get_type ()")]
+       public enum ScrollSource {
+               UNKNOWN,
+               WHEEL,
+               FINGER,
+               CONTINUOUS
+       }
        [CCode (cheader_filename = "clutter/clutter.h", cprefix = "CLUTTER_", type_id = "clutter_shader_type_get_type ()")]
        public enum ShaderType {
                VERTEX_SHADER,
index c299c9af3c688e5741e66af58756b2f56487e994..33dc0a8ce96802ad20f864ef30fbba65d821b0e0 100644 (file)
@@ -4,9 +4,9 @@
 namespace Soup {
        namespace Form {
                [CCode (cheader_filename = "libsoup/soup.h")]
-               public static GLib.HashTable<string,string> decode (string encoded_form);
+               public static GLib.HashTable<weak string,weak string> decode (string encoded_form);
                [CCode (cheader_filename = "libsoup/soup.h")]
-               public static GLib.HashTable<string,string>? decode_multipart (Soup.Message msg, string? file_control_name, out string filename, out string content_type, out Soup.Buffer file);
+               public static GLib.HashTable<weak string,weak string>? decode_multipart (Soup.Message msg, string? file_control_name, out string filename, out string content_type, out Soup.Buffer file);
                [CCode (cheader_filename = "libsoup/soup.h")]
                public static string encode (...);
                [CCode (cheader_filename = "libsoup/soup.h")]
index bbe7193e9d34c480f2547a2857e3c96ed5e25012..5011b5374db338344b142e4515a06b616499c83b 100644 (file)
@@ -215,6 +215,7 @@ namespace Wnck {
                public virtual signal void name_changed ();
                public virtual signal void role_changed ();
                public virtual signal void state_changed (Wnck.WindowState changed_mask, Wnck.WindowState new_state);
+               public virtual signal void type_changed ();
                public virtual signal void workspace_changed ();
        }
        [CCode (cheader_filename = "libwnck/libwnck.h", type_id = "wnck_workspace_get_type ()")]
index 970d60451377701cfdbd56068c5d7d53a14f84ac..9330721070d5f21de54039b10d3c092f57e1c64d 100644 (file)
@@ -705,6 +705,8 @@ namespace Pk {
                [CCode (finish_name = "pk_task_generic_finish")]
                public async Pk.Results update_packages_async ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
                public Pk.Results update_packages_sync ([CCode (array_length = false, array_null_terminated = true)] string[] package_ids, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
+               public async void upgrade_system_async (string distro_id, Pk.UpgradeKind upgrade_kind, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback);
+               public Pk.Results upgrade_system_sync (string distro_id, Pk.UpgradeKind upgrade_kind, GLib.Cancellable? cancellable, Pk.ProgressCallback progress_callback) throws GLib.Error;
                public bool user_accepted (uint request);
                public bool user_declined (uint request);
                [CCode (finish_name = "pk_task_generic_finish")]
@@ -1361,10 +1363,14 @@ namespace Pk {
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        public static bool offline_auth_set_prepared_ids (string package_ids) throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+       public static bool offline_auth_set_prepared_upgrade_version (string release_ver) throws GLib.Error;
+       [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        public static bool offline_auth_set_results (Pk.Results results) throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        public static bool offline_auth_trigger (Pk.OfflineAction action) throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+       public static bool offline_auth_trigger_upgrade (Pk.OfflineAction action) throws GLib.Error;
+       [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        public static bool offline_cancel (GLib.Cancellable? cancellable = null) throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        public static bool offline_clear_results (GLib.Cancellable? cancellable = null) throws GLib.Error;
@@ -1379,6 +1385,10 @@ namespace Pk {
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        public static Pk.PackageSack offline_get_prepared_sack () throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+       public static GLib.FileMonitor offline_get_prepared_upgrade_monitor (GLib.Cancellable? cancellable = null) throws GLib.Error;
+       [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
+       public static string offline_get_prepared_upgrade_version () throws GLib.Error;
+       [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        public static Pk.Results offline_get_results () throws GLib.Error;
        [CCode (cheader_filename = "packagekit-glib2/packagekit.h")]
        public static uint64 offline_get_results_mtime () throws GLib.Error;
index 4d0634275a8936950377658bca01964acabaed41..12998224d9daaa97d13cbc71bb324dcb3ea1b035 100644 (file)
@@ -303,6 +303,8 @@ namespace WebKit {
                public string body { get; }
                public uint64 id { get; }
                public string title { get; }
+               [HasEmitter]
+               public signal void clicked ();
                public signal void closed ();
        }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_notification_permission_request_get_type ()")]
@@ -538,6 +540,7 @@ namespace WebKit {
                [CCode (has_construct_function = false)]
                public URIRequest (string uri);
                public unowned Soup.MessageHeaders get_http_headers ();
+               public unowned string get_http_method ();
                public unowned string get_uri ();
                public void set_uri (string uri);
                public string uri { get; set construct; }
@@ -711,6 +714,7 @@ namespace WebKit {
                public unowned WebKit.WebInspector get_inspector ();
                public unowned WebKit.WebResource get_main_resource ();
                public uint64 get_page_id ();
+               public WebKit.WebViewSessionState get_session_state ();
                public unowned WebKit.Settings get_settings ();
                public async Cairo.Surface get_snapshot (WebKit.SnapshotRegion region, WebKit.SnapshotOptions options, GLib.Cancellable? cancellable) throws GLib.Error;
                public unowned string get_title ();
@@ -732,6 +736,7 @@ namespace WebKit {
                public Gtk.Widget new_with_related_view ();
                public void reload ();
                public void reload_bypass_cache ();
+               public void restore_session_state (WebKit.WebViewSessionState state);
                public async WebKit.JavascriptResult run_javascript (string script, GLib.Cancellable? cancellable) throws GLib.Error;
                public async WebKit.JavascriptResult run_javascript_from_gresource (string resource, GLib.Cancellable? cancellable) throws GLib.Error;
                public async GLib.InputStream save (WebKit.SaveMode save_mode, GLib.Cancellable? cancellable) throws GLib.Error;
@@ -742,6 +747,7 @@ namespace WebKit {
                public void set_settings (WebKit.Settings settings);
                public void set_zoom_level (double zoom_level);
                public void stop_loading ();
+               public void try_close ();
                [CCode (has_construct_function = false, type = "GtkWidget*")]
                public WebView.with_context (WebKit.WebContext context);
                [CCode (has_construct_function = false, type = "GtkWidget*")]
@@ -794,6 +800,15 @@ namespace WebKit {
                [CCode (has_construct_function = false)]
                protected WebViewBase ();
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", ref_function = "webkit_web_view_session_state_ref", type_id = "webkit_web_view_session_state_get_type ()", unref_function = "webkit_web_view_session_state_unref")]
+       [Compact]
+       public class WebViewSessionState {
+               [CCode (has_construct_function = false)]
+               public WebViewSessionState (GLib.Bytes data);
+               public WebKit.WebViewSessionState @ref ();
+               public GLib.Bytes serialize ();
+               public void unref ();
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_website_data_manager_get_type ()")]
        public class WebsiteDataManager : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -997,7 +1012,8 @@ namespace WebKit {
        public enum ScriptDialogType {
                ALERT,
                CONFIRM,
-               PROMPT
+               PROMPT,
+               BEFORE_UNLOAD_CONFIRM
        }
        [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_SNAPSHOT_OPTIONS_", type_id = "webkit_snapshot_options_get_type ()")]
        [Flags]
index 1804dee9894058c8a0bffa5745aba537c86e4675..7ddffd370c81e087589c6d809475300f8ac954fa 100644 (file)
@@ -2659,6 +2659,17 @@ namespace WebKit {
                [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cname = "WEBKIT_DOM_XPATH_RESULT_UNORDERED_NODE_SNAPSHOT_TYPE")]
                public const int _XPATH_RESULT_UNORDERED_NODE_SNAPSHOT_TYPE;
        }
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "webkit_console_message_get_type ()")]
+       [Compact]
+       public class ConsoleMessage {
+               public WebKit.ConsoleMessage copy ();
+               public void free ();
+               public WebKit.ConsoleMessageLevel get_level ();
+               public uint get_line ();
+               public WebKit.ConsoleMessageSource get_source ();
+               public unowned string get_source_id ();
+               public unowned string get_text ();
+       }
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_context_menu_get_type ()")]
        public class ContextMenu : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -2741,6 +2752,7 @@ namespace WebKit {
                [CCode (has_construct_function = false)]
                public URIRequest (string uri);
                public Soup.MessageHeaders get_http_headers ();
+               public unowned string get_http_method ();
                public unowned string get_uri ();
                public void set_uri (string uri);
                public string uri { get; set construct; }
@@ -2793,10 +2805,27 @@ namespace WebKit {
                public unowned WebKit.Frame get_main_frame ();
                public unowned string get_uri ();
                public string uri { get; }
+               public signal void console_message_sent (WebKit.ConsoleMessage console_message);
                public signal bool context_menu (WebKit.ContextMenu context_menu, WebKit.WebHitTestResult hit_test_result);
                public signal void document_loaded ();
                public signal bool send_request (WebKit.URIRequest request, WebKit.URIResponse redirected_response);
        }
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_CONSOLE_MESSAGE_LEVEL_", has_type_id = false)]
+       public enum ConsoleMessageLevel {
+               INFO,
+               LOG,
+               WARNING,
+               ERROR,
+               DEBUG
+       }
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_CONSOLE_MESSAGE_SOURCE_", has_type_id = false)]
+       public enum ConsoleMessageSource {
+               JAVASCRIPT,
+               NETWORK,
+               CONSOLE_API,
+               SECURITY,
+               OTHER
+       }
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", cprefix = "WEBKIT_CONTEXT_MENU_ACTION_", has_type_id = false)]
        public enum ContextMenuAction {
                NO_ACTION,