| 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 "content/public/common/platform_notification_data.h" | 8 #include "content/public/common/platform_notification_data.h" |
| 9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
| 10 #include "third_party/WebKit/public/platform/WebNotificationPermission.h" | 10 #include "third_party/WebKit/public/platform/modules/notifications/WebNotificati
onPermission.h" |
| 11 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
| 12 | 12 |
| 13 #define IPC_MESSAGE_START PlatformNotificationMsgStart | 13 #define IPC_MESSAGE_START PlatformNotificationMsgStart |
| 14 | 14 |
| 15 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebNotificationPermission, | 15 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebNotificationPermission, |
| 16 blink::WebNotificationPermissionLast) | 16 blink::WebNotificationPermissionLast) |
| 17 | 17 |
| 18 IPC_ENUM_TRAITS_MAX_VALUE( | 18 IPC_ENUM_TRAITS_MAX_VALUE( |
| 19 content::PlatformNotificationData::NotificationDirection, | 19 content::PlatformNotificationData::NotificationDirection, |
| 20 content::PlatformNotificationData::NotificationDirectionLast) | 20 content::PlatformNotificationData::NotificationDirectionLast) |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, | 59 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, |
| 60 int /* notification_id */) | 60 int /* notification_id */) |
| 61 | 61 |
| 62 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_ClosePersistent, | 62 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_ClosePersistent, |
| 63 std::string /* persistent_notification_id */) | 63 std::string /* persistent_notification_id */) |
| 64 | 64 |
| 65 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, | 65 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, |
| 66 GURL /* origin */, | 66 GURL /* origin */, |
| 67 blink::WebNotificationPermission /* result */) | 67 blink::WebNotificationPermission /* result */) |
| OLD | NEW |