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

Side by Side 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 unified diff | Download patch
OLDNEW
(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
OLDNEW
« 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