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

Side by Side Diff: ppapi/proxy/ppb_flash_proxy.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
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_PROXY_PPB_FLASH_PROXY_H_ 5 #ifndef PPAPI_PROXY_PPB_FLASH_PROXY_H_
6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_ 6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 PP_Resource pp_image_data, 57 PP_Resource pp_image_data,
58 const PP_FontDescription_Dev* font_desc, 58 const PP_FontDescription_Dev* font_desc,
59 uint32_t color, 59 uint32_t color,
60 const PP_Point* position, 60 const PP_Point* position,
61 const PP_Rect* clip, 61 const PP_Rect* clip,
62 const float transformation[3][3], 62 const float transformation[3][3],
63 PP_Bool allow_subpixel_aa, 63 PP_Bool allow_subpixel_aa,
64 uint32_t glyph_count, 64 uint32_t glyph_count,
65 const uint16_t glyph_indices[], 65 const uint16_t glyph_indices[],
66 const PP_Point glyph_advances[]) OVERRIDE; 66 const PP_Point glyph_advances[]) OVERRIDE;
67 virtual PP_Var GetProxyForURL(PP_Instance instance, const char* url) OVERRIDE;
68 virtual int32_t Navigate(PP_Instance instance, 67 virtual int32_t Navigate(PP_Instance instance,
69 PP_Resource request_info, 68 PP_Resource request_info,
70 const char* target, 69 const char* target,
71 PP_Bool from_user_action) OVERRIDE; 70 PP_Bool from_user_action) OVERRIDE;
72 virtual int32_t Navigate(PP_Instance instance, 71 virtual int32_t Navigate(PP_Instance instance,
73 const URLRequestInfoData& data, 72 const URLRequestInfoData& data,
74 const char* target, 73 const char* target,
75 PP_Bool from_user_action) OVERRIDE; 74 PP_Bool from_user_action) OVERRIDE;
76 virtual double GetLocalTimeZoneOffset(PP_Instance instance, 75 virtual double GetLocalTimeZoneOffset(PP_Instance instance,
77 PP_Time t) OVERRIDE; 76 PP_Time t) OVERRIDE;
78 virtual PP_Bool IsRectTopmost(PP_Instance instance, 77 virtual PP_Bool IsRectTopmost(PP_Instance instance,
79 const PP_Rect* rect) OVERRIDE; 78 const PP_Rect* rect) OVERRIDE;
80 virtual void UpdateActivity(PP_Instance instance) OVERRIDE;
81 virtual PP_Var GetSetting(PP_Instance instance, 79 virtual PP_Var GetSetting(PP_Instance instance,
82 PP_FlashSetting setting) OVERRIDE; 80 PP_FlashSetting setting) OVERRIDE;
83 virtual PP_Bool SetCrashData(PP_Instance instance,
84 PP_FlashCrashKey key,
85 PP_Var value) OVERRIDE;
86 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) OVERRIDE; 81 virtual bool CreateThreadAdapterForInstance(PP_Instance instance) OVERRIDE;
87 virtual void ClearThreadAdapterForInstance(PP_Instance instance) OVERRIDE; 82 virtual void ClearThreadAdapterForInstance(PP_Instance instance) OVERRIDE;
88 virtual int32_t OpenFile(PP_Instance instance, 83 virtual int32_t OpenFile(PP_Instance instance,
89 const char* path, 84 const char* path,
90 int32_t mode, 85 int32_t mode,
91 PP_FileHandle* file) OVERRIDE; 86 PP_FileHandle* file) OVERRIDE;
92 virtual int32_t RenameFile(PP_Instance instance, 87 virtual int32_t RenameFile(PP_Instance instance,
93 const char* path_from, 88 const char* path_from,
94 const char* path_to) OVERRIDE; 89 const char* path_to) OVERRIDE;
95 virtual int32_t DeleteFileOrDir(PP_Instance instance, 90 virtual int32_t DeleteFileOrDir(PP_Instance instance,
(...skipping 23 matching lines...) Expand all
119 114
120 static const ApiID kApiID = API_ID_PPB_FLASH; 115 static const ApiID kApiID = API_ID_PPB_FLASH;
121 116
122 private: 117 private:
123 // Message handlers. 118 // Message handlers.
124 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, 119 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance,
125 PP_Bool on_top); 120 PP_Bool on_top);
126 void OnHostMsgDrawGlyphs(PP_Instance instance, 121 void OnHostMsgDrawGlyphs(PP_Instance instance,
127 const PPBFlash_DrawGlyphs_Params& params, 122 const PPBFlash_DrawGlyphs_Params& params,
128 PP_Bool* result); 123 PP_Bool* result);
129 void OnHostMsgGetProxyForURL(PP_Instance instance,
130 const std::string& url,
131 SerializedVarReturnValue result);
132 void OnHostMsgNavigate(PP_Instance instance, 124 void OnHostMsgNavigate(PP_Instance instance,
133 const URLRequestInfoData& data, 125 const URLRequestInfoData& data,
134 const std::string& target, 126 const std::string& target,
135 PP_Bool from_user_action, 127 PP_Bool from_user_action,
136 int32_t* result); 128 int32_t* result);
137 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, 129 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t,
138 double* result); 130 double* result);
139 void OnHostMsgIsRectTopmost(PP_Instance instance, 131 void OnHostMsgIsRectTopmost(PP_Instance instance,
140 PP_Rect rect, 132 PP_Rect rect,
141 PP_Bool* result); 133 PP_Bool* result);
(...skipping 17 matching lines...) Expand all
159 SerializedVarReturnValue result); 151 SerializedVarReturnValue result);
160 void OnHostMsgInvokePrinting(PP_Instance instance); 152 void OnHostMsgInvokePrinting(PP_Instance instance);
161 153
162 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); 154 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy);
163 }; 155 };
164 156
165 } // namespace proxy 157 } // namespace proxy
166 } // namespace ppapi 158 } // namespace ppapi
167 159
168 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ 160 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698