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

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

Issue 7109037: views: Make MenuDelegate constructor virtual. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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') | no next file » | 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 MenuDelegate::~MenuDelegate() {}
11
10 bool MenuDelegate::IsItemChecked(int id) const { 12 bool MenuDelegate::IsItemChecked(int id) const {
11 return false; 13 return false;
12 } 14 }
13 15
14 std::wstring MenuDelegate::GetLabel(int id) const { 16 std::wstring MenuDelegate::GetLabel(int id) const {
15 return std::wstring(); 17 return std::wstring();
16 } 18 }
17 19
18 const gfx::Font& MenuDelegate::GetLabelFont(int id) const { 20 const gfx::Font& MenuDelegate::GetLabelFont(int id) const {
19 return MenuConfig::instance().font; 21 return MenuConfig::instance().font;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 return 800; 118 return 800;
117 } 119 }
118 120
119 void MenuDelegate::WillShowMenu(MenuItemView* menu) { 121 void MenuDelegate::WillShowMenu(MenuItemView* menu) {
120 } 122 }
121 123
122 void MenuDelegate::WillHideMenu(MenuItemView* menu) { 124 void MenuDelegate::WillHideMenu(MenuItemView* menu) {
123 } 125 }
124 126
125 } // namespace views 127 } // namespace views
OLDNEW
« no previous file with comments | « views/controls/menu/menu_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698