OLD | NEW |
---|---|
(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 | |
OLD | NEW |