Index: chrome/browser/ui/views/tabs/tab_strip.cc |
diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc |
index 449fe44d7f546ced6f35de5243087a38365f40c0..25b4f2c382088f255e625fa12644efeab4633163 100644 |
--- a/chrome/browser/ui/views/tabs/tab_strip.cc |
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc |
@@ -1076,6 +1076,13 @@ views::View* TabStrip::GetEventHandlerForPoint(const gfx::Point& point) { |
return tab_at(i); |
} |
} else { |
+ if (newtab_button_->visible()) { |
+ gfx::Point newtab_button_point(point); |
+ View::ConvertPointToView(this, newtab_button_, &newtab_button_point); |
+ if (newtab_button_->HitTest(newtab_button_point)) |
+ return newtab_button_->GetEventHandlerForPoint(newtab_button_point); |
+ } |
+ |
int active_tab_index = touch_layout_->active_index(); |
if (active_tab_index != -1) { |
Tab* tab = FindTabForEvent(point, active_tab_index, -1); |