mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
4ec68bb60d
--HG-- rename : dom/events/nsJSEventListener.cpp => dom/events/JSEventHandler.cpp rename : dom/events/nsJSEventListener.h => dom/events/JSEventHandler.h
46 lines
1.3 KiB
C++
46 lines
1.3 KiB
C++
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_JSEventHandler_h_
|
|
#define mozilla_JSEventHandler_h_
|
|
|
|
#include "mozilla/Attributes.h"
|
|
#include "mozilla/MemoryReporting.h"
|
|
#include "nsIDOMKeyEvent.h"
|
|
#include "nsIJSEventListener.h"
|
|
#include "nsIDOMEventListener.h"
|
|
#include "nsCOMPtr.h"
|
|
#include "nsIAtom.h"
|
|
#include "nsIScriptContext.h"
|
|
#include "nsCycleCollectionParticipant.h"
|
|
|
|
// nsJSEventListener interface
|
|
// misnamed - JS no longer has exclusive rights over this interface!
|
|
class nsJSEventListener : public nsIJSEventListener
|
|
{
|
|
public:
|
|
nsJSEventListener(nsISupports* aTarget, nsIAtom* aType,
|
|
const nsEventHandler& aHandler);
|
|
|
|
NS_DECL_CYCLE_COLLECTING_ISUPPORTS
|
|
|
|
// nsIDOMEventListener interface
|
|
NS_DECL_NSIDOMEVENTLISTENER
|
|
|
|
// nsIJSEventListener
|
|
|
|
virtual size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const MOZ_OVERRIDE
|
|
{
|
|
return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf);
|
|
}
|
|
|
|
NS_DECL_CYCLE_COLLECTION_SKIPPABLE_CLASS(nsJSEventListener)
|
|
|
|
bool IsBlackForCC();
|
|
};
|
|
|
|
#endif // mozilla_JSEventHandler_h_
|
|
|