Make BrowserWindow inheirt TopLevelWindow in JS

This commit is contained in:
Cheng Zhao 2018-04-17 16:46:32 +09:00
parent 71ebd99dfa
commit e38f511737
3 changed files with 18 additions and 12 deletions

View file

@ -397,7 +397,6 @@ mate::WrappableBase* BrowserWindow::New(mate::Arguments* args) {
// static
void BrowserWindow::BuildPrototype(v8::Isolate* isolate,
v8::Local<v8::FunctionTemplate> prototype) {
TopLevelWindow::BuildPrototype(isolate, prototype);
prototype->SetClassName(mate::StringToV8(isolate, "BrowserWindow"));
mate::ObjectTemplateBuilder(isolate, prototype->PrototypeTemplate())
.SetMethod("focusOnWebView", &BrowserWindow::FocusOnWebView)