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 #include "components/arc/common/arc_message_types.h" | |
6 #include "ipc/ipc_message_macros.h" | 5 #include "ipc/ipc_message_macros.h" |
7 #include "ipc/ipc_message_utils.h" | 6 |
| 7 // Using relative paths since this file is shared between chromium and android. |
| 8 #include "arc_message_types.h" |
| 9 #include "arc_notification_types.h" |
8 | 10 |
9 IPC_ENUM_TRAITS_MIN_MAX_VALUE(arc::ScaleFactor, | 11 IPC_ENUM_TRAITS_MIN_MAX_VALUE(arc::ScaleFactor, |
10 arc::ScaleFactor::SCALE_FACTOR_100P, | 12 arc::ScaleFactor::SCALE_FACTOR_100P, |
11 arc::ScaleFactor::NUM_SCALE_FACTORS); | 13 arc::ScaleFactor::NUM_SCALE_FACTORS); |
12 | 14 |
13 IPC_STRUCT_TRAITS_BEGIN(arc::AppInfo) | 15 IPC_STRUCT_TRAITS_BEGIN(arc::AppInfo) |
14 IPC_STRUCT_TRAITS_MEMBER(name) | 16 IPC_STRUCT_TRAITS_MEMBER(name) |
15 IPC_STRUCT_TRAITS_MEMBER(package) | 17 IPC_STRUCT_TRAITS_MEMBER(package) |
16 IPC_STRUCT_TRAITS_MEMBER(activity) | 18 IPC_STRUCT_TRAITS_MEMBER(activity) |
17 IPC_STRUCT_TRAITS_END() | 19 IPC_STRUCT_TRAITS_END() |
| 20 |
| 21 // Enum for notification type. |
| 22 IPC_ENUM_TRAITS_MAX_VALUE(arc::ArcNotificationType, |
| 23 arc::ArcNotificationType::LAST) |
| 24 |
| 25 // Struct for notification data. |
| 26 IPC_STRUCT_TRAITS_BEGIN(arc::ArcNotificationData) |
| 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(time) |
| 35 IPC_STRUCT_TRAITS_MEMBER(progress_current) |
| 36 IPC_STRUCT_TRAITS_MEMBER(progress_max) |
| 37 IPC_STRUCT_TRAITS_END() |
| 38 |
| 39 // Enum for notification event types. |
| 40 IPC_ENUM_TRAITS_MAX_VALUE(arc::ArcNotificationEvent, |
| 41 arc::ArcNotificationEvent::LAST) |
OLD | NEW |