void Tray::BuildPrototype(v8::Isolate* isolate,
v8::Local<v8::ObjectTemplate> prototype) {
mate::ObjectTemplateBuilder(isolate, prototype)
- .SetMethod("destroy", &Tray::Destroy)
+ .SetMethod("destroy", &Tray::Destroy, true)
.SetMethod("setImage", &Tray::SetImage)
.SetMethod("setPressedImage", &Tray::SetPressedImage)
.SetMethod("setToolTip", &Tray::SetToolTip)
v8::Isolate* isolate) {
if (template_.IsEmpty())
template_.Reset(isolate, mate::ObjectTemplateBuilder(isolate)
- .SetMethod("destroy", &WebContents::Destroy)
- .SetMethod("isAlive", &WebContents::IsAlive)
+ .SetMethod("destroy", &WebContents::Destroy, true)
+ .SetMethod("isAlive", &WebContents::IsAlive, true)
.SetMethod("getId", &WebContents::GetID)
.SetMethod("equal", &WebContents::Equal)
.SetMethod("_loadUrl", &WebContents::LoadURL)
.SetMethod("unselect", &WebContents::Unselect)
.SetMethod("replace", &WebContents::Replace)
.SetMethod("replaceMisspelling", &WebContents::ReplaceMisspelling)
- .SetMethod("_send", &WebContents::SendIPCMessage)
+ .SetMethod("_send", &WebContents::SendIPCMessage, true)
.SetMethod("setSize", &WebContents::SetSize)
.SetMethod("setAllowTransparency", &WebContents::SetAllowTransparency)
.SetMethod("isGuest", &WebContents::IsGuest)
void Window::BuildPrototype(v8::Isolate* isolate,
v8::Local<v8::ObjectTemplate> prototype) {
mate::ObjectTemplateBuilder(isolate, prototype)
- .SetMethod("destroy", &Window::Destroy)
+ .SetMethod("destroy", &Window::Destroy, true)
.SetMethod("close", &Window::Close)
.SetMethod("isClosed", &Window::IsClosed)
.SetMethod("focus", &Window::Focus)
.SetMethod("showDefinitionForSelection",
&Window::ShowDefinitionForSelection)
#endif
- .SetProperty("id", &Window::ID)
- .SetProperty("webContents", &Window::WebContents)
- .SetProperty("devToolsWebContents", &Window::DevToolsWebContents);
+ .SetProperty("id", &Window::ID, true)
+ .SetProperty("webContents", &Window::WebContents, true)
+ .SetProperty("devToolsWebContents", &Window::DevToolsWebContents, true);
}
} // namespace api
closedByEmbedder = ->
embedder.send 'ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_CLOSED', guest.id
guest.removeListener 'closed', closedByUser
- guest.destroy() unless guest.isClosed()
+ guest.destroy()
closedByUser = ->
embedder.send 'ATOM_SHELL_GUEST_WINDOW_MANAGER_WINDOW_CLOSED', guest.id
embedder.removeListener 'render-view-deleted', closedByEmbedder
-Subproject commit 7b9926807d330ec173e912f28b86f843225a3286
+Subproject commit 41cd6d13c9c9be164f427864277f3cc36b69eb39