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

Unified Diff: Source/modules/vibration/testing/InternalsVibration.cpp

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/testing/InternalsVibration.cpp
diff --git a/Source/modules/vibration/testing/InternalsVibration.cpp b/Source/modules/vibration/testing/InternalsVibration.cpp
index a22bb0117b29d31b7e92e679e2b6209a6bd107fe..01ce84151d57fe5543288dc65892c6c2f82d9cda 100644
--- a/Source/modules/vibration/testing/InternalsVibration.cpp
+++ b/Source/modules/vibration/testing/InternalsVibration.cpp
@@ -37,16 +37,16 @@
namespace WebCore {
-bool InternalsVibration::isVibrating(Internals* internals, Document* document)
+bool InternalsVibration::isVibrating(Internals&, Document* document)
{
- ASSERT(internals && document && document->page());
- return NavigatorVibration::from(document->page())->isVibrating();
+ ASSERT(document && document->page());
+ return NavigatorVibration::from(*document->page()).isVibrating();
}
-Vector<unsigned> InternalsVibration::pendingVibrationPattern(Internals* internals, Document* document)
+Vector<unsigned> InternalsVibration::pendingVibrationPattern(Internals&, Document* document)
{
- ASSERT(internals && document && document->page());
- return NavigatorVibration::from(document->page())->pattern();
+ ASSERT(document && document->page());
+ return NavigatorVibration::from(*document->page()).pattern();
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698