OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/controls/menu/menu_item_view.h" | 5 #include "ui/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.h" | 8 #include "base/stl_util.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "grit/ui_resources.h" | 10 #include "grit/ui_resources.h" |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 return true; | 1064 return true; |
1065 } else { | 1065 } else { |
1066 const Type& type = menu_item->GetType(); | 1066 const Type& type = menu_item->GetType(); |
1067 if (type == CHECKBOX || type == RADIO) | 1067 if (type == CHECKBOX || type == RADIO) |
1068 return true; | 1068 return true; |
1069 } | 1069 } |
1070 } | 1070 } |
1071 return false; | 1071 return false; |
1072 } | 1072 } |
1073 | 1073 |
| 1074 template<> |
| 1075 MenuRunner::RunResult MenuRunner::RunMenuAt(Widget* parent, |
| 1076 MenuButton* button, |
| 1077 const gfx::Rect& bounds, |
| 1078 MenuItemView::AnchorPosition anchor, |
| 1079 ui::MenuSourceType source_type, |
| 1080 int32 types) { |
| 1081 return RunMenuAt(parent, button, bounds, |
| 1082 static_cast<ui::MenuAnchorPosition>(anchor), |
| 1083 source_type, types); |
| 1084 } |
| 1085 |
1074 } // namespace views | 1086 } // namespace views |
OLD | NEW |