summaryrefslogtreecommitdiffstats
path: root/chromium/content/common/gamepad_messages.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/common/gamepad_messages.h')
-rw-r--r--chromium/content/common/gamepad_messages.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/chromium/content/common/gamepad_messages.h b/chromium/content/common/gamepad_messages.h
index 0532b9c562d..63d65567dde 100644
--- a/chromium/content/common/gamepad_messages.h
+++ b/chromium/content/common/gamepad_messages.h
@@ -1,16 +1,26 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2014 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.
// Multiply-included message file, no include guard.
#include "base/memory/shared_memory.h"
+#include "content/common/gamepad_param_traits.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_MESSAGE_CONTROL2(GamepadMsg_GamepadConnected,
+ int /* index */,
+ blink::WebGamepad)
+
+IPC_MESSAGE_CONTROL2(GamepadMsg_GamepadDisconnected,
+ int /* index */,
+ blink::WebGamepad)
+
// Messages sent from the renderer to the browser.
// Asks the browser process to start polling, and return a shared memory