From 6dfed102065bda2e23541a5bf871b97258174fe3 Mon Sep 17 00:00:00 2001 From: "rafaelw@chromium.org" Date: Tue, 28 Apr 2009 03:09:53 +0000 Subject: Implement tabs.createWindow extension api call. Required: (a) new RVHDelegate & TabContentsDelegate method(s) CreateExtensionFunctionDispatcher() so that the dispatcher could be created with (an optional) browser attached to it, while avoiding having render_host depend on browser.h BUG=11092: R=aa,mpComplete,darin,pkasting Review URL: http://codereview.chromium.org/79070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14710 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/tab_contents/tab_contents.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chrome/browser/tab_contents/tab_contents.cc') diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index fe4ed7a..f11a3c9 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -1598,6 +1598,13 @@ WebContents* TabContents::GetAsWebContents() { return AsWC(this); } +ExtensionFunctionDispatcher* TabContents::CreateExtensionFunctionDispatcher( + RenderViewHost* render_view_host, + const std::string& extension_id) { + return delegate()->CreateExtensionFunctionDispatcher(render_view_host, + extension_id); +} + void TabContents::RenderViewCreated(RenderViewHost* render_view_host) { NavigationEntry* entry = controller_.GetActiveEntry(); if (!entry) -- cgit v1.1