Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: content/common/platform_notification_messages.h

Issue 965573002: Implement support for silent notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/modules/notifications/WebNotificati onPermission.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)
21 21
22 IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationData) 22 IPC_STRUCT_TRAITS_BEGIN(content::PlatformNotificationData)
23 IPC_STRUCT_TRAITS_MEMBER(title) 23 IPC_STRUCT_TRAITS_MEMBER(title)
24 IPC_STRUCT_TRAITS_MEMBER(direction) 24 IPC_STRUCT_TRAITS_MEMBER(direction)
25 IPC_STRUCT_TRAITS_MEMBER(lang) 25 IPC_STRUCT_TRAITS_MEMBER(lang)
26 IPC_STRUCT_TRAITS_MEMBER(body) 26 IPC_STRUCT_TRAITS_MEMBER(body)
27 IPC_STRUCT_TRAITS_MEMBER(tag) 27 IPC_STRUCT_TRAITS_MEMBER(tag)
28 IPC_STRUCT_TRAITS_MEMBER(icon) 28 IPC_STRUCT_TRAITS_MEMBER(icon)
29 IPC_STRUCT_TRAITS_MEMBER(silent)
29 IPC_STRUCT_TRAITS_END() 30 IPC_STRUCT_TRAITS_END()
30 31
31 // Messages sent from the browser to the renderer. 32 // Messages sent from the browser to the renderer.
32 33
33 // Informs the renderer that the browser has displayed the notification. 34 // Informs the renderer that the browser has displayed the notification.
34 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow, 35 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow,
35 int /* notification_id */) 36 int /* notification_id */)
36 37
37 // Informs the renderer that the notification has been closed. 38 // Informs the renderer that the notification has been closed.
38 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose, 39 IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose,
(...skipping 19 matching lines...) Expand all
58 59
59 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close, 60 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close,
60 int /* notification_id */) 61 int /* notification_id */)
61 62
62 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_ClosePersistent, 63 IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_ClosePersistent,
63 std::string /* persistent_notification_id */) 64 std::string /* persistent_notification_id */)
64 65
65 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission, 66 IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission,
66 GURL /* origin */, 67 GURL /* origin */,
67 blink::WebNotificationPermission /* result */) 68 blink::WebNotificationPermission /* result */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698