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

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

Issue 344693002: Add [TreatReturnedNullStringAs] support for ScalarValueString (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/testing/TypeConversions.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4202 matching lines...) Expand 10 before | Expand all | Expand 10 after
4213 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue); 4213 impl->setTreatReturnedNullStringAsUndefinedByteStringAttribute(cppValue);
4214 } 4214 }
4215 4215
4216 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info) 4216 static void treatReturnedNullStringAsUndefinedByteStringAttributeAttributeSetter Callback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Property CallbackInfo<void>& info)
4217 { 4217 {
4218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 4218 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4219 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info); 4219 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeA ttributeSetter(v8Value, info);
4220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 4220 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4221 } 4221 }
4222 4222
4223 static void treatReturnedNullStringAsNullScalarValueStringAttributeAttributeGett er(const v8::PropertyCallbackInfo<v8::Value>& info)
4224 {
4225 v8::Handle<v8::Object> holder = info.Holder();
4226 TestObject* impl = V8TestObject::toNative(holder);
4227 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullScalar ValueStringAttribute(), info.GetIsolate());
4228 }
4229
4230 static void treatReturnedNullStringAsNullScalarValueStringAttributeAttributeGett erCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& inf o)
4231 {
4232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4233 TestObjectV8Internal::treatReturnedNullStringAsNullScalarValueStringAttribut eAttributeGetter(info);
4234 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4235 }
4236
4237 static void treatReturnedNullStringAsNullScalarValueStringAttributeAttributeSett er(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
4238 {
4239 v8::Handle<v8::Object> holder = info.Holder();
4240 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsNullScalarValueStringAttribute", "TestObject", holder, info.GetIsolat e());
4241 TestObject* impl = V8TestObject::toNative(holder);
4242 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toScalarValueStri ng(v8Value, exceptionState), exceptionState);
4243 impl->setTreatReturnedNullStringAsNullScalarValueStringAttribute(cppValue);
4244 }
4245
4246 static void treatReturnedNullStringAsNullScalarValueStringAttributeAttributeSett erCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::Proper tyCallbackInfo<void>& info)
4247 {
4248 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4249 TestObjectV8Internal::treatReturnedNullStringAsNullScalarValueStringAttribut eAttributeSetter(v8Value, info);
4250 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4251 }
4252
4253 static void treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribut eGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
4254 {
4255 v8::Handle<v8::Object> holder = info.Holder();
4256 TestObject* impl = V8TestObject::toNative(holder);
4257 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedScalarValueStringAttribute(), info.GetIsolate());
4258 }
4259
4260 static void treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribut eGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value> & info)
4261 {
4262 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
4263 TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarValueStringAtt ributeAttributeGetter(info);
4264 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4265 }
4266
4267 static void treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribut eSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info )
4268 {
4269 v8::Handle<v8::Object> holder = info.Holder();
4270 ExceptionState exceptionState(ExceptionState::SetterContext, "treatReturnedN ullStringAsUndefinedScalarValueStringAttribute", "TestObject", holder, info.GetI solate());
4271 TestObject* impl = V8TestObject::toNative(holder);
4272 TONATIVE_VOID_EXCEPTIONSTATE(V8StringResource<>, cppValue, toScalarValueStri ng(v8Value, exceptionState), exceptionState);
4273 impl->setTreatReturnedNullStringAsUndefinedScalarValueStringAttribute(cppVal ue);
4274 }
4275
4276 static void treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribut eSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> v8Value, const v8::P ropertyCallbackInfo<void>& info)
4277 {
4278 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
4279 TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarValueStringAtt ributeAttributeSetter(v8Value, info);
4280 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
4281 }
4282
4223 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info) 4283 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetter(con st v8::PropertyCallbackInfo<v8::Value>& info)
4224 { 4284 {
4225 v8::Handle<v8::Object> holder = info.Holder(); 4285 v8::Handle<v8::Object> holder = info.Holder();
4226 TestObject* impl = V8TestObject::toNative(holder); 4286 TestObject* impl = V8TestObject::toNative(holder);
4227 v8SetReturnValue(info, impl->typeCheckingInterfaceNullableStringFloatAttribu te()); 4287 v8SetReturnValue(info, impl->typeCheckingInterfaceNullableStringFloatAttribu te());
4228 } 4288 }
4229 4289
4230 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 4290 static void typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCall back(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
4231 { 4291 {
4232 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 4292 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
(...skipping 5034 matching lines...) Expand 10 before | Expand all | Expand 10 after
9267 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringMethod(), info.GetIsolate()); 9327 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedByteStringMethod(), info.GetIsolate());
9268 } 9328 }
9269 9329
9270 static void treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info) 9330 static void treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback(con st v8::FunctionCallbackInfo<v8::Value>& info)
9271 { 9331 {
9272 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 9332 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
9273 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringMethodMeth od(info); 9333 TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringMethodMeth od(info);
9274 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 9334 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
9275 } 9335 }
9276 9336
9337 static void treatReturnedNullStringAsNullScalarValueStringMethodMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
9338 {
9339 TestObject* impl = V8TestObject::toNative(info.Holder());
9340 v8SetReturnValueStringOrNull(info, impl->treatReturnedNullStringAsNullScalar ValueStringMethod(), info.GetIsolate());
9341 }
9342
9343 static void treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback(c onst v8::FunctionCallbackInfo<v8::Value>& info)
9344 {
9345 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
9346 TestObjectV8Internal::treatReturnedNullStringAsNullScalarValueStringMethodMe thod(info);
9347 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
9348 }
9349
9350 static void treatReturnedNullStringAsUndefinedScalarValueStringMethodMethod(cons t v8::FunctionCallbackInfo<v8::Value>& info)
9351 {
9352 TestObject* impl = V8TestObject::toNative(info.Holder());
9353 v8SetReturnValueStringOrUndefined(info, impl->treatReturnedNullStringAsUndef inedScalarValueStringMethod(), info.GetIsolate());
9354 }
9355
9356 static void treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallb ack(const v8::FunctionCallbackInfo<v8::Value>& info)
9357 {
9358 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
9359 TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarValueStringMet hodMethod(info);
9360 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
9361 }
9362
9277 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info) 9363 static void typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethod(const v8: :FunctionCallbackInfo<v8::Value>& info)
9278 { 9364 {
9279 if (UNLIKELY(info.Length() < 1)) { 9365 if (UNLIKELY(info.Length() < 1)) {
9280 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate()); 9366 throwMinimumArityTypeErrorForMethod("typeCheckingInterfaceVoidMethodTest InterfaceEmptyArg", "TestObject", 1, info.Length(), info.GetIsolate());
9281 return; 9367 return;
9282 } 9368 }
9283 TestObject* impl = V8TestObject::toNative(info.Holder()); 9369 TestObject* impl = V8TestObject::toNative(info.Holder());
9284 TestInterfaceEmpty* testInterfaceEmptyArg; 9370 TestInterfaceEmpty* testInterfaceEmptyArg;
9285 { 9371 {
9286 v8::TryCatch block; 9372 v8::TryCatch block;
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
9623 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */}, 9709 {"limitedWithEmptyMissingInvalidAttribute", TestObjectV8Internal::limitedWit hEmptyMissingInvalidAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8 ::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 / * on instance */},
9624 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::TestObjectReplacea bleAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9710 {"replaceableReadonlyLongAttribute", TestObjectV8Internal::replaceableReadon lyLongAttributeAttributeGetterCallback, TestObjectV8Internal::TestObjectReplacea bleAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9625 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), 0 /* on instance */}, 9711 {"locationReplaceable", TestObjectV8Internal::locationReplaceableAttributeGe tterCallback, TestObjectV8Internal::locationReplaceableAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAt tribute>(v8::None), 0 /* on instance */},
9626 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9712 {"setterCallWithActiveWindowAndFirstWindowStringAttribute", TestObjectV8Inte rnal::setterCallWithActiveWindowAndFirstWindowStringAttributeAttributeGetterCall back, TestObjectV8Internal::setterCallWithActiveWindowAndFirstWindowStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9627 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */}, 9713 {"setterCallWithExecutionContextStringAttribute", TestObjectV8Internal::sett erCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObjectV8In ternal::setterCallWithExecutionContextStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */},
9628 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 9714 {"treatNullAsNullStringStringAttribute", TestObjectV8Internal::treatNullAsNu llStringStringAttributeAttributeGetterCallback, TestObjectV8Internal::treatNullA sNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
9629 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */}, 9715 {"treatReturnedNullStringAsNullStringAttribute", TestObjectV8Internal::treat ReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObjectV8Inte rnal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */},
9630 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 9716 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectV8Internal:: treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestOb jectV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
9631 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */}, 9717 {"treatReturnedNullStringAsNullByteStringAttribute", TestObjectV8Internal::t reatReturnedNullStringAsNullByteStringAttributeAttributeGetterCallback, TestObje ctV8Internal::treatReturnedNullStringAsNullByteStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */},
9632 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback , TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9718 {"treatReturnedNullStringAsUndefinedByteStringAttribute", TestObjectV8Intern al::treatReturnedNullStringAsUndefinedByteStringAttributeAttributeGetterCallback , TestObjectV8Internal::treatReturnedNullStringAsUndefinedByteStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9719 {"treatReturnedNullStringAsNullScalarValueStringAttribute", TestObjectV8Inte rnal::treatReturnedNullStringAsNullScalarValueStringAttributeAttributeGetterCall back, TestObjectV8Internal::treatReturnedNullStringAsNullScalarValueStringAttrib uteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT) , static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9720 {"treatReturnedNullStringAsUndefinedScalarValueStringAttribute", TestObjectV 8Internal::treatReturnedNullStringAsUndefinedScalarValueStringAttributeAttribute GetterCallback, TestObjectV8Internal::treatReturnedNullStringAsUndefinedScalarVa lueStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9633 {"typeCheckingInterfaceNullableStringFloatAttribute", TestObjectV8Internal:: typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCallback, TestOb jectV8Internal::typeCheckingInterfaceNullableStringFloatAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 9721 {"typeCheckingInterfaceNullableStringFloatAttribute", TestObjectV8Internal:: typeCheckingInterfaceNullableStringFloatAttributeAttributeGetterCallback, TestOb jectV8Internal::typeCheckingInterfaceNullableStringFloatAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
9634 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute> (v8::None), 0 /* on instance */}, 9722 {"typeCheckingInterfaceTestInterfaceAttribute", TestObjectV8Internal::typeCh eckingInterfaceTestInterfaceAttributeAttributeGetterCallback, TestObjectV8Intern al::typeCheckingInterfaceTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute> (v8::None), 0 /* on instance */},
9635 {"typeCheckingNullableTestInterfaceOrNullAttribute", TestObjectV8Internal::t ypeCheckingNullableTestInterfaceOrNullAttributeAttributeGetterCallback, TestObje ctV8Internal::typeCheckingNullableTestInterfaceOrNullAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */}, 9723 {"typeCheckingNullableTestInterfaceOrNullAttribute", TestObjectV8Internal::t ypeCheckingNullableTestInterfaceOrNullAttributeAttributeGetterCallback, TestObje ctV8Internal::typeCheckingNullableTestInterfaceOrNullAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */},
9636 {"typeCheckingInterfaceNullableTestInterfaceOrNullAttribute", TestObjectV8In ternal::typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeGetter Callback, TestObjectV8Internal::typeCheckingInterfaceNullableTestInterfaceOrNull AttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DE FAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9724 {"typeCheckingInterfaceNullableTestInterfaceOrNullAttribute", TestObjectV8In ternal::typeCheckingInterfaceNullableTestInterfaceOrNullAttributeAttributeGetter Callback, TestObjectV8Internal::typeCheckingInterfaceNullableTestInterfaceOrNull AttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DE FAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
9637 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */}, 9725 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */},
9638 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */}, 9726 {"urlStringAttribute", TestObjectV8Internal::urlStringAttributeAttributeGett erCallback, TestObjectV8Internal::urlStringAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */},
9639 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING ), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on instance */}, 9727 {"unforgeableLongAttribute", TestObjectV8Internal::unforgeableLongAttributeA ttributeGetterCallback, TestObjectV8Internal::unforgeableLongAttributeAttributeS etterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS_OVERWRITING ), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on instance */},
9640 {"activityLoggingSetterOnlyLogPreviousValueAttribute", TestObjectV8Internal: :activityLoggingSetterOnlyLogPreviousValueAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */}, 9728 {"activityLoggingSetterOnlyLogPreviousValueAttribute", TestObjectV8Internal: :activityLoggingSetterOnlyLogPreviousValueAttributeAttributeGetterCallback, Test ObjectV8Internal::activityLoggingSetterOnlyLogPreviousValueAttributeAttributeSet terCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */},
9641 {"activityLoggingLogPreviousValueInterfaceAttribute", TestObjectV8Internal:: activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCallback, TestOb jectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 9729 {"activityLoggingLogPreviousValueInterfaceAttribute", TestObjectV8Internal:: activityLoggingLogPreviousValueInterfaceAttributeAttributeGetterCallback, TestOb jectV8Internal::activityLoggingLogPreviousValueInterfaceAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
9642 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 9730 {"testInterfaceAttribute", TestObjectV8Internal::testInterfaceAttributeAttri buteGetterCallback, TestObjectV8Internal::testInterfaceAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
9827 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0}, 9915 {"raisesExceptionVoidMethodOptionalLongArg", TestObjectV8Internal::raisesExc eptionVoidMethodOptionalLongArgMethodCallback, 0, 0},
9828 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1}, 9916 {"raisesExceptionVoidMethodTestCallbackInterfaceArg", TestObjectV8Internal:: raisesExceptionVoidMethodTestCallbackInterfaceArgMethodCallback, 0, 1},
9829 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0}, 9917 {"raisesExceptionVoidMethodOptionalTestCallbackInterfaceArg", TestObjectV8In ternal::raisesExceptionVoidMethodOptionalTestCallbackInterfaceArgMethodCallback, 0, 0},
9830 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0}, 9918 {"raisesExceptionTestInterfaceEmptyVoidMethod", TestObjectV8Internal::raises ExceptionTestInterfaceEmptyVoidMethodMethodCallback, 0, 0},
9831 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0 , 1}, 9919 {"callWithExecutionContextRaisesExceptionVoidMethodLongArg", TestObjectV8Int ernal::callWithExecutionContextRaisesExceptionVoidMethodLongArgMethodCallback, 0 , 1},
9832 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1}, 9920 {"partiallyRuntimeEnabledOverloadedVoidMethod", TestObjectV8Internal::partia llyRuntimeEnabledOverloadedVoidMethodMethodCallback, 0, 1},
9833 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet urnedNullStringAsNullStringMethodMethodCallback, 0, 0}, 9921 {"treatReturnedNullStringAsNullStringMethod", TestObjectV8Internal::treatRet urnedNullStringAsNullStringMethodMethodCallback, 0, 0},
9834 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0}, 9922 {"treatReturnedNullStringAsUndefinedStringMethod", TestObjectV8Internal::tre atReturnedNullStringAsUndefinedStringMethodMethodCallback, 0, 0},
9835 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0}, 9923 {"treatReturnedNullStringAsNullByteStringMethod", TestObjectV8Internal::trea tReturnedNullStringAsNullByteStringMethodMethodCallback, 0, 0},
9836 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal: :treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0}, 9924 {"treatReturnedNullStringAsUndefinedByteStringMethod", TestObjectV8Internal: :treatReturnedNullStringAsUndefinedByteStringMethodMethodCallback, 0, 0},
9925 {"treatReturnedNullStringAsNullScalarValueStringMethod", TestObjectV8Interna l::treatReturnedNullStringAsNullScalarValueStringMethodMethodCallback, 0, 0},
9926 {"treatReturnedNullStringAsUndefinedScalarValueStringMethod", TestObjectV8In ternal::treatReturnedNullStringAsUndefinedScalarValueStringMethodMethodCallback, 0, 0},
9837 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1}, 9927 {"typeCheckingInterfaceVoidMethodTestInterfaceEmptyArg", TestObjectV8Interna l::typeCheckingInterfaceVoidMethodTestInterfaceEmptyArgMethodCallback, 0, 1},
9838 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback, 0, 1}, 9928 {"typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArg", TestObjectV8In ternal::typeCheckingNullableVoidMethodTestInterfaceEmptyOrNullArgMethodCallback, 0, 1},
9839 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull ArgMethodCallback, 0, 1}, 9929 {"typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNullArg", TestO bjectV8Internal::typeCheckingInterfaceNullableVoidMethodTestInterfaceEmptyOrNull ArgMethodCallback, 0, 1},
9840 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal ::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2}, 9930 {"typeCheckingUnrestrictedVoidMethodFloatArgDoubleArg", TestObjectV8Internal ::typeCheckingUnrestrictedVoidMethodFloatArgDoubleArgMethodCallback, 0, 2},
9841 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal: :voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1}, 9931 {"voidMethodTestInterfaceGarbageCollectedSequenceArg", TestObjectV8Internal: :voidMethodTestInterfaceGarbageCollectedSequenceArgMethodCallback, 0, 1},
9842 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1}, 9932 {"voidMethodTestInterfaceGarbageCollectedArrayArg", TestObjectV8Internal::vo idMethodTestInterfaceGarbageCollectedArrayArgMethodCallback, 0, 1},
9843 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0 , 1}, 9933 {"voidMethodTestInterfaceWillBeGarbageCollectedSequenceArg", TestObjectV8Int ernal::voidMethodTestInterfaceWillBeGarbageCollectedSequenceArgMethodCallback, 0 , 1},
9844 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1}, 9934 {"voidMethodTestInterfaceWillBeGarbageCollectedArrayArg", TestObjectV8Intern al::voidMethodTestInterfaceWillBeGarbageCollectedArrayArgMethodCallback, 0, 1},
9845 }; 9935 };
9846 9936
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
10016 fromInternalPointer(object)->deref(); 10106 fromInternalPointer(object)->deref();
10017 } 10107 }
10018 10108
10019 template<> 10109 template<>
10020 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 10110 v8::Handle<v8::Value> toV8NoInline(TestObject* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
10021 { 10111 {
10022 return toV8(impl, creationContext, isolate); 10112 return toV8(impl, creationContext, isolate);
10023 } 10113 }
10024 10114
10025 } // namespace WebCore 10115 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObject.idl ('k') | Source/core/testing/TypeConversions.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698