views: Show menubar's submenu when "Alt+Key" is pressed.
This commit is contained in:
parent
e9536508a5
commit
ba41634ad6
5 changed files with 39 additions and 8 deletions
|
@ -20,15 +20,19 @@ class SubmenuButton : public views::MenuButton {
|
|||
void SetAcceleratorVisibility(bool visible);
|
||||
void SetUnderlineColor(SkColor color);
|
||||
|
||||
base::char16 accelerator() const { return accelerator_; }
|
||||
|
||||
// views::MenuButton:
|
||||
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
|
||||
|
||||
private:
|
||||
void GetUnderlinePosition(
|
||||
bool GetUnderlinePosition(
|
||||
const base::string16& text, int* start, int* end);
|
||||
void GetCharacterPosition(
|
||||
const base::string16& text, int index, int* pos);
|
||||
|
||||
base::char16 accelerator_;
|
||||
|
||||
bool show_underline_;
|
||||
|
||||
int underline_start_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue