| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 virtual void UnlockMouse(PluginInstance* instance); | 165 virtual void UnlockMouse(PluginInstance* instance); |
| 165 virtual bool IsMouseLocked(PluginInstance* instance); | 166 virtual bool IsMouseLocked(PluginInstance* instance); |
| 166 virtual void DidChangeCursor(PluginInstance* instance, | 167 virtual void DidChangeCursor(PluginInstance* instance, |
| 167 const WebKit::WebCursorInfo& cursor); | 168 const WebKit::WebCursorInfo& cursor); |
| 168 virtual void DidReceiveMouseEvent(PluginInstance* instance); | 169 virtual void DidReceiveMouseEvent(PluginInstance* instance); |
| 169 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; | 170 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; |
| 170 virtual bool IsInFullscreenMode(); | 171 virtual bool IsInFullscreenMode(); |
| 171 virtual bool IsPageVisible() const; | 172 virtual bool IsPageVisible() const; |
| 172 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 173 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
| 173 const EnumerateDevicesCallback& callback); | 174 const EnumerateDevicesCallback& callback); |
| 175 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; |
| 174 }; | 176 }; |
| 175 | 177 |
| 176 } // namespace ppapi | 178 } // namespace ppapi |
| 177 } // namespace webkit | 179 } // namespace webkit |
| 178 | 180 |
| 179 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 181 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| OLD | NEW |