refactor: move gin_helper::Constructible methods to prototype (#37087)
This commit is contained in:
parent
8d382b9c60
commit
67dc178e70
15 changed files with 37 additions and 56 deletions
|
@ -394,10 +394,9 @@ bool Tray::CheckAlive() {
|
|||
}
|
||||
|
||||
// static
|
||||
v8::Local<v8::ObjectTemplate> Tray::FillObjectTemplate(
|
||||
v8::Isolate* isolate,
|
||||
v8::Local<v8::ObjectTemplate> templ) {
|
||||
return gin::ObjectTemplateBuilder(isolate, "Tray", templ)
|
||||
void Tray::FillObjectTemplate(v8::Isolate* isolate,
|
||||
v8::Local<v8::ObjectTemplate> templ) {
|
||||
gin::ObjectTemplateBuilder(isolate, "Tray", templ)
|
||||
.SetMethod("destroy", &Tray::Destroy)
|
||||
.SetMethod("isDestroyed", &Tray::IsDestroyed)
|
||||
.SetMethod("setImage", &Tray::SetImage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue