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

Unified Diff: Source/modules/device_orientation/DeviceSensorEventController.h

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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/modules/device_orientation/DeviceSensorEventController.h
diff --git a/Source/modules/device_orientation/DeviceSensorEventController.h b/Source/modules/device_orientation/DeviceSensorEventController.h
index c15e184ac4f8665eb94086a31cc5abbadf9ab9af..0b0950c32bb2f61af9bcdee5ec77cb82f23498e6 100644
--- a/Source/modules/device_orientation/DeviceSensorEventController.h
+++ b/Source/modules/device_orientation/DeviceSensorEventController.h
@@ -41,7 +41,7 @@ public:
void stopUpdating();
protected:
- explicit DeviceSensorEventController(Document*);
+ explicit DeviceSensorEventController(Document&);
virtual ~DeviceSensorEventController();
void dispatchDeviceEvent(const PassRefPtr<Event>);
@@ -60,7 +60,7 @@ private:
void fireDeviceEvent(Timer<DeviceSensorEventController>*);
- Document* m_document;
+ Document& m_document;
bool m_isActive;
bool m_needsCheckingNullEvents;
Timer<DeviceSensorEventController> m_timer;

Powered by Google App Engine
This is Rietveld 408576698