diff options
author | tkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-10 07:19:24 +0000 |
---|---|---|
committer | tkent@google.com <tkent@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-10 07:19:24 +0000 |
commit | 9f7b4d98cb1fb1065cbf8b045e50adcc6d4a2524 (patch) | |
tree | d3b599f89835284321e8196a054b13d96c514f56 /webkit/support/test_webplugin_page_delegate.h | |
parent | bee2335c8e86ab394e5380005d9d481b3f2b8ee3 (diff) | |
download | chromium_src-9f7b4d98cb1fb1065cbf8b045e50adcc6d4a2524.zip chromium_src-9f7b4d98cb1fb1065cbf8b045e50adcc6d4a2524.tar.gz chromium_src-9f7b4d98cb1fb1065cbf8b045e50adcc6d4a2524.tar.bz2 |
Move npapi_layout_test_plugin target to webkit_support to use it from
WebKit DumpRenderTree.
The following code change affects only WebKit DumpRenderTree.
* webkit_support.cc
- WebPluginImplWithPageDelegate passes a plugin path and MIME type to WebPluginImpl.
- CreateWebPlugin checks a MIME type.
This is the same logic as test_shell.
* test_webplugin_page_delegate.h
Creates and returns a WebPluginDelegateImpl instance.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2729004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/support/test_webplugin_page_delegate.h')
-rw-r--r-- | webkit/support/test_webplugin_page_delegate.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webkit/support/test_webplugin_page_delegate.h b/webkit/support/test_webplugin_page_delegate.h index fe61032..05d4728 100644 --- a/webkit/support/test_webplugin_page_delegate.h +++ b/webkit/support/test_webplugin_page_delegate.h @@ -7,6 +7,7 @@ #include <string> +#include "webkit/glue/plugins/webplugin_delegate_impl.h" #include "webkit/glue/plugins/webplugin_page_delegate.h" namespace webkit_support { @@ -18,7 +19,11 @@ class TestWebPluginPageDelegate : public webkit_glue::WebPluginPageDelegate { virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( const FilePath& file_path, - const std::string& mime_type) { return NULL; } + const std::string& mime_type) { + // We don't need a valid native window handle in layout tests. + // So just passing 0. + return WebPluginDelegateImpl::Create(file_path, mime_type, 0); + } virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) {} virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) {} virtual void DidMovePlugin(const webkit_glue::WebPluginGeometry& move) {} |