Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: Source/bindings/tests/results/V8TestObject.cpp

Issue 313993002: Bindings: Add ScalarValueString support (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move out of Source/wtf Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 impl->setByteStringAttribute(cppValue); 213 impl->setByteStringAttribute(cppValue);
214 } 214 }
215 215
216 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 216 static void byteStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8 ::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
217 { 217 {
218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
219 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info); 219 TestObjectV8Internal::byteStringAttributeAttributeSetter(v8Value, info);
220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
221 } 221 }
222 222
223 static void scalarValueStringAttributeAttributeGetter(const v8::PropertyCallback Info<v8::Value>& info)
224 {
225 v8::Handle<v8::Object> holder = info.Holder();
226 TestObject* impl = V8TestObject::toNative(holder);
227 v8SetReturnValueString(info, impl->scalarValueStringAttribute(), info.GetIso late());
228 }
229
230 static void scalarValueStringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng>, const v8::PropertyCallbackInfo<v8::Value>& info)
231 {
232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
233 TestObjectV8Internal::scalarValueStringAttributeAttributeGetter(info);
234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
235 }
236
237 static void scalarValueStringAttributeAttributeSetter(v8::Local<v8::Value> v8Val ue, const v8::PropertyCallbackInfo<void>& info)
238 {
239 v8::Handle<v8::Object> holder = info.Holder();
240 ExceptionState exceptionState(ExceptionState::SetterContext, "scalarValueStr ingAttribute", "TestObject", holder, info.GetIsolate());
241 TestObject* impl = V8TestObject::toNative(holder);
242 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toScalarValueStri ng(v8Value, exceptionState), exceptionState);
243 impl->setScalarValueStringAttribute(cppValue);
244 }
245
246 static void scalarValueStringAttributeAttributeSetterCallback(v8::Local<v8::Stri ng>, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
247 {
248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
249 TestObjectV8Internal::scalarValueStringAttributeAttributeSetter(v8Value, inf o);
250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
251 }
252
223 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info) 253 static void domTimeStampAttributeAttributeGetter(const v8::PropertyCallbackInfo< v8::Value>& info)
224 { 254 {
225 v8::Handle<v8::Object> holder = info.Holder(); 255 v8::Handle<v8::Object> holder = info.Holder();
226 TestObject* impl = V8TestObject::toNative(holder); 256 TestObject* impl = V8TestObject::toNative(holder);
227 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute())); 257 v8SetReturnValue(info, static_cast<double>(impl->domTimeStampAttribute()));
228 } 258 }
229 259
230 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 260 static void domTimeStampAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
231 { 261 {
232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
(...skipping 4439 matching lines...) Expand 10 before | Expand all | Expand 10 after
4672 v8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate()); 4702 v8SetReturnValueString(info, impl->byteStringMethod(), info.GetIsolate());
4673 } 4703 }
4674 4704
4675 static void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info) 4705 static void byteStringMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Va lue>& info)
4676 { 4706 {
4677 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4707 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4678 TestObjectV8Internal::byteStringMethodMethod(info); 4708 TestObjectV8Internal::byteStringMethodMethod(info);
4679 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4709 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4680 } 4710 }
4681 4711
4712 static void scalarValueStringMethodMethod(const v8::FunctionCallbackInfo<v8::Val ue>& info)
4713 {
4714 TestObject* impl = V8TestObject::toNative(info.Holder());
4715 v8SetReturnValueString(info, impl->scalarValueStringMethod(), info.GetIsolat e());
4716 }
4717
4718 static void scalarValueStringMethodMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
4719 {
4720 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4721 TestObjectV8Internal::scalarValueStringMethodMethod(info);
4722 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4723 }
4724
4682 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info) 4725 static void readonlyDOMTimeStampMethodMethod(const v8::FunctionCallbackInfo<v8:: Value>& info)
4683 { 4726 {
4684 TestObject* impl = V8TestObject::toNative(info.Holder()); 4727 TestObject* impl = V8TestObject::toNative(info.Holder());
4685 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod( ))); 4728 v8SetReturnValue(info, static_cast<double>(impl->readonlyDOMTimeStampMethod( )));
4686 } 4729 }
4687 4730
4688 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) 4731 static void readonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackI nfo<v8::Value>& info)
4689 { 4732 {
4690 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4733 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4691 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info); 4734 TestObjectV8Internal::readonlyDOMTimeStampMethodMethod(info);
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
4896 impl->voidMethodByteStringArg(stringArg); 4939 impl->voidMethodByteStringArg(stringArg);
4897 } 4940 }
4898 4941
4899 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info) 4942 static void voidMethodByteStringArgMethodCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
4900 { 4943 {
4901 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 4944 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4902 TestObjectV8Internal::voidMethodByteStringArgMethod(info); 4945 TestObjectV8Internal::voidMethodByteStringArgMethod(info);
4903 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4946 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4904 } 4947 }
4905 4948
4949 static void voidMethodScalarValueStringArgMethod(const v8::FunctionCallbackInfo< v8::Value>& info)
4950 {
4951 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodS calarValueStringArg", "TestObject", info.Holder(), info.GetIsolate());
4952 if (UNLIKELY(info.Length() < 1)) {
4953 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4954 return;
4955 }
4956 TestObject* impl = V8TestObject::toNative(info.Holder());
4957 V8StringResource<> scalarValueStringArg;
4958 {
4959 v8::TryCatch block;
4960 V8RethrowTryCatchScope rethrow(block);
4961 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu eString(info[0], exceptionState), exceptionState);
4962 }
4963 impl->voidMethodScalarValueStringArg(scalarValueStringArg);
4964 }
4965
4966 static void voidMethodScalarValueStringArgMethodCallback(const v8::FunctionCallb ackInfo<v8::Value>& info)
4967 {
4968 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
4969 TestObjectV8Internal::voidMethodScalarValueStringArgMethod(info);
4970 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4971 }
4972
4906 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info) 4973 static void voidMethodDOMTimeStampArgMethod(const v8::FunctionCallbackInfo<v8::V alue>& info)
4907 { 4974 {
4908 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate()); 4975 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodD OMTimeStampArg", "TestObject", info.Holder(), info.GetIsolate());
4909 if (UNLIKELY(info.Length() < 1)) { 4976 if (UNLIKELY(info.Length() < 1)) {
4910 throwMinimumArityTypeError(exceptionState, 1, info.Length()); 4977 throwMinimumArityTypeError(exceptionState, 1, info.Length());
4911 return; 4978 return;
4912 } 4979 }
4913 TestObject* impl = V8TestObject::toNative(info.Holder()); 4980 TestObject* impl = V8TestObject::toNative(info.Holder());
4914 unsigned long long domTimeStampArg; 4981 unsigned long long domTimeStampArg;
4915 { 4982 {
(...skipping 4397 matching lines...) Expand 10 before | Expand all | Expand 10 after
9313 9380
9314 } // namespace TestObjectV8Internal 9381 } // namespace TestObjectV8Internal
9315 9382
9316 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 9383 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
9317 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9384 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9318 {"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 */}, 9385 {"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 */},
9319 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9386 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9320 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9387 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9321 {"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 */}, 9388 {"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 */},
9322 {"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 */}, 9389 {"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 */},
9390 {"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 */},
9323 {"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 */}, 9391 {"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 */},
9324 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), 0 /* on instance */}, 9392 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), 0 /* on instance */},
9325 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9393 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9326 {"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 */}, 9394 {"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 */},
9327 {"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 */}, 9395 {"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 */},
9328 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9396 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9329 {"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 */}, 9397 {"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 */},
9330 {"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 */}, 9398 {"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 */},
9331 {"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 */}, 9399 {"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 */},
9332 {"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 */}, 9400 {"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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
9467 9535
9468 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = { 9536 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = {
9469 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None)}, 9537 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None)},
9470 }; 9538 };
9471 9539
9472 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 9540 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
9473 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0}, 9541 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0},
9474 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0}, 9542 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0},
9475 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0}, 9543 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0},
9476 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0}, 9544 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0},
9545 {"scalarValueStringMethod", TestObjectV8Internal::scalarValueStringMethodMet hodCallback, 0, 0},
9477 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0}, 9546 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0},
9478 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0}, 9547 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0},
9479 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0}, 9548 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0},
9480 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0}, 9549 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0},
9481 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0}, 9550 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0},
9482 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0}, 9551 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0},
9483 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0} , 9552 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0} ,
9484 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0}, 9553 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0},
9485 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0}, 9554 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0},
9486 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac k, 0, 0}, 9555 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac k, 0, 0},
9487 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho dCallback, 0, 0}, 9556 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho dCallback, 0, 0},
9488 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb ack, 0, 0}, 9557 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb ack, 0, 0},
9489 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback, 0, 1}, 9558 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback, 0, 1},
9490 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb ack, 0, 1}, 9559 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb ack, 0, 1},
9491 {"voidMethodByteStringArg", TestObjectV8Internal::voidMethodByteStringArgMet hodCallback, 0, 1}, 9560 {"voidMethodByteStringArg", TestObjectV8Internal::voidMethodByteStringArgMet hodCallback, 0, 1},
9561 {"voidMethodScalarValueStringArg", TestObjectV8Internal::voidMethodScalarVal ueStringArgMethodCallback, 0, 1},
9492 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr gMethodCallback, 0, 1}, 9562 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr gMethodCallback, 0, 1},
9493 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal lback, 0, 1}, 9563 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal lback, 0, 1},
9494 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback, 0, 1}, 9564 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback, 0, 1},
9495 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb ack, 0, 1}, 9565 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb ack, 0, 1},
9496 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac k, 0, 1}, 9566 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac k, 0, 1},
9497 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback, 0, 1}, 9567 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback, 0, 1},
9498 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC allback, 0, 1}, 9568 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC allback, 0, 1},
9499 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac k, 0, 1}, 9569 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac k, 0, 1},
9500 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac k, 0, 1}, 9570 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac k, 0, 1},
9501 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr gMethodCallback, 0, 1}, 9571 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr gMethodCallback, 0, 1},
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
9831 fromInternalPointer(object)->deref(); 9901 fromInternalPointer(object)->deref();
9832 } 9902 }
9833 9903
9834 template<> 9904 template<>
9835 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9905 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9836 { 9906 {
9837 return toV8(impl, creationContext, isolate); 9907 return toV8(impl, creationContext, isolate);
9838 } 9908 }
9839 9909
9840 } // namespace WebCore 9910 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698