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

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

Issue 137583006: Remove tests for unused IDL compiler features (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove other unused line Created 6 years, 11 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 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 5285 matching lines...) Expand 10 before | Expand all | Expand 10 after
5296 TestObjV8Internal::namedPropertyQuery(name, info); 5296 TestObjV8Internal::namedPropertyQuery(name, info);
5297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 5297 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
5298 } 5298 }
5299 5299
5300 } // namespace TestObjV8Internal 5300 } // namespace TestObjV8Internal
5301 5301
5302 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = { 5302 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectAttributes[] = {
5303 {"readOnlyLongAttr", TestObjV8Internal::readOnlyLongAttrAttributeGetterCallb ack, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), 0 /* on instance */}, 5303 {"readOnlyLongAttr", TestObjV8Internal::readOnlyLongAttrAttributeGetterCallb ack, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), 0 /* on instance */},
5304 {"readOnlyStringAttr", TestObjV8Internal::readOnlyStringAttrAttributeGetterC allback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */}, 5304 {"readOnlyStringAttr", TestObjV8Internal::readOnlyStringAttrAttributeGetterC allback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */},
5305 {"readOnlyTestObjectAttr", TestObjV8Internal::readOnlyTestObjectAttrAttribut eGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static _cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5305 {"readOnlyTestObjectAttr", TestObjV8Internal::readOnlyTestObjectAttrAttribut eGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static _cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5306 {"TestSubObj", TestObjV8Internal::TestObjConstructorGetter, TestObjV8Interna l::TestObjReplaceableAttributeSetterCallback, 0, 0, const_cast<WrapperTypeInfo*> (&V8TestSubObj::wrapperTypeInfo), static_cast<v8::AccessControl>(v8::DEFAULT), s tatic_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instance */},
5306 {"enumAttr", TestObjV8Internal::enumAttrAttributeGetterCallback, TestObjV8In ternal::enumAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ }, 5307 {"enumAttr", TestObjV8Internal::enumAttrAttributeGetterCallback, TestObjV8In ternal::enumAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ },
5307 {"readOnlyEnumAttr", TestObjV8Internal::readOnlyEnumAttrAttributeGetterCallb ack, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), 0 /* on instance */}, 5308 {"readOnlyEnumAttr", TestObjV8Internal::readOnlyEnumAttrAttributeGetterCallb ack, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pr opertyAttribute>(v8::None), 0 /* on instance */},
5308 {"byteAttr", TestObjV8Internal::byteAttrAttributeGetterCallback, TestObjV8In ternal::byteAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ }, 5309 {"byteAttr", TestObjV8Internal::byteAttrAttributeGetterCallback, TestObjV8In ternal::byteAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ },
5309 {"octetAttr", TestObjV8Internal::octetAttrAttributeGetterCallback, TestObjV8 Internal::octetAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5310 {"octetAttr", TestObjV8Internal::octetAttrAttributeGetterCallback, TestObjV8 Internal::octetAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5310 {"shortAttr", TestObjV8Internal::shortAttrAttributeGetterCallback, TestObjV8 Internal::shortAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5311 {"shortAttr", TestObjV8Internal::shortAttrAttributeGetterCallback, TestObjV8 Internal::shortAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5311 {"unsignedShortAttr", TestObjV8Internal::unsignedShortAttrAttributeGetterCal lback, TestObjV8Internal::unsignedShortAttrAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), 0 /* on instance */}, 5312 {"unsignedShortAttr", TestObjV8Internal::unsignedShortAttrAttributeGetterCal lback, TestObjV8Internal::unsignedShortAttrAttributeSetterCallback, 0, 0, 0, sta tic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8: :None), 0 /* on instance */},
5312 {"longAttr", TestObjV8Internal::longAttrAttributeGetterCallback, TestObjV8In ternal::longAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ }, 5313 {"longAttr", TestObjV8Internal::longAttrAttributeGetterCallback, TestObjV8In ternal::longAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl> (v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */ },
5313 {"longLongAttr", TestObjV8Internal::longLongAttrAttributeGetterCallback, Tes tObjV8Internal::longLongAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Ac cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 5314 {"longLongAttr", TestObjV8Internal::longLongAttrAttributeGetterCallback, Tes tObjV8Internal::longLongAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::Ac cessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
5314 {"unsignedLongLongAttr", TestObjV8Internal::unsignedLongLongAttrAttributeGet terCallback, TestObjV8Internal::unsignedLongLongAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */}, 5315 {"unsignedLongLongAttr", TestObjV8Internal::unsignedLongLongAttrAttributeGet terCallback, TestObjV8Internal::unsignedLongLongAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttri bute>(v8::None), 0 /* on instance */},
5315 {"stringAttr", TestObjV8Internal::stringAttrAttributeGetterCallback, TestObj V8Internal::stringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta nce */}, 5316 {"stringAttr", TestObjV8Internal::stringAttrAttributeGetterCallback, TestObj V8Internal::stringAttrAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on insta nce */},
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
5523 functionTemplate->Set(v8AtomicString(isolate, "staticMethodWithCallbackAndOp tionalArg"), v8::FunctionTemplate::New(isolate, TestObjV8Internal::staticMethodW ithCallbackAndOptionalArgMethodCallback, v8Undefined(), v8::Local<v8::Signature> (), 0)); 5524 functionTemplate->Set(v8AtomicString(isolate, "staticMethodWithCallbackAndOp tionalArg"), v8::FunctionTemplate::New(isolate, TestObjV8Internal::staticMethodW ithCallbackAndOptionalArgMethodCallback, v8Undefined(), v8::Local<v8::Signature> (), 0));
5524 functionTemplate->Set(v8AtomicString(isolate, "staticMethodWithCallbackArg") , v8::FunctionTemplate::New(isolate, TestObjV8Internal::staticMethodWithCallback ArgMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 1)); 5525 functionTemplate->Set(v8AtomicString(isolate, "staticMethodWithCallbackArg") , v8::FunctionTemplate::New(isolate, TestObjV8Internal::staticMethodWithCallback ArgMethodCallback, v8Undefined(), v8::Local<v8::Signature>(), 1));
5525 functionTemplate->Set(v8AtomicString(isolate, "classMethod"), v8::FunctionTe mplate::New(isolate, TestObjV8Internal::classMethodMethodCallback, v8Undefined() , v8::Local<v8::Signature>(), 0)); 5526 functionTemplate->Set(v8AtomicString(isolate, "classMethod"), v8::FunctionTe mplate::New(isolate, TestObjV8Internal::classMethodMethodCallback, v8Undefined() , v8::Local<v8::Signature>(), 0));
5526 functionTemplate->Set(v8AtomicString(isolate, "classMethodWithOptional"), v8 ::FunctionTemplate::New(isolate, TestObjV8Internal::classMethodWithOptionalMetho dCallback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 5527 functionTemplate->Set(v8AtomicString(isolate, "classMethodWithOptional"), v8 ::FunctionTemplate::New(isolate, TestObjV8Internal::classMethodWithOptionalMetho dCallback, v8Undefined(), v8::Local<v8::Signature>(), 0));
5527 functionTemplate->Set(v8AtomicString(isolate, "classMethod2"), v8::FunctionT emplate::New(isolate, TestObjV8Internal::classMethod2MethodCallback, v8Undefined (), v8::Local<v8::Signature>(), 1)); 5528 functionTemplate->Set(v8AtomicString(isolate, "classMethod2"), v8::FunctionT emplate::New(isolate, TestObjV8Internal::classMethod2MethodCallback, v8Undefined (), v8::Local<v8::Signature>(), 1));
5528 if (RuntimeEnabledFeatures::featureNameEnabled()) 5529 if (RuntimeEnabledFeatures::featureNameEnabled())
5529 prototypeTemplate->Set(v8AtomicString(isolate, "enabledAtRuntimeMethod") , v8::FunctionTemplate::New(isolate, TestObjV8Internal::enabledAtRuntimeMethodMe thodCallback, v8Undefined(), defaultSignature, 1)); 5530 prototypeTemplate->Set(v8AtomicString(isolate, "enabledAtRuntimeMethod") , v8::FunctionTemplate::New(isolate, TestObjV8Internal::enabledAtRuntimeMethodMe thodCallback, v8Undefined(), defaultSignature, 1));
5530 functionTemplate->Set(v8AtomicString(isolate, "deprecatedStaticMethod"), v8: :FunctionTemplate::New(isolate, TestObjV8Internal::deprecatedStaticMethodMethodC allback, v8Undefined(), v8::Local<v8::Signature>(), 0)); 5531 functionTemplate->Set(v8AtomicString(isolate, "deprecatedStaticMethod"), v8: :FunctionTemplate::New(isolate, TestObjV8Internal::deprecatedStaticMethodMethodC allback, v8Undefined(), v8::Local<v8::Signature>(), 0));
5531 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticReadO nlyLongAttr"), TestObjV8Internal::staticReadOnlyLongAttrAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT )); 5532 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticReadO nlyLongAttr"), TestObjV8Internal::staticReadOnlyLongAttrAttributeGetterCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT ));
5532 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttr"), TestObjV8Internal::staticStringAttrAttributeGetterCallback, TestObjV8In ternal::staticStringAttrAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>( ), static_cast<v8::AccessControl>(v8::DEFAULT)); 5533 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin gAttr"), TestObjV8Internal::staticStringAttrAttributeGetterCallback, TestObjV8In ternal::staticStringAttrAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::AccessorSignature>( ), static_cast<v8::AccessControl>(v8::DEFAULT));
5533 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "TestSubObj" ), TestObjV8Internal::TestObjConstructorGetter, 0, v8::External::New(isolate, co nst_cast<WrapperTypeInfo*>(&V8TestSubObj::wrapperTypeInfo)), static_cast<v8::Pro pertyAttribute>(v8::DontEnum), v8::Handle<v8::AccessorSignature>(), static_cast< v8::AccessControl>(v8::DEFAULT));
5534 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "deprecatedS taticReadOnlyAttr"), TestObjV8Internal::deprecatedStaticReadOnlyAttrAttributeGet terCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute >(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl> (v8::DEFAULT)); 5534 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "deprecatedS taticReadOnlyAttr"), TestObjV8Internal::deprecatedStaticReadOnlyAttrAttributeGet terCallback, 0, v8::External::New(isolate, 0), static_cast<v8::PropertyAttribute >(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::AccessControl> (v8::DEFAULT));
5535 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "deprecatedS taticAttr"), TestObjV8Internal::deprecatedStaticAttrAttributeGetterCallback, Tes tObjV8Internal::deprecatedStaticAttrAttributeSetterCallback, v8::External::New(i solate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Accesso rSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT)); 5535 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "deprecatedS taticAttr"), TestObjV8Internal::deprecatedStaticAttrAttributeGetterCallback, Tes tObjV8Internal::deprecatedStaticAttrAttributeSetterCallback, v8::External::New(i solate, 0), static_cast<v8::PropertyAttribute>(v8::None), v8::Handle<v8::Accesso rSignature>(), static_cast<v8::AccessControl>(v8::DEFAULT));
5536 5536
5537 // Custom toString template 5537 // Custom toString template
5538 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :current()->toStringTemplate()); 5538 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :current()->toStringTemplate());
5539 } 5539 }
5540 5540
5541 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType) 5541 v8::Handle<v8::FunctionTemplate> V8TestObject::domTemplate(v8::Isolate* isolate, WrapperWorldType currentWorldType)
5542 { 5542 {
5543 V8PerIsolateData* data = V8PerIsolateData::from(isolate); 5543 V8PerIsolateData* data = V8PerIsolateData::from(isolate);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
5614 fromInternalPointer(object)->deref(); 5614 fromInternalPointer(object)->deref();
5615 } 5615 }
5616 5616
5617 template<> 5617 template<>
5618 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate) 5618 v8::Handle<v8::Value> toV8NoInline(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate)
5619 { 5619 {
5620 return toV8(impl, creationContext, isolate); 5620 return toV8(impl, creationContext, isolate);
5621 } 5621 }
5622 5622
5623 } // namespace WebCore 5623 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestTypedefs.idl ('k') | Source/bindings/tests/results/V8TestTypedefs.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698