Index: content/common/gamepad_messages.h |
diff --git a/content/common/gamepad_messages.h b/content/common/gamepad_messages.h |
index 0532b9c562d0ef21d72b2a1b7162baab48cde730..a92fbb77415c69f5c22f42fb65cd82cdd12a63bc 100644 |
--- a/content/common/gamepad_messages.h |
+++ b/content/common/gamepad_messages.h |
@@ -5,12 +5,35 @@ |
// Multiply-included message file, no include guard. |
#include "base/memory/shared_memory.h" |
+#include "content/common/gamepad_connection_event_message_params.h" |
#include "ipc/ipc_message_macros.h" |
#include "ipc/ipc_param_traits.h" |
#include "ipc/ipc_platform_file.h" |
+#include "third_party/WebKit/public/platform/WebGamepad.h" |
#define IPC_MESSAGE_START GamepadMsgStart |
+IPC_STRUCT_TRAITS_BEGIN(blink::WebGamepadButton) |
+ IPC_STRUCT_TRAITS_MEMBER(pressed) |
+ IPC_STRUCT_TRAITS_MEMBER(value) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_STRUCT_TRAITS_BEGIN(content::GamepadConnectionEventMessageParams) |
+ IPC_STRUCT_TRAITS_MEMBER(id_characters) |
+ IPC_STRUCT_TRAITS_MEMBER(mapping_characters) |
+ IPC_STRUCT_TRAITS_MEMBER(index) |
+ IPC_STRUCT_TRAITS_MEMBER(timestamp) |
+ IPC_STRUCT_TRAITS_MEMBER(axes_length) |
+ IPC_STRUCT_TRAITS_MEMBER(buttons_length) |
+ IPC_STRUCT_TRAITS_MEMBER(connected) |
+IPC_STRUCT_TRAITS_END() |
+ |
+IPC_MESSAGE_CONTROL1(GamepadMsg_GamepadConnected, |
+ content::GamepadConnectionEventMessageParams) |
+ |
+IPC_MESSAGE_CONTROL1(GamepadMsg_GamepadDisconnected, |
+ content::GamepadConnectionEventMessageParams) |
+ |
// Messages sent from the renderer to the browser. |
// Asks the browser process to start polling, and return a shared memory |