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