summaryrefslogtreecommitdiffstats
path: root/app/menus/menu_model.h
diff options
context:
space:
mode:
authorerg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 17:26:18 +0000
committererg@chromium.org <erg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-25 17:26:18 +0000
commit564a9026f2f0c9baf0c12b6e72a959ffc8beb985 (patch)
treef51454a79ae8aee7f0d6edc29b40ff95fa148964 /app/menus/menu_model.h
parent49857a356c68f5915ed73452cfc162c18576fedd (diff)
downloadchromium_src-564a9026f2f0c9baf0c12b6e72a959ffc8beb985.zip
chromium_src-564a9026f2f0c9baf0c12b6e72a959ffc8beb985.tar.gz
chromium_src-564a9026f2f0c9baf0c12b6e72a959ffc8beb985.tar.bz2
GTK: First draft of the unified cut/copy/paste and +/-/Fullscreen menu items.
Adds special menu item types that allow shoving buttons into them, along with tracking which button is selected. We now are halfway to the mocks that the chrome-ui-leads sent out. BUG=45757 TEST=none Review URL: http://codereview.chromium.org/2800015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50859 0039d316-1c4b-4281-b951-d872f2087c98
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;