diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 22:46:50 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 22:46:50 +0000 |
commit | 440d8dba5acdec78133af93ca788a9e995fedb49 (patch) | |
tree | 994f2a5206ed93f3c79bb4ac57a7e63aa5d5fc37 /views/controls/menu/submenu_view.h | |
parent | 02a46a3c1f824675fe72f5fe6a7b95694452a1eb (diff) | |
download | chromium_src-440d8dba5acdec78133af93ca788a9e995fedb49.zip chromium_src-440d8dba5acdec78133af93ca788a9e995fedb49.tar.gz chromium_src-440d8dba5acdec78133af93ca788a9e995fedb49.tar.bz2 |
Adds support for showing accelerators in bookmark menus.
BUG=45734
TEST=none
Review URL: http://codereview.chromium.org/2742003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/menu/submenu_view.h')
-rw-r--r-- | views/controls/menu/submenu_view.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/views/controls/menu/submenu_view.h b/views/controls/menu/submenu_view.h index afef314..62d8aa6 100644 --- a/views/controls/menu/submenu_view.h +++ b/views/controls/menu/submenu_view.h @@ -125,6 +125,10 @@ class SubmenuView : public View { // references to the MenuHost as the MenuHost is about to be deleted. void MenuHostDestroyed(); + // Max width of accelerators in child menu items. This doesn't include + // children's children, only direct children. + int max_accelerator_width() const { return max_accelerator_width_; } + // Padding around the edges of the submenu. static const int kSubmenuBorderSize; @@ -159,6 +163,9 @@ class SubmenuView : public View { // Ancestor of the SubmenuView, lazily created. MenuScrollViewContainer* scroll_view_container_; + // See description above getter. + int max_accelerator_width_; + DISALLOW_COPY_AND_ASSIGN(SubmenuView); }; |