Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(790)

Unified Diff: Source/core/frame/DeviceSensorEventController.h

Issue 256593010: Gracefully support Navigator Gamepad methods in a detached state. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Have document supplements keep a reference to their document Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/frame/DeviceSensorEventController.h
diff --git a/Source/core/frame/DeviceSensorEventController.h b/Source/core/frame/DeviceSensorEventController.h
index 085f1e2a1c71b79e0d7aa6e248347f329eec47e9..b3ed0e4001c7338632ac8643bdd632590b3d5c71 100644
--- a/Source/core/frame/DeviceSensorEventController.h
+++ b/Source/core/frame/DeviceSensorEventController.h
@@ -41,7 +41,7 @@ public:
void stopUpdating();
protected:
- explicit DeviceSensorEventController(Document&);
+ explicit DeviceSensorEventController(Page*);
virtual ~DeviceSensorEventController();
void dispatchDeviceEvent(const PassRefPtrWillBeRawPtr<Event>);
@@ -51,6 +51,7 @@ protected:
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;

Powered by Google App Engine
This is Rietveld 408576698