| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_PEPPER_MOCK_PLUGIN_DELEGATE_H_ | |
| 6 #define CONTENT_RENDERER_PEPPER_MOCK_PLUGIN_DELEGATE_H_ | |
| 7 | |
| 8 #include "content/renderer/pepper/plugin_delegate.h" | |
| 9 | |
| 10 struct PP_NetAddress_Private; | |
| 11 namespace ppapi { class PPB_X509Certificate_Fields; } | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 class MockPluginDelegate : public PluginDelegate { | |
| 16 public: | |
| 17 MockPluginDelegate(); | |
| 18 virtual ~MockPluginDelegate(); | |
| 19 | |
| 20 virtual void PluginFocusChanged(PepperPluginInstanceImpl* instance, | |
| 21 bool focused) OVERRIDE; | |
| 22 virtual void PluginTextInputTypeChanged( | |
| 23 PepperPluginInstanceImpl* instance) OVERRIDE; | |
| 24 virtual void PluginCaretPositionChanged( | |
| 25 PepperPluginInstanceImpl* instance) OVERRIDE; | |
| 26 virtual void PluginRequestedCancelComposition( | |
| 27 PepperPluginInstanceImpl* instance) OVERRIDE; | |
| 28 virtual void PluginSelectionChanged( | |
| 29 PepperPluginInstanceImpl* instance) OVERRIDE; | |
| 30 virtual void InstanceCreated(PepperPluginInstanceImpl* instance) OVERRIDE; | |
| 31 virtual void InstanceDeleted(PepperPluginInstanceImpl* instance) OVERRIDE; | |
| 32 virtual bool AsyncOpenFile(const base::FilePath& path, | |
| 33 int flags, | |
| 34 const AsyncOpenFileCallback& callback) OVERRIDE; | |
| 35 virtual scoped_refptr<base::MessageLoopProxy> | |
| 36 GetFileThreadMessageLoopProxy() OVERRIDE; | |
| 37 | |
| 38 // Add/remove a network list observer. | |
| 39 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; | |
| 40 virtual void HandleDocumentLoad( | |
| 41 PepperPluginInstanceImpl* instance, | |
| 42 const WebKit::WebURLResponse& response) OVERRIDE; | |
| 43 virtual RendererPpapiHost* CreateExternalPluginModule( | |
| 44 scoped_refptr<PluginModule> module, | |
| 45 const base::FilePath& path, | |
| 46 ::ppapi::PpapiPermissions permissions, | |
| 47 const IPC::ChannelHandle& channel_handle, | |
| 48 base::ProcessId plugin_pid, | |
| 49 int plugin_child_id) OVERRIDE; | |
| 50 }; | |
| 51 | |
| 52 } // namespace content | |
| 53 | |
| 54 #endif // CONTENT_RENDERER_PEPPER_MOCK_PLUGIN_DELEGATE_H_ | |
| OLD | NEW |