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