Index: content/common/gamepad_messages.h |
diff --git a/content/common/gamepad_messages.h b/content/common/gamepad_messages.h |
index 0532b9c562d0ef21d72b2a1b7162baab48cde730..6391b322046bbf2b9b4f42fb446ad865da3fa16a 100644 |
--- a/content/common/gamepad_messages.h |
+++ b/content/common/gamepad_messages.h |
@@ -1,4 +1,5 @@ |
// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -21,3 +22,16 @@ IPC_SYNC_MESSAGE_CONTROL0_1(GamepadHostMsg_StartPolling, |
base::SharedMemoryHandle /* handle */) |
IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_StopPolling) |
+ |
+#if defined(OS_ANDROID) |
+// Asks the browser process to pause/resume polling .The number of resume |
Tom Sepez
2014/01/10 22:57:39
Nit: space before period.
Nit: the number of resum
SaurabhK
2014/01/13 12:39:27
On 2014/01/10 22:57:39, Tom Sepez wrote:
> Nit: sp
|
+// should match the number of pause. |
+IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_ResumePolling) |
+ |
+IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_PausePolling) |
+ |
+// Sets the last gamepad data access timestamp. It helps identify gamepad |
Tom Sepez
2014/01/10 22:57:39
nit: sets it to the current time? I'm not sure I u
SaurabhK
2014/01/13 12:39:27
Yes, it sets the current time.
It helps to identif
|
+// data access and release using which polling thread can be put to pause or |
+// resume state. |
+IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_UpdateTimestamp) |
+#endif |