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 WebNotificationVibratePattern_h | |
6 #define WebNotificationVibratePattern_h | |
7 | |
8 #include "public/platform/WebVector.h" | |
9 | |
10 namespace blink { | |
11 | |
12 // Structure representing the data associated with a Web Notification's vibratea a. | |
13 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.
| |
14 enum Type { | |
15 TypeNone, | |
16 TypeUnsignedLong, | |
17 TypeUnsignedLongSequence | |
18 }; | |
19 | |
20 WebNotificationVibratePattern() | |
21 : type(TypeNone) | |
22 { | |
23 } | |
24 | |
25 WebNotificationVibratePattern(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 // WebNotificationVibratePattern_h | |
OLD | NEW |