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 13 matching lines...) Expand all Loading... |
24 virtual void PluginCrashed(PluginInstance* instance); | 24 virtual void PluginCrashed(PluginInstance* instance); |
25 virtual void InstanceCreated(PluginInstance* instance); | 25 virtual void InstanceCreated(PluginInstance* instance); |
26 virtual void InstanceDeleted(PluginInstance* instance); | 26 virtual void InstanceDeleted(PluginInstance* instance); |
27 virtual SkBitmap* GetSadPluginBitmap(); | 27 virtual SkBitmap* GetSadPluginBitmap(); |
28 virtual PlatformImage2D* CreateImage2D(int width, int height); | 28 virtual PlatformImage2D* CreateImage2D(int width, int height); |
29 virtual PlatformContext3D* CreateContext3D(); | 29 virtual PlatformContext3D* CreateContext3D(); |
30 virtual PlatformVideoDecoder* CreateVideoDecoder( | 30 virtual PlatformVideoDecoder* CreateVideoDecoder( |
31 media::VideoDecodeAccelerator::Client* client, | 31 media::VideoDecodeAccelerator::Client* client, |
32 int32 command_buffer_route_id); | 32 int32 command_buffer_route_id); |
33 virtual PlatformVideoCapture* CreateVideoCapture( | 33 virtual PlatformVideoCapture* CreateVideoCapture( |
34 media::VideoCapture::EventHandler* handler); | 34 const std::string& device_id, |
| 35 PlatformVideoCaptureEventHandler* handler); |
35 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, | 36 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, |
36 uint32_t sample_count, | 37 uint32_t sample_count, |
37 PlatformAudioCommonClient* client); | 38 PlatformAudioCommonClient* client); |
38 virtual PlatformAudioInput* CreateAudioInput( | 39 virtual PlatformAudioInput* CreateAudioInput( |
39 uint32_t sample_rate, | 40 uint32_t sample_rate, |
40 uint32_t sample_count, | 41 uint32_t sample_count, |
41 PlatformAudioCommonClient* client); | 42 PlatformAudioCommonClient* client); |
42 virtual PpapiBroker* ConnectToPpapiBroker(PPB_Broker_Impl* client); | 43 virtual PpapiBroker* ConnectToPpapiBroker(PPB_Broker_Impl* client); |
43 virtual void NumberOfFindResultsChanged(int identifier, | 44 virtual void NumberOfFindResultsChanged(int identifier, |
44 int total, | 45 int total, |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 virtual ::ppapi::Preferences GetPreferences(); | 151 virtual ::ppapi::Preferences GetPreferences(); |
151 virtual bool LockMouse(PluginInstance* instance); | 152 virtual bool LockMouse(PluginInstance* instance); |
152 virtual void UnlockMouse(PluginInstance* instance); | 153 virtual void UnlockMouse(PluginInstance* instance); |
153 virtual bool IsMouseLocked(PluginInstance* instance); | 154 virtual bool IsMouseLocked(PluginInstance* instance); |
154 virtual void DidChangeCursor(PluginInstance* instance, | 155 virtual void DidChangeCursor(PluginInstance* instance, |
155 const WebKit::WebCursorInfo& cursor); | 156 const WebKit::WebCursorInfo& cursor); |
156 virtual void DidReceiveMouseEvent(PluginInstance* instance); | 157 virtual void DidReceiveMouseEvent(PluginInstance* instance); |
157 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; | 158 virtual void SampleGamepads(WebKit::WebGamepads* data) OVERRIDE; |
158 virtual bool IsInFullscreenMode(); | 159 virtual bool IsInFullscreenMode(); |
159 virtual bool IsPageVisible() const; | 160 virtual bool IsPageVisible() const; |
| 161 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
| 162 const EnumerateDevicesCallback& callback); |
160 }; | 163 }; |
161 | 164 |
162 } // namespace ppapi | 165 } // namespace ppapi |
163 } // namespace webkit | 166 } // namespace webkit |
164 | 167 |
165 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 168 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |