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

@ -16,7 +16,9 @@ namespace electron {
// Special button that used by menu bar to show submenus.
class SubmenuButton : public views::MenuButton {
public:
SubmenuButton(const base::string16& title, const SkColor& background_color);
SubmenuButton(PressedCallback callback,
const base::string16& title,
const SkColor& background_color);
~SubmenuButton() override;
void SetAcceleratorVisibility(bool visible);