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

Unified 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: Cleanup 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 side-by-side diff with in-line comments
Download patch
Index: content/common/input/input_param_traits_macros.h
diff --git a/content/common/input/input_param_traits_macros.h b/content/common/input/input_param_traits_macros.h
new file mode 100644
index 0000000000000000000000000000000000000000..4cc69cd3bc78e296faca988f9cac7cdceeb70acd
--- /dev/null
+++ b/content/common/input/input_param_traits_macros.h
@@ -0,0 +1,43 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Singly or Multiply-included shared traits file depending on circumstances.
+// This allows the use of IPC serialization macros in more than one IPC message
+// file.
+#ifndef CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_
+#define CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "content/common/content_export.h"
+#include "content/common/input/event_packet_ack.h"
+#include "content/common/input/input_event.h"
+#include "content/common/input/input_event_disposition.h"
+#include "content/common/input/generic_input_event.h"
+#include "ipc/ipc_message_macros.h"
+#include "ipc/ipc_message_utils.h"
+
+#undef IPC_MESSAGE_EXPORT
+#define IPC_MESSAGE_EXPORT CONTENT_EXPORT
+
+IPC_ENUM_TRAITS(content::InputEventDisposition)
+IPC_ENUM_TRAITS(content::InputEvent::Type)
+IPC_ENUM_TRAITS(content::InputEvent::AckType)
+
+IPC_STRUCT_TRAITS_BEGIN(content::EventPacketAck)
+ IPC_STRUCT_TRAITS_MEMBER(id)
+ IPC_STRUCT_TRAITS_MEMBER(dispositions)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(content::InputEvent)
+ IPC_STRUCT_TRAITS_MEMBER(type)
+ IPC_STRUCT_TRAITS_MEMBER(ack_type)
+ IPC_STRUCT_TRAITS_MEMBER(id)
+IPC_STRUCT_TRAITS_END()
+
+IPC_STRUCT_TRAITS_BEGIN(content::GenericInputEvent)
+ IPC_STRUCT_TRAITS_PARENT(content::InputEvent)
+ IPC_STRUCT_TRAITS_MEMBER(message)
+IPC_STRUCT_TRAITS_END()
+
+#endif // CONTENT_COMMON_INPUT_INPUT_PARAM_TRAITS_MACROS_H_

Powered by Google App Engine
This is Rietveld 408576698