diff options
author | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 23:09:43 +0000 |
---|---|---|
committer | stoyan@chromium.org <stoyan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-23 23:09:43 +0000 |
commit | e0c7c263ba8720bc8616fc1ed73a1480dc931f6f (patch) | |
tree | ccd10968df3aae90a09db0766318a564f24132bc /chrome/browser/browser.cc | |
parent | 6e939b54d6c746bf2a75b605a344bb8efede7915 (diff) | |
download | chromium_src-e0c7c263ba8720bc8616fc1ed73a1480dc931f6f.zip chromium_src-e0c7c263ba8720bc8616fc1ed73a1480dc931f6f.tar.gz chromium_src-e0c7c263ba8720bc8616fc1ed73a1480dc931f6f.tar.bz2 |
Move Browser implementation of callback interfaces into the private section.
Split TabContentsDelegate and PageNavigator.
Review URL: http://codereview.chromium.org/88063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14375 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.cc')
-rw-r--r-- | chrome/browser/browser.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index 4b5234e..36e3be6 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -543,6 +543,30 @@ TabContents* Browser::AddTabWithNavigationController( return tc; } +void Browser::AddTabContents(TabContents* new_contents, + WindowOpenDisposition disposition, + const gfx::Rect& initial_pos, + bool user_gesture) { + AddNewContents(NULL, new_contents, disposition, initial_pos, user_gesture); +} + +void Browser::CloseTabContents(TabContents* contents) { + CloseContents(contents); +} + +void Browser::BrowserShowHtmlDialog(HtmlDialogUIDelegate* delegate, + void* parent_window) { + ShowHtmlDialog(delegate, parent_window); +} + +void Browser::BrowserRenderWidgetShowing() { + RenderWidgetShowing(); +} + +void Browser::ToolbarSizeChanged(bool is_animating) { + ToolbarSizeChanged(NULL, is_animating); +} + TabContents* Browser::AddRestoredTab( const std::vector<TabNavigation>& navigations, int tab_index, @@ -1627,6 +1651,14 @@ void Browser::TabStripEmpty() { } /////////////////////////////////////////////////////////////////////////////// +// Browser, PageNavigator implementation: +void Browser::OpenURL(const GURL& url, const GURL& referrer, + WindowOpenDisposition disposition, + PageTransition::Type transition) { + OpenURLFromTab(NULL, url, referrer, disposition, transition); +} + +/////////////////////////////////////////////////////////////////////////////// // Browser, TabContentsDelegate implementation: void Browser::OpenURLFromTab(TabContents* source, |