summaryrefslogtreecommitdiffstats
path: root/chrome/views/chrome_menu.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/chrome_menu.h')
-rw-r--r--chrome/views/chrome_menu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/views/chrome_menu.h b/chrome/views/chrome_menu.h
index e1ed347..ec31e35 100644
--- a/chrome/views/chrome_menu.h
+++ b/chrome/views/chrome_menu.h
@@ -368,6 +368,12 @@ class MenuItemView : public View {
// doesn't have a mnemonic.
wchar_t GetMnemonic();
+ // Do we have icons? This only has effect on the top menu. Turning this on
+ // makes the menus slightly wider and taller.
+ void set_has_icons(bool has_icons) {
+ has_icons_ = has_icons;
+ }
+
protected:
// Creates a MenuItemView. This is used by the various AddXXX methods.
MenuItemView(MenuItemView* parent, int command, Type type);
@@ -419,6 +425,10 @@ class MenuItemView : public View {
// the windows used to display all descendants.
void DestroyAllMenuHosts();
+ // Returns the various margins.
+ int GetTopMargin();
+ int GetBottomMargin();
+
// The delegate. This is only valid for the root menu item. You shouldn't
// use this directly, instead use GetDelegate() which walks the tree as
// as necessary.
@@ -459,6 +469,8 @@ class MenuItemView : public View {
// Does the title have a mnemonic?
bool has_mnemonics_;
+ bool has_icons_;
+
DISALLOW_EVIL_CONSTRUCTORS(MenuItemView);
};