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 #include "components/arc/common/arc_message_types.h" | 10 // Using relative paths since this file is shared between chromium and android. |
11 #include "arc_message_types.h" | |
12 #include "arc_notification_types.h" | |
11 | 13 |
12 #define IPC_MESSAGE_START ArcInstanceHostMsgStart | 14 #define IPC_MESSAGE_START ArcInstanceHostMsgStart |
13 | 15 |
14 IPC_ENUM_TRAITS_MAX_VALUE(arc::InstanceBootPhase, arc::InstanceBootPhase::LAST) | 16 IPC_ENUM_TRAITS_MAX_VALUE(arc::InstanceBootPhase, arc::InstanceBootPhase::LAST) |
15 | 17 |
16 IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_InstanceBootPhase, | 18 IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_InstanceBootPhase, |
17 arc::InstanceBootPhase) | 19 arc::InstanceBootPhase) |
20 | |
21 // Enum for notification type. | |
22 IPC_ENUM_TRAITS_MAX_VALUE(arc::ArcNotificationType, | |
23 arc::ArcNotificationType::NOTIFICATION_TYPE_LAST) | |
24 | |
25 // Struct for notification data. | |
26 IPC_STRUCT_TRAITS_BEGIN(arc::ArcNotificationData) | |
khmel1
2015/12/01 06:44:51
In my CL I put similar code into arc_messages_trai
yoshiki
2015/12/02 02:38:24
I think this can be in this file, since there is o
| |
27 IPC_STRUCT_TRAITS_MEMBER(key) | |
28 IPC_STRUCT_TRAITS_MEMBER(type) | |
29 IPC_STRUCT_TRAITS_MEMBER(message) | |
30 IPC_STRUCT_TRAITS_MEMBER(title) | |
31 IPC_STRUCT_TRAITS_MEMBER(icon_mimetype) | |
32 IPC_STRUCT_TRAITS_MEMBER(icon_data) | |
33 IPC_STRUCT_TRAITS_MEMBER(priority) | |
34 IPC_STRUCT_TRAITS_MEMBER(timestamp) | |
35 IPC_STRUCT_TRAITS_MEMBER(progress_current) | |
36 IPC_STRUCT_TRAITS_MEMBER(progress_max) | |
37 IPC_STRUCT_TRAITS_END() | |
38 | |
39 // Notifies that a notification is posted (created or updated) on Android with | |
hidehiko
2015/12/01 06:35:43
nit: Similar to the method name, it'd be probably
yoshiki
2015/12/02 02:38:24
Done.
| |
40 // the updated notification data. | |
41 // |notification_data| is the data of notification (id, texts, icon and ...). | |
42 IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_NotificationPosted, | |
43 arc::ArcNotificationData /* notification_data */); | |
44 | |
45 // Notifies that a notification is removed on Android. | |
46 // |key| is the identifier of notification. | |
hidehiko
2015/12/01 06:35:43
nit: "the notification"
yoshiki
2015/12/02 02:38:24
Done.
| |
47 IPC_MESSAGE_CONTROL1(ArcInstanceHostMsg_NotificationRemoved, | |
48 std::string /* key */); | |
OLD | NEW |