OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_PLUGINS_MOCK_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_MOCK_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include "webkit/glue/plugins/pepper_plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
9 | 9 |
10 namespace pepper { | 10 namespace webkit { |
| 11 namespace plugins { |
| 12 namespace ppapi { |
11 | 13 |
12 class MockPluginDelegate : public PluginDelegate { | 14 class MockPluginDelegate : public PluginDelegate { |
13 public: | 15 public: |
14 MockPluginDelegate(); | 16 MockPluginDelegate(); |
15 ~MockPluginDelegate(); | 17 ~MockPluginDelegate(); |
16 | 18 |
17 virtual void InstanceCreated(pepper::PluginInstance* instance); | 19 virtual void InstanceCreated(PluginInstance* instance); |
18 virtual void InstanceDeleted(pepper::PluginInstance* instance); | 20 virtual void InstanceDeleted(PluginInstance* instance); |
19 virtual PlatformImage2D* CreateImage2D(int width, int height); | 21 virtual PlatformImage2D* CreateImage2D(int width, int height); |
20 virtual PlatformContext3D* CreateContext3D(); | 22 virtual PlatformContext3D* CreateContext3D(); |
21 virtual PlatformVideoDecoder* CreateVideoDecoder( | 23 virtual PlatformVideoDecoder* CreateVideoDecoder( |
22 const PP_VideoDecoderConfig_Dev& decoder_config); | 24 const PP_VideoDecoderConfig_Dev& decoder_config); |
23 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, | 25 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, |
24 uint32_t sample_count, | 26 uint32_t sample_count, |
25 PlatformAudio::Client* client); | 27 PlatformAudio::Client* client); |
26 virtual void NumberOfFindResultsChanged(int identifier, | 28 virtual void NumberOfFindResultsChanged(int identifier, |
27 int total, | 29 int total, |
28 bool final_result); | 30 bool final_result); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 virtual base::PlatformFileError CreateModuleLocalDir( | 74 virtual base::PlatformFileError CreateModuleLocalDir( |
73 const std::string& module_name, | 75 const std::string& module_name, |
74 const FilePath& path); | 76 const FilePath& path); |
75 virtual base::PlatformFileError QueryModuleLocalFile( | 77 virtual base::PlatformFileError QueryModuleLocalFile( |
76 const std::string& module_name, | 78 const std::string& module_name, |
77 const FilePath& path, | 79 const FilePath& path, |
78 base::PlatformFileInfo* info); | 80 base::PlatformFileInfo* info); |
79 virtual base::PlatformFileError GetModuleLocalDirContents( | 81 virtual base::PlatformFileError GetModuleLocalDirContents( |
80 const std::string& module_name, | 82 const std::string& module_name, |
81 const FilePath& path, | 83 const FilePath& path, |
82 PepperDirContents* contents); | 84 DirContents* contents); |
83 virtual scoped_refptr<base::MessageLoopProxy> | 85 virtual scoped_refptr<base::MessageLoopProxy> |
84 GetFileThreadMessageLoopProxy(); | 86 GetFileThreadMessageLoopProxy(); |
85 virtual FullscreenContainer* CreateFullscreenContainer( | 87 virtual FullscreenContainer* CreateFullscreenContainer( |
86 PluginInstance* instance); | 88 PluginInstance* instance); |
87 virtual std::string GetDefaultEncoding(); | 89 virtual std::string GetDefaultEncoding(); |
88 virtual void ZoomLimitsChanged(double minimum_factor, | 90 virtual void ZoomLimitsChanged(double minimum_factor, |
89 double maximum_factor); | 91 double maximum_factor); |
90 virtual std::string ResolveProxy(const GURL& url); | 92 virtual std::string ResolveProxy(const GURL& url); |
91 virtual void DidStartLoading(); | 93 virtual void DidStartLoading(); |
92 virtual void DidStopLoading(); | 94 virtual void DidStopLoading(); |
93 virtual void SetContentRestriction(int restrictions); | 95 virtual void SetContentRestriction(int restrictions); |
94 }; | 96 }; |
95 | 97 |
96 } // namespace pepper | 98 } // namespace ppapi |
| 99 } // namespace plugins |
| 100 } // namespace webkit |
97 | 101 |
98 #endif // WEBKIT_GLUE_PLUGINS_MOCK_PLUGIN_DELEGATE_H_ | 102 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |