OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_FUNCTION_GROUP_BASE_H_ | 5 #ifndef PPAPI_SHARED_IMPL_FUNCTION_GROUP_BASE_H_ |
6 #define PPAPI_SHARED_IMPL_FUNCTION_GROUP_BASE_H_ | 6 #define PPAPI_SHARED_IMPL_FUNCTION_GROUP_BASE_H_ |
7 | 7 |
8 #include <stddef.h> // For NULL. | 8 #include <stddef.h> // For NULL. |
9 | 9 |
10 #include "ppapi/shared_impl/ppapi_shared_export.h" | 10 #include "ppapi/shared_impl/ppapi_shared_export.h" |
11 | 11 |
12 #define FOR_ALL_PPAPI_FUNCTION_APIS(F) \ | 12 #define FOR_ALL_PPAPI_FUNCTION_APIS(F) \ |
13 F(PPB_CharSet_FunctionAPI) \ | |
14 F(PPB_CursorControl_FunctionAPI) \ | |
15 F(PPB_Font_FunctionAPI) \ | |
16 F(PPB_Fullscreen_FunctionAPI) \ | |
Scott Hess - ex-Googler
2012/04/23 20:48:37
I guess these were lame ducks?
brettw
2012/04/23 22:00:55
Yes.
| |
17 F(PPB_Instance_FunctionAPI) \ | 13 F(PPB_Instance_FunctionAPI) \ |
18 F(PPB_TextInput_FunctionAPI) \ | |
19 F(ResourceCreationAPI) | 14 F(ResourceCreationAPI) |
20 | 15 |
21 namespace ppapi { | 16 namespace ppapi { |
22 | 17 |
23 // Forward declare all the function APIs. | 18 // Forward declare all the function APIs. |
24 namespace thunk { | 19 namespace thunk { |
25 #define DECLARE_FUNCTION_CLASS(FUNCTIONS) class FUNCTIONS; | 20 #define DECLARE_FUNCTION_CLASS(FUNCTIONS) class FUNCTIONS; |
26 FOR_ALL_PPAPI_FUNCTION_APIS(DECLARE_FUNCTION_CLASS) | 21 FOR_ALL_PPAPI_FUNCTION_APIS(DECLARE_FUNCTION_CLASS) |
27 #undef DECLARE_FUNCTION_CLASS | 22 #undef DECLARE_FUNCTION_CLASS |
28 } // namespace thunk | 23 } // namespace thunk |
(...skipping 20 matching lines...) Expand all Loading... | |
49 #define DEFINE_FUNCTION_CAST(FUNCTIONS) \ | 44 #define DEFINE_FUNCTION_CAST(FUNCTIONS) \ |
50 template<> inline thunk::FUNCTIONS* FunctionGroupBase::GetAs() { \ | 45 template<> inline thunk::FUNCTIONS* FunctionGroupBase::GetAs() { \ |
51 return As##FUNCTIONS(); \ | 46 return As##FUNCTIONS(); \ |
52 } | 47 } |
53 FOR_ALL_PPAPI_FUNCTION_APIS(DEFINE_FUNCTION_CAST) | 48 FOR_ALL_PPAPI_FUNCTION_APIS(DEFINE_FUNCTION_CAST) |
54 #undef DEFINE_FUNCTION_CAST | 49 #undef DEFINE_FUNCTION_CAST |
55 | 50 |
56 } // namespace ppapi | 51 } // namespace ppapi |
57 | 52 |
58 #endif // PPAPI_SHARED_IMPL_FUNCTION_GROUP_BASE_H_ | 53 #endif // PPAPI_SHARED_IMPL_FUNCTION_GROUP_BASE_H_ |
OLD | NEW |