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_PPB_FLASH_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_FLASH_API_H_ |
6 #define PPAPI_THUNK_PPB_FLASH_API_H_ | 6 #define PPAPI_THUNK_PPB_FLASH_API_H_ |
7 | 7 |
8 #include "ppapi/c/private/ppb_flash.h" | 8 #include "ppapi/c/private/ppb_flash.h" |
9 #include "ppapi/c/private/ppb_flash_file.h" | 9 #include "ppapi/c/private/ppb_flash_file.h" |
10 #include "ppapi/thunk/ppapi_thunk_export.h" | 10 #include "ppapi/thunk/ppapi_thunk_export.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // Internal navigate function that takes a URLRequestInfoData. | 50 // Internal navigate function that takes a URLRequestInfoData. |
51 virtual int32_t Navigate(PP_Instance instance, | 51 virtual int32_t Navigate(PP_Instance instance, |
52 const URLRequestInfoData& data, | 52 const URLRequestInfoData& data, |
53 const char* target, | 53 const char* target, |
54 PP_Bool from_user_action) = 0; | 54 PP_Bool from_user_action) = 0; |
55 | 55 |
56 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; | 56 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; |
57 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; | 57 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; |
58 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; | 58 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; |
| 59 |
| 60 // FlashFile_ModuleLocal. |
| 61 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) = 0; |
| 62 virtual void ClearThreadAdapterForInstance(PP_Instance instance) = 0; |
| 63 virtual int32_t OpenFile(PP_Instance instance, |
| 64 const char* path, |
| 65 int32_t mode, |
| 66 PP_FileHandle* file) = 0; |
| 67 virtual int32_t RenameFile(PP_Instance instance, |
| 68 const char* path_from, |
| 69 const char* path_to) = 0; |
| 70 virtual int32_t DeleteFileOrDir(PP_Instance instance, |
| 71 const char* path, |
| 72 PP_Bool recursive) = 0; |
| 73 virtual int32_t CreateDir(PP_Instance instance, const char* path) = 0; |
| 74 virtual int32_t QueryFile(PP_Instance instance, |
| 75 const char* path, |
| 76 PP_FileInfo* info) = 0; |
| 77 virtual int32_t GetDirContents(PP_Instance instance, |
| 78 const char* path, |
| 79 PP_DirContents_Dev** contents) = 0; |
| 80 virtual void FreeDirContents(PP_Instance instance, |
| 81 PP_DirContents_Dev* contents) = 0; |
| 82 virtual int32_t CreateTemporaryFile(PP_Instance instance, |
| 83 PP_FileHandle* file) = 0; |
| 84 |
| 85 // FlashFile_FileRef. |
| 86 virtual int32_t OpenFileRef(PP_Instance instance, |
| 87 PP_Resource file_ref, |
| 88 int32_t mode, |
| 89 PP_FileHandle* file) = 0; |
| 90 virtual int32_t QueryFileRef(PP_Instance instance, |
| 91 PP_Resource file_ref, |
| 92 PP_FileInfo* info) = 0; |
59 }; | 93 }; |
60 | 94 |
61 } // namespace thunk | 95 } // namespace thunk |
62 } // namespace ppapi | 96 } // namespace ppapi |
63 | 97 |
64 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ | 98 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ |
OLD | NEW |