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; |
(...skipping 19 matching lines...) Expand all Loading... |
30 int selection_end); | 30 int selection_end); |
31 virtual void SimulateImeConfirmComposition(const string16& text); | 31 virtual void SimulateImeConfirmComposition(const string16& text); |
32 virtual void PluginCrashed(PluginInstance* instance); | 32 virtual void PluginCrashed(PluginInstance* instance); |
33 virtual void InstanceCreated(PluginInstance* instance); | 33 virtual void InstanceCreated(PluginInstance* instance); |
34 virtual void InstanceDeleted(PluginInstance* instance); | 34 virtual void InstanceDeleted(PluginInstance* instance); |
35 virtual scoped_ptr< ::ppapi::thunk::ResourceCreationAPI> | 35 virtual scoped_ptr< ::ppapi::thunk::ResourceCreationAPI> |
36 CreateResourceCreationAPI(PluginInstance* instance); | 36 CreateResourceCreationAPI(PluginInstance* instance); |
37 virtual SkBitmap* GetSadPluginBitmap(); | 37 virtual SkBitmap* GetSadPluginBitmap(); |
38 virtual WebKit::WebPlugin* CreatePluginReplacement(const FilePath& file_path); | 38 virtual WebKit::WebPlugin* CreatePluginReplacement(const FilePath& file_path); |
39 virtual PlatformImage2D* CreateImage2D(int width, int height); | 39 virtual PlatformImage2D* CreateImage2D(int width, int height); |
| 40 virtual PlatformGraphics2D* GetGraphics2D(PluginInstance* instance, |
| 41 PP_Resource graphics_2d); |
40 virtual PlatformContext3D* CreateContext3D(); | 42 virtual PlatformContext3D* CreateContext3D(); |
41 virtual void ReparentContext(PlatformContext3D*); | 43 virtual void ReparentContext(PlatformContext3D*); |
42 virtual PlatformVideoDecoder* CreateVideoDecoder( | 44 virtual PlatformVideoDecoder* CreateVideoDecoder( |
43 media::VideoDecodeAccelerator::Client* client, | 45 media::VideoDecodeAccelerator::Client* client, |
44 int32 command_buffer_route_id); | 46 int32 command_buffer_route_id); |
45 virtual PlatformVideoCapture* CreateVideoCapture( | 47 virtual PlatformVideoCapture* CreateVideoCapture( |
46 const std::string& device_id, | 48 const std::string& device_id, |
47 PlatformVideoCaptureEventHandler* handler); | 49 PlatformVideoCaptureEventHandler* handler); |
48 virtual uint32_t GetAudioHardwareOutputSampleRate(); | 50 virtual uint32_t GetAudioHardwareOutputSampleRate(); |
49 virtual uint32_t GetAudioHardwareOutputBufferSize(); | 51 virtual uint32_t GetAudioHardwareOutputBufferSize(); |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 virtual std::string GetDeviceID(); | 209 virtual std::string GetDeviceID(); |
208 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 210 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
209 const GURL& document_url, | 211 const GURL& document_url, |
210 const GURL& plugin_url); | 212 const GURL& plugin_url); |
211 }; | 213 }; |
212 | 214 |
213 } // namespace ppapi | 215 } // namespace ppapi |
214 } // namespace webkit | 216 } // namespace webkit |
215 | 217 |
216 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 218 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |