diff options
-rw-r--r-- | vapi/metadata/WebKit2WebExtension-4.0.metadata | 3 | ||||
-rw-r--r-- | vapi/webkit2gtk-web-extension-4.0.vapi | 7 |
2 files changed, 7 insertions, 3 deletions
diff --git a/vapi/metadata/WebKit2WebExtension-4.0.metadata b/vapi/metadata/WebKit2WebExtension-4.0.metadata index 3fe3c186f..442443819 100644 --- a/vapi/metadata/WebKit2WebExtension-4.0.metadata +++ b/vapi/metadata/WebKit2WebExtension-4.0.metadata @@ -6,7 +6,10 @@ _ContextMenuItem skip Frame.get_javascript_* type="void*" +DOMEventTarget.add_event_listener_with_closure abstract vfunc_name="add_event_listener" DOMEventTarget.add_event_listener_with_closure.handler type="owned WebKit.DOM.EventTargetFunc" +DOMEventTarget.remove_event_listener_with_closure abstract vfunc_name="remove_event_listener" +DOMEventTarget.remove_event_listener_with_closure.handler type="owned WebKit.DOM.EventTargetFunc" URIRequest.get_http_headers unowned URIResponse.get_http_headers unowned diff --git a/vapi/webkit2gtk-web-extension-4.0.vapi b/vapi/webkit2gtk-web-extension-4.0.vapi index 0190e8675..f4c0fa70c 100644 --- a/vapi/webkit2gtk-web-extension-4.0.vapi +++ b/vapi/webkit2gtk-web-extension-4.0.vapi @@ -2555,10 +2555,11 @@ namespace WebKit { [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_dom_event_target_get_type ()")] [GIR (name = "DOMEventTarget")] public interface EventTarget : GLib.Object { - public bool add_event_listener_with_closure (string event_name, [CCode (type = "GClosure*")] owned WebKit.DOM.EventTargetFunc handler, bool use_capture); + [CCode (vfunc_name = "add_event_listener")] + public abstract bool add_event_listener_with_closure (string event_name, [CCode (type = "GClosure*")] owned WebKit.DOM.EventTargetFunc handler, bool use_capture); public abstract bool dispatch_event (WebKit.DOM.Event event) throws GLib.Error; - public abstract bool remove_event_listener (string event_name, GLib.Closure handler, bool use_capture); - public bool remove_event_listener_with_closure (string event_name, GLib.Closure handler, bool use_capture); + [CCode (vfunc_name = "remove_event_listener")] + public abstract bool remove_event_listener_with_closure (string event_name, [CCode (type = "GClosure*")] owned WebKit.DOM.EventTargetFunc handler, bool use_capture); } [CCode (cheader_filename = "webkit2/webkit-web-extension.h", type_id = "webkit_dom_node_filter_get_type ()")] [GIR (name = "DOMNodeFilter")] |