feat: add webContents.setWindowOpenHandler API (#24517)
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
This commit is contained in:
parent
6b222a2d8a
commit
0b85fdf26c
56 changed files with 2087 additions and 885 deletions
|
@ -21,6 +21,7 @@ template <typename T>
|
|||
class EventEmitterMixin {
|
||||
public:
|
||||
// this.emit(name, new Event(), args...);
|
||||
// Returns true if event.preventDefault() was called during processing.
|
||||
template <typename... Args>
|
||||
bool Emit(base::StringPiece name, Args&&... args) {
|
||||
v8::Isolate* isolate = electron::JavascriptEnvironment::GetIsolate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue