| 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_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/dev/ppb_video_layer_dev.h" | 9 #include "ppapi/c/dev/ppb_video_layer_dev.h" |
| 10 #include "ppapi/c/pp_bool.h" | 10 #include "ppapi/c/pp_bool.h" |
| 11 #include "ppapi/c/pp_instance.h" | 11 #include "ppapi/c/pp_instance.h" |
| 12 #include "ppapi/c/pp_resource.h" | 12 #include "ppapi/c/pp_resource.h" |
| 13 #include "ppapi/c/ppb_audio.h" | 13 #include "ppapi/c/ppb_audio.h" |
| 14 #include "ppapi/c/ppb_audio_config.h" | 14 #include "ppapi/c/ppb_audio_config.h" |
| 15 #include "ppapi/c/ppb_file_system.h" | 15 #include "ppapi/c/ppb_file_system.h" |
| 16 #include "ppapi/c/ppb_graphics_3d.h" | 16 #include "ppapi/c/ppb_graphics_3d.h" |
| 17 #include "ppapi/c/ppb_image_data.h" | 17 #include "ppapi/c/ppb_image_data.h" |
| 18 #include "ppapi/c/ppb_input_event.h" | 18 #include "ppapi/c/ppb_input_event.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_hello_dev.h" |
| 20 #include "ppapi/c/dev/ppb_transport_dev.h" | 21 #include "ppapi/c/dev/ppb_transport_dev.h" |
| 21 #include "ppapi/shared_impl/api_id.h" | 22 #include "ppapi/shared_impl/api_id.h" |
| 22 | 23 |
| 23 struct PP_Flash_Menu; | 24 struct PP_Flash_Menu; |
| 24 struct PP_FontDescription_Dev; | 25 struct PP_FontDescription_Dev; |
| 25 struct PP_Size; | 26 struct PP_Size; |
| 26 | 27 |
| 27 namespace ppapi { | 28 namespace ppapi { |
| 28 | 29 |
| 29 struct PPB_URLRequestInfo_Data; | 30 struct PPB_URLRequestInfo_Data; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 const PP_FontDescription_Dev* description) = 0; | 79 const PP_FontDescription_Dev* description) = 0; |
| 79 virtual PP_Resource CreateGraphics2D(PP_Instance instance, | 80 virtual PP_Resource CreateGraphics2D(PP_Instance instance, |
| 80 const PP_Size& size, | 81 const PP_Size& size, |
| 81 PP_Bool is_always_opaque) = 0; | 82 PP_Bool is_always_opaque) = 0; |
| 82 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 83 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
| 83 PP_Resource share_context, | 84 PP_Resource share_context, |
| 84 const int32_t* attrib_list) = 0; | 85 const int32_t* attrib_list) = 0; |
| 85 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, | 86 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, |
| 86 PP_Resource share_context, | 87 PP_Resource share_context, |
| 87 const int32_t* attrib_list) = 0; | 88 const int32_t* attrib_list) = 0; |
| 89 virtual PP_Resource CreateHello(PP_Instance instance) = 0; |
| 88 virtual PP_Resource CreateImageData(PP_Instance instance, | 90 virtual PP_Resource CreateImageData(PP_Instance instance, |
| 89 PP_ImageDataFormat format, | 91 PP_ImageDataFormat format, |
| 90 const PP_Size& size, | 92 const PP_Size& size, |
| 91 PP_Bool init_to_zero) = 0; | 93 PP_Bool init_to_zero) = 0; |
| 92 virtual PP_Resource CreateKeyboardInputEvent( | 94 virtual PP_Resource CreateKeyboardInputEvent( |
| 93 PP_Instance instance, | 95 PP_Instance instance, |
| 94 PP_InputEvent_Type type, | 96 PP_InputEvent_Type type, |
| 95 PP_TimeTicks time_stamp, | 97 PP_TimeTicks time_stamp, |
| 96 uint32_t modifiers, | 98 uint32_t modifiers, |
| 97 uint32_t key_code, | 99 uint32_t key_code, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 const PP_FloatPoint* wheel_ticks, | 134 const PP_FloatPoint* wheel_ticks, |
| 133 PP_Bool scroll_by_page) = 0; | 135 PP_Bool scroll_by_page) = 0; |
| 134 | 136 |
| 135 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 137 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
| 136 }; | 138 }; |
| 137 | 139 |
| 138 } // namespace thunk | 140 } // namespace thunk |
| 139 } // namespace ppapi | 141 } // namespace ppapi |
| 140 | 142 |
| 141 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 143 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |