diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-01-18 11:50:56 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-01-18 11:50:56 +0100 |
commit | bc37493a0af0a88ddbc5203d5ee5686ea5bd064d (patch) | |
tree | d5a79e2102c7df5ffa4b7be6d3fba768942e6e9d | |
parent | 23fae167868ed5ae2fb5ed59e4c6e4a26e0300fb (diff) | |
download | vala-bc37493a0af0a88ddbc5203d5ee5686ea5bd064d.tar.gz |
vapi: Update GIR-based bindings
-rw-r--r-- | vapi/clutter-1.0.vapi | 18 | ||||
-rw-r--r-- | vapi/libsoup-2.4.vapi | 4 | ||||
-rw-r--r-- | vapi/libwnck-3.0.vapi | 1 | ||||
-rw-r--r-- | vapi/packagekit-glib2.vapi | 10 | ||||
-rw-r--r-- | vapi/webkit2gtk-4.0.vapi | 18 | ||||
-rw-r--r-- | vapi/webkit2gtk-web-extension-4.0.vapi | 29 |
6 files changed, 77 insertions, 3 deletions
diff --git a/vapi/clutter-1.0.vapi b/vapi/clutter-1.0.vapi index 3ca9ae95f..86f4feb7d 100644 --- a/vapi/clutter-1.0.vapi +++ b/vapi/clutter-1.0.vapi @@ -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, diff --git a/vapi/libsoup-2.4.vapi b/vapi/libsoup-2.4.vapi index c299c9af3..33dc0a8ce 100644 --- a/vapi/libsoup-2.4.vapi +++ b/vapi/libsoup-2.4.vapi @@ -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")] diff --git a/vapi/libwnck-3.0.vapi b/vapi/libwnck-3.0.vapi index bbe7193e9..5011b5374 100644 --- a/vapi/libwnck-3.0.vapi +++ b/vapi/libwnck-3.0.vapi @@ -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 ()")] diff --git a/vapi/packagekit-glib2.vapi b/vapi/packagekit-glib2.vapi index 970d60451..933072107 100644 --- a/vapi/packagekit-glib2.vapi +++ b/vapi/packagekit-glib2.vapi @@ -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; diff --git a/vapi/webkit2gtk-4.0.vapi b/vapi/webkit2gtk-4.0.vapi index 4d0634275..12998224d 100644 --- a/vapi/webkit2gtk-4.0.vapi +++ b/vapi/webkit2gtk-4.0.vapi @@ -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] diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi index 1804dee98..7ddffd370 100644 --- a/vapi/webkit2gtk-web-extension-4.0.vapi +++ b/vapi/webkit2gtk-web-extension-4.0.vapi @@ -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, |