summaryrefslogtreecommitdiffstats
path: root/app/menus/menu_model.h
diff options
context:
space:
mode:
authorchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-19 23:48:12 +0000
committerchocobo@chromium.org <chocobo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-19 23:48:12 +0000
commit3c30891915a40bac4cee93a6dc9246cf1e8d9c95 (patch)
tree32044d3196735a4abf1b5533776868de072c9899 /app/menus/menu_model.h
parentba388887c335ee6e1c7ef1ff065aa550ad1bd9bf (diff)
downloadchromium_src-3c30891915a40bac4cee93a6dc9246cf1e8d9c95.zip
chromium_src-3c30891915a40bac4cee93a6dc9246cf1e8d9c95.tar.gz
chromium_src-3c30891915a40bac4cee93a6dc9246cf1e8d9c95.tar.bz2
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
Diffstat (limited to 'app/menus/menu_model.h')
-rw-r--r--app/menus/menu_model.h10
1 files changed, 10 insertions, 0 deletions
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,