| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #define IPC_MESSAGE_START PlatformNotificationMsgStart | 30 #define IPC_MESSAGE_START PlatformNotificationMsgStart |
| 31 | 31 |
| 32 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebNotificationPermission, | 32 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebNotificationPermission, |
| 33 blink::WebNotificationPermissionLast) | 33 blink::WebNotificationPermissionLast) |
| 34 | 34 |
| 35 IPC_ENUM_TRAITS_MAX_VALUE( | 35 IPC_ENUM_TRAITS_MAX_VALUE( |
| 36 content::PlatformNotificationData::Direction, | 36 content::PlatformNotificationData::Direction, |
| 37 content::PlatformNotificationData::DIRECTION_LAST) | 37 content::PlatformNotificationData::DIRECTION_LAST) |
| 38 | 38 |
| 39 IPC_ENUM_TRAITS_MAX_VALUE(content::PlatformNotificationActionType, |
| 40 content::PLATFORM_NOTIFICATION_ACTION_TYPE_TEXT) |
| 41 |
| 39 IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationAction) | 42 IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationAction) |
| 43 IPC_STRUCT_TRAITS_MEMBER(type) |
| 40 IPC_STRUCT_TRAITS_MEMBER(action) | 44 IPC_STRUCT_TRAITS_MEMBER(action) |
| 41 IPC_STRUCT_TRAITS_MEMBER(title) | 45 IPC_STRUCT_TRAITS_MEMBER(title) |
| 42 IPC_STRUCT_TRAITS_MEMBER(icon) | 46 IPC_STRUCT_TRAITS_MEMBER(icon) |
| 47 IPC_STRUCT_TRAITS_MEMBER(placeholder) |
| 43 IPC_STRUCT_TRAITS_END() | 48 IPC_STRUCT_TRAITS_END() |
| 44 | 49 |
| 45 IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationData) | 50 IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationData) |
| 46 IPC_STRUCT_TRAITS_MEMBER(title) | 51 IPC_STRUCT_TRAITS_MEMBER(title) |
| 47 IPC_STRUCT_TRAITS_MEMBER(direction) | 52 IPC_STRUCT_TRAITS_MEMBER(direction) |
| 48 IPC_STRUCT_TRAITS_MEMBER(lang) | 53 IPC_STRUCT_TRAITS_MEMBER(lang) |
| 49 IPC_STRUCT_TRAITS_MEMBER(body) | 54 IPC_STRUCT_TRAITS_MEMBER(body) |
| 50 IPC_STRUCT_TRAITS_MEMBER(tag) | 55 IPC_STRUCT_TRAITS_MEMBER(tag) |
| 51 IPC_STRUCT_TRAITS_MEMBER(icon) | 56 IPC_STRUCT_TRAITS_MEMBER(icon) |
| 52 IPC_STRUCT_TRAITS_MEMBER(badge) | 57 IPC_STRUCT_TRAITS_MEMBER(badge) |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, | 124 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, |
| 120 int /* notification_id */) | 125 int /* notification_id */) |
| 121 | 126 |
| 122 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, | 127 IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_ClosePersistent, |
| 123 GURL /* origin */, | 128 GURL /* origin */, |
| 124 int64_t /* persistent_notification_id */) | 129 int64_t /* persistent_notification_id */) |
| 125 | 130 |
| 126 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, | 131 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, |
| 127 GURL /* origin */, | 132 GURL /* origin */, |
| 128 blink::WebNotificationPermission /* result */) | 133 blink::WebNotificationPermission /* result */) |
| OLD | NEW |