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

Side by Side Diff: content/common/input/input_param_traits_macros.h

Issue 19624005: Add InputEvent and EventPacket types for batched input delivery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separate InputEvent types for events based on WebKit::WebInputEvent Created 7 years, 4 months 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Singly or Multiply-included shared traits file depending on circumstances.
6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file.
8 #ifndef CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_
9 #define CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_
10
11 #include "base/memory/scoped_ptr.h"
12 #include "content/common/content_export.h"
13 #include "content/common/input/event_packet.h"
14 #include "content/common/input/event_packet_ack.h"
15 #include "content/common/input/input_event.h"
16 #include "content/common/input/input_event_state.h"
17 #include "content/common/input/generic_event.h"
18 #include "ipc/ipc_message_macros.h"
19 #include "ipc/ipc_message_utils.h"
20
21 #undef IPC_MESSAGE_EXPORT
22 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
23
24 IPC_ENUM_TRAITS(content::InputEventState)
25 IPC_ENUM_TRAITS(content::InputEvent::Type)
26
27 IPC_STRUCT_TRAITS_BEGIN(content::EventPacketAck)
28 IPC_STRUCT_TRAITS_MEMBER(id)
29 IPC_STRUCT_TRAITS_MEMBER(event_states)
30 IPC_STRUCT_TRAITS_END()
31
32 IPC_STRUCT_TRAITS_BEGIN(content::InputEvent)
33 IPC_STRUCT_TRAITS_MEMBER(id)
34 IPC_STRUCT_TRAITS_MEMBER(type)
35 IPC_STRUCT_TRAITS_END()
36
37 IPC_STRUCT_TRAITS_BEGIN(content::GenericEvent)
38 IPC_STRUCT_TRAITS_PARENT(content::InputEvent)
39 IPC_STRUCT_TRAITS_MEMBER(message)
40 IPC_STRUCT_TRAITS_END()
41
42 #endif // CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698