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_code) OVERRIDE; |
| 121 virtual void DeliverBlock(PP_Instance instance, |
| 122 PP_Resource decrypted_block, |
| 123 int32_t request_id) OVERRIDE; |
| 124 virtual void DeliverFrame(PP_Instance instance, |
| 125 PP_Resource decrypted_frame, |
| 126 int32_t request_id) OVERRIDE; |
| 127 virtual void DeliverSamples(PP_Instance instance, |
| 128 PP_Resource decrypted_samples, |
| 129 int32_t request_id) OVERRIDE; |
104 | 130 |
105 #if !defined(OS_NACL) | 131 #if !defined(OS_NACL) |
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, |
(...skipping 52 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 PP_Resource 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_code); |
| 220 virtual void OnHostMsgDeliverBlock(PP_Instance instance, |
| 221 PP_Resource decrypted_block, |
| 222 int32_t request_id); |
| 223 virtual void OnHostMsgDeliverFrame(PP_Instance instance, |
| 224 PP_Resource decrypted_frame, |
| 225 int32_t request_id); |
| 226 virtual void OnHostMsgDeliverSamples(PP_Instance instance, |
| 227 PP_Resource decrypted_samples, |
| 228 int32_t request_id); |
| 229 |
176 #if !defined(OS_NACL) | 230 #if !defined(OS_NACL) |
177 void OnHostMsgResolveRelativeToDocument(PP_Instance instance, | 231 void OnHostMsgResolveRelativeToDocument(PP_Instance instance, |
178 SerializedVarReceiveInput relative, | 232 SerializedVarReceiveInput relative, |
179 SerializedVarReturnValue result); | 233 SerializedVarReturnValue result); |
180 void OnHostMsgDocumentCanRequest(PP_Instance instance, | 234 void OnHostMsgDocumentCanRequest(PP_Instance instance, |
181 SerializedVarReceiveInput url, | 235 SerializedVarReceiveInput url, |
182 PP_Bool* result); | 236 PP_Bool* result); |
183 void OnHostMsgDocumentCanAccessDocument(PP_Instance active, | 237 void OnHostMsgDocumentCanAccessDocument(PP_Instance active, |
184 PP_Instance target, | 238 PP_Instance target, |
185 PP_Bool* result); | 239 PP_Bool* result); |
186 void OnHostMsgGetDocumentURL(PP_Instance instance, | 240 void OnHostMsgGetDocumentURL(PP_Instance instance, |
187 SerializedVarReturnValue result); | 241 SerializedVarReturnValue result); |
188 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, | 242 void OnHostMsgGetPluginInstanceURL(PP_Instance instance, |
189 SerializedVarReturnValue result); | 243 SerializedVarReturnValue result); |
190 #endif // !defined(OS_NACL) | 244 #endif // !defined(OS_NACL) |
191 | 245 |
192 // Host -> Plugin message handlers. | 246 // Host -> Plugin message handlers. |
193 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); | 247 void OnPluginMsgMouseLockComplete(PP_Instance instance, int32_t result); |
194 | 248 |
195 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); | 249 void MouseLockCompleteInHost(int32_t result, PP_Instance instance); |
196 | 250 |
197 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; | 251 ProxyCompletionCallbackFactory<PPB_Instance_Proxy> callback_factory_; |
198 }; | 252 }; |
199 | 253 |
200 } // namespace proxy | 254 } // namespace proxy |
201 } // namespace ppapi | 255 } // namespace ppapi |
202 | 256 |
203 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ | 257 #endif // PPAPI_PROXY_PPB_INSTANCE_PROXY_H_ |
OLD | NEW |