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 28 matching lines...) Expand all Loading... |
39 // API", meaning all calls are routed on a per-resource-object basis. The | 39 // API", meaning all calls are routed on a per-resource-object basis. The |
40 // creation functions are not per-object (since there's no object during | 40 // creation functions are not per-object (since there's no object during |
41 // creation) so need functional routing based on the instance ID. | 41 // creation) so need functional routing based on the instance ID. |
42 class ResourceCreationAPI { | 42 class ResourceCreationAPI { |
43 public: | 43 public: |
44 virtual ~ResourceCreationAPI() {} | 44 virtual ~ResourceCreationAPI() {} |
45 | 45 |
46 virtual PP_Resource CreateDirectoryReader(PP_Instance instance, | 46 virtual PP_Resource CreateDirectoryReader(PP_Instance instance, |
47 PP_Resource directory_ref) = 0; | 47 PP_Resource directory_ref) = 0; |
48 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; | 48 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; |
49 virtual PP_Resource CreateFileRef(PP_Resource file_system, | 49 virtual PP_Resource CreateFileRef(PP_Instance instance, |
| 50 PP_Resource file_system, |
50 const char* path) = 0; | 51 const char* path) = 0; |
51 virtual PP_Resource CreateFileSystem(PP_Instance instance, | 52 virtual PP_Resource CreateFileSystem(PP_Instance instance, |
52 PP_FileSystemType type) = 0; | 53 PP_FileSystemType type) = 0; |
53 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, | 54 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, |
54 PP_InputEvent_Type type, | 55 PP_InputEvent_Type type, |
55 PP_TimeTicks time_stamp, | 56 PP_TimeTicks time_stamp, |
56 struct PP_Var text, | 57 struct PP_Var text, |
57 uint32_t segment_number, | 58 uint32_t segment_number, |
58 const uint32_t* segment_offsets, | 59 const uint32_t* segment_offsets, |
59 int32_t target_segment, | 60 int32_t target_segment, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 PP_VideoDecoder_Profile profile) = 0; | 171 PP_VideoDecoder_Profile profile) = 0; |
171 #endif // !defined(OS_NACL) | 172 #endif // !defined(OS_NACL) |
172 | 173 |
173 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 174 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
174 }; | 175 }; |
175 | 176 |
176 } // namespace thunk | 177 } // namespace thunk |
177 } // namespace ppapi | 178 } // namespace ppapi |
178 | 179 |
179 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 180 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |