| 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 // Messages for platform-native notifications using the Web Notification API. | 5 // Messages for platform-native notifications using the Web Notification API. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 IPC_STRUCT_TRAITS_MEMBER(icon) | 42 IPC_STRUCT_TRAITS_MEMBER(icon) |
| 43 IPC_STRUCT_TRAITS_MEMBER(placeholder) | 43 IPC_STRUCT_TRAITS_MEMBER(placeholder) |
| 44 IPC_STRUCT_TRAITS_END() | 44 IPC_STRUCT_TRAITS_END() |
| 45 | 45 |
| 46 IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationData) | 46 IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationData) |
| 47 IPC_STRUCT_TRAITS_MEMBER(title) | 47 IPC_STRUCT_TRAITS_MEMBER(title) |
| 48 IPC_STRUCT_TRAITS_MEMBER(direction) | 48 IPC_STRUCT_TRAITS_MEMBER(direction) |
| 49 IPC_STRUCT_TRAITS_MEMBER(lang) | 49 IPC_STRUCT_TRAITS_MEMBER(lang) |
| 50 IPC_STRUCT_TRAITS_MEMBER(body) | 50 IPC_STRUCT_TRAITS_MEMBER(body) |
| 51 IPC_STRUCT_TRAITS_MEMBER(tag) | 51 IPC_STRUCT_TRAITS_MEMBER(tag) |
| 52 IPC_STRUCT_TRAITS_MEMBER(image) |
| 52 IPC_STRUCT_TRAITS_MEMBER(icon) | 53 IPC_STRUCT_TRAITS_MEMBER(icon) |
| 53 IPC_STRUCT_TRAITS_MEMBER(badge) | 54 IPC_STRUCT_TRAITS_MEMBER(badge) |
| 54 IPC_STRUCT_TRAITS_MEMBER(vibration_pattern) | 55 IPC_STRUCT_TRAITS_MEMBER(vibration_pattern) |
| 55 IPC_STRUCT_TRAITS_MEMBER(timestamp) | 56 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
| 56 IPC_STRUCT_TRAITS_MEMBER(renotify) | 57 IPC_STRUCT_TRAITS_MEMBER(renotify) |
| 57 IPC_STRUCT_TRAITS_MEMBER(silent) | 58 IPC_STRUCT_TRAITS_MEMBER(silent) |
| 58 IPC_STRUCT_TRAITS_MEMBER(require_interaction) | 59 IPC_STRUCT_TRAITS_MEMBER(require_interaction) |
| 59 IPC_STRUCT_TRAITS_MEMBER(data) | 60 IPC_STRUCT_TRAITS_MEMBER(data) |
| 60 IPC_STRUCT_TRAITS_MEMBER(actions) | 61 IPC_STRUCT_TRAITS_MEMBER(actions) |
| 61 IPC_STRUCT_TRAITS_END() | 62 IPC_STRUCT_TRAITS_END() |
| 62 | 63 |
| 63 IPC_STRUCT_TRAITS_BEGIN(content::NotificationResources) | 64 IPC_STRUCT_TRAITS_BEGIN(content::NotificationResources) |
| 65 IPC_STRUCT_TRAITS_MEMBER(image) |
| 64 IPC_STRUCT_TRAITS_MEMBER(notification_icon) | 66 IPC_STRUCT_TRAITS_MEMBER(notification_icon) |
| 65 IPC_STRUCT_TRAITS_MEMBER(badge) | 67 IPC_STRUCT_TRAITS_MEMBER(badge) |
| 66 IPC_STRUCT_TRAITS_MEMBER(action_icons) | 68 IPC_STRUCT_TRAITS_MEMBER(action_icons) |
| 67 IPC_STRUCT_TRAITS_END() | 69 IPC_STRUCT_TRAITS_END() |
| 68 | 70 |
| 69 // Messages sent from the browser to the renderer. | 71 // Messages sent from the browser to the renderer. |
| 70 | 72 |
| 71 // Informs the renderer that the browser has displayed the notification. | 73 // Informs the renderer that the browser has displayed the notification. |
| 72 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow, | 74 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow, |
| 73 int /* notification_id */) | 75 int /* notification_id */) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 int64_t /* service_worker_registration_id */, | 118 int64_t /* service_worker_registration_id */, |
| 117 GURL /* origin */, | 119 GURL /* origin */, |
| 118 std::string /* filter_tag */) | 120 std::string /* filter_tag */) |
| 119 | 121 |
| 120 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, | 122 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, |
| 121 int /* notification_id */) | 123 int /* notification_id */) |
| 122 | 124 |
| 123 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, | 125 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, |
| 124 GURL /* origin */, | 126 GURL /* origin */, |
| 125 int64_t /* persistent_notification_id */) | 127 int64_t /* persistent_notification_id */) |
| OLD | NEW |