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

Side by Side Diff: webkit/support/test_webplugin_page_delegate.h

Issue 2729004: Move npapi_layout_test_plugin target to webkit_support to use it from... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ 5 #ifndef WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_
6 #define WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ 6 #define WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "webkit/glue/plugins/webplugin_delegate_impl.h"
10 #include "webkit/glue/plugins/webplugin_page_delegate.h" 11 #include "webkit/glue/plugins/webplugin_page_delegate.h"
11 12
12 namespace webkit_support { 13 namespace webkit_support {
13 14
14 class TestWebPluginPageDelegate : public webkit_glue::WebPluginPageDelegate { 15 class TestWebPluginPageDelegate : public webkit_glue::WebPluginPageDelegate {
15 public: 16 public:
16 TestWebPluginPageDelegate() {} 17 TestWebPluginPageDelegate() {}
17 virtual ~TestWebPluginPageDelegate() {} 18 virtual ~TestWebPluginPageDelegate() {}
18 19
19 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate( 20 virtual webkit_glue::WebPluginDelegate* CreatePluginDelegate(
20 const FilePath& file_path, 21 const FilePath& file_path,
21 const std::string& mime_type) { return NULL; } 22 const std::string& mime_type) {
23 // We don't need a valid native window handle in layout tests.
24 // So just passing 0.
25 return WebPluginDelegateImpl::Create(file_path, mime_type, 0);
26 }
22 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) {} 27 virtual void CreatedPluginWindow(gfx::PluginWindowHandle handle) {}
23 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) {} 28 virtual void WillDestroyPluginWindow(gfx::PluginWindowHandle handle) {}
24 virtual void DidMovePlugin(const webkit_glue::WebPluginGeometry& move) {} 29 virtual void DidMovePlugin(const webkit_glue::WebPluginGeometry& move) {}
25 virtual void DidStartLoadingForPlugin() {} 30 virtual void DidStartLoadingForPlugin() {}
26 virtual void DidStopLoadingForPlugin() {} 31 virtual void DidStopLoadingForPlugin() {}
27 virtual void ShowModalHTMLDialogForPlugin( 32 virtual void ShowModalHTMLDialogForPlugin(
28 const GURL& url, 33 const GURL& url,
29 const gfx::Size& size, 34 const gfx::Size& size,
30 const std::string& json_arguments, 35 const std::string& json_arguments,
31 std::string* json_retval) {} 36 std::string* json_retval) {}
32 virtual WebKit::WebCookieJar* GetCookieJar() { return NULL; } 37 virtual WebKit::WebCookieJar* GetCookieJar() { return NULL; }
33 }; 38 };
34 39
35 } // namespace webkit_support 40 } // namespace webkit_support
36 #endif // WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_ 41 #endif // WEBKIT_SUPPORT_TEST_WEBPLUGIN_PAGE_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | webkit/support/webkit_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698