WebKit2WebExtension.DOMEventTarget¶
- Implementations:
WebKit2WebExtension.DOMDOMWindow
,WebKit2WebExtension.DOMNode
Methods¶
|
|
|
|
|
Virtual Methods¶
|
|
|
|
|
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class WebKit2WebExtension.DOMEventTarget¶
- Bases:
- Structure:
- add_event_listener(event_name, handler, use_capture)¶
- Parameters:
handler (
GObject.Closure
) – AGObject.Closure
- Returns:
a
bool
- Return type:
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
) – AWebKit2WebExtension.DOMEvent
- Raises:
- Returns:
a
bool
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- remove_event_listener(event_name, handler, use_capture)¶
- Parameters:
handler (
GObject.Closure
) – AGObject.Closure
- Returns:
a
bool
- Return type:
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:
event_name (
str
) –handler (
GObject.Closure
) –use_capture (
bool
) –
- Return type:
- do_dispatch_event(event) virtual¶
- Parameters:
event (
WebKit2WebExtension.DOMEvent
) – AWebKit2WebExtension.DOMEvent
- Returns:
a
bool
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead
- do_remove_event_listener(event_name, handler, use_capture) virtual¶
- Parameters:
handler (
GObject.Closure
) – AGObject.Callback
- Returns:
a
bool
- Return type:
Deprecated since version 2.22: Use JavaScriptCore API instead