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

Unified Diff: content/common/gamepad_connection_event_message_params.h

Issue 200873002: Gamepad API: add support for connection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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_connection_event_message_params.h
diff --git a/content/common/gamepad_connection_event_message_params.h b/content/common/gamepad_connection_event_message_params.h
new file mode 100644
index 0000000000000000000000000000000000000000..f04755da268ebc3f970e4c890482842cd3c95d6b
--- /dev/null
+++ b/content/common/gamepad_connection_event_message_params.h
@@ -0,0 +1,29 @@
+#ifndef CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS
+#define CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS
+
+#include "third_party/WebKit/public/platform/WebGamepad.h"
+
+#include <vector>
+
+namespace content {
+
+struct GamepadConnectionEventMessageParams {
+ GamepadConnectionEventMessageParams();
+ GamepadConnectionEventMessageParams(int index,
+ const blink::WebGamepad& gamepad);
+ ~GamepadConnectionEventMessageParams();
+
+ void GetWebGamepad(blink::WebGamepad* gamepad) const;
+
+ std::vector<blink::WebUChar> id_characters;
+ std::vector<blink::WebUChar> mapping_characters;
+ int index;
+ unsigned long long timestamp;
+ int axes_length;
+ int buttons_length;
+ bool connected;
+};
+
+} // namespace content
+
+#endif // CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/common/gamepad_connection_event_message_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698