summaryrefslogtreecommitdiffstats
path: root/content/test/test_render_view_host_factory.cc
diff options
context:
space:
mode:
authorjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-16 16:19:05 +0000
committerjochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-16 16:19:05 +0000
commit4ca76c039697483d5f27accf2772ca9cdcd1a586 (patch)
tree3cfb7fd955918e6a833ba945980bab06a575af2e /content/test/test_render_view_host_factory.cc
parent5795ee1901f6a14a8635b93a8b7a39589eb8b179 (diff)
downloadchromium_src-4ca76c039697483d5f27accf2772ca9cdcd1a586.zip
chromium_src-4ca76c039697483d5f27accf2772ca9cdcd1a586.tar.gz
chromium_src-4ca76c039697483d5f27accf2772ca9cdcd1a586.tar.bz2
Move keyboard related methods from RenderViewHostDelegate to a new RenderWidgetHostDelegate
That way, a WebContentsDelegate gets to handle the keyboard events also for widgets spawned by the WebContents BUG=none TEST=what could possibly go wrong? Review URL: https://chromiumcodereview.appspot.com/10377158 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@137436 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/test_render_view_host_factory.cc')
-rw-r--r--content/test/test_render_view_host_factory.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/test/test_render_view_host_factory.cc b/content/test/test_render_view_host_factory.cc
index 9173dcb..7a7f33c 100644
--- a/content/test/test_render_view_host_factory.cc
+++ b/content/test/test_render_view_host_factory.cc
@@ -28,13 +28,15 @@ void TestRenderViewHostFactory::set_render_process_host_factory(
content::RenderViewHost* TestRenderViewHostFactory::CreateRenderViewHost(
SiteInstance* instance,
RenderViewHostDelegate* delegate,
+ RenderWidgetHostDelegate* widget_delegate,
int routing_id,
bool swapped_out,
SessionStorageNamespace* session_storage) {
// See declaration of render_process_host_factory_ below.
static_cast<SiteInstanceImpl*>(instance)->
set_render_process_host_factory(render_process_host_factory_);
- return new TestRenderViewHost(instance, delegate, routing_id, swapped_out);
+ return new TestRenderViewHost(
+ instance, delegate, widget_delegate, routing_id, swapped_out);
}
} // namespace content