refactor: EventEmitters without gin_helper (#22726)
This commit is contained in:
parent
fc661ec56b
commit
232ca8af39
12 changed files with 277 additions and 49 deletions
21
shell/browser/api/electron_api_event_emitter.h
Normal file
21
shell/browser/api/electron_api_event_emitter.h
Normal file
|
@ -0,0 +1,21 @@
|
|||
// Copyright (c) 2019 Slack Technologies, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef SHELL_BROWSER_API_ELECTRON_API_EVENT_EMITTER_H_
|
||||
#define SHELL_BROWSER_API_ELECTRON_API_EVENT_EMITTER_H_
|
||||
|
||||
namespace v8 {
|
||||
template <typename T>
|
||||
class Local;
|
||||
class Object;
|
||||
class Isolate;
|
||||
} // namespace v8
|
||||
|
||||
namespace electron {
|
||||
|
||||
v8::Local<v8::Object> GetEventEmitterPrototype(v8::Isolate* isolate);
|
||||
|
||||
} // namespace electron
|
||||
|
||||
#endif // SHELL_BROWSER_API_ELECTRON_API_EVENT_EMITTER_H_
|
Loading…
Add table
Add a link
Reference in a new issue