Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / core / frame / DeviceSensorEventController.h
index 0b0950c..b3ed0e4 100644 (file)
@@ -41,16 +41,17 @@ public:
     void stopUpdating();
 
 protected:
-    explicit DeviceSensorEventController(Document&);
+    explicit DeviceSensorEventController(Page*);
     virtual ~DeviceSensorEventController();
 
-    void dispatchDeviceEvent(const PassRefPtr<Event>);
+    void dispatchDeviceEvent(const PassRefPtrWillBeRawPtr<Event>);
 
     virtual bool hasLastData() = 0;
-    virtual PassRefPtr<Event> getLastEvent() = 0;
+    virtual PassRefPtrWillBeRawPtr<Event> getLastEvent() = 0;
     virtual void registerWithDispatcher() = 0;
     virtual void unregisterWithDispatcher() = 0;
     virtual bool isNullEvent(Event*) = 0;
+    virtual Document* document() = 0;
 
     bool m_hasEventListener;
 
@@ -60,7 +61,6 @@ private:
 
     void fireDeviceEvent(Timer<DeviceSensorEventController>*);
 
-    Document& m_document;
     bool m_isActive;
     bool m_needsCheckingNullEvents;
     Timer<DeviceSensorEventController> m_timer;