Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.cc

Issue 10267005: Makes the new tab button work in touch mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698