diff options
Diffstat (limited to 'webkit/support/test_webplugin_page_delegate.h')
-rw-r--r-- | webkit/support/test_webplugin_page_delegate.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/webkit/support/test_webplugin_page_delegate.h b/webkit/support/test_webplugin_page_delegate.h new file mode 100644 index 0000000..771aba3 --- /dev/null +++ b/webkit/support/test_webplugin_page_delegate.h @@ -0,0 +1,37 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ +#define WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ + +#include <string> + +#include "webkit/glue/webplugin_page_delegate.h" + +namespace webkit_support { + +class TestWebPluginPageDelegate : public webkit_glue::WebPluginPageDelegate { + public: + TestWebPluginPageDelegate() {} + virtual ~TestWebPluginPageDelegate() {} + + virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( + const GURL& url, + const std::string& mime_type, + std::string* actual_mime_type) { return NULL; } + virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) {} + virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) {} + virtual void DidMovePlugin(const webkit_glue::WebPluginGeometry& move) {} + virtual void DidStartLoadingForPlugin() {} + virtual void DidStopLoadingForPlugin() {} + virtual void ShowModalHTMLDialogForPlugin( + const GURL& url, + const gfx::Size& size, + const std::string& json_arguments, + std::string* json_retval) {} + virtual WebKit::WebCookieJar* GetCookieJar() { return NULL; } +}; + +} // namespace webkit_support +#endif // WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ |