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

Unified Diff: Source/modules/vibration/NavigatorVibration.h

Issue 1042513002: Add the vibrate attribute to the Notification object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 d8d38cd6035245348ff73ff491ed380618e001d7..05ec723ea46565e198618756ab742bc4e84acf04 100644
--- a/Source/modules/vibration/NavigatorVibration.h
+++ b/Source/modules/vibration/NavigatorVibration.h
@@ -30,6 +30,7 @@ namespace blink {
class LocalFrame;
class Navigator;
+class UnsignedLongOrUnsignedLongSequence;
class NavigatorVibration final
: public NoBaseWillBeGarbageCollectedFinalized<NavigatorVibration>
@@ -53,6 +54,7 @@ public:
static bool vibrate(Navigator&, unsigned time);
static bool vibrate(Navigator&, const VibrationPattern&);
static NavigatorVibration& from(Page&);
+ static VibrationPattern sanitizeVibrationPattern(const UnsignedLongOrUnsignedLongSequence&);
bool isVibrating() const { return m_isVibrating; }

Powered by Google App Engine
This is Rietveld 408576698