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

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

Issue 1475583002: Add IPC messages for ARC notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 // Messages sent from the host to the ARC instance. 5 // Messages sent from the host to the ARC instance.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/file_descriptor_posix.h" 10 #include "base/file_descriptor_posix.h"
11 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
12 12
13 // Using relative paths since this file is shared between chromium and android.
14 #include "arc_notification_types.h"
15
13 #define IPC_MESSAGE_START ArcInstanceMsgStart 16 #define IPC_MESSAGE_START ArcInstanceMsgStart
14 17
15 // Registers a virtual input device on the container side. 18 // Registers a virtual input device on the container side.
16 // |name| is the device name, like "Chrome OS Keyboard". 19 // |name| is the device name, like "Chrome OS Keyboard".
17 // |device_type| is the device type, like "keyboard". 20 // |device_type| is the device type, like "keyboard".
18 // The virtual device will be reading 'struct input_event's from |fd|. The 21 // The virtual device will be reading 'struct input_event's from |fd|. The
19 // ownership of |fd| will be transferred to the receiver, so the sender must 22 // ownership of |fd| will be transferred to the receiver, so the sender must
20 // not close it. 23 // not close it.
21 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice, 24 IPC_MESSAGE_CONTROL3(ArcInstanceMsg_RegisterInputDevice,
22 std::string, /* name */ 25 std::string, /* name */
23 std::string, /* device_type */ 26 std::string, /* device_type */
24 base::FileDescriptor /* fd */) 27 base::FileDescriptor /* fd */)
28
29 IPC_ENUM_TRAITS_MAX_VALUE(arc::NotificationEvent,
khmel1 2015/11/25 00:30:10 Comments
yoshiki 2015/11/25 09:40:35 Done.
30 arc::NotificationEvent::NOTIFICATION_EVENT_LAST)
31
32 IPC_MESSAGE_CONTROL2(ArcInstanceMsg_NotifyNotificationEvent,
33 std::string /* key */,
34 arc::NotificationEvent /* event */);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698