feat: add LabelButton API

This commit is contained in:
Cheng Zhao 2018-05-24 17:11:08 +09:00
parent c8e8cb86ce
commit 70e17b5f8f
8 changed files with 126 additions and 5 deletions

View file

@ -19,6 +19,10 @@ Button::Button(views::Button* button) : View(button) {
Button::~Button() {}
void Button::ButtonPressed(views::Button* sender, const ui::Event& event) {
Emit("click");
}
// static
mate::WrappableBase* Button::New(mate::Arguments* args) {
args->ThrowError("Button can not be created directly");