| 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" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 PP_FileChooserMode_Dev mode, | 63 PP_FileChooserMode_Dev mode, |
| 64 const char* accept_mime_types) = 0; | 64 const char* accept_mime_types) = 0; |
| 65 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; | 65 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; |
| 66 virtual PP_Resource CreateFileRef(PP_Resource file_system, | 66 virtual PP_Resource CreateFileRef(PP_Resource file_system, |
| 67 const char* path) = 0; | 67 const char* path) = 0; |
| 68 virtual PP_Resource CreateFileSystem(PP_Instance instance, | 68 virtual PP_Resource CreateFileSystem(PP_Instance instance, |
| 69 PP_FileSystemType type) = 0; | 69 PP_FileSystemType type) = 0; |
| 70 virtual PP_Resource CreateFlashMenu(PP_Instance instance, | 70 virtual PP_Resource CreateFlashMenu(PP_Instance instance, |
| 71 const PP_Flash_Menu* menu_data) = 0; | 71 const PP_Flash_Menu* menu_data) = 0; |
| 72 virtual PP_Resource CreateFlashNetConnector(PP_Instance instance) = 0; | 72 virtual PP_Resource CreateFlashNetConnector(PP_Instance instance) = 0; |
| 73 virtual PP_Resource CreateFlashTCPSocket(PP_Instance instace) = 0; | |
| 74 virtual PP_Resource CreateFlashUDPSocket(PP_Instance instace) = 0; | |
| 75 // Note: can't be called CreateFont due to Windows #defines. | 73 // Note: can't be called CreateFont due to Windows #defines. |
| 76 virtual PP_Resource CreateFontObject( | 74 virtual PP_Resource CreateFontObject( |
| 77 PP_Instance instance, | 75 PP_Instance instance, |
| 78 const PP_FontDescription_Dev* description) = 0; | 76 const PP_FontDescription_Dev* description) = 0; |
| 79 virtual PP_Resource CreateGraphics2D(PP_Instance instance, | 77 virtual PP_Resource CreateGraphics2D(PP_Instance instance, |
| 80 const PP_Size& size, | 78 const PP_Size& size, |
| 81 PP_Bool is_always_opaque) = 0; | 79 PP_Bool is_always_opaque) = 0; |
| 82 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 80 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
| 83 PP_Resource share_context, | 81 PP_Resource share_context, |
| 84 const int32_t* attrib_list) = 0; | 82 const int32_t* attrib_list) = 0; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 103 uint32_t modifiers, | 101 uint32_t modifiers, |
| 104 PP_InputEvent_MouseButton mouse_button, | 102 PP_InputEvent_MouseButton mouse_button, |
| 105 const PP_Point* mouse_position, | 103 const PP_Point* mouse_position, |
| 106 int32_t click_count, | 104 int32_t click_count, |
| 107 const PP_Point* mouse_movement) = 0; | 105 const PP_Point* mouse_movement) = 0; |
| 108 virtual PP_Resource CreateScrollbar(PP_Instance instance, | 106 virtual PP_Resource CreateScrollbar(PP_Instance instance, |
| 109 PP_Bool vertical) = 0; | 107 PP_Bool vertical) = 0; |
| 110 virtual PP_Resource CreateSurface3D(PP_Instance instance, | 108 virtual PP_Resource CreateSurface3D(PP_Instance instance, |
| 111 PP_Config3D_Dev config, | 109 PP_Config3D_Dev config, |
| 112 const int32_t* attrib_list) = 0; | 110 const int32_t* attrib_list) = 0; |
| 111 virtual PP_Resource CreateTCPSocketPrivate(PP_Instance instace) = 0; |
| 113 virtual PP_Resource CreateTransport(PP_Instance instance, | 112 virtual PP_Resource CreateTransport(PP_Instance instance, |
| 114 const char* name, | 113 const char* name, |
| 115 PP_TransportType type) = 0; | 114 PP_TransportType type) = 0; |
| 115 virtual PP_Resource CreateUDPSocketPrivate(PP_Instance instace) = 0; |
| 116 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; | 116 virtual PP_Resource CreateURLLoader(PP_Instance instance) = 0; |
| 117 virtual PP_Resource CreateURLRequestInfo( | 117 virtual PP_Resource CreateURLRequestInfo( |
| 118 PP_Instance instance, | 118 PP_Instance instance, |
| 119 const PPB_URLRequestInfo_Data& data) = 0; | 119 const PPB_URLRequestInfo_Data& data) = 0; |
| 120 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0; | 120 virtual PP_Resource CreateVideoCapture(PP_Instance instance) = 0; |
| 121 virtual PP_Resource CreateVideoDecoder( | 121 virtual PP_Resource CreateVideoDecoder( |
| 122 PP_Instance instance, | 122 PP_Instance instance, |
| 123 PP_Resource context3d_id, | 123 PP_Resource context3d_id, |
| 124 PP_VideoDecoder_Profile profile) = 0; | 124 PP_VideoDecoder_Profile profile) = 0; |
| 125 virtual PP_Resource CreateVideoLayer(PP_Instance instance, | 125 virtual PP_Resource CreateVideoLayer(PP_Instance instance, |
| 126 PP_VideoLayerMode_Dev mode) = 0; | 126 PP_VideoLayerMode_Dev mode) = 0; |
| 127 virtual PP_Resource CreateWheelInputEvent( | 127 virtual PP_Resource CreateWheelInputEvent( |
| 128 PP_Instance instance, | 128 PP_Instance instance, |
| 129 PP_TimeTicks time_stamp, | 129 PP_TimeTicks time_stamp, |
| 130 uint32_t modifiers, | 130 uint32_t modifiers, |
| 131 const PP_FloatPoint* wheel_delta, | 131 const PP_FloatPoint* wheel_delta, |
| 132 const PP_FloatPoint* wheel_ticks, | 132 const PP_FloatPoint* wheel_ticks, |
| 133 PP_Bool scroll_by_page) = 0; | 133 PP_Bool scroll_by_page) = 0; |
| 134 | 134 |
| 135 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 135 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace thunk | 138 } // namespace thunk |
| 139 } // namespace ppapi | 139 } // namespace ppapi |
| 140 | 140 |
| 141 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 141 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
| OLD | NEW |