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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class ResourceCreationAPI { | 42 class ResourceCreationAPI { |
43 public: | 43 public: |
44 virtual ~ResourceCreationAPI() {} | 44 virtual ~ResourceCreationAPI() {} |
45 | 45 |
46 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; | 46 virtual PP_Resource CreateFileIO(PP_Instance instance) = 0; |
47 virtual PP_Resource CreateFileRef(PP_Instance instance, | 47 virtual PP_Resource CreateFileRef(PP_Instance instance, |
48 PP_Resource file_system, | 48 PP_Resource file_system, |
49 const char* path) = 0; | 49 const char* path) = 0; |
50 virtual PP_Resource CreateFileSystem(PP_Instance instance, | 50 virtual PP_Resource CreateFileSystem(PP_Instance instance, |
51 PP_FileSystemType type) = 0; | 51 PP_FileSystemType type) = 0; |
| 52 virtual PP_Resource CreateIsolatedFileSystem(PP_Instance instance, |
| 53 const char* fsid) = 0; |
52 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, | 54 virtual PP_Resource CreateIMEInputEvent(PP_Instance instance, |
53 PP_InputEvent_Type type, | 55 PP_InputEvent_Type type, |
54 PP_TimeTicks time_stamp, | 56 PP_TimeTicks time_stamp, |
55 struct PP_Var text, | 57 struct PP_Var text, |
56 uint32_t segment_number, | 58 uint32_t segment_number, |
57 const uint32_t* segment_offsets, | 59 const uint32_t* segment_offsets, |
58 int32_t target_segment, | 60 int32_t target_segment, |
59 uint32_t selection_start, | 61 uint32_t selection_start, |
60 uint32_t selection_end) = 0; | 62 uint32_t selection_end) = 0; |
61 virtual PP_Resource CreateKeyboardInputEvent( | 63 virtual PP_Resource CreateKeyboardInputEvent( |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; | 173 virtual PP_Resource CreateVideoSource(PP_Instance instance) = 0; |
172 #endif // !defined(OS_NACL) | 174 #endif // !defined(OS_NACL) |
173 | 175 |
174 static const ApiID kApiID = API_ID_RESOURCE_CREATION; | 176 static const ApiID kApiID = API_ID_RESOURCE_CREATION; |
175 }; | 177 }; |
176 | 178 |
177 } // namespace thunk | 179 } // namespace thunk |
178 } // namespace ppapi | 180 } // namespace ppapi |
179 | 181 |
180 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ | 182 #endif // PPAPI_THUNK_RESOURCE_CREATION_API_H_ |
OLD | NEW |