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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 GURL icon; | 71 GURL icon; |
72 | 72 |
73 // Vibration pattern for the notification, following the syntax of the | 73 // Vibration pattern for the notification, following the syntax of the |
74 // Vibration API. https://www.w3.org/TR/vibration/ | 74 // Vibration API. https://www.w3.org/TR/vibration/ |
75 std::vector<int> vibration_pattern; | 75 std::vector<int> vibration_pattern; |
76 | 76 |
77 // The time at which the event the notification represents took place. | 77 // The time at which the event the notification represents took place. |
78 base::Time timestamp; | 78 base::Time timestamp; |
79 | 79 |
80 // Whether default notification indicators (sound, vibration, light) should | 80 // Whether default notification indicators (sound, vibration, light) should |
| 81 // be played again if the notification is replacing an older notification. |
| 82 bool renotify = false; |
| 83 |
| 84 // Whether default notification indicators (sound, vibration, light) should |
81 // be suppressed. | 85 // be suppressed. |
82 bool silent = false; | 86 bool silent = false; |
83 | 87 |
84 // Whether the notification should remain onscreen indefinitely, rather than | 88 // Whether the notification should remain onscreen indefinitely, rather than |
85 // being auto-minimized to the notification center (if allowed by platform). | 89 // being auto-minimized to the notification center (if allowed by platform). |
86 bool require_interaction = false; | 90 bool require_interaction = false; |
87 | 91 |
88 // Developer-provided data associated with the notification, in the form of | 92 // Developer-provided data associated with the notification, in the form of |
89 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. | 93 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. |
90 std::vector<char> data; | 94 std::vector<char> data; |
91 | 95 |
92 // Actions that should be shown as buttons on the notification. | 96 // Actions that should be shown as buttons on the notification. |
93 std::vector<PlatformNotificationAction> actions; | 97 std::vector<PlatformNotificationAction> actions; |
94 }; | 98 }; |
95 | 99 |
96 } // namespace content | 100 } // namespace content |
97 | 101 |
98 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ | 102 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ |
OLD | NEW |