Chromium Code Reviews| Index: chrome/browser/views/tabs/tab.cc |
| =================================================================== |
| --- chrome/browser/views/tabs/tab.cc (revision 9942) |
| +++ chrome/browser/views/tabs/tab.cc (working copy) |
| @@ -158,7 +158,12 @@ |
| } |
| bool Tab::OnMousePressed(const views::MouseEvent& event) { |
| - if (event.IsOnlyLeftMouseButton()) { |
| + if (event.IsLeftMouseButton()) { |
| + if (delegate_->ContainsExactlyOneTab()) { |
| + SendMessage(GetWidget()->GetHWND(), WM_NCLBUTTONDOWN, |
|
Peter Kasting
2009/02/18 16:58:25
Nit: Please add a comment explaining what the effe
idanan
2009/02/18 18:02:23
Done.
|
| + HTCAPTION, MAKELPARAM(event.x(), event.y())); |
| + return false; |
| + } |
| // Store whether or not we were selected just now... we only want to be |
| // able to drag foreground tabs, so we don't start dragging the tab if |
| // it was in the background. |