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

Side by Side Diff: content/common/gamepad_connection_event_message_params.h

Issue 195873019: Gamepad API: add support for connection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add some more comments 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 // 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698