WebKit2WebExtension.DOMEventTarget

g GObject.GInterface GObject.GInterface WebKit2WebExtension.DOMEventTarget WebKit2WebExtension.DOMEventTarget GObject.GInterface->WebKit2WebExtension.DOMEventTarget

Implementations:

WebKit2WebExtension.DOMDOMWindow, WebKit2WebExtension.DOMNode

Methods

add_event_listener (event_name, handler, use_capture)

dispatch_event (event)

remove_event_listener (event_name, handler, use_capture)

Virtual Methods

do_add_event_listener (event_name, handler, use_capture)

do_dispatch_event (event)

do_remove_event_listener (event_name, handler, use_capture)

Properties

None

Signals

None

Fields

None

Class Details

class WebKit2WebExtension.DOMEventTarget
Bases:

GObject.GInterface

Structure:

WebKit2WebExtension.DOMEventTargetIface

add_event_listener(event_name, handler, use_capture)
Parameters:
Returns:

a bool

Return type:

bool

Version of WebKit2WebExtension.DOMEventTarget.add_event_listener() using a closure instead of a callbacks for easier binding in other languages.

Deprecated since version 2.22: Use JavaScriptCore API instead

dispatch_event(event)
Parameters:

event (WebKit2WebExtension.DOMEvent) – A WebKit2WebExtension.DOMEvent

Raises:

GLib.Error

Returns:

a bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

remove_event_listener(event_name, handler, use_capture)
Parameters:
Returns:

a bool

Return type:

bool

Version of WebKit2WebExtension.DOMEventTarget.remove_event_listener() using a closure instead of a callbacks for easier binding in other languages.

Deprecated since version 2.22: Use JavaScriptCore API instead

do_add_event_listener(event_name, handler, use_capture) virtual
Parameters:
Return type:

bool

do_dispatch_event(event) virtual
Parameters:

event (WebKit2WebExtension.DOMEvent) – A WebKit2WebExtension.DOMEvent

Returns:

a bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead

do_remove_event_listener(event_name, handler, use_capture) virtual
Parameters:
Returns:

a bool

Return type:

bool

Deprecated since version 2.22: Use JavaScriptCore API instead