summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/tabs/tab_renderer.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/views/tabs/tab_renderer.cc b/chrome/browser/views/tabs/tab_renderer.cc
index 3d5556c..887d5f6 100644
--- a/chrome/browser/views/tabs/tab_renderer.cc
+++ b/chrome/browser/views/tabs/tab_renderer.cc
@@ -185,8 +185,10 @@ class TabCloseButton : public views::Button {
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
+ // sees them.
+ return event.IsOnlyMiddleMouseButton() ? false : handled;
}
// We need to let the parent know about mouse state so that it