 Chromium Code Reviews
 Chromium Code Reviews Issue 1475583002:
  Add IPC messages for ARC notification  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1475583002:
  Add IPC messages for ARC notification  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| OLD | NEW | 
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 sent from the ARC instance to the host. | 5 // Messages sent from the ARC instance to the host. | 
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. | 
| 7 | 7 | 
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" | 
| 9 | 9 | 
| 10 // Using relative paths since this file is shared between chromium and android. | |
| 11 #include "arc_notification_types.h" | |
| 12 | |
| 10 #define IPC_MESSAGE_START ArcInstanceHostMsgStart | 13 #define IPC_MESSAGE_START ArcInstanceHostMsgStart | 
| 11 | 14 | 
| 15 // Enum for notification type. | |
| 16 IPC_ENUM_TRAITS_MAX_VALUE(arc::ArcNotificationType, | |
| 17 arc::ArcNotificationType::NOTIFICATION_TYPE_LAST) | |
| 18 | |
| 19 // Struct for notification data. | |
| 20 IPC_STRUCT_TRAITS_BEGIN(arc::ArcNotificationData) | |
| 21 IPC_STRUCT_TRAITS_MEMBER(key) | |
| 22 IPC_STRUCT_TRAITS_MEMBER(type) | |
| 23 IPC_STRUCT_TRAITS_MEMBER(message) | |
| 24 IPC_STRUCT_TRAITS_MEMBER(title) | |
| 25 IPC_STRUCT_TRAITS_MEMBER(icon_mimetype) | |
| 26 IPC_STRUCT_TRAITS_MEMBER(icon_data) | |
| 27 IPC_STRUCT_TRAITS_MEMBER(priority) | |
| 28 IPC_STRUCT_TRAITS_MEMBER(timestamp) | |
| 29 IPC_STRUCT_TRAITS_MEMBER(progress_current) | |
| 30 IPC_STRUCT_TRAITS_MEMBER(progress_max) | |
| 31 IPC_STRUCT_TRAITS_END() | |
| 32 | |
| 12 IPC_MESSAGE_CONTROL0(ArcInstanceHostMsg_InstanceReady) | 33 IPC_MESSAGE_CONTROL0(ArcInstanceHostMsg_InstanceReady) | 
| 34 | |
| 35 // Notifies that a notification is posted (created or updated) on the container | |
| 
elijahtaylor1
2015/11/27 05:42:49
s/on the container side/from Android/
 
yoshiki
2015/11/27 10:48:06
Done.
 | |
| 36 // side with the updated notification data. | |
| 37 // |notification_data| is the data of notification (id, texts, icon and ...). | |
| 38 IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_NotificationPosted, | |
| 39 arc::ArcNotificationData /* notification_data */); | |
| 40 | |
| 41 // Notifies that a notification is removed on the container side. | |
| 
elijahtaylor1
2015/11/27 05:42:49
same
 
yoshiki
2015/11/27 10:48:06
Done.
 | |
| 42 // |key| is the identifier of notification. | |
| 43 IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_NotificationRemoved, | |
| 44 std::string /* key */); | |
| OLD | NEW |