views: Pressing "Alt+Key" should bring up the menu bar.

This commit is contained in:
Cheng Zhao 2014-08-18 14:52:44 +08:00
parent ba41634ad6
commit a230daa998
3 changed files with 25 additions and 9 deletions

View file

@ -34,6 +34,10 @@ class MenuBar : public views::View,
// Shows underline under accelerators.
void SetAcceleratorVisibility(bool visible);
// Returns which submenu has accelerator |key|, -1 would be returned when
// there is no matching submenu.
int GetAcceleratorIndex(base::char16 key);
// Shows the submenu whose accelerator is |key|.
void ActivateAccelerator(base::char16 key);