Index: content/common/gamepad_messages.h |
diff --git a/content/common/gamepad_messages.h b/content/common/gamepad_messages.h |
index 0532b9c562d0ef21d72b2a1b7162baab48cde730..23d4461b613d38c61bef4620e73f6048488cc715 100644 |
--- a/content/common/gamepad_messages.h |
+++ b/content/common/gamepad_messages.h |
@@ -21,3 +21,14 @@ IPC_SYNC_MESSAGE_CONTROL0_1(GamepadHostMsg_StartPolling, |
base::SharedMemoryHandle /* handle */) |
IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_StopPolling) |
+ |
+// Asks the browser process to pause/resume polling. |
+IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_ResumePolling) |
+ |
+IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_PausePolling) |
+ |
+// Sets the gamepad data access timestamp to current time. It helps to identify |
+// if gamepad data is being accessed or not. Based on which if timeout happens |
+// the polling thread can be put to paused state. |
+// Useful in case of Browser minimize or tab switch. |
+IPC_SYNC_MESSAGE_CONTROL0_0(GamepadHostMsg_UpdateTimestamp) |