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

Side by Side Diff: public/platform/modules/notifications/WebNotificationVibratePattern.h

Issue 1042513002: Add the vibrate attribute to the Notification object (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WebNotificationVibrationData is renamed WebNotificationVibratePattern 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698