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

Side by Side Diff: views/controls/menu/menu_delegate.cc

Issue 7044016: Replace ButtonDropDown menu implementation (Menu2) with MenuItemView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One last little style fix. Created 9 years, 6 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 | « views/controls/menu/menu_delegate.h ('k') | views/controls/menu/menu_item_view.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) 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_config.h" 5 #include "views/controls/menu/menu_config.h"
6 #include "views/controls/menu/menu_delegate.h" 6 #include "views/controls/menu/menu_delegate.h"
7 7
8 namespace views { 8 namespace views {
9 9
10 bool MenuDelegate::IsItemChecked(int id) const { 10 bool MenuDelegate::IsItemChecked(int id) const {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 int MenuDelegate::GetMaxWidthForMenu(MenuItemView* menu) { 113 int MenuDelegate::GetMaxWidthForMenu(MenuItemView* menu) {
114 // NOTE: this needs to be large enough to accommodate the wrench menu with 114 // NOTE: this needs to be large enough to accommodate the wrench menu with
115 // big fonts. 115 // big fonts.
116 return 800; 116 return 800;
117 } 117 }
118 118
119 void MenuDelegate::WillShowMenu(MenuItemView* menu) { 119 void MenuDelegate::WillShowMenu(MenuItemView* menu) {
120 } 120 }
121 121
122 void MenuDelegate::WillHideMenu(MenuItemView* menu) {
123 }
124
122 } // namespace views 125 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/menu/menu_delegate.h ('k') | views/controls/menu/menu_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698