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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « content/common/DEPS ('k') | content/common/gamepad_param_traits.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Multiply-included message file, no include guard. 5 // Multiply-included message file, no include guard.
6 6
7 #include "base/memory/shared_memory.h" 7 #include "base/memory/shared_memory.h"
8 #include "content/common/gamepad_param_traits.h"
8 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
9 #include "ipc/ipc_param_traits.h" 10 #include "ipc/ipc_param_traits.h"
10 #include "ipc/ipc_platform_file.h" 11 #include "ipc/ipc_platform_file.h"
12 #include "third_party/WebKit/public/platform/WebGamepad.h"
11 13
12 #define IPC_MESSAGE_START GamepadMsgStart 14 #define IPC_MESSAGE_START GamepadMsgStart
13 15
16 IPC_MESSAGE_CONTROL2(GamepadMsg_GamepadConnected,
17 int /* index */,
18 blink::WebGamepad)
19
20 IPC_MESSAGE_CONTROL2(GamepadMsg_GamepadDisconnected,
21 int /* index */,
22 blink::WebGamepad)
23
14 // Messages sent from the renderer to the browser. 24 // Messages sent from the renderer to the browser.
15 25
16 // Asks the browser process to start polling, and return a shared memory 26 // Asks the browser process to start polling, and return a shared memory
17 // handles that will hold the data from the hardware. See 27 // handles that will hold the data from the hardware. See
18 // gamepad_hardware_buffer.h for a description of how synchronization is 28 // gamepad_hardware_buffer.h for a description of how synchronization is
19 // handled. The number of Starts should match the number of Stops. 29 // handled. The number of Starts should match the number of Stops.
20 IPC_SYNC_MESSAGE_CONTROL0_1(GamepadHostMsg_StartPolling, 30 IPC_SYNC_MESSAGE_CONTROL0_1(GamepadHostMsg_StartPolling,
21 base::SharedMemoryHandle /* handle */) 31 base::SharedMemoryHandle /* handle */)
22 32
23 IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_StopPolling) 33 IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_StopPolling)
OLDNEW
« 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