Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / common / platform_notification_messages.h
index 0745b88..1585165 100644 (file)
@@ -5,6 +5,7 @@
 // Messages for platform-native notifications using the Web Notification API.
 // Multiply-included message file, hence no include guard.
 
+#include "content/public/common/show_desktop_notification_params.h"
 #include "ipc/ipc_message_macros.h"
 #include "third_party/WebKit/public/platform/WebNotificationPermission.h"
 #include "url/gurl.h"
@@ -22,9 +23,32 @@ IPC_MESSAGE_ROUTED2(PlatformNotificationMsg_PermissionRequestComplete,
                     int /* request_id */,
                     blink::WebNotificationPermission /* result */)
 
+// Informs the renderer that the browser has displayed the notification.
+IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidShow,
+                     int /* notification_id */)
+
+// Informs the renderer that the notification has been closed.
+IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClose,
+                     int /* notification_id */)
+
+// Informs the renderer that the notification has been clicked on.
+IPC_MESSAGE_CONTROL1(PlatformNotificationMsg_DidClick,
+                     int /* notification_id */)
+
 // Messages sent from the renderer to the browser.
 
 // Requests permission to display platform notifications for |origin|.
 IPC_MESSAGE_ROUTED2(PlatformNotificationHostMsg_RequestPermission,
                     GURL /* origin */,
                     int /* request_id */)
+
+IPC_MESSAGE_CONTROL2(PlatformNotificationHostMsg_Show,
+                     int /* notification_id */,
+                     content::ShowDesktopNotificationHostMsgParams /* params */)
+
+IPC_MESSAGE_CONTROL1(PlatformNotificationHostMsg_Close,
+                     int /* notification_id */)
+
+IPC_SYNC_MESSAGE_CONTROL1_1(PlatformNotificationHostMsg_CheckPermission,
+                            GURL /* origin */,
+                            blink::WebNotificationPermission /* result */)