OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ |
6 #define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ | 6 #define CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // Contents of the notification. | 44 // Contents of the notification. |
45 base::string16 body; | 45 base::string16 body; |
46 | 46 |
47 // Tag of the notification. Notifications sharing both their origin and their | 47 // Tag of the notification. Notifications sharing both their origin and their |
48 // tag will replace the first displayed notification. | 48 // tag will replace the first displayed notification. |
49 std::string tag; | 49 std::string tag; |
50 | 50 |
51 // URL of the icon which is to be displayed with the notification. | 51 // URL of the icon which is to be displayed with the notification. |
52 GURL icon; | 52 GURL icon; |
53 | 53 |
| 54 // Vibration pattern for the notification, following the syntax of the |
| 55 // Vibration API. https://www.w3.org/TR/vibration/ |
| 56 std::vector<int> vibration_pattern; |
| 57 |
54 // Whether default notification indicators (sound, vibration, light) should | 58 // Whether default notification indicators (sound, vibration, light) should |
55 // be suppressed. | 59 // be suppressed. |
56 bool silent = false; | 60 bool silent = false; |
57 | 61 |
58 // Developer-provided data associated with the notification, in the form of | 62 // Developer-provided data associated with the notification, in the form of |
59 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. | 63 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. |
60 std::vector<char> data; | 64 std::vector<char> data; |
61 }; | 65 }; |
62 | 66 |
63 } // namespace content | 67 } // namespace content |
64 | 68 |
65 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ | 69 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ |
OLD | NEW |