| 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 { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const PepperFilePath& to_path); | 81 const PepperFilePath& to_path); |
| 82 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 82 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, |
| 83 bool recursive); | 83 bool recursive); |
| 84 virtual base::PlatformFileError CreateDir(const PepperFilePath& path); | 84 virtual base::PlatformFileError CreateDir(const PepperFilePath& path); |
| 85 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, | 85 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, |
| 86 base::PlatformFileInfo* info); | 86 base::PlatformFileInfo* info); |
| 87 virtual base::PlatformFileError GetDirContents(const PepperFilePath& path, | 87 virtual base::PlatformFileError GetDirContents(const PepperFilePath& path, |
| 88 DirContents* contents); | 88 DirContents* contents); |
| 89 virtual void SyncGetFileSystemPlatformPath(const GURL& url, | 89 virtual void SyncGetFileSystemPlatformPath(const GURL& url, |
| 90 FilePath* platform_path); | 90 FilePath* platform_path); |
| 91 virtual void PublishPolicy(const std::string& policy_json); | |
| 92 virtual scoped_refptr<base::MessageLoopProxy> | 91 virtual scoped_refptr<base::MessageLoopProxy> |
| 93 GetFileThreadMessageLoopProxy(); | 92 GetFileThreadMessageLoopProxy(); |
| 94 virtual int32_t ConnectTcp( | 93 virtual int32_t ConnectTcp( |
| 95 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 94 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
| 96 const char* host, | 95 const char* host, |
| 97 uint16_t port); | 96 uint16_t port); |
| 98 virtual int32_t ConnectTcpAddress( | 97 virtual int32_t ConnectTcpAddress( |
| 99 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 98 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
| 100 const struct PP_Flash_NetAddress* addr); | 99 const struct PP_Flash_NetAddress* addr); |
| 101 virtual int32_t ShowContextMenu( | 100 virtual int32_t ShowContextMenu( |
| 102 PluginInstance* instance, | 101 PluginInstance* instance, |
| 103 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 102 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 104 const gfx::Point& position); | 103 const gfx::Point& position); |
| 105 virtual FullscreenContainer* CreateFullscreenContainer( | 104 virtual FullscreenContainer* CreateFullscreenContainer( |
| 106 PluginInstance* instance); | 105 PluginInstance* instance); |
| 107 virtual gfx::Size GetScreenSize(); | 106 virtual gfx::Size GetScreenSize(); |
| 108 virtual std::string GetDefaultEncoding(); | 107 virtual std::string GetDefaultEncoding(); |
| 109 virtual void ZoomLimitsChanged(double minimum_factor, | 108 virtual void ZoomLimitsChanged(double minimum_factor, |
| 110 double maximum_factor); | 109 double maximum_factor); |
| 111 virtual void SubscribeToPolicyUpdates(PluginInstance* instance); | |
| 112 virtual std::string ResolveProxy(const GURL& url); | 110 virtual std::string ResolveProxy(const GURL& url); |
| 113 virtual void DidStartLoading(); | 111 virtual void DidStartLoading(); |
| 114 virtual void DidStopLoading(); | 112 virtual void DidStopLoading(); |
| 115 virtual void SetContentRestriction(int restrictions); | 113 virtual void SetContentRestriction(int restrictions); |
| 116 virtual void SaveURLAs(const GURL& url); | 114 virtual void SaveURLAs(const GURL& url); |
| 117 virtual webkit_glue::P2PTransport* CreateP2PTransport(); | 115 virtual webkit_glue::P2PTransport* CreateP2PTransport(); |
| 118 virtual double GetLocalTimeZoneOffset(base::Time t); | 116 virtual double GetLocalTimeZoneOffset(base::Time t); |
| 119 virtual std::string GetFlashCommandLineArgs(); | 117 virtual std::string GetFlashCommandLineArgs(); |
| 120 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size); | 118 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size); |
| 121 virtual ::ppapi::Preferences GetPreferences(); | 119 virtual ::ppapi::Preferences GetPreferences(); |
| 122 virtual void LockMouse(PluginInstance* instance); | 120 virtual void LockMouse(PluginInstance* instance); |
| 123 virtual void UnlockMouse(PluginInstance* instance); | 121 virtual void UnlockMouse(PluginInstance* instance); |
| 124 virtual void DidChangeCursor(PluginInstance* instance, | 122 virtual void DidChangeCursor(PluginInstance* instance, |
| 125 const WebKit::WebCursorInfo& cursor); | 123 const WebKit::WebCursorInfo& cursor); |
| 126 virtual void DidReceiveMouseEvent(PluginInstance* instance); | 124 virtual void DidReceiveMouseEvent(PluginInstance* instance); |
| 127 virtual bool IsInFullscreenMode(); | 125 virtual bool IsInFullscreenMode(); |
| 128 }; | 126 }; |
| 129 | 127 |
| 130 } // namespace ppapi | 128 } // namespace ppapi |
| 131 } // namespace webkit | 129 } // namespace webkit |
| 132 | 130 |
| 133 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 131 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| OLD | NEW |