mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Issue #1792 - Part 2: Move GetParentObject() to EventTarget.h for re-use.
This commit is contained in:
parent
d751dbe1a4
commit
dd06472de7
2 changed files with 7 additions and 4 deletions
|
|
@ -26,6 +26,7 @@ class Event;
|
|||
class EventListener;
|
||||
class EventListenerOptionsOrBoolean;
|
||||
class EventHandlerNonNull;
|
||||
class GlobalObject;
|
||||
|
||||
template <class T> struct Nullable;
|
||||
|
||||
|
|
@ -55,6 +56,11 @@ public:
|
|||
ErrorResult& aRv);
|
||||
bool DispatchEvent(JSContext* aCx, Event& aEvent, ErrorResult& aRv);
|
||||
|
||||
nsIGlobalObject* GetParentObject() const
|
||||
{
|
||||
return GetOwnerGlobal();
|
||||
}
|
||||
|
||||
// Note, this takes the type in onfoo form!
|
||||
EventHandlerNonNull* GetEventHandler(const nsAString& aType)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue