chore: use v8::Local<>, not v8::Handle<> (#43036)
v8::Handle is an alias for v8::Local that "is kept around for historical reasons" and is disabled when V8_IMMINENT_DEPRECATION_WARNING is defined Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
parent
0a3ec0899d
commit
d9de48e9c1
15 changed files with 34 additions and 34 deletions
|
@ -24,7 +24,7 @@ namespace gin {
|
|||
template <>
|
||||
struct Converter<base::win::ShortcutOperation> {
|
||||
static bool FromV8(v8::Isolate* isolate,
|
||||
v8::Handle<v8::Value> val,
|
||||
v8::Local<v8::Value> val,
|
||||
base::win::ShortcutOperation* out) {
|
||||
std::string operation;
|
||||
if (!ConvertFromV8(isolate, val, &operation))
|
||||
|
|
|
@ -51,7 +51,7 @@ namespace gin {
|
|||
template <>
|
||||
struct Converter<char16_t> {
|
||||
static bool FromV8(v8::Isolate* isolate,
|
||||
v8::Handle<v8::Value> val,
|
||||
v8::Local<v8::Value> val,
|
||||
char16_t* out) {
|
||||
std::u16string code = base::UTF8ToUTF16(gin::V8ToString(isolate, val));
|
||||
if (code.length() != 1)
|
||||
|
@ -108,7 +108,7 @@ struct Converter<char16_t> {
|
|||
|
||||
bool Converter<blink::WebInputEvent::Type>::FromV8(
|
||||
v8::Isolate* isolate,
|
||||
v8::Handle<v8::Value> val,
|
||||
v8::Local<v8::Value> val,
|
||||
blink::WebInputEvent::Type* out) {
|
||||
std::string type = gin::V8ToString(isolate, val);
|
||||
#define CASE_TYPE(event_type, js_name) \
|
||||
|
@ -134,7 +134,7 @@ v8::Local<v8::Value> Converter<blink::WebInputEvent::Type>::ToV8(
|
|||
template <>
|
||||
struct Converter<blink::WebMouseEvent::Button> {
|
||||
static bool FromV8(v8::Isolate* isolate,
|
||||
v8::Handle<v8::Value> val,
|
||||
v8::Local<v8::Value> val,
|
||||
blink::WebMouseEvent::Button* out) {
|
||||
using Val = blink::WebMouseEvent::Button;
|
||||
static constexpr auto Lookup =
|
||||
|
@ -193,7 +193,7 @@ static constexpr auto ReferrerPolicies =
|
|||
template <>
|
||||
struct Converter<blink::WebInputEvent::Modifiers> {
|
||||
static bool FromV8(v8::Isolate* isolate,
|
||||
v8::Handle<v8::Value> val,
|
||||
v8::Local<v8::Value> val,
|
||||
blink::WebInputEvent::Modifiers* out) {
|
||||
return FromV8WithLowerLookup(isolate, val, Modifiers, out) ||
|
||||
FromV8WithLowerLookup(isolate, val, ModifierAliases, out);
|
||||
|
@ -661,7 +661,7 @@ v8::Local<v8::Value> Converter<network::mojom::ReferrerPolicy>::ToV8(
|
|||
// static
|
||||
bool Converter<network::mojom::ReferrerPolicy>::FromV8(
|
||||
v8::Isolate* isolate,
|
||||
v8::Handle<v8::Value> val,
|
||||
v8::Local<v8::Value> val,
|
||||
network::mojom::ReferrerPolicy* out) {
|
||||
return FromV8WithLowerLookup(isolate, val, ReferrerPolicies, out);
|
||||
}
|
||||
|
@ -700,7 +700,7 @@ v8::Local<v8::Value> Converter<blink::CloneableMessage>::ToV8(
|
|||
}
|
||||
|
||||
bool Converter<blink::CloneableMessage>::FromV8(v8::Isolate* isolate,
|
||||
v8::Handle<v8::Value> val,
|
||||
v8::Local<v8::Value> val,
|
||||
blink::CloneableMessage* out) {
|
||||
return electron::SerializeV8Value(isolate, val, out);
|
||||
}
|
||||
|
|
|
@ -578,7 +578,7 @@ void NodeBindings::Initialize(v8::Local<v8::Context> context) {
|
|||
}
|
||||
|
||||
std::shared_ptr<node::Environment> NodeBindings::CreateEnvironment(
|
||||
v8::Handle<v8::Context> context,
|
||||
v8::Local<v8::Context> context,
|
||||
node::MultiIsolatePlatform* platform,
|
||||
std::vector<std::string> args,
|
||||
std::vector<std::string> exec_args,
|
||||
|
@ -780,7 +780,7 @@ std::shared_ptr<node::Environment> NodeBindings::CreateEnvironment(
|
|||
}
|
||||
|
||||
std::shared_ptr<node::Environment> NodeBindings::CreateEnvironment(
|
||||
v8::Handle<v8::Context> context,
|
||||
v8::Local<v8::Context> context,
|
||||
node::MultiIsolatePlatform* platform,
|
||||
std::optional<base::RepeatingCallback<void()>> on_app_code_ready) {
|
||||
#if BUILDFLAG(IS_WIN)
|
||||
|
|
|
@ -93,7 +93,7 @@ class NodeBindings {
|
|||
|
||||
// Create the environment and load node.js.
|
||||
std::shared_ptr<node::Environment> CreateEnvironment(
|
||||
v8::Handle<v8::Context> context,
|
||||
v8::Local<v8::Context> context,
|
||||
node::MultiIsolatePlatform* platform,
|
||||
std::vector<std::string> args,
|
||||
std::vector<std::string> exec_args,
|
||||
|
@ -101,7 +101,7 @@ class NodeBindings {
|
|||
std::nullopt);
|
||||
|
||||
std::shared_ptr<node::Environment> CreateEnvironment(
|
||||
v8::Handle<v8::Context> context,
|
||||
v8::Local<v8::Context> context,
|
||||
node::MultiIsolatePlatform* platform,
|
||||
std::optional<base::RepeatingCallback<void()>> on_app_code_ready =
|
||||
std::nullopt);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue