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

Unified Diff: app/menus/menu_model.h

Issue 650074: New network menu button UI for ChromeOS.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | app/resource_bundle.h » ('j') | views/controls/menu/native_menu_gtk.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/menus/menu_model.h
===================================================================
--- app/menus/menu_model.h (revision 39463)
+++ app/menus/menu_model.h (working copy)
@@ -11,6 +11,12 @@
class SkBitmap;
+namespace gfx {
+
+class Font;
+
+} // namespace gfx
+
namespace menus {
class Accelerator;
@@ -59,6 +65,10 @@
// menu item will be updated each time the menu is shown.
virtual bool IsLabelDynamicAt(int index) const = 0;
+ // 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; }
+
// Gets the acclerator information for the specified index, returning true if
// there is a shortcut accelerator for the item, false otherwise.
virtual bool GetAcceleratorAt(int index,
« no previous file with comments | « no previous file | app/resource_bundle.h » ('j') | views/controls/menu/native_menu_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698