Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Side by Side Diff: ppapi/thunk/ppb_flash_api.h

Issue 11359097: Refactored the PPB_Flash_File_ModuleLocal/FileRef to the new ppapi resource model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; 60 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0;
61 virtual void UpdateActivity(PP_Instance instance) = 0; 61 virtual void UpdateActivity(PP_Instance instance) = 0;
62 virtual PP_Var GetDeviceID(PP_Instance instance) = 0; 62 virtual PP_Var GetDeviceID(PP_Instance instance) = 0;
63 virtual int32_t GetSettingInt(PP_Instance instance, 63 virtual int32_t GetSettingInt(PP_Instance instance,
64 PP_FlashSetting setting) = 0; 64 PP_FlashSetting setting) = 0;
65 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; 65 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0;
66 virtual PP_Bool SetCrashData(PP_Instance instance, 66 virtual PP_Bool SetCrashData(PP_Instance instance,
67 PP_FlashCrashKey key, 67 PP_FlashCrashKey key,
68 PP_Var value) = 0; 68 PP_Var value) = 0;
69 69
70 // FlashFile_ModuleLocal.
71 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) = 0;
72 virtual void ClearThreadAdapterForInstance(PP_Instance instance) = 0;
73 virtual int32_t OpenFile(PP_Instance instance,
74 const char* path,
75 int32_t mode,
76 PP_FileHandle* file) = 0;
77 virtual int32_t RenameFile(PP_Instance instance,
78 const char* path_from,
79 const char* path_to) = 0;
80 virtual int32_t DeleteFileOrDir(PP_Instance instance,
81 const char* path,
82 PP_Bool recursive) = 0;
83 virtual int32_t CreateDir(PP_Instance instance, const char* path) = 0;
84 virtual int32_t QueryFile(PP_Instance instance,
85 const char* path,
86 PP_FileInfo* info) = 0;
87 virtual int32_t GetDirContents(PP_Instance instance,
88 const char* path,
89 PP_DirContents_Dev** contents) = 0;
90 virtual void FreeDirContents(PP_Instance instance,
91 PP_DirContents_Dev* contents) = 0;
92 virtual int32_t CreateTemporaryFile(PP_Instance instance,
93 PP_FileHandle* file) = 0;
94
95 // FlashFile_FileRef.
96 virtual int32_t OpenFileRef(PP_Instance instance,
97 PP_Resource file_ref,
98 int32_t mode,
99 PP_FileHandle* file) = 0;
100 virtual int32_t QueryFileRef(PP_Instance instance,
101 PP_Resource file_ref,
102 PP_FileInfo* info) = 0;
103
104 // FlashFullscreen. 70 // FlashFullscreen.
105 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; 71 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0;
106 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, 72 virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
107 PP_Bool fullscreen) = 0; 73 PP_Bool fullscreen) = 0;
108 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; 74 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0;
109 }; 75 };
110 76
111 } // namespace thunk 77 } // namespace thunk
112 } // namespace ppapi 78 } // namespace ppapi
113 79
114 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ 80 #endif // PPAPI_THUNK_PPB_FLASH_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698