| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "views/controls/menu/menu_item_view.h" | 5 #include "views/controls/menu/menu_item_view.h" |
| 6 | 6 |
| 7 #include "base/i18n/case_conversion.h" | 7 #include "base/i18n/case_conversion.h" |
| 8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "grit/ui_strings.h" | 10 #include "grit/ui_strings.h" |
| 11 #include "ui/base/accessibility/accessible_view_state.h" | 11 #include "ui/base/accessibility/accessible_view_state.h" |
| 12 #include "ui/base/l10n/l10n_util.h" | 12 #include "ui/base/l10n/l10n_util.h" |
| 13 #include "ui/base/models/menu_model.h" | 13 #include "ui/base/models/menu_model.h" |
| 14 #include "ui/gfx/canvas.h" | 14 #include "ui/gfx/canvas.h" |
| 15 #include "views/controls/button/menu_button.h" | 15 #include "views/controls/button/menu_button.h" |
| 16 #include "views/controls/button/text_button.h" | 16 #include "views/controls/button/text_button.h" |
| 17 #include "views/controls/menu/menu_config.h" | 17 #include "views/controls/menu/menu_config.h" |
| 18 #include "views/controls/menu/menu_controller.h" | 18 #include "views/controls/menu/menu_controller.h" |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 return string16(); | 766 return string16(); |
| 767 } | 767 } |
| 768 | 768 |
| 769 Accelerator accelerator; | 769 Accelerator accelerator; |
| 770 return (GetDelegate() && | 770 return (GetDelegate() && |
| 771 GetDelegate()->GetAccelerator(GetCommand(), &accelerator)) ? | 771 GetDelegate()->GetAccelerator(GetCommand(), &accelerator)) ? |
| 772 accelerator.GetShortcutText() : string16(); | 772 accelerator.GetShortcutText() : string16(); |
| 773 } | 773 } |
| 774 | 774 |
| 775 } // namespace views | 775 } // namespace views |
| OLD | NEW |