From 3c30891915a40bac4cee93a6dc9246cf1e8d9c95 Mon Sep 17 00:00:00 2001 From: "chocobo@chromium.org" Date: Fri, 19 Feb 2010 23:48:12 +0000 Subject: New network menu button UI for ChromeOS. Added ability to change label font in gtk menu item. TEST=none BUG=none Review URL: http://codereview.chromium.org/650074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39516 0039d316-1c4b-4281-b951-d872f2087c98 --- app/menus/menu_model.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'app/menus/menu_model.h') diff --git a/app/menus/menu_model.h b/app/menus/menu_model.h index 718f3b1..6a522d7 100644 --- a/app/menus/menu_model.h +++ b/app/menus/menu_model.h @@ -11,6 +11,12 @@ class SkBitmap; +namespace gfx { + +class Font; + +} // namespace gfx + namespace menus { class Accelerator; @@ -59,6 +65,10 @@ class MenuModel { // 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, -- cgit v1.1