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

Unified Diff: content/common/gamepad_messages.h

Issue 133943002: Gamepad API support for chrome on android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 11 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
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)

Powered by Google App Engine
This is Rietveld 408576698