fix: pass button callback in constructor (#27545)
This commit is contained in:
parent
79b3393768
commit
6edf6c6a95
4 changed files with 22 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue