| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
| 10 | 10 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
terface::wrapperTypeInfo; | 48 const WrapperTypeInfo& TestInterfaceImplementation::s_wrapperTypeInfo = V8TestIn
terface::wrapperTypeInfo; |
| 49 | 49 |
| 50 namespace TestInterfaceImplementationV8Internal { | 50 namespace TestInterfaceImplementationV8Internal { |
| 51 static void (*voidMethodPartialOverloadMethodForPartialInterface)(const v8::Func
tionCallbackInfo<v8::Value>&) = 0; | 51 static void (*voidMethodPartialOverloadMethodForPartialInterface)(const v8::Func
tionCallbackInfo<v8::Value>&) = 0; |
| 52 static void (*staticVoidMethodPartialOverloadMethodForPartialInterface)(const v8
::FunctionCallbackInfo<v8::Value>&) = 0; | 52 static void (*staticVoidMethodPartialOverloadMethodForPartialInterface)(const v8
::FunctionCallbackInfo<v8::Value>&) = 0; |
| 53 static void (*promiseMethodPartialOverloadMethodForPartialInterface)(const v8::F
unctionCallbackInfo<v8::Value>&) = 0; | 53 static void (*promiseMethodPartialOverloadMethodForPartialInterface)(const v8::F
unctionCallbackInfo<v8::Value>&) = 0; |
| 54 static void (*staticPromiseMethodPartialOverloadMethodForPartialInterface)(const
v8::FunctionCallbackInfo<v8::Value>&) = 0; | 54 static void (*staticPromiseMethodPartialOverloadMethodForPartialInterface)(const
v8::FunctionCallbackInfo<v8::Value>&) = 0; |
| 55 static void (*partial2VoidMethodMethodForPartialInterface)(const v8::FunctionCal
lbackInfo<v8::Value>&) = 0; | 55 static void (*partial2VoidMethodMethodForPartialInterface)(const v8::FunctionCal
lbackInfo<v8::Value>&) = 0; |
| 56 static void (*partial2StaticVoidMethodMethodForPartialInterface)(const v8::Funct
ionCallbackInfo<v8::Value>&) = 0; | 56 static void (*partial2StaticVoidMethodMethodForPartialInterface)(const v8::Funct
ionCallbackInfo<v8::Value>&) = 0; |
| 57 | 57 |
| 58 template<class CallbackInfo> |
| 59 static void TestInterfaceImplementationForceSetAttributeOnThis(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info) |
| 60 { |
| 61 if (info.This()->IsObject()) |
| 62 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
| 63 } |
| 64 |
| 65 static void TestInterfaceImplementationForceSetAttributeOnThisCallback(v8::Local
<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) |
| 66 { |
| 67 TestInterfaceImplementationV8Internal::TestInterfaceImplementationForceSetAt
tributeOnThis(name, v8Value, info); |
| 68 } |
| 69 |
| 58 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 70 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
| 59 { | 71 { |
| 60 v8::Local<v8::Object> holder = info.Holder(); | 72 v8::Local<v8::Object> holder = info.Holder(); |
| 61 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 73 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 62 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); | 74 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); |
| 63 } | 75 } |
| 64 | 76 |
| 65 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 77 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 66 { | 78 { |
| 67 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 79 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
| (...skipping 977 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1045 static void TestInterfaceImplementationConstructorGetter(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 1057 static void TestInterfaceImplementationConstructorGetter(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
| 1046 { | 1058 { |
| 1047 v8::Local<v8::Value> data = info.Data(); | 1059 v8::Local<v8::Value> data = info.Data(); |
| 1048 ASSERT(data->IsExternal()); | 1060 ASSERT(data->IsExternal()); |
| 1049 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 1061 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
| 1050 if (!perContextData) | 1062 if (!perContextData) |
| 1051 return; | 1063 return; |
| 1052 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 1064 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
| 1053 } | 1065 } |
| 1054 | 1066 |
| 1055 static void TestInterfaceImplementationForceSetAttributeOnThis(v8::Local<v8::Str
ing> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& i
nfo) | |
| 1056 { | |
| 1057 if (info.This()->IsObject()) | |
| 1058 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); | |
| 1059 } | |
| 1060 | |
| 1061 static void TestInterfaceImplementationForceSetAttributeOnThisCallback(v8::Local
<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<
void>& info) | |
| 1062 { | |
| 1063 TestInterfaceImplementationV8Internal::TestInterfaceImplementationForceSetAt
tributeOnThis(name, v8Value, info); | |
| 1064 } | |
| 1065 | |
| 1066 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 1067 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 1067 { | 1068 { |
| 1068 if (UNLIKELY(info.Length() < 1)) { | 1069 if (UNLIKELY(info.Length() < 1)) { |
| 1069 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInterface", 1, info.Len
gth()), info.GetIsolate()); | 1070 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInterface", 1, info.Len
gth()), info.GetIsolate()); |
| 1070 return; | 1071 return; |
| 1071 } | 1072 } |
| 1072 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 1073 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 1073 TestInterfaceEmpty* testInterfaceEmptyArg; | 1074 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 1074 { | 1075 { |
| 1075 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); | 1076 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); |
| (...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2516 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2517 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2517 { | 2518 { |
| 2518 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2519 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2519 } | 2520 } |
| 2520 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2521 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2521 { | 2522 { |
| 2522 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2523 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2523 } | 2524 } |
| 2524 } // namespace blink | 2525 } // namespace blink |
| 2525 #endif // ENABLE(CONDITION) | 2526 #endif // ENABLE(CONDITION) |
| OLD | NEW |