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

Unified Diff: views/controls/menu/menu_item_view_linux.cc

Issue 7825024: For Touch: remove some menu items for experimentation, adjust sizes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
Index: views/controls/menu/menu_item_view_linux.cc
diff --git a/views/controls/menu/menu_item_view_linux.cc b/views/controls/menu/menu_item_view_linux.cc
index b90c7cea07a5d7ecd45532fefdec42a04b5d25ef..594f3df6ad96a48db899d133fc791e9a194a5fe4 100644
--- a/views/controls/menu/menu_item_view_linux.cc
+++ b/views/controls/menu/menu_item_view_linux.cc
@@ -25,7 +25,7 @@ static const SkColor kSelectedBackgroundColor = SkColorSetRGB(246, 249, 253);
#endif
#if defined(TOUCH_UI)
-const int kMinTouchHeight = 46;
+const int kMinTouchHeight = 40;
#endif
gfx::Size MenuItemView::CalculatePreferredSize() {
@@ -111,8 +111,9 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
text_bounds.x(), text_bounds.y(), text_bounds.width(),
text_bounds.height(),
GetRootMenuItem()->GetDrawStringFlags());
-
+#if !defined(TOUCH_UI)
PaintAccelerator(canvas);
+#endif
// Render the icon.
if (icon_.width() > 0) {
« views/controls/menu/menu_item_view.cc ('K') | « views/controls/menu/menu_item_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698