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