summaryrefslogtreecommitdiffstats
path: root/app/menus/menu_model.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/menus/menu_model.h')
-rw-r--r--app/menus/menu_model.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/menus/menu_model.h b/app/menus/menu_model.h
index 50f2e54..f14c8b5 100644
--- a/app/menus/menu_model.h
+++ b/app/menus/menu_model.h
@@ -20,6 +20,7 @@ class Font;
namespace menus {
class Accelerator;
+class ButtonMenuItemModel;
// An interface implemented by an object that provides the content of a menu.
class MenuModel {
@@ -32,6 +33,7 @@ class MenuModel {
TYPE_CHECK,
TYPE_RADIO,
TYPE_SEPARATOR,
+ TYPE_BUTTON_ITEM,
TYPE_SUBMENU
};
@@ -85,6 +87,9 @@ class MenuModel {
// is an icon, false otherwise.
virtual bool GetIconAt(int index, SkBitmap* icon) const = 0;
+ // Returns the model for a menu item with a line of buttons at |index|.
+ virtual ButtonMenuItemModel* GetButtonMenuItemAt(int index) const = 0;
+
// Returns the enabled state of the item at the specified index.
virtual bool IsEnabledAt(int index) const = 0;