| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 PPB_Audio_Callback audio_callback, | 112 PPB_Audio_Callback audio_callback, |
| 113 void* user_data) = 0; | 113 void* user_data) = 0; |
| 114 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; | 114 virtual PP_Resource CreateAudioTrusted(PP_Instance instance) = 0; |
| 115 virtual PP_Resource CreateAudioConfig(PP_Instance instance, | 115 virtual PP_Resource CreateAudioConfig(PP_Instance instance, |
| 116 PP_AudioSampleRate sample_rate, | 116 PP_AudioSampleRate sample_rate, |
| 117 uint32_t sample_frame_count) = 0; | 117 uint32_t sample_frame_count) = 0; |
| 118 virtual PP_Resource CreateFileChooser(PP_Instance instance, | 118 virtual PP_Resource CreateFileChooser(PP_Instance instance, |
| 119 PP_FileChooserMode_Dev mode, | 119 PP_FileChooserMode_Dev mode, |
| 120 const PP_Var& accept_types) = 0; | 120 const PP_Var& accept_types) = 0; |
| 121 virtual PP_Resource CreateGraphics2D(PP_Instance instance, | 121 virtual PP_Resource CreateGraphics2D(PP_Instance instance, |
| 122 const PP_Size& size, | 122 const PP_Size* size, |
| 123 PP_Bool is_always_opaque) = 0; | 123 PP_Bool is_always_opaque) = 0; |
| 124 virtual PP_Resource CreateGraphics3D(PP_Instance instance, | 124 virtual PP_Resource CreateGraphics3D(PP_Instance instance, |
| 125 PP_Resource share_context, | 125 PP_Resource share_context, |
| 126 const int32_t* attrib_list) = 0; | 126 const int32_t* attrib_list) = 0; |
| 127 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, | 127 virtual PP_Resource CreateGraphics3DRaw(PP_Instance instance, |
| 128 PP_Resource share_context, | 128 PP_Resource share_context, |
| 129 const int32_t* attrib_list) = 0; | 129 const int32_t* attrib_list) = 0; |
| 130 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; | 130 virtual PP_Resource CreateHostResolverPrivate(PP_Instance instance) = 0; |
| 131 virtual PP_Resource CreateImageData(PP_Instance instance, | 131 virtual PP_Resource CreateImageData(PP_Instance instance, |
| 132 PP_ImageDataFormat format, | 132 PP_ImageDataFormat format, |
| (...skipping 38 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 |