fix: pass button callback in constructor (#27545)

This commit is contained in:
Cheng Zhao 2021-01-30 05:43:51 +09:00 committed by GitHub
parent 79b3393768
commit 6edf6c6a95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 12 deletions

View file

@ -80,7 +80,7 @@ class MenuBar : public views::AccessiblePaneView,
// views::View:
const char* GetClassName() const override;
void ButtonPressed(views::Button* source, const ui::Event& event);
void ButtonPressed(int id, const ui::Event& event);
void RebuildChildren();
void UpdateViewColors();