| Index: chrome/browser/browser.cc
|
| ===================================================================
|
| --- chrome/browser/browser.cc (revision 19992)
|
| +++ chrome/browser/browser.cc (working copy)
|
| @@ -1411,6 +1411,18 @@
|
| return browser;
|
| }
|
|
|
| +void Browser::ContinueDraggingDetachedTab(TabContents* contents,
|
| + const gfx::Rect& window_bounds,
|
| + const gfx::Rect& tab_bounds) {
|
| + Browser* browser = new Browser(TYPE_NORMAL, profile_);
|
| + browser->set_override_bounds(window_bounds);
|
| + browser->CreateBrowserWindow();
|
| + browser->tabstrip_model()->AppendTabContents(contents, true);
|
| + browser->LoadingStateChanged(contents);
|
| + browser->window()->Show();
|
| + browser->window()->ContinueDraggingDetachedTab(tab_bounds);
|
| +}
|
| +
|
| int Browser::GetDragActions() const {
|
| return TAB_TEAROFF_ACTION | (tab_count() > 1 ? TAB_MOVE_ACTION : 0);
|
| }
|
|
|