| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 IPC_STRUCT_TRAITS_MEMBER(timestamp) | 53 IPC_STRUCT_TRAITS_MEMBER(timestamp) |
| 54 IPC_STRUCT_TRAITS_MEMBER(renotify) | 54 IPC_STRUCT_TRAITS_MEMBER(renotify) |
| 55 IPC_STRUCT_TRAITS_MEMBER(silent) | 55 IPC_STRUCT_TRAITS_MEMBER(silent) |
| 56 IPC_STRUCT_TRAITS_MEMBER(require_interaction) | 56 IPC_STRUCT_TRAITS_MEMBER(require_interaction) |
| 57 IPC_STRUCT_TRAITS_MEMBER(data) | 57 IPC_STRUCT_TRAITS_MEMBER(data) |
| 58 IPC_STRUCT_TRAITS_MEMBER(actions) | 58 IPC_STRUCT_TRAITS_MEMBER(actions) |
| 59 IPC_STRUCT_TRAITS_END() | 59 IPC_STRUCT_TRAITS_END() |
| 60 | 60 |
| 61 IPC_STRUCT_TRAITS_BEGIN(content::NotificationResources) | 61 IPC_STRUCT_TRAITS_BEGIN(content::NotificationResources) |
| 62 IPC_STRUCT_TRAITS_MEMBER(notification_icon) | 62 IPC_STRUCT_TRAITS_MEMBER(notification_icon) |
| 63 IPC_STRUCT_TRAITS_MEMBER(action_icons) |
| 63 IPC_STRUCT_TRAITS_END() | 64 IPC_STRUCT_TRAITS_END() |
| 64 | 65 |
| 65 // Messages sent from the browser to the renderer. | 66 // Messages sent from the browser to the renderer. |
| 66 | 67 |
| 67 // Informs the renderer that the browser has displayed the notification. | 68 // Informs the renderer that the browser has displayed the notification. |
| 68 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow, | 69 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow, |
| 69 int /* notification_id */) | 70 int /* notification_id */) |
| 70 | 71 |
| 71 // Informs the renderer that the notification has been closed. | 72 // Informs the renderer that the notification has been closed. |
| 72 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose, | 73 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, | 117 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, |
| 117 int /* notification_id */) | 118 int /* notification_id */) |
| 118 | 119 |
| 119 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, | 120 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, |
| 120 GURL /* origin */, | 121 GURL /* origin */, |
| 121 int64_t /* persistent_notification_id */) | 122 int64_t /* persistent_notification_id */) |
| 122 | 123 |
| 123 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, | 124 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, |
| 124 GURL /* origin */, | 125 GURL /* origin */, |
| 125 blink::WebNotificationPermission /* result */) | 126 blink::WebNotificationPermission /* result */) |
| OLD | NEW |