Chromium Code Reviews| Index: views/controls/menu/menu_item_view.cc |
| diff --git a/views/controls/menu/menu_item_view.cc b/views/controls/menu/menu_item_view.cc |
| index 8181793a74561dd8a3d119d2b8fd20e612ec04fb..965acb9f6a8732c41fef0309c5888d522877598e 100644 |
| --- a/views/controls/menu/menu_item_view.cc |
| +++ b/views/controls/menu/menu_item_view.cc |
| @@ -431,8 +431,12 @@ void MenuItemView::Layout() { |
| } |
| int MenuItemView::GetAcceleratorTextWidth() { |
| +#if defined(TOUCH_UI) |
|
sky
2011/09/02 00:43:04
How about adding to MenuConfig and option as to wh
|
| + return 0; |
| +#else |
| string16 text = GetAcceleratorText(); |
| return text.empty() ? 0 : GetFont().GetStringWidth(text); |
| +#endif |
| } |
| void MenuItemView::SetMargins(int top_margin, int bottom_margin) { |