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

Unified Diff: Source/modules/notifications/Notification.idl

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, 9 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/notifications/Notification.idl
diff --git a/Source/modules/notifications/Notification.idl b/Source/modules/notifications/Notification.idl
index e684d228a338e83e0478ab345aef6b15b0482777..851be63b519aad860d642d00c2dc522dcf2fd997 100644
--- a/Source/modules/notifications/Notification.idl
+++ b/Source/modules/notifications/Notification.idl
@@ -55,6 +55,10 @@
readonly attribute DOMString body;
readonly attribute DOMString tag;
readonly attribute DOMString icon;
+
+ // FIXME: The Union type VibrationPattern is not supported in NavigatorVibration.
+ // If VibrationPattern is supported, we need to change with this.
+ [RuntimeEnabled=NotificationExperimental] readonly attribute (unsigned long or sequence<unsigned long>) vibrate;
readonly attribute boolean silent;
[RuntimeEnabled=NotificationExperimental, CallWith=ScriptState] readonly attribute any data;

Powered by Google App Engine
This is Rietveld 408576698