fix: window menu should handle keys correctly (#21434)

* fix: overriding AccessiblePaneView's methods

* chore: add CL link
This commit is contained in:
Cheng Zhao 2019-12-10 16:15:48 +09:00 committed by GitHub
parent ec0edb757a
commit a6d142a112
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 3 deletions

View file

@ -71,6 +71,8 @@ class MenuBar : public views::AccessiblePaneView,
// views::AccessiblePaneView:
bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
bool SetPaneFocus(views::View* initial_focus) override;
void RemovePaneFocus() override;
protected:
// views::View:
@ -82,9 +84,6 @@ class MenuBar : public views::AccessiblePaneView,
const ui::Event* event) override;
void OnThemeChanged() override;
bool SetPaneFocus(views::View* initial_focus);
void RemovePaneFocus();
private:
friend class MenuBarColorUpdater;