OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PPAPI_SHARED_IMPL_PPB_GAMEPAD_SHARED_H_ | 5 #ifndef PPAPI_SHARED_IMPL_PPB_GAMEPAD_SHARED_H_ |
6 #define PPAPI_SHARED_IMPL_PPB_GAMEPAD_SHARED_H_ | 6 #define PPAPI_SHARED_IMPL_PPB_GAMEPAD_SHARED_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "base/atomicops.h" | 10 #include "base/atomicops.h" |
9 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
10 #include "ppapi/c/ppb_gamepad.h" | 12 #include "ppapi/c/ppb_gamepad.h" |
11 #include "ppapi/shared_impl/ppapi_shared_export.h" | 13 #include "ppapi/shared_impl/ppapi_shared_export.h" |
12 | 14 |
13 namespace ppapi { | 15 namespace ppapi { |
14 | 16 |
15 // TODO(brettw) when we remove the non-IPC-based gamepad implementation, this | 17 // TODO(brettw) when we remove the non-IPC-based gamepad implementation, this |
16 // code should all move into the GamepadResource. | 18 // code should all move into the GamepadResource. |
17 | 19 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 80 |
79 #pragma pack(pop) | 81 #pragma pack(pop) |
80 | 82 |
81 PPAPI_SHARED_EXPORT void ConvertWebKitGamepadData( | 83 PPAPI_SHARED_EXPORT void ConvertWebKitGamepadData( |
82 const WebKitGamepads& webkit_data, | 84 const WebKitGamepads& webkit_data, |
83 PP_GamepadsSampleData* output_data); | 85 PP_GamepadsSampleData* output_data); |
84 | 86 |
85 } // namespace ppapi | 87 } // namespace ppapi |
86 | 88 |
87 #endif // PPAPI_SHARED_IMPL_PPB_GAMEPAD_SHARED_H_ | 89 #endif // PPAPI_SHARED_IMPL_PPB_GAMEPAD_SHARED_H_ |
OLD | NEW |