#define DeviceSingleWindowEventController_h
#include "core/frame/DOMWindowLifecycleObserver.h"
-#include "core/frame/DeviceEventControllerBase.h"
+#include "core/frame/PlatformEventController.h"
#include "platform/heap/Handle.h"
-namespace WebCore {
+namespace blink {
class Document;
class Event;
-class DeviceSingleWindowEventController : public DeviceEventControllerBase, public DOMWindowLifecycleObserver {
+class DeviceSingleWindowEventController : public NoBaseWillBeGarbageCollectedFinalized<DeviceSingleWindowEventController>, public PlatformEventController, public DOMWindowLifecycleObserver {
public:
+ virtual ~DeviceSingleWindowEventController();
+
// Inherited from DeviceEventControllerBase.
virtual void didUpdateData() OVERRIDE;
+ virtual void trace(Visitor*);
// Inherited from DOMWindowLifecycleObserver.
virtual void didAddEventListener(LocalDOMWindow*, const AtomicString&) OVERRIDE;
protected:
explicit DeviceSingleWindowEventController(Document&);
- virtual ~DeviceSingleWindowEventController();
void dispatchDeviceEvent(const PassRefPtrWillBeRawPtr<Event>);
virtual bool isNullEvent(Event*) const = 0;
private:
+ Document& document() const { return *m_document; }
+
bool m_needsCheckingNullEvents;
- Document& m_document;
+ RawPtrWillBeMember<Document> m_document;
};
-} // namespace WebCore
+} // namespace blink
#endif // DeviceSingleWindowEventController_h