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

Unified Diff: content/common/gamepad_messages.h

Issue 195873019: Gamepad API: add support for connection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and a missing override Created 6 years, 7 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
« no previous file with comments | « content/common/DEPS ('k') | content/common/gamepad_param_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gamepad_messages.h
diff --git a/content/common/gamepad_messages.h b/content/common/gamepad_messages.h
index 0532b9c562d0ef21d72b2a1b7162baab48cde730..63d65567dde58466fbc377ea3c9d876e6d96a65b 100644
--- a/content/common/gamepad_messages.h
+++ b/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
« no previous file with comments | « content/common/DEPS ('k') | content/common/gamepad_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698