OLD | NEW |
(Empty) | |
| 1 #ifndef CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS |
| 2 #define CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS |
| 3 |
| 4 #include "third_party/WebKit/public/platform/WebGamepad.h" |
| 5 |
| 6 #include <vector> |
| 7 |
| 8 namespace content { |
| 9 |
| 10 struct GamepadConnectionEventMessageParams { |
| 11 GamepadConnectionEventMessageParams(); |
| 12 GamepadConnectionEventMessageParams(int index, |
| 13 const blink::WebGamepad& gamepad); |
| 14 ~GamepadConnectionEventMessageParams(); |
| 15 |
| 16 void GetWebGamepad(blink::WebGamepad* gamepad) const; |
| 17 |
| 18 std::vector<blink::WebUChar> id_characters; |
| 19 std::vector<blink::WebUChar> mapping_characters; |
| 20 int index; |
| 21 unsigned long long timestamp; |
| 22 int axes_length; |
| 23 int buttons_length; |
| 24 bool connected; |
| 25 }; |
| 26 |
| 27 } // namespace content |
| 28 |
| 29 #endif // CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS |
OLD | NEW |