mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
fix: set prototype names on gin::Constructible classes (#39006)
* fix: set prototype names on gin::Constructible classes * test: add tests
This commit is contained in:
@@ -45,13 +45,15 @@ class Protocol : public gin::Wrappable<Protocol>,
|
||||
static gin::Handle<Protocol> Create(v8::Isolate* isolate,
|
||||
ElectronBrowserContext* browser_context);
|
||||
|
||||
// gin_helper::Constructible
|
||||
static gin::Handle<Protocol> New(gin_helper::ErrorThrower thrower);
|
||||
|
||||
// gin::Wrappable
|
||||
static gin::WrapperInfo kWrapperInfo;
|
||||
static v8::Local<v8::ObjectTemplate> FillObjectTemplate(
|
||||
v8::Isolate* isolate,
|
||||
v8::Local<v8::ObjectTemplate> tmpl);
|
||||
static const char* GetClassName() { return "Protocol"; }
|
||||
|
||||
// gin::Wrappable
|
||||
static gin::WrapperInfo kWrapperInfo;
|
||||
const char* GetTypeName() override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user