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

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..a9baeafa63f4ef41aef0df9f9e8ba04c007a98ef 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,8 @@ public:
static bool vibrate(Navigator&, unsigned time);
static bool vibrate(Navigator&, const VibrationPattern&);
static NavigatorVibration& from(Page&);
+ static VibrationPattern sanitizeVibrationPattern(const UnsignedLongOrUnsignedLongSequence&);
+ static VibrationPattern sanitizeVibrationPattern(const VibrationPattern&);
timvolodine 2015/04/13 11:55:19 does this method have to be public? if not, maybe
Sanghyun Park 2015/04/13 13:35:08 Okay, I'll remove this.
bool isVibrating() const { return m_isVibrating; }

Powered by Google App Engine
This is Rietveld 408576698