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_THUNK_RESOURCE_CREATION_API_H_ | 5 #ifndef PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 6 #define PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
7 | 7 |
8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" | 8 #include "ppapi/c/dev/ppb_file_chooser_dev.h" |
9 #include "ppapi/c/pp_bool.h" | 9 #include "ppapi/c/pp_bool.h" |
10 #include "ppapi/c/pp_instance.h" | 10 #include "ppapi/c/pp_instance.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual PP_Resource CreateTouchInputEvent( | 79 virtual PP_Resource CreateTouchInputEvent( |
80 PP_Instance instance, | 80 PP_Instance instance, |
81 PP_InputEvent_Type type, | 81 PP_InputEvent_Type type, |
82 PP_TimeTicks time_stamp, | 82 PP_TimeTicks time_stamp, |
83 uint32_t modifiers) = 0; | 83 uint32_t modifiers) = 0; |
84 virtual PP_Resource CreateResourceArray(PP_Instance instance, | 84 virtual PP_Resource CreateResourceArray(PP_Instance instance, |
85 const PP_Resource elements[], | 85 const PP_Resource elements[], |
86 uint32_t size) = 0; | 86 uint32_t size) = 0; |
87 virtual PP_Resource CreateTrueTypeFont( | 87 virtual PP_Resource CreateTrueTypeFont( |
88 PP_Instance instance, | 88 PP_Instance instance, |
89 const PP_TrueTypeFontDesc_Dev& desc) = 0; | 89 const PP_TrueTypeFontDesc_Dev* desc) = 0; |
90 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; | 90 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; |
91 virtual PP_Resource CreateURLRequestInfo( | 91 virtual PP_Resource CreateURLRequestInfo( |
92 PP_Instance instance) = 0; | 92 PP_Instance instance) = 0; |
93 | 93 |
94 // Passes a reference to the file_ref_resource, which is a process-local | 94 // Passes a reference to the file_ref_resource, which is a process-local |
95 // resource corresponding to the body_as_file_ref host resource in |data|, | 95 // resource corresponding to the body_as_file_ref host resource in |data|, |
96 // if there is one. | 96 // if there is one. |
97 virtual PP_Resource CreateURLResponseInfo( | 97 virtual PP_Resource CreateURLResponseInfo( |
98 PP_Instance instance, | 98 PP_Instance instance, |
99 const URLResponseInfoData& data, | 99 const URLResponseInfoData& data, |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 PP_VideoDecoder_Profile profile) = 0; | 171 PP_VideoDecoder_Profile profile) = 0; |
172 #endif // !defined(OS_NACL) | 172 #endif // !defined(OS_NACL) |
173 | 173 |
174 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 174 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
175 }; | 175 }; |
176 | 176 |
177 } // namespace thunk | 177 } // namespace thunk |
178 } // namespace ppapi | 178 } // namespace ppapi |
179 | 179 |
180 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 180 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |