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

Unified Diff: ppapi/shared_impl/ppb_gamepad_shared.h

Issue 165983005: Updating Gamepad API to match latest spec (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdef-gaurds Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/shared_impl/ppb_gamepad_shared.h
diff --git a/ppapi/shared_impl/ppb_gamepad_shared.h b/ppapi/shared_impl/ppb_gamepad_shared.h
index 821980f3aa72ef676d92402cce581d5aa4507438..75f8b445a8c72c93011406ced7b001d8ba7a3bb8 100644
--- a/ppapi/shared_impl/ppb_gamepad_shared.h
+++ b/ppapi/shared_impl/ppb_gamepad_shared.h
@@ -21,6 +21,7 @@ namespace ppapi {
// has some compile asserts to validate this.
struct WebKitGamepad {
static const size_t kIdLengthCap = 128;
+ static const size_t kMappingLengthCap = 16;
static const size_t kAxesLengthCap = 16;
static const size_t kButtonsLengthCap = 32;
@@ -30,6 +31,11 @@ struct WebKitGamepad {
// Device identifier (based on manufacturer, model, etc.).
base::char16 id[kIdLengthCap];
+#ifdef ENABLE_NEW_GAMEPAD_API
+ // Mapping type (for example "standard")
+ base::char16 mapping[kMappingLengthCap];
+#endif
+
// Monotonically increasing value referring to when the data were last
// updated.
unsigned long long timestamp;

Powered by Google App Engine
This is Rietveld 408576698