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

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

Issue 8316001: 97871: Bottom half of new tab button on tabstrip is not touchable. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: 97871: Bottom half of new tab button on tabstrip is not touchable. Created 9 years, 2 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 | « AUTHORS ('k') | 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 ea03d92d0e5bb4f12a4b314f509c1451d3173396..349ef15c22b16d291328ec8eead28904448a9b9a 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.cc
+++ b/chrome/browser/ui/views/tabs/tab_strip.cc
@@ -90,6 +90,18 @@ class NewTabButton : public views::ImageButton {
// These values are defined by the shape of the new tab bitmap. Should that
// bitmap ever change, these values will need to be updated. They're so
// custom it's not really worth defining constants for.
+#if defined(TOUCH_UI)
+ // touch_newtab.png size is different from newtab.png.
+ // Change the values for TOUCH_UI as per touch_newtab.png.
+ path->moveTo(0, 1);
+ path->lineTo(w - 14, 1);
+ path->lineTo(w - 10, 6);
+ path->lineTo(w - 7, 28);
+ path->lineTo(w - 1, 32);
+ path->lineTo(11, 32);
+ path->lineTo(7, 28);
+ path->lineTo(0, 1);
+#else
path->moveTo(0, 1);
path->lineTo(w - 7, 1);
path->lineTo(w - 4, 4);
@@ -98,6 +110,7 @@ class NewTabButton : public views::ImageButton {
path->lineTo(7, 17);
path->lineTo(4, 13);
path->lineTo(0, 1);
+#endif
path->close();
}
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698