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

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

Issue 302563003: Remove ENABLE_NEW_GAMEPAD_API #ifdefs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 static const size_t itemsLengthCap = 4; 45 static const size_t itemsLengthCap = 4;
46 46
47 // Number of valid entries in the items array. 47 // Number of valid entries in the items array.
48 unsigned length; 48 unsigned length;
49 49
50 // Gamepad data for N separate gamepad devices. 50 // Gamepad data for N separate gamepad devices.
51 WebGamepad items[itemsLengthCap]; 51 WebGamepad items[itemsLengthCap];
52 }; 52 };
53 53
54 #if BLINK_IMPLEMENTATION 54 #if BLINK_IMPLEMENTATION
55 #if defined(ENABLE_NEW_GAMEPAD_API)
56 COMPILE_ASSERT(sizeof(WebGamepads) == 2888, WebGamepads_has_wrong_size); 55 COMPILE_ASSERT(sizeof(WebGamepads) == 2888, WebGamepads_has_wrong_size);
57 #else
58 COMPILE_ASSERT(sizeof(WebGamepads) == 2120, WebGamepads_has_wrong_size);
59 #endif
60 #endif 56 #endif
61 57
62 #pragma pack(pop) 58 #pragma pack(pop)
63 59
64 } 60 }
65 61
66 #endif // WebGamepads_h 62 #endif // WebGamepads_h
OLDNEW
« no previous file with comments | « public/platform/WebGamepad.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698