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

Unified Diff: public/platform/modules/notifications/WebNotificationVibrationData.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, 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/WebNotificationVibrationData.h
diff --git a/public/platform/modules/notifications/WebNotificationVibrationData.h b/public/platform/modules/notifications/WebNotificationVibrationData.h
new file mode 100644
index 0000000000000000000000000000000000000000..e6a02693eaf9f082201e24cfa86e6d145289ae18
--- /dev/null
+++ b/public/platform/modules/notifications/WebNotificationVibrationData.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 WebNotificationVibrationData_h
+#define WebNotificationVibrationData_h
+
+#include "public/platform/WebVector.h"
+
+namespace blink {
+
+// Structure representing the data associated with a Web Notification's vibrate.
+struct WebNotificationVibrationData {
+ enum Type {
+ TypeNone,
+ TypeUnsignedLong,
+ TypeUnsignedLongSequence
Sanghyun Park 2015/04/02 18:59:34 This structure is necessary to return vibrate valu
+ };
+
+ WebNotificationVibrationData()
+ : type(TypeNone)
+ {
+ }
+
+ WebNotificationVibrationData(Type type, const WebVector<unsigned>& vibrate)
+ : type(type)
+ , pattern(vibrate)
+ {
+ }
+
+ Type type;
+ WebVector<unsigned> pattern;
+};
+
+} // namespace blink
+
+#endif // WebNotificationVibrationData_h
« public/platform/WebVibration.h ('K') | « public/platform/modules/notifications/WebNotificationData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698