feat: add TopLevelWindow.setContentView API
This commit is contained in:
parent
2b24b26e59
commit
bb2715e7a5
10 changed files with 56 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue