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_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 Loading... |
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 18 matching lines...) Expand all Loading... |
114 | 109 |
115 static const ApiID kApiID = API_ID_PPB_FLASH; | 110 static const ApiID kApiID = API_ID_PPB_FLASH; |
116 | 111 |
117 private: | 112 private: |
118 // Message handlers. | 113 // Message handlers. |
119 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, | 114 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, |
120 PP_Bool on_top); | 115 PP_Bool on_top); |
121 void OnHostMsgDrawGlyphs(PP_Instance instance, | 116 void OnHostMsgDrawGlyphs(PP_Instance instance, |
122 const PPBFlash_DrawGlyphs_Params& params, | 117 const PPBFlash_DrawGlyphs_Params& params, |
123 PP_Bool* result); | 118 PP_Bool* result); |
124 void OnHostMsgGetProxyForURL(PP_Instance instance, | |
125 const std::string& url, | |
126 SerializedVarReturnValue result); | |
127 void OnHostMsgNavigate(PP_Instance instance, | 119 void OnHostMsgNavigate(PP_Instance instance, |
128 const URLRequestInfoData& data, | 120 const URLRequestInfoData& data, |
129 const std::string& target, | 121 const std::string& target, |
130 PP_Bool from_user_action, | 122 PP_Bool from_user_action, |
131 int32_t* result); | 123 int32_t* result); |
132 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, | 124 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, |
133 double* result); | 125 double* result); |
134 void OnHostMsgIsRectTopmost(PP_Instance instance, | 126 void OnHostMsgIsRectTopmost(PP_Instance instance, |
135 PP_Rect rect, | 127 PP_Rect rect, |
136 PP_Bool* result); | 128 PP_Bool* result); |
(...skipping 11 matching lines...) Expand all Loading... |
148 SerializedVarReturnValue result); | 140 SerializedVarReturnValue result); |
149 void OnHostMsgInvokePrinting(PP_Instance instance); | 141 void OnHostMsgInvokePrinting(PP_Instance instance); |
150 | 142 |
151 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); | 143 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); |
152 }; | 144 }; |
153 | 145 |
154 } // namespace proxy | 146 } // namespace proxy |
155 } // namespace ppapi | 147 } // namespace ppapi |
156 | 148 |
157 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 149 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
OLD | NEW |