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 ppapi { class PPB_X509Certificate_Fields; } | 11 namespace ppapi { class PPB_X509Certificate_Fields; } |
12 namespace webkit_glue { class ClipboardClient; } | |
13 | 12 |
14 namespace webkit { | 13 namespace webkit { |
15 namespace ppapi { | 14 namespace ppapi { |
16 | 15 |
17 class MockPluginDelegate : public PluginDelegate { | 16 class MockPluginDelegate : public PluginDelegate { |
18 public: | 17 public: |
19 MockPluginDelegate(); | 18 MockPluginDelegate(); |
20 virtual ~MockPluginDelegate(); | 19 virtual ~MockPluginDelegate(); |
21 | 20 |
22 virtual void PluginFocusChanged(PluginInstance* instance, bool focused); | 21 virtual void PluginFocusChanged(PluginInstance* instance, bool focused); |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 virtual bool IsMouseLocked(PluginInstance* instance); | 202 virtual bool IsMouseLocked(PluginInstance* instance); |
204 virtual void DidChangeCursor(PluginInstance* instance, | 203 virtual void DidChangeCursor(PluginInstance* instance, |
205 const WebKit::WebCursorInfo& cursor); | 204 const WebKit::WebCursorInfo& cursor); |
206 virtual void DidReceiveMouseEvent(PluginInstance* instance); | 205 virtual void DidReceiveMouseEvent(PluginInstance* instance); |
207 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; | 206 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; |
208 virtual bool IsInFullscreenMode(); | 207 virtual bool IsInFullscreenMode(); |
209 virtual bool IsPageVisible() const; | 208 virtual bool IsPageVisible() const; |
210 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 209 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
211 const EnumerateDevicesCallback& callback); | 210 const EnumerateDevicesCallback& callback); |
212 virtual void StopEnumerateDevices(int request_id); | 211 virtual void StopEnumerateDevices(int request_id); |
213 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; | |
214 virtual std::string GetDeviceID(); | 212 virtual std::string GetDeviceID(); |
215 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 213 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
216 const GURL& document_url, | 214 const GURL& document_url, |
217 const GURL& plugin_url); | 215 const GURL& plugin_url); |
218 }; | 216 }; |
219 | 217 |
220 } // namespace ppapi | 218 } // namespace ppapi |
221 } // namespace webkit | 219 } // namespace webkit |
222 | 220 |
223 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 221 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |