OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 namespace webkit { | 10 namespace webkit { |
11 namespace ppapi { | 11 namespace ppapi { |
12 | 12 |
13 class MockPluginDelegate : public PluginDelegate { | 13 class MockPluginDelegate : public PluginDelegate { |
14 public: | 14 public: |
15 MockPluginDelegate(); | 15 MockPluginDelegate(); |
16 virtual ~MockPluginDelegate(); | 16 virtual ~MockPluginDelegate(); |
17 | 17 |
18 virtual void PluginFocusChanged(bool focused); | 18 virtual void PluginFocusChanged(bool focused); |
19 virtual void PluginCrashed(PluginInstance* instance); | 19 virtual void PluginCrashed(PluginInstance* instance); |
20 virtual void InstanceCreated(PluginInstance* instance); | 20 virtual void InstanceCreated(PluginInstance* instance); |
21 virtual void InstanceDeleted(PluginInstance* instance); | 21 virtual void InstanceDeleted(PluginInstance* instance); |
22 virtual SkBitmap* GetSadPluginBitmap(); | 22 virtual SkBitmap* GetSadPluginBitmap(); |
23 virtual PlatformImage2D* CreateImage2D(int width, int height); | 23 virtual PlatformImage2D* CreateImage2D(int width, int height); |
24 virtual PlatformContext3D* CreateContext3D(); | 24 virtual PlatformContext3D* CreateContext3D(); |
25 virtual PlatformVideoDecoder* CreateVideoDecoder( | 25 virtual PlatformVideoDecoder* CreateVideoDecoder( |
26 media::VideoDecodeAccelerator::Client* client, | 26 media::VideoDecodeAccelerator::Client* client, |
27 int32 command_buffer_route_id); | 27 int32 command_buffer_route_id); |
| 28 virtual PlatformVideoCapture* CreateVideoCapture( |
| 29 media::VideoCapture::EventHandler* handler); |
28 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, | 30 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, |
29 uint32_t sample_count, | 31 uint32_t sample_count, |
30 PlatformAudio::Client* client); | 32 PlatformAudio::Client* client); |
31 virtual PpapiBroker* ConnectToPpapiBroker(PPB_Broker_Impl* client); | 33 virtual PpapiBroker* ConnectToPpapiBroker(PPB_Broker_Impl* client); |
32 virtual void NumberOfFindResultsChanged(int identifier, | 34 virtual void NumberOfFindResultsChanged(int identifier, |
33 int total, | 35 int total, |
34 bool final_result); | 36 bool final_result); |
35 virtual void SelectedFindResultChanged(int identifier, int index); | 37 virtual void SelectedFindResultChanged(int identifier, int index); |
36 virtual bool RunFileChooser( | 38 virtual bool RunFileChooser( |
37 const WebKit::WebFileChooserParams& params, | 39 const WebKit::WebFileChooserParams& params, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 virtual double GetLocalTimeZoneOffset(base::Time t); | 116 virtual double GetLocalTimeZoneOffset(base::Time t); |
115 virtual std::string GetFlashCommandLineArgs(); | 117 virtual std::string GetFlashCommandLineArgs(); |
116 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size); | 118 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size); |
117 virtual ::ppapi::Preferences GetPreferences(); | 119 virtual ::ppapi::Preferences GetPreferences(); |
118 }; | 120 }; |
119 | 121 |
120 } // namespace ppapi | 122 } // namespace ppapi |
121 } // namespace webkit | 123 } // namespace webkit |
122 | 124 |
123 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 125 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |