Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1205)

Side by Side Diff: webkit/plugins/ppapi/mock_plugin_delegate.h

Issue 5828003: Move the Pepper implementation from webkit/glue/plugins/pepper_* to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 ppapi {
11 12
12 class MockPluginDelegate : public PluginDelegate { 13 class MockPluginDelegate : public PluginDelegate {
13 public: 14 public:
14 MockPluginDelegate(); 15 MockPluginDelegate();
15 ~MockPluginDelegate(); 16 ~MockPluginDelegate();
16 17
17 virtual void InstanceCreated(pepper::PluginInstance* instance); 18 virtual void InstanceCreated(PluginInstance* instance);
18 virtual void InstanceDeleted(pepper::PluginInstance* instance); 19 virtual void InstanceDeleted(PluginInstance* instance);
19 virtual PlatformImage2D* CreateImage2D(int width, int height); 20 virtual PlatformImage2D* CreateImage2D(int width, int height);
20 virtual PlatformContext3D* CreateContext3D(); 21 virtual PlatformContext3D* CreateContext3D();
21 virtual PlatformVideoDecoder* CreateVideoDecoder( 22 virtual PlatformVideoDecoder* CreateVideoDecoder(
22 const PP_VideoDecoderConfig_Dev& decoder_config); 23 const PP_VideoDecoderConfig_Dev& decoder_config);
23 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, 24 virtual PlatformAudio* CreateAudio(uint32_t sample_rate,
24 uint32_t sample_count, 25 uint32_t sample_count,
25 PlatformAudio::Client* client); 26 PlatformAudio::Client* client);
26 virtual void NumberOfFindResultsChanged(int identifier, 27 virtual void NumberOfFindResultsChanged(int identifier,
27 int total, 28 int total,
28 bool final_result); 29 bool final_result);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 virtual base::PlatformFileError CreateModuleLocalDir( 73 virtual base::PlatformFileError CreateModuleLocalDir(
73 const std::string& module_name, 74 const std::string& module_name,
74 const FilePath& path); 75 const FilePath& path);
75 virtual base::PlatformFileError QueryModuleLocalFile( 76 virtual base::PlatformFileError QueryModuleLocalFile(
76 const std::string& module_name, 77 const std::string& module_name,
77 const FilePath& path, 78 const FilePath& path,
78 base::PlatformFileInfo* info); 79 base::PlatformFileInfo* info);
79 virtual base::PlatformFileError GetModuleLocalDirContents( 80 virtual base::PlatformFileError GetModuleLocalDirContents(
80 const std::string& module_name, 81 const std::string& module_name,
81 const FilePath& path, 82 const FilePath& path,
82 PepperDirContents* contents); 83 DirContents* contents);
83 virtual scoped_refptr<base::MessageLoopProxy> 84 virtual scoped_refptr<base::MessageLoopProxy>
84 GetFileThreadMessageLoopProxy(); 85 GetFileThreadMessageLoopProxy();
85 virtual FullscreenContainer* CreateFullscreenContainer( 86 virtual FullscreenContainer* CreateFullscreenContainer(
86 PluginInstance* instance); 87 PluginInstance* instance);
87 virtual std::string GetDefaultEncoding(); 88 virtual std::string GetDefaultEncoding();
88 virtual void ZoomLimitsChanged(double minimum_factor, 89 virtual void ZoomLimitsChanged(double minimum_factor,
89 double maximum_factor); 90 double maximum_factor);
90 virtual std::string ResolveProxy(const GURL& url); 91 virtual std::string ResolveProxy(const GURL& url);
91 virtual void DidStartLoading(); 92 virtual void DidStartLoading();
92 virtual void DidStopLoading(); 93 virtual void DidStopLoading();
93 virtual void SetContentRestriction(int restrictions); 94 virtual void SetContentRestriction(int restrictions);
94 }; 95 };
95 96
96 } // namespace pepper 97 } // namespace ppapi
98 } // namespace webkit
97 99
98 #endif // WEBKIT_GLUE_PLUGINS_MOCK_PLUGIN_DELEGATE_H_ 100 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/fullscreen_container.h ('k') | webkit/plugins/ppapi/mock_plugin_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698