feat: add TopLevelWindow.setContentView API

This commit is contained in:
Cheng Zhao 2018-05-08 14:47:26 +09:00
parent 2b24b26e59
commit bb2715e7a5
10 changed files with 56 additions and 18 deletions

View file

@ -25,7 +25,9 @@ View::~View() {
// static
mate::WrappableBase* View::New(mate::Arguments* args) {
return new View();
auto* view = new View();
view->InitWith(args->isolate(), args->GetThis());
return view;
}
// static