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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebNotificationVibrationData_h
6 #define WebNotificationVibrationData_h
7
8 #include "public/platform/WebVector.h"
9
10 namespace blink {
11
12 // Structure representing the data associated with a Web Notification's vibrate.
13 struct WebNotificationVibrationData {
14 enum Type {
15 TypeNone,
16 TypeUnsignedLong,
17 TypeUnsignedLongSequence
Sanghyun Park 2015/04/02 18:59:34 This structure is necessary to return vibrate valu
18 };
19
20 WebNotificationVibrationData()
21 : type(TypeNone)
22 {
23 }
24
25 WebNotificationVibrationData(Type type, const WebVector<unsigned>& vibrate)
26 : type(type)
27 , pattern(vibrate)
28 {
29 }
30
31 Type type;
32 WebVector<unsigned> pattern;
33 };
34
35 } // namespace blink
36
37 #endif // WebNotificationVibrationData_h
OLDNEW
« 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