OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" | 5 #include "webkit/plugins/ppapi/mock_plugin_delegate.h" |
6 | 6 |
7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
8 #include "ppapi/c/pp_errors.h" | 8 #include "ppapi/c/pp_errors.h" |
9 #include "ppapi/shared_impl/ppapi_preferences.h" | 9 #include "ppapi/shared_impl/ppapi_preferences.h" |
10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 10 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 uint16_t port) { | 225 uint16_t port) { |
226 return PP_ERROR_FAILED; | 226 return PP_ERROR_FAILED; |
227 } | 227 } |
228 | 228 |
229 int32_t MockPluginDelegate::ConnectTcpAddress( | 229 int32_t MockPluginDelegate::ConnectTcpAddress( |
230 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 230 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
231 const PP_NetAddress_Private* addr) { | 231 const PP_NetAddress_Private* addr) { |
232 return PP_ERROR_FAILED; | 232 return PP_ERROR_FAILED; |
233 } | 233 } |
234 | 234 |
| 235 uint32 MockPluginDelegate::TCPSocketCreate() { |
| 236 return 0; |
| 237 } |
| 238 |
| 239 void MockPluginDelegate::TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, |
| 240 uint32 socket_id, |
| 241 const std::string& host, |
| 242 uint16_t port) { |
| 243 } |
| 244 |
| 245 void MockPluginDelegate::TCPSocketConnectWithNetAddress( |
| 246 PPB_TCPSocket_Private_Impl* socket, |
| 247 uint32 socket_id, |
| 248 const PP_NetAddress_Private& addr) { |
| 249 } |
| 250 |
| 251 void MockPluginDelegate::TCPSocketSSLHandshake(uint32 socket_id, |
| 252 const std::string& server_name, |
| 253 uint16_t server_port) { |
| 254 } |
| 255 |
| 256 void MockPluginDelegate::TCPSocketRead(uint32 socket_id, |
| 257 int32_t bytes_to_read) { |
| 258 } |
| 259 |
| 260 void MockPluginDelegate::TCPSocketWrite(uint32 socket_id, |
| 261 const std::string& buffer) { |
| 262 } |
| 263 |
| 264 void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) { |
| 265 } |
| 266 |
| 267 uint32 MockPluginDelegate::UDPSocketCreate() { |
| 268 return 0; |
| 269 } |
| 270 |
| 271 void MockPluginDelegate::UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, |
| 272 uint32 socket_id, |
| 273 const PP_NetAddress_Private& addr) { |
| 274 } |
| 275 |
| 276 void MockPluginDelegate::UDPSocketRecvFrom(uint32 socket_id, |
| 277 int32_t num_bytes) { |
| 278 } |
| 279 |
| 280 void MockPluginDelegate::UDPSocketSendTo(uint32 socket_id, |
| 281 const std::string& buffer, |
| 282 const PP_NetAddress_Private& addr) { |
| 283 } |
| 284 |
| 285 void MockPluginDelegate::UDPSocketClose(uint32 socket_id) { |
| 286 } |
| 287 |
235 int32_t MockPluginDelegate::ShowContextMenu( | 288 int32_t MockPluginDelegate::ShowContextMenu( |
236 PluginInstance* instance, | 289 PluginInstance* instance, |
237 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 290 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
238 const gfx::Point& position) { | 291 const gfx::Point& position) { |
239 return PP_ERROR_FAILED; | 292 return PP_ERROR_FAILED; |
240 } | 293 } |
241 | 294 |
242 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( | 295 FullscreenContainer* MockPluginDelegate::CreateFullscreenContainer( |
243 PluginInstance* instance) { | 296 PluginInstance* instance) { |
244 return NULL; | 297 return NULL; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 359 |
307 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { | 360 void MockPluginDelegate::DidReceiveMouseEvent(PluginInstance* instance) { |
308 } | 361 } |
309 | 362 |
310 bool MockPluginDelegate::IsInFullscreenMode() { | 363 bool MockPluginDelegate::IsInFullscreenMode() { |
311 return false; | 364 return false; |
312 } | 365 } |
313 | 366 |
314 } // namespace ppapi | 367 } // namespace ppapi |
315 } // namespace webkit | 368 } // namespace webkit |
OLD | NEW |