views: Show menubar's accelerator when "Alt" is pressed.

This commit is contained in:
Cheng Zhao 2014-08-18 14:12:12 +08:00
parent 965f2b1b6b
commit e9536508a5
5 changed files with 30 additions and 1 deletions

View file

@ -31,6 +31,9 @@ class MenuBar : public views::View,
// Replaces current menu with a new one.
void SetMenu(ui::MenuModel* menu_model);
// Shows underline under accelerators.
void SetAcceleratorVisibility(bool visible);
// Returns there are how many items in the root menu.
int GetItemCount() const;