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

Side by Side Diff: components/arc/common/arc_message_traits.h

Issue 1475583002: Add IPC messages for ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years 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 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)
OLDNEW
« no previous file with comments | « components/arc/common/arc_instance_messages.h ('k') | components/arc/common/arc_notification_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698