| 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 webkit_glue { class ClipboardClient; } | 12 namespace webkit_glue { class ClipboardClient; } |
| 12 | 13 |
| 13 namespace webkit { | 14 namespace webkit { |
| 14 namespace ppapi { | 15 namespace ppapi { |
| 15 | 16 |
| 16 class MockPluginDelegate : public PluginDelegate { | 17 class MockPluginDelegate : public PluginDelegate { |
| 17 public: | 18 public: |
| 18 MockPluginDelegate(); | 19 MockPluginDelegate(); |
| 19 virtual ~MockPluginDelegate(); | 20 virtual ~MockPluginDelegate(); |
| 20 | 21 |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual void HostResolverResolve( | 143 virtual void HostResolverResolve( |
| 143 uint32 host_resolver_id, | 144 uint32 host_resolver_id, |
| 144 const ::ppapi::HostPortPair& host_port, | 145 const ::ppapi::HostPortPair& host_port, |
| 145 const PP_HostResolver_Private_Hint* hint); | 146 const PP_HostResolver_Private_Hint* hint); |
| 146 virtual void UnregisterHostResolver(uint32 host_resolver_id); | 147 virtual void UnregisterHostResolver(uint32 host_resolver_id); |
| 147 // Add/remove a network list observer. | 148 // Add/remove a network list observer. |
| 148 virtual bool AddNetworkListObserver( | 149 virtual bool AddNetworkListObserver( |
| 149 webkit_glue::NetworkListObserver* observer) OVERRIDE; | 150 webkit_glue::NetworkListObserver* observer) OVERRIDE; |
| 150 virtual void RemoveNetworkListObserver( | 151 virtual void RemoveNetworkListObserver( |
| 151 webkit_glue::NetworkListObserver* observer) OVERRIDE; | 152 webkit_glue::NetworkListObserver* observer) OVERRIDE; |
| 153 virtual bool X509CertificateParseDER( |
| 154 const std::vector<char>& der, |
| 155 ::ppapi::PPB_X509Certificate_Fields* fields); |
| 156 |
| 152 virtual int32_t ShowContextMenu( | 157 virtual int32_t ShowContextMenu( |
| 153 PluginInstance* instance, | 158 PluginInstance* instance, |
| 154 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 159 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 155 const gfx::Point& position); | 160 const gfx::Point& position); |
| 156 virtual FullscreenContainer* CreateFullscreenContainer( | 161 virtual FullscreenContainer* CreateFullscreenContainer( |
| 157 PluginInstance* instance); | 162 PluginInstance* instance); |
| 158 virtual gfx::Size GetScreenSize(); | 163 virtual gfx::Size GetScreenSize(); |
| 159 virtual std::string GetDefaultEncoding(); | 164 virtual std::string GetDefaultEncoding(); |
| 160 virtual void ZoomLimitsChanged(double minimum_factor, | 165 virtual void ZoomLimitsChanged(double minimum_factor, |
| 161 double maximum_factor); | 166 double maximum_factor); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 180 virtual bool IsPageVisible() const; | 185 virtual bool IsPageVisible() const; |
| 181 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 186 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
| 182 const EnumerateDevicesCallback& callback); | 187 const EnumerateDevicesCallback& callback); |
| 183 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; | 188 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; |
| 184 }; | 189 }; |
| 185 | 190 |
| 186 } // namespace ppapi | 191 } // namespace ppapi |
| 187 } // namespace webkit | 192 } // namespace webkit |
| 188 | 193 |
| 189 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 194 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| OLD | NEW |