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/views/tabs/dragged_tab_controller.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chrome/browser/views/tabs') diff --git a/chrome/browser/views/tabs/dragged_tab_controller.cc b/chrome/browser/views/tabs/dragged_tab_controller.cc index 0557d91..b4d9f15 100644 --- a/chrome/browser/views/tabs/dragged_tab_controller.cc +++ b/chrome/browser/views/tabs/dragged_tab_controller.cc @@ -1041,8 +1041,10 @@ bool DraggedTabController::CompleteDrag() { gfx::Rect window_bounds( GetWindowCreatePoint(), gfx::Size(browser_rect.Width(), browser_rect.Height())); - source_tabstrip_->model()->delegate()->CreateNewStripWithContents( - dragged_contents_, window_bounds, dock_info_); + Browser* new_browser = + source_tabstrip_->model()->delegate()->CreateNewStripWithContents( + dragged_contents_, window_bounds, dock_info_); + new_browser->window()->Show(); CleanUpHiddenFrame(); } -- cgit v1.1