diff options
author | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-20 00:39:58 +0000 |
---|---|---|
committer | idanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-20 00:39:58 +0000 |
commit | 26a9c996dc395cd77e44a77446346828ae3f48db (patch) | |
tree | f91f001c0e2df9235a36f6c1c7c6145725636a05 /chrome/browser/views/tabs/tab.cc | |
parent | fedc4b5af0bceaa503d0056857c75b671a31870c (diff) | |
download | chromium_src-26a9c996dc395cd77e44a77446346828ae3f48db.zip chromium_src-26a9c996dc395cd77e44a77446346828ae3f48db.tar.gz chromium_src-26a9c996dc395cd77e44a77446346828ae3f48db.tar.bz2 |
Enable dragging of single tab between two windows.
To determine if a window is draggable, all that was needed is to call HasAvailableDrag action
instead of ContainsExactlyOneTab which was not we wanted anyways.
BUG=7861
Review URL: http://codereview.chromium.org/21525
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10068 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/tabs/tab.cc')
-rw-r--r-- | chrome/browser/views/tabs/tab.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/views/tabs/tab.cc b/chrome/browser/views/tabs/tab.cc index 86f0b2c..576a84f 100644 --- a/chrome/browser/views/tabs/tab.cc +++ b/chrome/browser/views/tabs/tab.cc @@ -163,7 +163,7 @@ bool Tab::OnMousePressed(const views::MouseEvent& event) { // it dragged the whole window. This is done by sending a non-client // message which is handled by the default window procedure and causes // the window get the default drag-on-caption behavior. - if (delegate_->ContainsExactlyOneTab()) { + if (!delegate_->HasAvailableDragActions()) { SendMessage(GetWidget()->GetHWND(), WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM(event.x(), event.y())); return false; |