Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / frame / DeviceSingleWindowEventController.h
index d28d46d..d9e98bb 100644 (file)
@@ -6,18 +6,21 @@
 #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;
@@ -26,7 +29,6 @@ public:
 
 protected:
     explicit DeviceSingleWindowEventController(Document&);
-    virtual ~DeviceSingleWindowEventController();
 
     void dispatchDeviceEvent(const PassRefPtrWillBeRawPtr<Event>);
 
@@ -35,10 +37,12 @@ protected:
     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