| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // BCP 47 language tag describing the notification's contents. Optional. | 76 // BCP 47 language tag describing the notification's contents. Optional. |
| 77 std::string lang; | 77 std::string lang; |
| 78 | 78 |
| 79 // Contents of the notification. | 79 // Contents of the notification. |
| 80 base::string16 body; | 80 base::string16 body; |
| 81 | 81 |
| 82 // Tag of the notification. Notifications sharing both their origin and their | 82 // Tag of the notification. Notifications sharing both their origin and their |
| 83 // tag will replace the first displayed notification. | 83 // tag will replace the first displayed notification. |
| 84 std::string tag; | 84 std::string tag; |
| 85 | 85 |
| 86 // URL of the image contents of the notification. May be empty if no url was |
| 87 // specified. |
| 88 GURL image; |
| 89 |
| 86 // URL of the icon which is to be displayed with the notification. | 90 // URL of the icon which is to be displayed with the notification. |
| 87 GURL icon; | 91 GURL icon; |
| 88 | 92 |
| 89 // URL of the badge for representing the notification. May be empty if no url | 93 // URL of the badge for representing the notification. May be empty if no url |
| 90 // was specified. | 94 // was specified. |
| 91 GURL badge; | 95 GURL badge; |
| 92 | 96 |
| 93 // Vibration pattern for the notification, following the syntax of the | 97 // Vibration pattern for the notification, following the syntax of the |
| 94 // Vibration API. https://www.w3.org/TR/vibration/ | 98 // Vibration API. https://www.w3.org/TR/vibration/ |
| 95 std::vector<int> vibration_pattern; | 99 std::vector<int> vibration_pattern; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 113 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. | 117 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. |
| 114 std::vector<char> data; | 118 std::vector<char> data; |
| 115 | 119 |
| 116 // Actions that should be shown as buttons on the notification. | 120 // Actions that should be shown as buttons on the notification. |
| 117 std::vector<PlatformNotificationAction> actions; | 121 std::vector<PlatformNotificationAction> actions; |
| 118 }; | 122 }; |
| 119 | 123 |
| 120 } // namespace content | 124 } // namespace content |
| 121 | 125 |
| 122 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ | 126 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ |
| OLD | NEW |