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

Unified Diff: app/menus/menu_model.h

Issue 5574006: Start deinlining non-empty virtual methods. (This will be automatically checked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove virtual from VideoFrame::type() Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « app/animation.cc ('k') | app/menus/menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/menus/menu_model.h
diff --git a/app/menus/menu_model.h b/app/menus/menu_model.h
index 8247f60af0c461d6b551957d766b1efe663d430b..62732cd2be5f78bc1a0fe9a6bbcd455ae35438cf 100644
--- a/app/menus/menu_model.h
+++ b/app/menus/menu_model.h
@@ -49,7 +49,7 @@ class MenuModel {
// IMPORTANT: If the model implementation returns something _other_ than 0
// here, it must offset the values for |index| it passes to the
// methods below by this number - this is NOT done automatically!
- virtual int GetFirstItemIndex(gfx::NativeMenu native_menu) const { return 0; }
+ virtual int GetFirstItemIndex(gfx::NativeMenu native_menu) const;
// Returns the number of items in the menu.
virtual int GetItemCount() const = 0;
@@ -70,7 +70,7 @@ class MenuModel {
// Returns the font use for the label at the specified index.
// If NULL, then use default font.
- virtual const gfx::Font* GetLabelFontAt(int index) const { return NULL; }
+ virtual const gfx::Font* GetLabelFontAt(int index) const;
// Gets the acclerator information for the specified index, returning true if
// there is a shortcut accelerator for the item, false otherwise.
« no previous file with comments | « app/animation.cc ('k') | app/menus/menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698