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

Unified Diff: Source/modules/vibration/NavigatorVibration.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/vibration/NavigatorVibration.h
diff --git a/Source/modules/vibration/NavigatorVibration.h b/Source/modules/vibration/NavigatorVibration.h
index b95a49b69679a6acfe049ec493477a0d68653a0f..48a83bab720b816918183f31c1d5287806dadf19 100644
--- a/Source/modules/vibration/NavigatorVibration.h
+++ b/Source/modules/vibration/NavigatorVibration.h
@@ -48,16 +48,16 @@ public:
virtual void pageVisibilityChanged() OVERRIDE;
virtual void didCommitLoad(Frame*) OVERRIDE;
- static bool vibrate(Navigator*, unsigned time);
- static bool vibrate(Navigator*, const VibrationPattern&);
- static NavigatorVibration* from(Page*);
+ static bool vibrate(Navigator&, unsigned time);
+ static bool vibrate(Navigator&, const VibrationPattern&);
+ static NavigatorVibration& from(Page&);
bool isVibrating() const { return m_isVibrating; }
VibrationPattern pattern() const { return m_pattern; }
private:
- explicit NavigatorVibration(Page*);
+ explicit NavigatorVibration(Page&);
static const char* supplementName();
Timer<NavigatorVibration> m_timerStart;

Powered by Google App Engine
This is Rietveld 408576698