| 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 13 matching lines...) Expand all Loading... |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 // A notification action (button or text input); corresponds to Blink | 26 // A notification action (button or text input); corresponds to Blink |
| 27 // WebNotificationAction. | 27 // WebNotificationAction. |
| 28 struct CONTENT_EXPORT PlatformNotificationAction { | 28 struct CONTENT_EXPORT PlatformNotificationAction { |
| 29 PlatformNotificationAction(); | 29 PlatformNotificationAction(); |
| 30 PlatformNotificationAction(const PlatformNotificationAction& other); | 30 PlatformNotificationAction(const PlatformNotificationAction& other); |
| 31 ~PlatformNotificationAction(); | 31 ~PlatformNotificationAction(); |
| 32 | 32 |
| 33 // Type of the action (button or text input). | 33 // Type of the action (button or text input). |
| 34 PlatformNotificationActionType type; | 34 PlatformNotificationActionType type = |
| 35 PLATFORM_NOTIFICATION_ACTION_TYPE_BUTTON; |
| 35 | 36 |
| 36 // Action name that the author can use to distinguish them. | 37 // Action name that the author can use to distinguish them. |
| 37 std::string action; | 38 std::string action; |
| 38 | 39 |
| 39 // Title of the button. | 40 // Title of the button. |
| 40 base::string16 title; | 41 base::string16 title; |
| 41 | 42 |
| 42 // URL of the icon for the button. May be empty if no url was specified. | 43 // URL of the icon for the button. May be empty if no url was specified. |
| 43 GURL icon; | 44 GURL icon; |
| 44 | 45 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. | 118 // a serialized string. Must not exceed |kMaximumDeveloperDataSize| bytes. |
| 118 std::vector<char> data; | 119 std::vector<char> data; |
| 119 | 120 |
| 120 // Actions that should be shown as buttons on the notification. | 121 // Actions that should be shown as buttons on the notification. |
| 121 std::vector<PlatformNotificationAction> actions; | 122 std::vector<PlatformNotificationAction> actions; |
| 122 }; | 123 }; |
| 123 | 124 |
| 124 } // namespace content | 125 } // namespace content |
| 125 | 126 |
| 126 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ | 127 #endif // CONTENT_PUBLIC_COMMON_PLATFORM_NOTIFICATION_DATA_H_ |
| OLD | NEW |