Chromium Code Reviews| 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 |
|
jam
2014/03/17 19:01:00
need license header
kbalazs
2014/03/20 20:42:50
Done.
|
| + |
| +#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 |