| Index: ui/base/models/menu_model.h
|
| diff --git a/ui/base/models/menu_model.h b/ui/base/models/menu_model.h
|
| index 095dde521d94204ee250f4e47fff7bc4c5bff4a9..39c31085a9ac84ba195741ee75bb01ff6ae1a0f5 100644
|
| --- a/ui/base/models/menu_model.h
|
| +++ b/ui/base/models/menu_model.h
|
| @@ -58,16 +58,23 @@ class UI_EXPORT MenuModel {
|
| // Returns the label of the item at the specified index.
|
| virtual string16 GetLabelAt(int index) const = 0;
|
|
|
| - // Returns true if the menu item (label/icon) at the specified index can
|
| - // change over the course of the menu's lifetime. If this function returns
|
| - // true, the label and icon of the menu item will be updated each time the
|
| - // menu is shown.
|
| + // Returns the sub-label of the item at the specified index.
|
| + virtual string16 GetSubLabelAt(int index) const;
|
| +
|
| + // Returns true if the menu item (label/sub-label/icon) at the specified
|
| + // index can change over the course of the menu's lifetime. If this function
|
| + // returns true, the label and icon of the menu item will be updated each time
|
| + // the menu is shown.
|
| virtual bool IsItemDynamicAt(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;
|
|
|
| + // Returns the font use for the sub-label at the specified index.
|
| + // If NULL, then use default font.
|
| + virtual const gfx::Font* GetSubLabelFontAt(int index) const;
|
| +
|
| // 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,
|
|
|