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

Side by Side Diff: third_party/WebKit/public/platform/WebGamepads.h

Issue 2150173002: Added Touched attribute to GamepadButton (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Actually remove unnecessary test. Not sure what happened last time. Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/public/platform/WebGamepad.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (C) 2011, Google Inc. All rights reserved. 1 // Copyright (C) 2011, Google Inc. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are met: 4 // modification, are permitted provided that the following conditions are met:
5 // 5 //
6 // 1. Redistributions of source code must retain the above copyright 6 // 1. Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // 2. Redistributions in binary form must reproduce the above copyright 8 // 2. Redistributions in binary form must reproduce the above copyright
9 // notice, this list of conditions and the following disclaimer in the 9 // notice, this list of conditions and the following disclaimer in the
10 // documentation and/or other materials provided with the distribution. 10 // documentation and/or other materials provided with the distribution.
(...skipping 29 matching lines...) Expand all
40 40
41 static const size_t itemsLengthCap = 4; 41 static const size_t itemsLengthCap = 4;
42 42
43 // Number of valid entries in the items array. 43 // Number of valid entries in the items array.
44 unsigned length; 44 unsigned length;
45 45
46 // Gamepad data for N separate gamepad devices. 46 // Gamepad data for N separate gamepad devices.
47 WebGamepad items[itemsLengthCap]; 47 WebGamepad items[itemsLengthCap];
48 }; 48 };
49 49
50 static_assert(sizeof(WebGamepads) == 2888, "WebGamepads has wrong size"); 50 static_assert(sizeof(WebGamepads) == 3016, "WebGamepads has wrong size");
51 51
52 #pragma pack(pop) 52 #pragma pack(pop)
53 53
54 } 54 }
55 55
56 #endif // WebGamepads_h 56 #endif // WebGamepads_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/WebGamepad.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698