| 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; |
| 11 namespace webkit_glue { class ClipboardClient; } |
| 11 | 12 |
| 12 namespace webkit { | 13 namespace webkit { |
| 13 namespace ppapi { | 14 namespace ppapi { |
| 14 | 15 |
| 15 class MockPluginDelegate : public PluginDelegate { | 16 class MockPluginDelegate : public PluginDelegate { |
| 16 public: | 17 public: |
| 17 MockPluginDelegate(); | 18 MockPluginDelegate(); |
| 18 virtual ~MockPluginDelegate(); | 19 virtual ~MockPluginDelegate(); |
| 19 | 20 |
| 20 virtual void PluginFocusChanged(PluginInstance* instance, bool focused); | 21 virtual void PluginFocusChanged(PluginInstance* instance, bool focused); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 virtual void UnlockMouse(PluginInstance* instance); | 156 virtual void UnlockMouse(PluginInstance* instance); |
| 156 virtual bool IsMouseLocked(PluginInstance* instance); | 157 virtual bool IsMouseLocked(PluginInstance* instance); |
| 157 virtual void DidChangeCursor(PluginInstance* instance, | 158 virtual void DidChangeCursor(PluginInstance* instance, |
| 158 const WebKit::WebCursorInfo& cursor); | 159 const WebKit::WebCursorInfo& cursor); |
| 159 virtual void DidReceiveMouseEvent(PluginInstance* instance); | 160 virtual void DidReceiveMouseEvent(PluginInstance* instance); |
| 160 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; | 161 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; |
| 161 virtual bool IsInFullscreenMode(); | 162 virtual bool IsInFullscreenMode(); |
| 162 virtual bool IsPageVisible() const; | 163 virtual bool IsPageVisible() const; |
| 163 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 164 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
| 164 const EnumerateDevicesCallback& callback); | 165 const EnumerateDevicesCallback& callback); |
| 166 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; |
| 165 }; | 167 }; |
| 166 | 168 |
| 167 } // namespace ppapi | 169 } // namespace ppapi |
| 168 } // namespace webkit | 170 } // namespace webkit |
| 169 | 171 |
| 170 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 172 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| OLD | NEW |