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

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: Rebased 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 4109 matching lines...) Expand 10 before | Expand all | Expand 10 after
9025 9092
9026 } // namespace TestObjectV8Internal 9093 } // namespace TestObjectV8Internal
9027 9094
9028 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 9095 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
9029 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9096 {"readonlyStringAttribute", TestObjectV8Internal::readonlyStringAttributeAtt ributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9030 {"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 */}, 9097 {"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 */},
9031 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9098 {"readonlyLongAttribute", TestObjectV8Internal::readonlyLongAttributeAttribu teGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9032 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9099 {"dateAttribute", TestObjectV8Internal::dateAttributeAttributeGetterCallback , TestObjectV8Internal::dateAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9033 {"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 */}, 9100 {"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 */},
9034 {"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 */}, 9101 {"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 */},
9102 {"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 */},
9035 {"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 */}, 9103 {"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 */},
9036 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), 0 /* on instance */}, 9104 {"booleanAttribute", TestObjectV8Internal::booleanAttributeAttributeGetterCa llback, TestObjectV8Internal::booleanAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>( v8::None), 0 /* on instance */},
9037 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9105 {"byteAttribute", TestObjectV8Internal::byteAttributeAttributeGetterCallback , TestObjectV8Internal::byteAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9038 {"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 */}, 9106 {"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 */},
9039 {"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 */}, 9107 {"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 */},
9040 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */}, 9108 {"longAttribute", TestObjectV8Internal::longAttributeAttributeGetterCallback , TestObjectV8Internal::longAttributeAttributeSetterCallback, 0, 0, 0, static_ca st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None) , 0 /* on instance */},
9041 {"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 */}, 9109 {"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 */},
9042 {"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 */}, 9110 {"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 */},
9043 {"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 */}, 9111 {"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 */},
9044 {"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 */}, 9112 {"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
9179 9247
9180 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = { 9248 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectAccessors[] = {
9181 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None)}, 9249 {"exposeJSAccessorsLongAttribute", TestObjectV8Internal::exposeJSAccessorsLo ngAttributeAttributeGetterCallback, TestObjectV8Internal::exposeJSAccessorsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None)},
9182 }; 9250 };
9183 9251
9184 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = { 9252 static const V8DOMConfiguration::MethodConfiguration V8TestObjectMethods[] = {
9185 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0}, 9253 {"voidMethod", TestObjectV8Internal::voidMethodMethodCallback, 0, 0},
9186 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0}, 9254 {"dateMethod", TestObjectV8Internal::dateMethodMethodCallback, 0, 0},
9187 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0}, 9255 {"stringMethod", TestObjectV8Internal::stringMethodMethodCallback, 0, 0},
9188 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0}, 9256 {"byteStringMethod", TestObjectV8Internal::byteStringMethodMethodCallback, 0 , 0},
9257 {"scalarValueStringMethod", TestObjectV8Internal::scalarValueStringMethodMet hodCallback, 0, 0},
9189 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0}, 9258 {"readonlyDOMTimeStampMethod", TestObjectV8Internal::readonlyDOMTimeStampMet hodMethodCallback, 0, 0},
9190 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0}, 9259 {"booleanMethod", TestObjectV8Internal::booleanMethodMethodCallback, 0, 0},
9191 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0}, 9260 {"byteMethod", TestObjectV8Internal::byteMethodMethodCallback, 0, 0},
9192 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0}, 9261 {"doubleMethod", TestObjectV8Internal::doubleMethodMethodCallback, 0, 0},
9193 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0}, 9262 {"floatMethod", TestObjectV8Internal::floatMethodMethodCallback, 0, 0},
9194 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0}, 9263 {"longMethod", TestObjectV8Internal::longMethodMethodCallback, 0, 0},
9195 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0} , 9264 {"longLongMethod", TestObjectV8Internal::longLongMethodMethodCallback, 0, 0} ,
9196 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0}, 9265 {"octetMethod", TestObjectV8Internal::octetMethodMethodCallback, 0, 0},
9197 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0}, 9266 {"shortMethod", TestObjectV8Internal::shortMethodMethodCallback, 0, 0},
9198 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac k, 0, 0}, 9267 {"unsignedLongMethod", TestObjectV8Internal::unsignedLongMethodMethodCallbac k, 0, 0},
9199 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho dCallback, 0, 0}, 9268 {"unsignedLongLongMethod", TestObjectV8Internal::unsignedLongLongMethodMetho dCallback, 0, 0},
9200 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb ack, 0, 0}, 9269 {"unsignedShortMethod", TestObjectV8Internal::unsignedShortMethodMethodCallb ack, 0, 0},
9201 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback, 0, 1}, 9270 {"voidMethodDateArg", TestObjectV8Internal::voidMethodDateArgMethodCallback, 0, 1},
9202 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb ack, 0, 1}, 9271 {"voidMethodStringArg", TestObjectV8Internal::voidMethodStringArgMethodCallb ack, 0, 1},
9203 {"voidMethodByteStringArg", TestObjectV8Internal::voidMethodByteStringArgMet hodCallback, 0, 1}, 9272 {"voidMethodByteStringArg", TestObjectV8Internal::voidMethodByteStringArgMet hodCallback, 0, 1},
9273 {"voidMethodScalarValueStringArg", TestObjectV8Internal::voidMethodScalarVal ueStringArgMethodCallback, 0, 1},
9204 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr gMethodCallback, 0, 1}, 9274 {"voidMethodDOMTimeStampArg", TestObjectV8Internal::voidMethodDOMTimeStampAr gMethodCallback, 0, 1},
9205 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal lback, 0, 1}, 9275 {"voidMethodBooleanArg", TestObjectV8Internal::voidMethodBooleanArgMethodCal lback, 0, 1},
9206 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback, 0, 1}, 9276 {"voidMethodByteArg", TestObjectV8Internal::voidMethodByteArgMethodCallback, 0, 1},
9207 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb ack, 0, 1}, 9277 {"voidMethodDoubleArg", TestObjectV8Internal::voidMethodDoubleArgMethodCallb ack, 0, 1},
9208 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac k, 0, 1}, 9278 {"voidMethodFloatArg", TestObjectV8Internal::voidMethodFloatArgMethodCallbac k, 0, 1},
9209 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback, 0, 1}, 9279 {"voidMethodLongArg", TestObjectV8Internal::voidMethodLongArgMethodCallback, 0, 1},
9210 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC allback, 0, 1}, 9280 {"voidMethodLongLongArg", TestObjectV8Internal::voidMethodLongLongArgMethodC allback, 0, 1},
9211 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac k, 0, 1}, 9281 {"voidMethodOctetArg", TestObjectV8Internal::voidMethodOctetArgMethodCallbac k, 0, 1},
9212 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac k, 0, 1}, 9282 {"voidMethodShortArg", TestObjectV8Internal::voidMethodShortArgMethodCallbac k, 0, 1},
9213 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr gMethodCallback, 0, 1}, 9283 {"voidMethodUnsignedLongArg", TestObjectV8Internal::voidMethodUnsignedLongAr gMethodCallback, 0, 1},
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
9533 fromInternalPointer(object)->deref(); 9603 fromInternalPointer(object)->deref();
9534 } 9604 }
9535 9605
9536 template<> 9606 template<>
9537 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 9607 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
9538 { 9608 {
9539 return toV8(impl, creationContext, isolate); 9609 return toV8(impl, creationContext, isolate);
9540 } 9610 }
9541 9611
9542 } // namespace WebCore 9612 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698