Chromium Code Reviews| 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 |