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

Unified Diff: public/platform/modules/notifications/WebNotificationVibratePattern.h

Issue 1042513002: Add the vibrate attribute to the Notification object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WebNotificationVibrationData is renamed WebNotificationVibratePattern 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: public/platform/modules/notifications/WebNotificationVibratePattern.h
diff --git a/public/platform/modules/notifications/WebNotificationVibratePattern.h b/public/platform/modules/notifications/WebNotificationVibratePattern.h
new file mode 100644
index 0000000000000000000000000000000000000000..4932c1f3699da9a0fd47a1a3fea1ff5cbee37d35
--- /dev/null
+++ b/public/platform/modules/notifications/WebNotificationVibratePattern.h
@@ -0,0 +1,37 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebNotificationVibratePattern_h
+#define WebNotificationVibratePattern_h
+
+#include "public/platform/WebVector.h"
+
+namespace blink {
+
+// Structure representing the data associated with a Web Notification's vibrateaa.
+struct WebNotificationVibratePattern {
Peter Beverloo 2015/04/07 11:37:31 As said elsewhere, we shouldn't have our own struc
Sanghyun Park 2015/04/08 08:00:03 Okay I'll remove this.
+ enum Type {
+ TypeNone,
+ TypeUnsignedLong,
+ TypeUnsignedLongSequence
+ };
+
+ WebNotificationVibratePattern()
+ : type(TypeNone)
+ {
+ }
+
+ WebNotificationVibratePattern(Type type, const WebVector<unsigned>& vibrate)
+ : type(type)
+ , pattern(vibrate)
+ {
+ }
+
+ Type type;
+ WebVector<unsigned> pattern;
+};
+
+} // namespace blink
+
+#endif // WebNotificationVibratePattern_h

Powered by Google App Engine
This is Rietveld 408576698