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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
65 GURL icon; | 65 GURL icon; |
66 | 66 |
67 // Vibration pattern for the notification, following the syntax of the | 67 // Vibration pattern for the notification, following the syntax of the |
68 // Vibration API. https://www.w3.org/TR/vibration/ | 68 // Vibration API. https://www.w3.org/TR/vibration/ |
69 std::vector<int> vibration_pattern; | 69 std::vector<int> vibration_pattern; |
70 | 70 |
71 // Whether default notification indicators (sound, vibration, light) should | 71 // Whether default notification indicators (sound, vibration, light) should |
72 // be suppressed. | 72 // be suppressed. |
73 bool silent = false; | 73 bool silent = false; |
74 | 74 |
75 // Whether the notification should remain onscreen indefinitely, rather than | |
Peter Beverloo
2015/08/27 14:20:46
I'd prefer this description to be a little bit hig
| |
76 // being auto-minimized to the notification center (if allowed by platform). | |
77 bool require_interaction = false; | |
78 | |
75 // Developer-provided data associated with the notification, in the form of | 79 // Developer-provided data associated with the notification, in the form of |
76 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. | 80 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. |
77 std::vector<char> data; | 81 std::vector<char> data; |
78 | 82 |
79 // Actions that should be shown as buttons on the notification. | 83 // Actions that should be shown as buttons on the notification. |
80 std::vector<PlatformNotificationAction> actions; | 84 std::vector<PlatformNotificationAction> actions; |
81 }; | 85 }; |
82 | 86 |
83 } // namespace content | 87 } // namespace content |
84 | 88 |
85 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ | 89 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ |
OLD | NEW |