Commit 467c0cda authored by Yuki Shiino's avatar Yuki Shiino Committed by Commit Bot

bind-gen: Make v8_window_custom adaptable to the new bind gentor

Make the custom callback functions of V8Window adaptable to
the new binding generator of IDL interfaces.

Bug: 839389
Change-Id: I063bf203fa023941d8e9636464b90d6f3f684a88
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2282554
Commit-Queue: Yuki Shiino <yukishiino@chromium.org>
Reviewed-by: default avatarHitoshi Yoshida <peria@chromium.org>
Cr-Commit-Position: refs/heads/master@{#786190}
parent 7f69e026
...@@ -63,8 +63,8 @@ ...@@ -63,8 +63,8 @@
namespace blink { namespace blink {
void V8Window::LocationAttributeGetterCustom( template <typename CallbackInfo>
const v8::PropertyCallbackInfo<v8::Value>& info) { static void LocationAttributeGet(const CallbackInfo& info) {
v8::Isolate* isolate = info.GetIsolate(); v8::Isolate* isolate = info.GetIsolate();
v8::Local<v8::Object> holder = info.Holder(); v8::Local<v8::Object> holder = info.Holder();
...@@ -100,6 +100,18 @@ void V8Window::LocationAttributeGetterCustom( ...@@ -100,6 +100,18 @@ void V8Window::LocationAttributeGetterCustom(
V8SetReturnValue(info, wrapper); V8SetReturnValue(info, wrapper);
} }
#if defined(USE_BLINK_V8_BINDING_NEW_IDL_INTERFACE)
void V8Window::LocationAttributeGetterCustom(
const v8::FunctionCallbackInfo<v8::Value>& info) {
LocationAttributeGet(info);
}
#endif // USE_BLINK_V8_BINDING_NEW_IDL_INTERFACE
void V8Window::LocationAttributeGetterCustom(
const v8::PropertyCallbackInfo<v8::Value>& info) {
LocationAttributeGet(info);
}
void V8Window::FrameElementAttributeGetterCustom( void V8Window::FrameElementAttributeGetterCustom(
const v8::FunctionCallbackInfo<v8::Value>& info) { const v8::FunctionCallbackInfo<v8::Value>& info) {
LocalDOMWindow* impl = To<LocalDOMWindow>(V8Window::ToImpl(info.Holder())); LocalDOMWindow* impl = To<LocalDOMWindow>(V8Window::ToImpl(info.Holder()));
...@@ -125,9 +137,9 @@ void V8Window::FrameElementAttributeGetterCustom( ...@@ -125,9 +137,9 @@ void V8Window::FrameElementAttributeGetterCustom(
V8SetReturnValue(info, wrapper); V8SetReturnValue(info, wrapper);
} }
void V8Window::OpenerAttributeSetterCustom( template <typename CallbackInfo>
v8::Local<v8::Value> value, static void OpenerAttributeSet(v8::Local<v8::Value> value,
const v8::PropertyCallbackInfo<void>& info) { const CallbackInfo& info) {
v8::Isolate* isolate = info.GetIsolate(); v8::Isolate* isolate = info.GetIsolate();
DOMWindow* impl = V8Window::ToImpl(info.Holder()); DOMWindow* impl = V8Window::ToImpl(info.Holder());
if (!impl->GetFrame()) if (!impl->GetFrame())
...@@ -161,6 +173,20 @@ void V8Window::OpenerAttributeSetterCustom( ...@@ -161,6 +173,20 @@ void V8Window::OpenerAttributeSetterCustom(
} }
} }
#if defined(USE_BLINK_V8_BINDING_NEW_IDL_INTERFACE)
void V8Window::OpenerAttributeSetterCustom(
v8::Local<v8::Value> value,
const v8::FunctionCallbackInfo<v8::Value>& info) {
OpenerAttributeSet(value, info);
}
#endif // USE_BLINK_V8_BINDING_NEW_IDL_INTERFACE
void V8Window::OpenerAttributeSetterCustom(
v8::Local<v8::Value> value,
const v8::PropertyCallbackInfo<void>& info) {
OpenerAttributeSet(value, info);
}
void V8Window::NamedPropertyGetterCustom( void V8Window::NamedPropertyGetterCustom(
const AtomicString& name, const AtomicString& name,
const v8::PropertyCallbackInfo<v8::Value>& info) { const v8::PropertyCallbackInfo<v8::Value>& info) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment