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" |
11 #include "ppapi/c/pp_resource.h" | 11 #include "ppapi/c/pp_resource.h" |
12 #include "ppapi/c/ppb_audio.h" | 12 #include "ppapi/c/ppb_audio.h" |
13 #include "ppapi/c/ppb_audio_config.h" | 13 #include "ppapi/c/ppb_audio_config.h" |
14 #include "ppapi/c/ppb_file_system.h" | 14 #include "ppapi/c/ppb_file_system.h" |
15 #include "ppapi/c/ppb_graphics_3d.h" | 15 #include "ppapi/c/ppb_graphics_3d.h" |
16 #include "ppapi/c/ppb_image_data.h" | 16 #include "ppapi/c/ppb_image_data.h" |
17 #include "ppapi/c/ppb_input_event.h" | 17 #include "ppapi/c/ppb_input_event.h" |
18 #include "ppapi/c/ppb_websocket.h" | 18 #include "ppapi/c/ppb_websocket.h" |
19 #include "ppapi/c/dev/pp_video_dev.h" | 19 #include "ppapi/c/dev/pp_video_dev.h" |
| 20 #include "ppapi/c/dev/ppb_truetype_font_dev.h" |
20 #include "ppapi/c/private/pp_private_font_charset.h" | 21 #include "ppapi/c/private/pp_private_font_charset.h" |
21 #include "ppapi/c/private/ppb_network_monitor_private.h" | 22 #include "ppapi/c/private/ppb_network_monitor_private.h" |
22 #include "ppapi/shared_impl/api_id.h" | 23 #include "ppapi/shared_impl/api_id.h" |
23 | 24 |
24 struct PP_Flash_Menu; | 25 struct PP_Flash_Menu; |
25 struct PP_FontDescription_Dev; | 26 struct PP_FontDescription_Dev; |
26 struct PP_BrowserFont_Trusted_Description; | 27 struct PP_BrowserFont_Trusted_Description; |
27 struct PP_Size; | 28 struct PP_Size; |
28 | 29 |
29 namespace ppapi { | 30 namespace ppapi { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 int32_t click_count, | 74 int32_t click_count, |
74 const PP_Point* mouse_movement) = 0; | 75 const PP_Point* mouse_movement) = 0; |
75 virtual PP_Resource CreateTouchInputEvent( | 76 virtual PP_Resource CreateTouchInputEvent( |
76 PP_Instance instance, | 77 PP_Instance instance, |
77 PP_InputEvent_Type type, | 78 PP_InputEvent_Type type, |
78 PP_TimeTicks time_stamp, | 79 PP_TimeTicks time_stamp, |
79 uint32_t modifiers) = 0; | 80 uint32_t modifiers) = 0; |
80 virtual PP_Resource CreateResourceArray(PP_Instance instance, | 81 virtual PP_Resource CreateResourceArray(PP_Instance instance, |
81 const PP_Resource elements[], | 82 const PP_Resource elements[], |
82 uint32_t size) = 0; | 83 uint32_t size) = 0; |
| 84 virtual PP_Resource CreateTrueTypeFont( |
| 85 PP_Instance instance, |
| 86 const PP_TrueTypeFontDesc_Dev& desc) = 0; |
83 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; | 87 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; |
84 virtual PP_Resource CreateURLRequestInfo( | 88 virtual PP_Resource CreateURLRequestInfo( |
85 PP_Instance instance, | 89 PP_Instance instance, |
86 const URLRequestInfoData& data) = 0; | 90 const URLRequestInfoData& data) = 0; |
87 | 91 |
88 // Passes a reference to the file_ref_resource, which is a process-local | 92 // Passes a reference to the file_ref_resource, which is a process-local |
89 // resource corresponding to the body_as_file_ref host resource in |data|, | 93 // resource corresponding to the body_as_file_ref host resource in |data|, |
90 // if there is one. | 94 // if there is one. |
91 virtual PP_Resource CreateURLResponseInfo( | 95 virtual PP_Resource CreateURLResponseInfo( |
92 PP_Instance instance, | 96 PP_Instance instance, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 PP_VideoDecoder_Profile profile) = 0; | 172 PP_VideoDecoder_Profile profile) = 0; |
169 #endif // !defined(OS_NACL) | 173 #endif // !defined(OS_NACL) |
170 | 174 |
171 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 175 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
172 }; | 176 }; |
173 | 177 |
174 } // namespace thunk | 178 } // namespace thunk |
175 } // namespace ppapi | 179 } // namespace ppapi |
176 | 180 |
177 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 181 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |