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

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

Issue 40443002: Add Vibration API layout tests that inspect internal state. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 09792a0fb24c0e5198de516f121e27b3776d1477..43fc17ff6ffbbc0670d0f08ed49c3794c492e301 100644
--- a/Source/modules/vibration/testing/InternalsVibration.cpp
+++ b/Source/modules/vibration/testing/InternalsVibration.cpp
@@ -43,4 +43,10 @@ bool InternalsVibration::isVibrating(Internals* internals, Document* document)
return NavigatorVibration::from(document->page())->isVibrating();
}
+Vector<unsigned> InternalsVibration::getVibrationPattern(Internals* internals, Document* document)
+{
+ ASSERT(internals && document && document->page());
+ return NavigatorVibration::from(document->page())->getPattern();
+}
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698