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

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

Issue 11415140: Refactor 3 PPB_Flash functions to the new resource model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years 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
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.cc ('k') | ppapi/thunk/ppb_flash_functions_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 22 matching lines...) Expand all
33 PP_Resource pp_image_data, 33 PP_Resource pp_image_data,
34 const PP_FontDescription_Dev* font_desc, 34 const PP_FontDescription_Dev* font_desc,
35 uint32_t color, 35 uint32_t color,
36 const PP_Point* position, 36 const PP_Point* position,
37 const PP_Rect* clip, 37 const PP_Rect* clip,
38 const float transformation[3][3], 38 const float transformation[3][3],
39 PP_Bool allow_subpixel_aa, 39 PP_Bool allow_subpixel_aa,
40 uint32_t glyph_count, 40 uint32_t glyph_count,
41 const uint16_t glyph_indices[], 41 const uint16_t glyph_indices[],
42 const PP_Point glyph_advances[]) = 0; 42 const PP_Point glyph_advances[]) = 0;
43 virtual PP_Var GetProxyForURL(PP_Instance instance, const char* url) = 0;
44 43
45 // External function that takes a PPB_URLRequestInfo resource. 44 // External function that takes a PPB_URLRequestInfo resource.
46 virtual int32_t Navigate(PP_Instance instance, 45 virtual int32_t Navigate(PP_Instance instance,
47 PP_Resource request_info, 46 PP_Resource request_info,
48 const char* target, 47 const char* target,
49 PP_Bool from_user_action) = 0; 48 PP_Bool from_user_action) = 0;
50 49
51 // Internal navigate function that takes a URLRequestInfoData. 50 // Internal navigate function that takes a URLRequestInfoData.
52 virtual int32_t Navigate(PP_Instance instance, 51 virtual int32_t Navigate(PP_Instance instance,
53 const URLRequestInfoData& data, 52 const URLRequestInfoData& data,
54 const char* target, 53 const char* target,
55 PP_Bool from_user_action) = 0; 54 PP_Bool from_user_action) = 0;
56 55
57 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; 56 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0;
58 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;
59 virtual void UpdateActivity(PP_Instance instance) = 0;
60 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; 58 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0;
61 virtual PP_Bool SetCrashData(PP_Instance instance,
62 PP_FlashCrashKey key,
63 PP_Var value) = 0;
64 59
65 // FlashFile_ModuleLocal. 60 // FlashFile_ModuleLocal.
66 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) = 0; 61 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) = 0;
67 virtual void ClearThreadAdapterForInstance(PP_Instance instance) = 0; 62 virtual void ClearThreadAdapterForInstance(PP_Instance instance) = 0;
68 virtual int32_t OpenFile(PP_Instance instance, 63 virtual int32_t OpenFile(PP_Instance instance,
69 const char* path, 64 const char* path,
70 int32_t mode, 65 int32_t mode,
71 PP_FileHandle* file) = 0; 66 PP_FileHandle* file) = 0;
72 virtual int32_t RenameFile(PP_Instance instance, 67 virtual int32_t RenameFile(PP_Instance instance,
73 const char* path_from, 68 const char* path_from,
(...skipping 20 matching lines...) Expand all
94 PP_FileHandle* file) = 0; 89 PP_FileHandle* file) = 0;
95 virtual int32_t QueryFileRef(PP_Instance instance, 90 virtual int32_t QueryFileRef(PP_Instance instance,
96 PP_Resource file_ref, 91 PP_Resource file_ref,
97 PP_FileInfo* info) = 0; 92 PP_FileInfo* info) = 0;
98 }; 93 };
99 94
100 } // namespace thunk 95 } // namespace thunk
101 } // namespace ppapi 96 } // namespace ppapi
102 97
103 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ 98 #endif // PPAPI_THUNK_PPB_FLASH_API_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_flash_proxy.cc ('k') | ppapi/thunk/ppb_flash_functions_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698