summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.cc
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-28 03:09:53 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-28 03:09:53 +0000
commit6dfed102065bda2e23541a5bf871b97258174fe3 (patch)
tree4b182c22eb74adcdd4ede2315062b991946b1005 /chrome/browser/browser.cc
parent26e607f289bc2f5ca82ee804969572606e1c0738 (diff)
downloadchromium_src-6dfed102065bda2e23541a5bf871b97258174fe3.zip
chromium_src-6dfed102065bda2e23541a5bf871b97258174fe3.tar.gz
chromium_src-6dfed102065bda2e23541a5bf871b97258174fe3.tar.bz2
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
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r--chrome/browser/browser.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index ac6701a..8bdbc81 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -369,7 +369,7 @@ gfx::Rect Browser::GetSavedWindowBounds() const {
gfx::Rect restored_bounds = override_bounds_;
bool maximized;
- WindowSizer::GetBrowserWindowBounds(app_name_, restored_bounds,
+ WindowSizer::GetBrowserWindowBounds(app_name_, restored_bounds, NULL,
&restored_bounds, &maximized);
return restored_bounds;
}
@@ -388,7 +388,7 @@ bool Browser::GetSavedMaximizedState() const {
// An explicit maximized state was not set. Query the window sizer.
gfx::Rect restored_bounds;
bool maximized = false;
- WindowSizer::GetBrowserWindowBounds(app_name_, restored_bounds,
+ WindowSizer::GetBrowserWindowBounds(app_name_, restored_bounds, NULL,
&restored_bounds, &maximized);
return maximized;
}
@@ -1980,6 +1980,12 @@ void Browser::RenderWidgetShowing() {
window_->DisableInactiveFrame();
}
+ExtensionFunctionDispatcher* Browser::CreateExtensionFunctionDispatcher(
+ RenderViewHost* render_view_host,
+ const std::string& extension_id) {
+ return new ExtensionFunctionDispatcher(render_view_host, this, extension_id);
+}
+
///////////////////////////////////////////////////////////////////////////////
// Browser, SelectFileDialog::Listener implementation: