| 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 #include "content/renderer/pepper/mock_plugin_delegate.h" | 5 #include "content/renderer/pepper/mock_plugin_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
| 9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 9 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
| 10 #include "content/renderer/pepper/plugin_delegate.h" | 10 #include "content/renderer/pepper/plugin_delegate.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 } | 35 } |
| 36 | 36 |
| 37 void MockPluginDelegate::PluginRequestedCancelComposition( | 37 void MockPluginDelegate::PluginRequestedCancelComposition( |
| 38 PepperPluginInstanceImpl* instance) { | 38 PepperPluginInstanceImpl* instance) { |
| 39 } | 39 } |
| 40 | 40 |
| 41 void MockPluginDelegate::PluginSelectionChanged( | 41 void MockPluginDelegate::PluginSelectionChanged( |
| 42 PepperPluginInstanceImpl* instance) { | 42 PepperPluginInstanceImpl* instance) { |
| 43 } | 43 } |
| 44 | 44 |
| 45 void MockPluginDelegate::PluginCrashed(PepperPluginInstanceImpl* instance) { | |
| 46 } | |
| 47 | |
| 48 void MockPluginDelegate::InstanceCreated(PepperPluginInstanceImpl* instance) { | 45 void MockPluginDelegate::InstanceCreated(PepperPluginInstanceImpl* instance) { |
| 49 } | 46 } |
| 50 | 47 |
| 51 void MockPluginDelegate::InstanceDeleted(PepperPluginInstanceImpl* instance) { | 48 void MockPluginDelegate::InstanceDeleted(PepperPluginInstanceImpl* instance) { |
| 52 } | 49 } |
| 53 | 50 |
| 54 bool MockPluginDelegate::AsyncOpenFile(const base::FilePath& path, | 51 bool MockPluginDelegate::AsyncOpenFile(const base::FilePath& path, |
| 55 int flags, | 52 int flags, |
| 56 const AsyncOpenFileCallback& callback) { | 53 const AsyncOpenFileCallback& callback) { |
| 57 return false; | 54 return false; |
| 58 } | 55 } |
| 59 | 56 |
| 60 scoped_refptr<base::MessageLoopProxy> | 57 scoped_refptr<base::MessageLoopProxy> |
| 61 MockPluginDelegate::GetFileThreadMessageLoopProxy() { | 58 MockPluginDelegate::GetFileThreadMessageLoopProxy() { |
| 62 return scoped_refptr<base::MessageLoopProxy>(); | 59 return scoped_refptr<base::MessageLoopProxy>(); |
| 63 } | 60 } |
| 64 | 61 |
| 65 uint32 MockPluginDelegate::TCPSocketCreate() { | |
| 66 return 0; | |
| 67 } | |
| 68 | |
| 69 void MockPluginDelegate::TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, | |
| 70 uint32 socket_id, | |
| 71 const std::string& host, | |
| 72 uint16_t port) { | |
| 73 } | |
| 74 | |
| 75 void MockPluginDelegate::TCPSocketConnectWithNetAddress( | |
| 76 PPB_TCPSocket_Private_Impl* socket, | |
| 77 uint32 socket_id, | |
| 78 const PP_NetAddress_Private& addr) { | |
| 79 } | |
| 80 | |
| 81 void MockPluginDelegate::TCPSocketSSLHandshake( | |
| 82 uint32 socket_id, | |
| 83 const std::string& server_name, | |
| 84 uint16_t server_port, | |
| 85 const std::vector<std::vector<char> >& trusted_certs, | |
| 86 const std::vector<std::vector<char> >& untrusted_certs) { | |
| 87 } | |
| 88 | |
| 89 void MockPluginDelegate::TCPSocketRead(uint32 socket_id, | |
| 90 int32_t bytes_to_read) { | |
| 91 } | |
| 92 | |
| 93 void MockPluginDelegate::TCPSocketWrite(uint32 socket_id, | |
| 94 const std::string& buffer) { | |
| 95 } | |
| 96 | |
| 97 void MockPluginDelegate::TCPSocketSetOption( | |
| 98 uint32 socket_id, | |
| 99 PP_TCPSocket_Option name, | |
| 100 const ::ppapi::SocketOptionData& value) { | |
| 101 } | |
| 102 | |
| 103 void MockPluginDelegate::TCPSocketDisconnect(uint32 socket_id) { | |
| 104 } | |
| 105 | |
| 106 void MockPluginDelegate::RegisterTCPSocket(PPB_TCPSocket_Private_Impl* socket, | |
| 107 uint32 socket_id) { | |
| 108 } | |
| 109 | |
| 110 void MockPluginDelegate::TCPServerSocketListen( | |
| 111 PP_Resource socket_resource, | |
| 112 const PP_NetAddress_Private& addr, | |
| 113 int32_t backlog) { | |
| 114 } | |
| 115 | |
| 116 void MockPluginDelegate::TCPServerSocketAccept(uint32 server_socket_id) { | |
| 117 } | |
| 118 | |
| 119 void MockPluginDelegate::TCPServerSocketStopListening( | |
| 120 PP_Resource socket_resource, | |
| 121 uint32 socket_id) { | |
| 122 } | |
| 123 | |
| 124 bool MockPluginDelegate::LockMouse(PepperPluginInstanceImpl* instance) { | |
| 125 return false; | |
| 126 } | |
| 127 | |
| 128 void MockPluginDelegate::UnlockMouse(PepperPluginInstanceImpl* instance) { | |
| 129 } | |
| 130 | |
| 131 bool MockPluginDelegate::IsMouseLocked(PepperPluginInstanceImpl* instance) { | |
| 132 return false; | |
| 133 } | |
| 134 | |
| 135 void MockPluginDelegate::DidChangeCursor(PepperPluginInstanceImpl* instance, | |
| 136 const WebKit::WebCursorInfo& cursor) { | |
| 137 } | |
| 138 | |
| 139 void MockPluginDelegate::DidReceiveMouseEvent( | |
| 140 PepperPluginInstanceImpl* instance) { | |
| 141 } | |
| 142 | |
| 143 void MockPluginDelegate::SampleGamepads(WebKit::WebGamepads* data) { | 62 void MockPluginDelegate::SampleGamepads(WebKit::WebGamepads* data) { |
| 144 data->length = 0; | 63 data->length = 0; |
| 145 } | 64 } |
| 146 | 65 |
| 147 void MockPluginDelegate::HandleDocumentLoad( | 66 void MockPluginDelegate::HandleDocumentLoad( |
| 148 PepperPluginInstanceImpl* instance, | 67 PepperPluginInstanceImpl* instance, |
| 149 const WebKit::WebURLResponse& response) { | 68 const WebKit::WebURLResponse& response) { |
| 150 } | 69 } |
| 151 | 70 |
| 152 RendererPpapiHost* MockPluginDelegate::CreateExternalPluginModule( | 71 RendererPpapiHost* MockPluginDelegate::CreateExternalPluginModule( |
| 153 scoped_refptr<PluginModule> module, | 72 scoped_refptr<PluginModule> module, |
| 154 const base::FilePath& path, | 73 const base::FilePath& path, |
| 155 ::ppapi::PpapiPermissions permissions, | 74 ::ppapi::PpapiPermissions permissions, |
| 156 const IPC::ChannelHandle& channel_handle, | 75 const IPC::ChannelHandle& channel_handle, |
| 157 base::ProcessId plugin_pid, | 76 base::ProcessId plugin_pid, |
| 158 int plugin_child_id) { | 77 int plugin_child_id) { |
| 159 return NULL; | 78 return NULL; |
| 160 } | 79 } |
| 161 | 80 |
| 162 } // namespace content | 81 } // namespace content |
| OLD | NEW |