OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS |
| 6 #define CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "third_party/WebKit/public/platform/WebGamepad.h" |
| 11 |
| 12 namespace content { |
| 13 |
| 14 struct GamepadConnectionEventMessageParams { |
| 15 GamepadConnectionEventMessageParams(); |
| 16 GamepadConnectionEventMessageParams(int index, |
| 17 const blink::WebGamepad& gamepad); |
| 18 ~GamepadConnectionEventMessageParams(); |
| 19 |
| 20 void GetWebGamepad(blink::WebGamepad* gamepad) const; |
| 21 |
| 22 std::vector<blink::WebUChar> id_characters; |
| 23 std::vector<blink::WebUChar> mapping_characters; |
| 24 int index; |
| 25 unsigned long long timestamp; |
| 26 int axes_length; |
| 27 int buttons_length; |
| 28 bool connected; |
| 29 }; |
| 30 |
| 31 } // namespace content |
| 32 |
| 33 #endif // CONTENT_COMMON_GAMEPAD_CONNECTION_EVENT_MESSAGE_PARAMS |
OLD | NEW |