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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual PP_Resource CreateResourceArray(PP_Instance instance, | 91 virtual PP_Resource CreateResourceArray(PP_Instance instance, |
92 const PP_Resource elements[], | 92 const PP_Resource elements[], |
93 uint32_t size) = 0; | 93 uint32_t size) = 0; |
94 virtual PP_Resource CreateTrueTypeFont( | 94 virtual PP_Resource CreateTrueTypeFont( |
95 PP_Instance instance, | 95 PP_Instance instance, |
96 const PP_TrueTypeFontDesc_Dev* desc) = 0; | 96 const PP_TrueTypeFontDesc_Dev* desc) = 0; |
97 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; | 97 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; |
98 virtual PP_Resource CreateURLRequestInfo( | 98 virtual PP_Resource CreateURLRequestInfo( |
99 PP_Instance instance) = 0; | 99 PP_Instance instance) = 0; |
100 | 100 |
101 // Passes a reference to the file_ref_resource, which is a process-local | |
102 // resource corresponding to the body_as_file_ref host resource in |data|, | |
103 // if there is one. | |
104 virtual PP_Resource CreateURLResponseInfo( | |
105 PP_Instance instance, | |
106 const URLResponseInfoData& data, | |
107 PP_Resource file_ref_resource) = 0; | |
108 | |
109 virtual PP_Resource CreateWheelInputEvent( | 101 virtual PP_Resource CreateWheelInputEvent( |
110 PP_Instance instance, | 102 PP_Instance instance, |
111 PP_TimeTicks time_stamp, | 103 PP_TimeTicks time_stamp, |
112 uint32_t modifiers, | 104 uint32_t modifiers, |
113 const PP_FloatPoint* wheel_delta, | 105 const PP_FloatPoint* wheel_delta, |
114 const PP_FloatPoint* wheel_ticks, | 106 const PP_FloatPoint* wheel_ticks, |
115 PP_Bool scroll_by_page) = 0; | 107 PP_Bool scroll_by_page) = 0; |
116 | 108 |
117 virtual PP_Resource CreateAudio(PP_Instance instance, | 109 virtual PP_Resource CreateAudio(PP_Instance instance, |
118 PP_Resource config_id, | 110 PP_Resource config_id, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; | 172 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; |
181 #endif // !defined(OS_NACL) | 173 #endif // !defined(OS_NACL) |
182 | 174 |
183 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 175 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
184 }; | 176 }; |
185 | 177 |
186 } // namespace thunk | 178 } // namespace thunk |
187 } // namespace ppapi | 179 } // namespace ppapi |
188 | 180 |
189 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 181 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |