From 3d1104f27426048f4a951a614507b047fc7fd416 Mon Sep 17 00:00:00 2001 From: "pinkerton@chromium.org" Date: Thu, 26 Mar 2009 15:30:28 +0000 Subject: Allow live tabs to be dragged out of a window. Change TabStripModel such that the caller must now explicitly show the newly created browser rather than it happening automatically. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12550 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/browser.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'chrome/browser/browser.cc') diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc index f1b3a5b..59b8157 100644 --- a/chrome/browser/browser.cc +++ b/chrome/browser/browser.cc @@ -1307,9 +1307,9 @@ GURL Browser::GetBlankTabURL() const { return GURL(chrome::kChromeUINewTabURL); } -void Browser::CreateNewStripWithContents(TabContents* detached_contents, - const gfx::Rect& window_bounds, - const DockInfo& dock_info) { +Browser* Browser::CreateNewStripWithContents(TabContents* detached_contents, + const gfx::Rect& window_bounds, + const DockInfo& dock_info) { DCHECK(type_ == TYPE_NORMAL); gfx::Rect new_window_bounds = window_bounds; @@ -1327,7 +1327,7 @@ void Browser::CreateNewStripWithContents(TabContents* detached_contents, // Make sure the loading state is updated correctly, otherwise the throbber // won't start if the page is loading. browser->LoadingStateChanged(detached_contents); - browser->window()->Show(); + return browser; } int Browser::GetDragActions() const { -- cgit v1.1