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

Unified Diff: Source/modules/device_orientation/DeviceOrientationController.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/DeviceOrientationController.h
diff --git a/Source/modules/device_orientation/DeviceOrientationController.h b/Source/modules/device_orientation/DeviceOrientationController.h
index 401963ecf0b674131686d93069268d9a5eb7294a..71484c63335a3befe23ac733983bf638407d7df8 100644
--- a/Source/modules/device_orientation/DeviceOrientationController.h
+++ b/Source/modules/device_orientation/DeviceOrientationController.h
@@ -42,7 +42,7 @@ public:
virtual ~DeviceOrientationController();
static const char* supplementName();
- static DeviceOrientationController* from(Document*);
+ static DeviceOrientationController& from(Document&);
void didChangeDeviceOrientation(WebCore::DeviceOrientationData*);
@@ -52,7 +52,7 @@ public:
virtual void didRemoveAllEventListeners(DOMWindow*) OVERRIDE;
private:
- explicit DeviceOrientationController(Document*);
+ explicit DeviceOrientationController(Document&);
virtual void registerWithDispatcher() OVERRIDE;
virtual void unregisterWithDispatcher() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698