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

Unified Diff: Source/modules/device_orientation/DeviceMotionController.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/DeviceMotionController.h
diff --git a/Source/modules/device_orientation/DeviceMotionController.h b/Source/modules/device_orientation/DeviceMotionController.h
index 2abbe7f713116579eb81524f14704b376f413b71..10915c22bbb0b221dde9f4586147a8d031807927 100644
--- a/Source/modules/device_orientation/DeviceMotionController.h
+++ b/Source/modules/device_orientation/DeviceMotionController.h
@@ -43,12 +43,12 @@ public:
virtual ~DeviceMotionController();
static const char* supplementName();
- static DeviceMotionController* from(Document*);
+ static DeviceMotionController& from(Document&);
void didChangeDeviceMotion(DeviceMotionData*);
private:
- explicit DeviceMotionController(Document*);
+ explicit DeviceMotionController(Document&);
virtual void registerWithDispatcher() OVERRIDE;
virtual void unregisterWithDispatcher() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698