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

Unified Diff: content/common/gamepad_messages.h

Issue 8417034: Add gamepad IPC message definitions, not in-use yet. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 2 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/content_message_generator.h ('k') | ipc/ipc_message_utils.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
new file mode 100644
index 0000000000000000000000000000000000000000..a93a140f8a6e35a530feda4927e33407b7294bd8
--- /dev/null
+++ b/content/common/gamepad_messages.h
@@ -0,0 +1,28 @@
+// Copyright (c) 2011 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 "ipc/ipc_message_macros.h"
+#include "ipc/ipc_param_traits.h"
+#include "ipc/ipc_platform_file.h"
+#include "base/shared_memory.h"
+
+#define IPC_MESSAGE_START GamepadMsgStart
+
+// Messages sent from the renderer to the browser.
+
+// Asks the browser process to start polling, and return a shared memory
+// handles that will hold the (triple-buffered) data from the hardware.
+// The number of Starts should match the number of Stops (below).
+IPC_SYNC_MESSAGE_CONTROL0_1(GamepadHostMsg_StartPolling,
+ base::SharedMemoryHandle /* handle */)
+
+IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_StopPolling)
+
+
+// Messages sent from browser to renderer.
+
+IPC_MESSAGE_CONTROL1(GamepadMsg_Updated,
+ int /* read_buffer_index */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | ipc/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698