]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
webkit2gtk-4.0: Update to 2.9.4
authorRico Tzschichholz <ricotz@ubuntu.com>
Thu, 23 Jul 2015 15:30:45 +0000 (17:30 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Thu, 23 Jul 2015 15:30:45 +0000 (17:30 +0200)
vapi/webkit2gtk-4.0.vapi
vapi/webkit2gtk-web-extension-4.0.vapi

index fb71248b8964676d9b5d1a7146d7bd0da4360068..0a2b7cf3f98ae88d090ff5f6d652d84a2cede55c 100644 (file)
@@ -141,6 +141,13 @@ namespace WebKit {
                public signal void finished ();
                public signal void received_data (uint64 data_length);
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_editor_state_get_type ()")]
+       public class EditorState : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected EditorState ();
+               public uint get_typing_attributes ();
+               public uint typing_attributes { get; }
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_favicon_database_get_type ()")]
        public class FaviconDatabase : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -613,10 +620,12 @@ namespace WebKit {
                [CCode (array_length = false, array_null_terminated = true)]
                public unowned string[] get_spell_checking_languages ();
                public WebKit.TLSErrorsPolicy get_tls_errors_policy ();
+               public unowned WebKit.WebsiteDataManager get_website_data_manager ();
                public void prefetch_dns (string hostname);
                public void register_uri_scheme (string scheme, owned WebKit.URISchemeRequestCallback callback);
                public void set_additional_plugins_directory (string directory);
                public void set_cache_model (WebKit.CacheModel cache_model);
+               [Deprecated (since = "2.10.")]
                public void set_disk_cache_directory (string directory);
                public void set_favicon_database_directory (string? path);
                public void set_preferred_languages ([CCode (array_length = false, array_null_terminated = true)] string[]? languages);
@@ -626,10 +635,12 @@ namespace WebKit {
                public void set_tls_errors_policy (WebKit.TLSErrorsPolicy policy);
                public void set_web_extensions_directory (string directory);
                public void set_web_extensions_initialization_user_data (GLib.Variant user_data);
-               [NoAccessorMethod]
-               public string indexed_db_directory { owned get; construct; }
+               [CCode (has_construct_function = false)]
+               public WebContext.with_website_data_manager (WebKit.WebsiteDataManager manager);
+               [Deprecated (since = "2.10.")]
                [NoAccessorMethod]
                public string local_storage_directory { owned get; construct; }
+               public WebKit.WebsiteDataManager website_data_manager { get; construct; }
                public virtual signal void download_started (WebKit.Download download);
                public virtual signal void initialize_web_extensions ();
        }
@@ -684,6 +695,7 @@ namespace WebKit {
                public Gdk.RGBA get_background_color ();
                public unowned WebKit.WebContext get_context ();
                public unowned string get_custom_charset ();
+               public unowned WebKit.EditorState get_editor_state ();
                public double get_estimated_load_progress ();
                public unowned Cairo.Surface get_favicon ();
                public unowned WebKit.FindController get_find_controller ();
@@ -773,6 +785,25 @@ namespace WebKit {
                [CCode (has_construct_function = false)]
                protected WebViewBase ();
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_website_data_manager_get_type ()")]
+       public class WebsiteDataManager : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected WebsiteDataManager ();
+               public unowned string get_base_cache_directory ();
+               public unowned string get_base_data_directory ();
+               public unowned string get_disk_cache_directory ();
+               public unowned string get_indexeddb_directory ();
+               public unowned string get_local_storage_directory ();
+               public unowned string get_offline_application_cache_directory ();
+               public unowned string get_websql_directory ();
+               public string base_cache_directory { get; construct; }
+               public string base_data_directory { get; construct; }
+               public string disk_cache_directory { get; construct; }
+               public string indexeddb_directory { get; construct; }
+               public string local_storage_directory { get; construct; }
+               public string offline_application_cache_directory { get; construct; }
+               public string websql_directory { get; construct; }
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", type_id = "webkit_window_properties_get_type ()")]
        public class WindowProperties : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -882,6 +913,15 @@ namespace WebKit {
                FOR_SESSION,
                PERMANENT
        }
+       [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_EDITOR_TYPING_ATTRIBUTE_", type_id = "webkit_editor_typing_attributes_get_type ()")]
+       [Flags]
+       public enum EditorTypingAttributes {
+               NONE,
+               BOLD,
+               ITALIC,
+               UNDERLINE,
+               STRIKETHROUGH
+       }
        [CCode (cheader_filename = "webkit2/webkit2.h", cprefix = "WEBKIT_FIND_OPTIONS_", type_id = "webkit_find_options_get_type ()")]
        [Flags]
        public enum FindOptions {
index 13fed0391c45157c60d6eca6c29e2238a5c466be..0e2c498ea22e8f2acd17edf1e1f29904be76fbb9 100644 (file)
@@ -2734,6 +2734,13 @@ namespace WebKit {
                public string suggested_filename { get; }
                public string uri { get; }
        }
+       [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_web_editor_get_type ()")]
+       public class WebEditor : GLib.Object {
+               [CCode (has_construct_function = false)]
+               protected WebEditor ();
+               public unowned WebKit.WebPage get_page ();
+               public signal void selection_changed ();
+       }
        [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_web_extension_get_type ()")]
        public class WebExtension : GLib.Object {
                [CCode (has_construct_function = false)]
@@ -2753,6 +2760,7 @@ namespace WebKit {
                [CCode (has_construct_function = false)]
                protected WebPage ();
                public unowned WebKit.DOM.Document get_dom_document ();
+               public unowned WebKit.WebEditor get_editor ();
                public uint64 get_id ();
                public unowned WebKit.Frame get_main_frame ();
                public unowned string get_uri ();