-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove native_mate (Part 3) #20131
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
954eb41
use gin converter in atom_api_menu
zcbenz 1d86ccb
please only put necessary includes in header
zcbenz 4b8ac4d
remove some simple uses of callback_converter_deprecated.h
zcbenz 229278c
use gin callback converter in file_dialog code
zcbenz 83b9a37
use gin in ErrorThrower
zcbenz cd13e4e
use gin in atom_bundle_mover
zcbenz 725a400
fix mistake in node stream
zcbenz b938e0a
deprecate native_mate version of event_emitter_caller
zcbenz 6c9d148
use gin in node_bindings
zcbenz 649f767
remove usages of native_mate event_emitter_caller.h except for EventE…
zcbenz 7f596f6
fix compilation on Windows
zcbenz 4422aa1
gin::Arguments behaves differently on GetNext
zcbenz 025f0ea
just use StringToV8
zcbenz File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Cheng Zhao <zcbenz@gmail.com> | ||
Date: Thu, 4 Oct 2018 14:57:02 -0700 | ||
Subject: gin_dictionary_default_constructor.patch | ||
|
||
Add default constructor for gin::Dictionary. | ||
|
||
This is required for automatically converting arguments for functions that | ||
take gin::Dictionary as parameter. | ||
|
||
diff --git a/gin/dictionary.cc b/gin/dictionary.cc | ||
index 95e00072700c..7643347890a5 100644 | ||
--- a/gin/dictionary.cc | ||
+++ b/gin/dictionary.cc | ||
@@ -6,6 +6,10 @@ | ||
|
||
namespace gin { | ||
|
||
+Dictionary::Dictionary() | ||
+ : isolate_(nullptr) { | ||
+} | ||
+ | ||
Dictionary::Dictionary(v8::Isolate* isolate) | ||
: isolate_(isolate) { | ||
} | ||
diff --git a/gin/dictionary.h b/gin/dictionary.h | ||
index 2645d328b4c1..43b227dd7e48 100644 | ||
--- a/gin/dictionary.h | ||
+++ b/gin/dictionary.h | ||
@@ -24,6 +24,7 @@ namespace gin { | ||
// | ||
class GIN_EXPORT Dictionary { | ||
public: | ||
+ Dictionary(); | ||
explicit Dictionary(v8::Isolate* isolate); | ||
Dictionary(v8::Isolate* isolate, v8::Local<v8::Object> object); | ||
Dictionary(const Dictionary& other); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For such call sites, can we resort to having
gin::Arguments
as the argument and extractgin::Dictionary
from that in the callback, which would avoid this patch. ex:Ideally it would be better if we rewrite
ArgumentsHolder
to not expect a default constructor.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an alternative (because I don't like the idea of duplicate that dictionary construction code everywhere). Can we just extend
gin::Dictionary
intoelectron::util::Dictionary
and implement the empty constructor there?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have an extended
gin_helper::Dictionary
and it should be possible to use it to avoid patchinggin
. I'll put it in the next PR.