Commit 8cff9d9c authored by sky@chromium.org's avatar sky@chromium.org

Makes the new tab button work in touch mode.

BUG=125429
TEST=none
R=ben@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10267005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134525 0039d316-1c4b-4281-b951-d872f2087c98
parent 1948a478
......@@ -1079,6 +1079,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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment