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_clipboard.h" | 9 #include "ppapi/c/private/ppb_flash_clipboard.h" |
| 10 #include "ppapi/c/private/ppb_flash_file.h" |
10 #include "ppapi/thunk/ppapi_thunk_export.h" | 11 #include "ppapi/thunk/ppapi_thunk_export.h" |
11 | 12 |
12 namespace ppapi { | 13 namespace ppapi { |
13 namespace thunk { | 14 namespace thunk { |
14 | 15 |
15 // This class collects all of the Flash interface-related APIs into one place. | 16 // This class collects all of the Flash interface-related APIs into one place. |
16 class PPAPI_THUNK_EXPORT PPB_Flash_API { | 17 class PPAPI_THUNK_EXPORT PPB_Flash_API { |
17 public: | 18 public: |
18 virtual ~PPB_Flash_API() {} | 19 virtual ~PPB_Flash_API() {} |
19 | 20 |
(...skipping 30 matching lines...) Expand all Loading... |
50 PP_Flash_Clipboard_Format format) = 0; | 51 PP_Flash_Clipboard_Format format) = 0; |
51 virtual PP_Var ReadClipboardData(PP_Instance instance, | 52 virtual PP_Var ReadClipboardData(PP_Instance instance, |
52 PP_Flash_Clipboard_Type clipboard_type, | 53 PP_Flash_Clipboard_Type clipboard_type, |
53 PP_Flash_Clipboard_Format format) = 0; | 54 PP_Flash_Clipboard_Format format) = 0; |
54 virtual int32_t WriteClipboardData(PP_Instance instance, | 55 virtual int32_t WriteClipboardData(PP_Instance instance, |
55 PP_Flash_Clipboard_Type clipboard_type, | 56 PP_Flash_Clipboard_Type clipboard_type, |
56 uint32_t data_item_count, | 57 uint32_t data_item_count, |
57 const PP_Flash_Clipboard_Format formats[], | 58 const PP_Flash_Clipboard_Format formats[], |
58 const PP_Var data_items[]) = 0; | 59 const PP_Var data_items[]) = 0; |
59 | 60 |
| 61 // FlashFile_ModuleLocal. |
| 62 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) = 0; |
| 63 virtual void ClearThreadAdapterForInstance(PP_Instance instance) = 0; |
| 64 virtual int32_t OpenFile(PP_Instance instance, |
| 65 const char* path, |
| 66 int32_t mode, |
| 67 PP_FileHandle* file) = 0; |
| 68 virtual int32_t RenameFile(PP_Instance instance, |
| 69 const char* path_from, |
| 70 const char* path_to) = 0; |
| 71 virtual int32_t DeleteFileOrDir(PP_Instance instance, |
| 72 const char* path, |
| 73 PP_Bool recursive) = 0; |
| 74 virtual int32_t CreateDir(PP_Instance instance, const char* path) = 0; |
| 75 virtual int32_t QueryFile(PP_Instance instance, |
| 76 const char* path, |
| 77 PP_FileInfo* info) = 0; |
| 78 virtual int32_t GetDirContents(PP_Instance instance, |
| 79 const char* path, |
| 80 PP_DirContents_Dev** contents) = 0; |
| 81 virtual void FreeDirContents(PP_Instance instance, |
| 82 PP_DirContents_Dev* contents) = 0; |
| 83 |
| 84 // FlashFile_FileRef. |
| 85 virtual int32_t OpenFileRef(PP_Instance instance, |
| 86 PP_Resource file_ref, |
| 87 int32_t mode, |
| 88 PP_FileHandle* file) = 0; |
| 89 virtual int32_t QueryFileRef(PP_Instance instance, |
| 90 PP_Resource file_ref, |
| 91 PP_FileInfo* info) = 0; |
| 92 |
60 // FlashFullscreen. | 93 // FlashFullscreen. |
61 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; | 94 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; |
62 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, | 95 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, |
63 PP_Bool fullscreen) = 0; | 96 PP_Bool fullscreen) = 0; |
64 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 97 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
65 }; | 98 }; |
66 | 99 |
67 } // namespace thunk | 100 } // namespace thunk |
68 } // namespace ppapi | 101 } // namespace ppapi |
69 | 102 |
70 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ | 103 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ |
OLD | NEW |