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

Side by Side Diff: ui/views/controls/menu/menu_item_view.cc

Issue 187483005: Extending the Views-on-Mac experiment: whole app list grid. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: still compiles r263560 + crrev/195793005 Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/menu/menu_item_view.h ('k') | ui/views/controls/menu/menu_runner.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/views/controls/menu/menu_item_view.h ('k') | ui/views/controls/menu/menu_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698