Chromium Code Reviews| Index: chrome/browser/views/tabs/tab_renderer.cc |
| =================================================================== |
| --- chrome/browser/views/tabs/tab_renderer.cc (revision 11270) |
| +++ chrome/browser/views/tabs/tab_renderer.cc (working copy) |
| @@ -185,8 +185,10 @@ |
| virtual ~TabCloseButton() {} |
| virtual bool OnMousePressed(const views::MouseEvent& event) { |
| - LOG(WARNING) << "MOUSE PRESSED"; |
| - return !event.IsOnlyMiddleMouseButton(); |
| + bool handled = BaseButton::OnMousePressed(event); |
| + // Explicitly mark midle-mouse clicks as non-handled to ensure the tab |
|
Mohamed Mansour (USE mhm)
2009/03/10 21:00:59
nit: spelling error, middle
|
| + // sees them. |
| + return event.IsOnlyMiddleMouseButton() ? false : handled; |
| } |
| // We need to let the parent know about mouse state so that it |