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

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: Incorporate review feedback 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 4257 matching lines...) Expand 10 before | Expand all | Expand 10 after
9173 9240
9174 } // namespace TestObjectV8Internal 9241 } // namespace TestObjectV8Internal
9175 9242
9176 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 9243 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
9177 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9244 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9178 {"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 */}, 9245 {"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 */},
9179 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9246 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9180 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9247 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9181 {"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 */}, 9248 {"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 */},
9182 {"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 */}, 9249 {"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 */},
9250 {"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 */},
9183 {"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 */}, 9251 {"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 */},
9184 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), 0 /* on instance */}, 9252 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), 0 /* on instance */},
9185 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9253 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9186 {"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 */}, 9254 {"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 */},
9187 {"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 */}, 9255 {"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 */},
9188 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9256 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9189 {"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 */}, 9257 {"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 */},
9190 {"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 */}, 9258 {"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 */},
9191 {"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 */}, 9259 {"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 */},
9192 {"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 */}, 9260 {"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
9327 9395
9328 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = { 9396 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = {
9329 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None)}, 9397 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None)},
9330 }; 9398 };
9331 9399
9332 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 9400 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
9333 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0}, 9401 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0},
9334 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0}, 9402 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0},
9335 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0}, 9403 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0},
9336 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0}, 9404 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0},
9405 {"scalarValueStringMethod", TestObjectV8Internal::scalarValueStringMethodMet hodCallback, 0, 0},
9337 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0}, 9406 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0},
9338 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0}, 9407 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0},
9339 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0}, 9408 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0},
9340 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0}, 9409 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0},
9341 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0}, 9410 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0},
9342 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0}, 9411 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0},
9343 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0} , 9412 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0} ,
9344 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0}, 9413 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0},
9345 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0}, 9414 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0},
9346 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac k, 0, 0}, 9415 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac k, 0, 0},
9347 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho dCallback, 0, 0}, 9416 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho dCallback, 0, 0},
9348 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb ack, 0, 0}, 9417 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb ack, 0, 0},
9349 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback, 0, 1}, 9418 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback, 0, 1},
9350 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb ack, 0, 1}, 9419 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb ack, 0, 1},
9351 {"voidMethodByteStringArg", TestObjectV8Internal::voidMethodByteStringArgMet hodCallback, 0, 1}, 9420 {"voidMethodByteStringArg", TestObjectV8Internal::voidMethodByteStringArgMet hodCallback, 0, 1},
9421 {"voidMethodScalarValueStringArg", TestObjectV8Internal::voidMethodScalarVal ueStringArgMethodCallback, 0, 1},
9352 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr gMethodCallback, 0, 1}, 9422 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr gMethodCallback, 0, 1},
9353 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal lback, 0, 1}, 9423 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal lback, 0, 1},
9354 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback, 0, 1}, 9424 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback, 0, 1},
9355 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb ack, 0, 1}, 9425 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb ack, 0, 1},
9356 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac k, 0, 1}, 9426 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac k, 0, 1},
9357 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback, 0, 1}, 9427 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback, 0, 1},
9358 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC allback, 0, 1}, 9428 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC allback, 0, 1},
9359 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac k, 0, 1}, 9429 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac k, 0, 1},
9360 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac k, 0, 1}, 9430 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac k, 0, 1},
9361 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr gMethodCallback, 0, 1}, 9431 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr gMethodCallback, 0, 1},
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
9686 fromInternalPointer(object)->deref(); 9756 fromInternalPointer(object)->deref();
9687 } 9757 }
9688 9758
9689 template<> 9759 template<>
9690 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9760 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9691 { 9761 {
9692 return toV8(impl, creationContext, isolate); 9762 return toV8(impl, creationContext, isolate);
9693 } 9763 }
9694 9764
9695 } // namespace WebCore 9765 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698