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_INSTANCE_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
7 | 7 |
8 #include "ppapi/c/pp_instance.h" | 8 #include "ppapi/c/pp_instance.h" |
9 #include "ppapi/c/pp_resource.h" | 9 #include "ppapi/c/pp_resource.h" |
10 #include "ppapi/c/pp_time.h" | 10 #include "ppapi/c/pp_time.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 PP_TextInput_Type type) OVERRIDE; | 94 PP_TextInput_Type type) OVERRIDE; |
95 virtual void UpdateCaretPosition(PP_Instance instance, | 95 virtual void UpdateCaretPosition(PP_Instance instance, |
96 const PP_Rect& caret, | 96 const PP_Rect& caret, |
97 const PP_Rect& bounding_box) OVERRIDE; | 97 const PP_Rect& bounding_box) OVERRIDE; |
98 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE; | 98 virtual void CancelCompositionText(PP_Instance instance) OVERRIDE; |
99 virtual void SelectionChanged(PP_Instance instance) OVERRIDE; | 99 virtual void SelectionChanged(PP_Instance instance) OVERRIDE; |
100 virtual void UpdateSurroundingText(PP_Instance instance, | 100 virtual void UpdateSurroundingText(PP_Instance instance, |
101 const char* text, | 101 const char* text, |
102 uint32_t caret, | 102 uint32_t caret, |
103 uint32_t anchor) OVERRIDE; | 103 uint32_t anchor) OVERRIDE; |
104 virtual void NeedKey(PP_Instance instance, | |
105 PP_Var key_system, | |
106 PP_Var session_id, | |
107 PP_Var init_data) OVERRIDE; | |
108 virtual void KeyAdded(PP_Instance instance, | |
109 PP_Var key_system, | |
110 PP_Var session_id) OVERRIDE; | |
111 virtual void KeyMessage(PP_Instance instance, | |
112 PP_Var key_system, | |
113 PP_Var session_id, | |
114 PP_Resource message, | |
115 PP_Var default_url) OVERRIDE; | |
116 virtual void KeyError(PP_Instance instance, | |
117 PP_Var key_system, | |
118 PP_Var session_id, | |
119 int32_t media_error, | |
120 int32_t system_error) OVERRIDE; | |
121 virtual void DeliverBlock(PP_Instance instance, | |
122 PP_Resource decrypted_block, | |
123 uint64_t request_id) OVERRIDE; | |
124 virtual void DeliverFrame(PP_Instance instance, | |
125 PP_Resource decrypted_frame, | |
126 uint64_t request_id) OVERRIDE; | |
127 virtual void DeliverSamples(PP_Instance instance, | |
128 PP_Resource decrypted_samples, | |
129 uint64_t request_id) OVERRIDE; | |
104 | 130 |
105 #if !defined(OS_NACL) | 131 #if !defined(OS_NACL) |
dmichael (off chromium)
2012/08/08 03:38:10
please put your stuff inside of the #if !defined(O
Tom Finegan
2012/08/08 19:02:15
Done.
| |
106 virtual PP_Var ResolveRelativeToDocument( | 132 virtual PP_Var ResolveRelativeToDocument( |
107 PP_Instance instance, | 133 PP_Instance instance, |
108 PP_Var relative, | 134 PP_Var relative, |
109 PP_URLComponents_Dev* components) OVERRIDE; | 135 PP_URLComponents_Dev* components) OVERRIDE; |
110 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; | 136 virtual PP_Bool DocumentCanRequest(PP_Instance instance, PP_Var url) OVERRIDE; |
111 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, | 137 virtual PP_Bool DocumentCanAccessDocument(PP_Instance instance, |
112 PP_Instance target) OVERRIDE; | 138 PP_Instance target) OVERRIDE; |
113 virtual PP_Var GetDocumentURL(PP_Instance instance, | 139 virtual PP_Var GetDocumentURL(PP_Instance instance, |
114 PP_URLComponents_Dev* components) OVERRIDE; | 140 PP_URLComponents_Dev* components) OVERRIDE; |
115 virtual PP_Var GetPluginInstanceURL( | 141 virtual PP_Var GetPluginInstanceURL( |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
166 void OnHostMsgSetTextInputType(PP_Instance instance, PP_TextInput_Type type); | 192 void OnHostMsgSetTextInputType(PP_Instance instance, PP_TextInput_Type type); |
167 void OnHostMsgUpdateCaretPosition(PP_Instance instance, | 193 void OnHostMsgUpdateCaretPosition(PP_Instance instance, |
168 const PP_Rect& caret, | 194 const PP_Rect& caret, |
169 const PP_Rect& bounding_box); | 195 const PP_Rect& bounding_box); |
170 void OnHostMsgCancelCompositionText(PP_Instance instance); | 196 void OnHostMsgCancelCompositionText(PP_Instance instance); |
171 void OnHostMsgUpdateSurroundingText( | 197 void OnHostMsgUpdateSurroundingText( |
172 PP_Instance instance, | 198 PP_Instance instance, |
173 const std::string& text, | 199 const std::string& text, |
174 uint32_t caret, | 200 uint32_t caret, |
175 uint32_t anchor); | 201 uint32_t anchor); |
202 | |
203 virtual void OnHostMsgNeedKey(PP_Instance instance, | |
204 SerializedVarReceiveInput key_system, | |
205 SerializedVarReceiveInput session_id, | |
206 SerializedVarReceiveInput init_data); | |
207 virtual void OnHostMsgKeyAdded(PP_Instance instance, | |
208 SerializedVarReceiveInput key_system, | |
209 SerializedVarReceiveInput session_id); | |
210 virtual void OnHostMsgKeyMessage(PP_Instance instance, | |
211 SerializedVarReceiveInput key_system, | |
212 SerializedVarReceiveInput session_id, | |
213 const ppapi::HostResource& message, | |
214 SerializedVarReceiveInput default_url); | |
215 virtual void OnHostMsgKeyError(PP_Instance instance, | |
216 SerializedVarReceiveInput key_system, | |
217 SerializedVarReceiveInput session_id, | |
218 int32_t media_error, | |
219 int32_t system_error); | |
220 virtual void OnHostMsgDeliverBlock(PP_Instance instance, | |
221 const ppapi::HostResource& decrypted_block, | |
222 uint64_t request_id); | |
223 virtual void OnHostMsgDeliverFrame(PP_Instance instance, | |
224 const ppapi::HostResource& decrypted_frame, | |
225 uint64_t request_id); | |
226 virtual void OnHostMsgDeliverSamples( | |
227 PP_Instance instance, | |
228 const ppapi::HostResource& decrypted_samples, | |
229 uint64_t request_id); | |
230 | |
176 #if !defined(OS_NACL) | 231 #if !defined(OS_NACL) |
dmichael (off chromium)
2012/08/08 03:38:10
please put your message handlers inside the:
#if !
Tom Finegan
2012/08/08 19:02:15
Done.
| |
177 void OnHostMsgResolveRelativeToDocument(PP_Instance instance, | 232 void OnHostMsgResolveRelativeToDocument(PP_Instance instance, |
178 SerializedVarReceiveInput relative, | 233 SerializedVarReceiveInput relative, |
179 SerializedVarReturnValue result); | 234 SerializedVarReturnValue result); |
180 void OnHostMsgDocumentCanRequest(PP_Instance instance, | 235 void OnHostMsgDocumentCanRequest(PP_Instance instance, |
181 SerializedVarReceiveInput url, | 236 SerializedVarReceiveInput url, |
182 PP_Bool* result); | 237 PP_Bool* result); |
183 void OnHostMsgDocumentCanAccessDocument(PP_Instance active, | 238 void OnHostMsgDocumentCanAccessDocument(PP_Instance active, |
184 PP_Instance target, | 239 PP_Instance target, |
185 PP_Bool* result); | 240 PP_Bool* result); |
186 void OnHostMsgGetDocumentURL(PP_Instance instance, | 241 void OnHostMsgGetDocumentURL(PP_Instance instance, |
187 SerializedVarReturnValue result); | 242 SerializedVarReturnValue result); |
188 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, | 243 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, |
189 SerializedVarReturnValue result); | 244 SerializedVarReturnValue result); |
190 #endif // !defined(OS_NACL) | 245 #endif // !defined(OS_NACL) |
191 | 246 |
192 // Host -> Plugin message handlers. | 247 // Host -> Plugin message handlers. |
193 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); | 248 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); |
194 | 249 |
195 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 250 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
196 | 251 |
197 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; | 252 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; |
198 }; | 253 }; |
199 | 254 |
200 } // namespace proxy | 255 } // namespace proxy |
201 } // namespace ppapi | 256 } // namespace ppapi |
202 | 257 |
203 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 258 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |