| 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 WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "webkit/plugins/ppapi/plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 9 | 9 |
| 10 struct PP_NetAddress_Private; | 10 struct PP_NetAddress_Private; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 virtual void TCPSocketConnectWithNetAddress( | 112 virtual void TCPSocketConnectWithNetAddress( |
| 113 PPB_TCPSocket_Private_Impl* socket, | 113 PPB_TCPSocket_Private_Impl* socket, |
| 114 uint32 socket_id, | 114 uint32 socket_id, |
| 115 const PP_NetAddress_Private& addr); | 115 const PP_NetAddress_Private& addr); |
| 116 virtual void TCPSocketSSLHandshake(uint32 socket_id, | 116 virtual void TCPSocketSSLHandshake(uint32 socket_id, |
| 117 const std::string& server_name, | 117 const std::string& server_name, |
| 118 uint16_t server_port); | 118 uint16_t server_port); |
| 119 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read); | 119 virtual void TCPSocketRead(uint32 socket_id, int32_t bytes_to_read); |
| 120 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer); | 120 virtual void TCPSocketWrite(uint32 socket_id, const std::string& buffer); |
| 121 virtual void TCPSocketDisconnect(uint32 socket_id); | 121 virtual void TCPSocketDisconnect(uint32 socket_id); |
| 122 virtual void TCPSocketRegister(PPB_TCPSocket_Private_Impl* socket, |
| 123 uint32 socket_id); |
| 122 virtual uint32 UDPSocketCreate(); | 124 virtual uint32 UDPSocketCreate(); |
| 123 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, | 125 virtual void UDPSocketBind(PPB_UDPSocket_Private_Impl* socket, |
| 124 uint32 socket_id, | 126 uint32 socket_id, |
| 125 const PP_NetAddress_Private& addr); | 127 const PP_NetAddress_Private& addr); |
| 126 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes); | 128 virtual void UDPSocketRecvFrom(uint32 socket_id, int32_t num_bytes); |
| 127 virtual void UDPSocketSendTo(uint32 socket_id, | 129 virtual void UDPSocketSendTo(uint32 socket_id, |
| 128 const std::string& buffer, | 130 const std::string& buffer, |
| 129 const PP_NetAddress_Private& addr); | 131 const PP_NetAddress_Private& addr); |
| 130 virtual void UDPSocketClose(uint32 socket_id); | 132 virtual void UDPSocketClose(uint32 socket_id); |
| 133 virtual bool TCPServerSocketInitialize(PPB_TCPServerSocket_Private* socket); |
| 134 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, |
| 135 uint32 socket_id, |
| 136 const PP_NetAddress_Private& addr, |
| 137 int32_t backlog); |
| 138 virtual void TCPServerSocketAccept(uint32 socket_id); |
| 139 virtual void TCPServerSocketStopListening(uint32 socket_id); |
| 131 virtual int32_t ShowContextMenu( | 140 virtual int32_t ShowContextMenu( |
| 132 PluginInstance* instance, | 141 PluginInstance* instance, |
| 133 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 142 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 134 const gfx::Point& position); | 143 const gfx::Point& position); |
| 135 virtual FullscreenContainer* CreateFullscreenContainer( | 144 virtual FullscreenContainer* CreateFullscreenContainer( |
| 136 PluginInstance* instance); | 145 PluginInstance* instance); |
| 137 virtual gfx::Size GetScreenSize(); | 146 virtual gfx::Size GetScreenSize(); |
| 138 virtual std::string GetDefaultEncoding(); | 147 virtual std::string GetDefaultEncoding(); |
| 139 virtual void ZoomLimitsChanged(double minimum_factor, | 148 virtual void ZoomLimitsChanged(double minimum_factor, |
| 140 double maximum_factor); | 149 double maximum_factor); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 156 virtual void DidReceiveMouseEvent(PluginInstance* instance); | 165 virtual void DidReceiveMouseEvent(PluginInstance* instance); |
| 157 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; | 166 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; |
| 158 virtual bool IsInFullscreenMode(); | 167 virtual bool IsInFullscreenMode(); |
| 159 virtual bool IsPageVisible() const; | 168 virtual bool IsPageVisible() const; |
| 160 }; | 169 }; |
| 161 | 170 |
| 162 } // namespace ppapi | 171 } // namespace ppapi |
| 163 } // namespace webkit | 172 } // namespace webkit |
| 164 | 173 |
| 165 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 174 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| OLD | NEW |