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 #include "V8TestObject.h" | 8 #include "V8TestObject.h" |
9 | 9 |
10 #include "HTMLNames.h" | 10 #include "HTMLNames.h" |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 impl->setByteStringAttribute(cppValue); | 218 impl->setByteStringAttribute(cppValue); |
219 } | 219 } |
220 | 220 |
221 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) | 221 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8
::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
222 { | 222 { |
223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 223 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
224 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); | 224 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); |
225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 225 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
226 } | 226 } |
227 | 227 |
| 228 static void scalarValueStringAttributeAttributeGetter(const v8::PropertyCallback
Info<v8::Value>& info) |
| 229 { |
| 230 v8::Handle<v8::Object> holder = info.Holder(); |
| 231 TestObject* impl = V8TestObject::toNative(holder); |
| 232 v8SetReturnValueString(info, impl->scalarValueStringAttribute(), info.GetIso
late()); |
| 233 } |
| 234 |
| 235 static void scalarValueStringAttributeAttributeGetterCallback(v8::Local<v8::Stri
ng>, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 236 { |
| 237 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 238 TestObjectV8Internal::scalarValueStringAttributeAttributeGetter(info); |
| 239 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 240 } |
| 241 |
| 242 static void scalarValueStringAttributeAttributeSetter(v8::Local<v8::Value> v8Val
ue, const v8::PropertyCallbackInfo<void>& info) |
| 243 { |
| 244 v8::Handle<v8::Object> holder = info.Holder(); |
| 245 ExceptionState exceptionState(ExceptionState::SetterContext, "scalarValueStr
ingAttribute", "TestObject", holder, info.GetIsolate()); |
| 246 TestObject* impl = V8TestObject::toNative(holder); |
| 247 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toScalarValueStri
ng(v8Value, exceptionState), exceptionState); |
| 248 impl->setScalarValueStringAttribute(cppValue); |
| 249 } |
| 250 |
| 251 static void scalarValueStringAttributeAttributeSetterCallback(v8::Local<v8::Stri
ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) |
| 252 { |
| 253 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 254 TestObjectV8Internal::scalarValueStringAttributeAttributeSetter(v8Value, inf
o); |
| 255 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 256 } |
| 257 |
228 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) | 258 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo<
v8::Value>& info) |
229 { | 259 { |
230 v8::Handle<v8::Object> holder = info.Holder(); | 260 v8::Handle<v8::Object> holder = info.Holder(); |
231 TestObject* impl = V8TestObject::toNative(holder); | 261 TestObject* impl = V8TestObject::toNative(holder); |
232 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); | 262 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); |
233 } | 263 } |
234 | 264 |
235 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 265 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
236 { | 266 { |
237 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 267 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
(...skipping 4515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4753 v8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate()); | 4783 v8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate()); |
4754 } | 4784 } |
4755 | 4785 |
4756 static void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 4786 static void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
4757 { | 4787 { |
4758 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4788 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4759 TestObjectV8Internal::byteStringMethodMethod(info); | 4789 TestObjectV8Internal::byteStringMethodMethod(info); |
4760 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 4790 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4761 } | 4791 } |
4762 | 4792 |
| 4793 static void scalarValueStringMethodMethod(const v8::FunctionCallbackInfo<v8::Val
ue>& info) |
| 4794 { |
| 4795 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 4796 v8SetReturnValueString(info, impl->scalarValueStringMethod(), info.GetIsolat
e()); |
| 4797 } |
| 4798 |
| 4799 static void scalarValueStringMethodMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 4800 { |
| 4801 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 4802 TestObjectV8Internal::scalarValueStringMethodMethod(info); |
| 4803 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 4804 } |
| 4805 |
4763 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) | 4806 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8::
Value>& info) |
4764 { | 4807 { |
4765 TestObject* impl = V8TestObject::toNative(info.Holder()); | 4808 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4766 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod(
))); | 4809 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod(
))); |
4767 } | 4810 } |
4768 | 4811 |
4769 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 4812 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
4770 { | 4813 { |
4771 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 4814 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4772 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info); | 4815 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info); |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4977 impl->voidMethodByteStringArg(stringArg); | 5020 impl->voidMethodByteStringArg(stringArg); |
4978 } | 5021 } |
4979 | 5022 |
4980 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) | 5023 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo
<v8::Value>& info) |
4981 { | 5024 { |
4982 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 5025 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
4983 TestObjectV8Internal::voidMethodByteStringArgMethod(info); | 5026 TestObjectV8Internal::voidMethodByteStringArgMethod(info); |
4984 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 5027 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
4985 } | 5028 } |
4986 | 5029 |
| 5030 static void voidMethodScalarValueStringArgMethod(const v8::FunctionCallbackInfo<
v8::Value>& info) |
| 5031 { |
| 5032 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS
calarValueStringArg", "TestObject", info.Holder(), info.GetIsolate()); |
| 5033 if (UNLIKELY(info.Length() < 1)) { |
| 5034 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
| 5035 return; |
| 5036 } |
| 5037 TestObject* impl = V8TestObject::toNative(info.Holder()); |
| 5038 V8StringResource<> scalarValueStringArg; |
| 5039 { |
| 5040 v8::TryCatch block; |
| 5041 V8RethrowTryCatchScope rethrow(block); |
| 5042 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu
eString(info[0], exceptionState), exceptionState); |
| 5043 } |
| 5044 impl->voidMethodScalarValueStringArg(scalarValueStringArg); |
| 5045 } |
| 5046 |
| 5047 static void voidMethodScalarValueStringArgMethodCallback(const v8::FunctionCallb
ackInfo<v8::Value>& info) |
| 5048 { |
| 5049 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 5050 TestObjectV8Internal::voidMethodScalarValueStringArgMethod(info); |
| 5051 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 5052 } |
| 5053 |
4987 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 5054 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
4988 { | 5055 { |
4989 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); | 5056 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD
OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); |
4990 if (UNLIKELY(info.Length() < 1)) { | 5057 if (UNLIKELY(info.Length() < 1)) { |
4991 throwMinimumArityTypeError(exceptionState, 1, info.Length()); | 5058 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
4992 return; | 5059 return; |
4993 } | 5060 } |
4994 TestObject* impl = V8TestObject::toNative(info.Holder()); | 5061 TestObject* impl = V8TestObject::toNative(info.Holder()); |
4995 unsigned long long domTimeStampArg; | 5062 unsigned long long domTimeStampArg; |
4996 { | 5063 { |
(...skipping 4427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9424 | 9491 |
9425 } // namespace TestObjectV8Internal | 9492 } // namespace TestObjectV8Internal |
9426 | 9493 |
9427 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { | 9494 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[]
= { |
9428 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 9495 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt
ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s
tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
9429 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn
terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}, | 9496 {"readonlyTestInterfaceEmptyAttribute", TestObjectV8Internal::readonlyTestIn
terfaceEmptyAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on ins
tance */}, |
9430 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 9497 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu
teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
9431 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 9498 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback
, TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, |
9432 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, | 9499 {"stringAttribute", TestObjectV8Internal::stringAttributeAttributeGetterCall
back, TestObjectV8Internal::stringAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, |
9433 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe
tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, | 9500 {"byteStringAttribute", TestObjectV8Internal::byteStringAttributeAttributeGe
tterCallback, TestObjectV8Internal::byteStringAttributeAttributeSetterCallback,
0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt
tribute>(v8::None), 0 /* on instance */}, |
| 9501 {"scalarValueStringAttribute", TestObjectV8Internal::scalarValueStringAttrib
uteAttributeGetterCallback, TestObjectV8Internal::scalarValueStringAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
9434 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu
teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, | 9502 {"domTimeStampAttribute", TestObjectV8Internal::domTimeStampAttributeAttribu
teGetterCallback, TestObjectV8Internal::domTimeStampAttributeAttributeSetterCall
back, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Prop
ertyAttribute>(v8::None), 0 /* on instance */}, |
9435 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa
llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, | 9503 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa
llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0,
static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(
v8::None), 0 /* on instance */}, |
9436 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback
, TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 9504 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback
, TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, |
9437 {"doubleAttribute", TestObjectV8Internal::doubleAttributeAttributeGetterCall
back, TestObjectV8Internal::doubleAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, | 9505 {"doubleAttribute", TestObjectV8Internal::doubleAttributeAttributeGetterCall
back, TestObjectV8Internal::doubleAttributeAttributeSetterCallback, 0, 0, 0, sta
tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8:
:None), 0 /* on instance */}, |
9438 {"floatAttribute", TestObjectV8Internal::floatAttributeAttributeGetterCallba
ck, TestObjectV8Internal::floatAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 9506 {"floatAttribute", TestObjectV8Internal::floatAttributeAttributeGetterCallba
ck, TestObjectV8Internal::floatAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
9439 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback
, TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, | 9507 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback
, TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, 0 /* on instance */}, |
9440 {"longLongAttribute", TestObjectV8Internal::longLongAttributeAttributeGetter
Callback, TestObjectV8Internal::longLongAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, | 9508 {"longLongAttribute", TestObjectV8Internal::longLongAttributeAttributeGetter
Callback, TestObjectV8Internal::longLongAttributeAttributeSetterCallback, 0, 0,
0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribut
e>(v8::None), 0 /* on instance */}, |
9441 {"octetAttribute", TestObjectV8Internal::octetAttributeAttributeGetterCallba
ck, TestObjectV8Internal::octetAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 9509 {"octetAttribute", TestObjectV8Internal::octetAttributeAttributeGetterCallba
ck, TestObjectV8Internal::octetAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
9442 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, | 9510 {"shortAttribute", TestObjectV8Internal::shortAttributeAttributeGetterCallba
ck, TestObjectV8Internal::shortAttributeAttributeSetterCallback, 0, 0, 0, static
_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No
ne), 0 /* on instance */}, |
9443 {"unrestrictedDoubleAttribute", TestObjectV8Internal::unrestrictedDoubleAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::unrestrictedDoubleAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 9511 {"unrestrictedDoubleAttribute", TestObjectV8Internal::unrestrictedDoubleAttr
ibuteAttributeGetterCallback, TestObjectV8Internal::unrestrictedDoubleAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9580 | 9648 |
9581 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ | 9649 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] =
{ |
9582 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None)}, | 9650 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo
ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA
ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF
AULT), static_cast<v8::PropertyAttribute>(v8::None)}, |
9583 }; | 9651 }; |
9584 | 9652 |
9585 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { | 9653 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { |
9586 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0}, | 9654 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0}, |
9587 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0}, | 9655 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0}, |
9588 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0}, | 9656 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0}, |
9589 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0
, 0}, | 9657 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0
, 0}, |
| 9658 {"scalarValueStringMethod", TestObjectV8Internal::scalarValueStringMethodMet
hodCallback, 0, 0}, |
9590 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0}, | 9659 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet
hodMethodCallback, 0, 0}, |
9591 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0}, | 9660 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0}, |
9592 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0}, | 9661 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0}, |
9593 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0}, | 9662 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0}, |
9594 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0}, | 9663 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0}, |
9595 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0}, | 9664 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0}, |
9596 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0}
, | 9665 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0}
, |
9597 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0}, | 9666 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0}, |
9598 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0}, | 9667 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0}, |
9599 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac
k, 0, 0}, | 9668 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac
k, 0, 0}, |
9600 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho
dCallback, 0, 0}, | 9669 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho
dCallback, 0, 0}, |
9601 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb
ack, 0, 0}, | 9670 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb
ack, 0, 0}, |
9602 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback,
0, 1}, | 9671 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback,
0, 1}, |
9603 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb
ack, 0, 1}, | 9672 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb
ack, 0, 1}, |
9604 {"voidMethodByteStringArg", TestObjectV8Internal::voidMethodByteStringArgMet
hodCallback, 0, 1}, | 9673 {"voidMethodByteStringArg", TestObjectV8Internal::voidMethodByteStringArgMet
hodCallback, 0, 1}, |
| 9674 {"voidMethodScalarValueStringArg", TestObjectV8Internal::voidMethodScalarVal
ueStringArgMethodCallback, 0, 1}, |
9605 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr
gMethodCallback, 0, 1}, | 9675 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr
gMethodCallback, 0, 1}, |
9606 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal
lback, 0, 1}, | 9676 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal
lback, 0, 1}, |
9607 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback,
0, 1}, | 9677 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback,
0, 1}, |
9608 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb
ack, 0, 1}, | 9678 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb
ack, 0, 1}, |
9609 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac
k, 0, 1}, | 9679 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac
k, 0, 1}, |
9610 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback,
0, 1}, | 9680 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback,
0, 1}, |
9611 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC
allback, 0, 1}, | 9681 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC
allback, 0, 1}, |
9612 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac
k, 0, 1}, | 9682 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac
k, 0, 1}, |
9613 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac
k, 0, 1}, | 9683 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac
k, 0, 1}, |
9614 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr
gMethodCallback, 0, 1}, | 9684 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr
gMethodCallback, 0, 1}, |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9946 fromInternalPointer(object)->deref(); | 10016 fromInternalPointer(object)->deref(); |
9947 } | 10017 } |
9948 | 10018 |
9949 template<> | 10019 template<> |
9950 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) | 10020 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea
tionContext, v8::Isolate* isolate) |
9951 { | 10021 { |
9952 return toV8(impl, creationContext, isolate); | 10022 return toV8(impl, creationContext, isolate); |
9953 } | 10023 } |
9954 | 10024 |
9955 } // namespace WebCore | 10025 } // namespace WebCore |
OLD | NEW |