diff options
author | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 18:19:49 +0000 |
---|---|---|
committer | sadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-11 18:19:49 +0000 |
commit | 9800de5ee99882a819eb2673fdf4245cd5c3c770 (patch) | |
tree | 61cbb2622c2d00239b6a151f1add8a323dd19c72 /chrome/browser/ui/browser_navigator.cc | |
parent | c6aed1ddc39eec4e346c73e2e1880519b7f8e163 (diff) | |
download | chromium_src-9800de5ee99882a819eb2673fdf4245cd5c3c770.zip chromium_src-9800de5ee99882a819eb2673fdf4245cd5c3c770.tar.gz chromium_src-9800de5ee99882a819eb2673fdf4245cd5c3c770.tar.bz2 |
Add in DOMBrowser
This is the second CL for a sequence of CLs that will add in the display infrastructure that I have built for the DOM Login and touch keyboard. I have created a reference CL for what the end product of this sequence is intended to be, so that I can give context for the CL under review. This can be found at: http://codereview.chromium.org/6577003/
This CL adds in DOMBrowser to touchui==1 and chromeos==1 builds. This class is a subclass of Browser. It exists mostly to allow the DOMBrowserView and DOMBrowserFrame classes to be used, which will come in following CLs. This CL also extends the guard arround set_window in Browser to allow it to be used in touchui && chromeos builds. This is done to allow DOMBrowser access to the method, since window_ is private not protected. There are also additional checks in Browser added for location_bar being NULL, which are used when DOMBrowserView is the BrowserView, since the location bar does not exist for it.
Patch from Ryan Harrison <rharrison@chromium.org>
BUG=none
TEST=manual
Review URL: http://codereview.chromium.org/6626014
Patch from Ryan Harrison <rharrison@chromium.org>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_navigator.cc')
-rw-r--r-- | chrome/browser/ui/browser_navigator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/ui/browser_navigator.cc b/chrome/browser/ui/browser_navigator.cc index 496a29e..36b53ca 100644 --- a/chrome/browser/ui/browser_navigator.cc +++ b/chrome/browser/ui/browser_navigator.cc @@ -187,7 +187,7 @@ Browser* GetBrowserForDisposition(browser::NavigateParams* params) { if (profile) { Browser* browser = new Browser(type, profile); browser->set_override_bounds(params->window_bounds); - browser->CreateBrowserWindow(); + browser->InitBrowserWindow(); return browser; } return NULL; @@ -196,7 +196,7 @@ Browser* GetBrowserForDisposition(browser::NavigateParams* params) { // Make a new normal browser window. if (profile) { Browser* browser = new Browser(Browser::TYPE_NORMAL, profile); - browser->CreateBrowserWindow(); + browser->InitBrowserWindow(); return browser; } return NULL; |