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

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

Issue 27476003: IDL compiler: [Unforgeable] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 2 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/TestObjectPython.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::ReflectUrlAttri buteAttr), info.GetIsolate()); 1508 v8SetReturnValueString(info, imp->getURLAttribute(HTMLNames::ReflectUrlAttri buteAttr), info.GetIsolate());
1509 } 1509 }
1510 1510
1511 static void urlReadonlyStringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng> name, const v8::PropertyCallbackInfo<v8::Value>& info) 1511 static void urlReadonlyStringAttributeAttributeGetterCallback(v8::Local<v8::Stri ng> name, const v8::PropertyCallbackInfo<v8::Value>& info)
1512 { 1512 {
1513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1513 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1514 TestObjectPythonV8Internal::urlReadonlyStringAttributeAttributeGetter(name, info); 1514 TestObjectPythonV8Internal::urlReadonlyStringAttributeAttributeGetter(name, info);
1515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1515 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1516 } 1516 }
1517 1517
1518 static void unforgeableReadonlyLongAttributeAttributeGetter(v8::Local<v8::String > name, const v8::PropertyCallbackInfo<v8::Value>& info)
1519 {
1520 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8 TestObjectPython::GetTemplate(info.GetIsolate(), worldType(info.GetIsolate())));
1521 if (holder.IsEmpty())
1522 return;
1523 TestObjectPython* imp = V8TestObjectPython::toNative(holder);
1524 v8SetReturnValueInt(info, imp->unforgeableReadonlyLongAttribute());
1525 }
1526
1527 static void unforgeableReadonlyLongAttributeAttributeGetterCallback(v8::Local<v8 ::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
1528 {
1529 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1530 TestObjectPythonV8Internal::unforgeableReadonlyLongAttributeAttributeGetter( name, info);
1531 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1532 }
1533
1518 } // namespace TestObjectPythonV8Internal 1534 } // namespace TestObjectPythonV8Internal
1519 1535
1520 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib utes[] = { 1536 static const V8DOMConfiguration::AttributeConfiguration V8TestObjectPythonAttrib utes[] = {
1521 {"readonlyDateAttribute", TestObjectPythonV8Internal::readonlyDateAttributeA ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1537 {"readonlyDateAttribute", TestObjectPythonV8Internal::readonlyDateAttributeA ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1522 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1538 {"readonlyStringAttribute", TestObjectPythonV8Internal::readonlyStringAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1523 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1539 {"readonlyDOMTimeStampAttribute", TestObjectPythonV8Internal::readonlyDOMTim eStampAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessContro l>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1524 {"readonlyBooleanAttribute", TestObjectPythonV8Internal::readonlyBooleanAttr ibuteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1540 {"readonlyBooleanAttribute", TestObjectPythonV8Internal::readonlyBooleanAttr ibuteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1525 {"readonlyByteAttribute", TestObjectPythonV8Internal::readonlyByteAttributeA ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1541 {"readonlyByteAttribute", TestObjectPythonV8Internal::readonlyByteAttributeA ttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1526 {"readonlyDoubleAttribute", TestObjectPythonV8Internal::readonlyDoubleAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1542 {"readonlyDoubleAttribute", TestObjectPythonV8Internal::readonlyDoubleAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1527 {"readonlyFloatAttribute", TestObjectPythonV8Internal::readonlyFloatAttribut eAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT ), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1543 {"readonlyFloatAttribute", TestObjectPythonV8Internal::readonlyFloatAttribut eAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT ), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter Callback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1629 {"reflectedClass", TestObjectPythonV8Internal::reflectedClassAttributeGetter Callback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v 8::PropertyAttribute>(v8::None), 0 /* on instance */},
1614 {"setterCallWithActiveWindowAndFirstWindowReadonlyStringAttribute", TestObje ctPythonV8Internal::setterCallWithActiveWindowAndFirstWindowReadonlyStringAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1630 {"setterCallWithActiveWindowAndFirstWindowReadonlyStringAttribute", TestObje ctPythonV8Internal::setterCallWithActiveWindowAndFirstWindowReadonlyStringAttrib uteAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAU LT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1615 {"setterRaisesExceptionReadonlyLongAttribute", TestObjectPythonV8Internal::s etterRaisesExceptionReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */}, 1631 {"setterRaisesExceptionReadonlyLongAttribute", TestObjectPythonV8Internal::s etterRaisesExceptionReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */},
1616 {"strictTypeCheckingReadonlyFloatAttribute", TestObjectPythonV8Internal::str ictTypeCheckingReadonlyFloatAttributeAttributeGetterCallback, 0, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), 0 /* on instance */}, 1632 {"strictTypeCheckingReadonlyFloatAttribute", TestObjectPythonV8Internal::str ictTypeCheckingReadonlyFloatAttributeAttributeGetterCallback, 0, 0, 0, 0, static _cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::No ne), 0 /* on instance */},
1617 {"strictTypeCheckingReadonlyTestInterfaceAttribute", TestObjectPythonV8Inter nal::strictTypeCheckingReadonlyTestInterfaceAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), 0 /* on instance */}, 1633 {"strictTypeCheckingReadonlyTestInterfaceAttribute", TestObjectPythonV8Inter nal::strictTypeCheckingReadonlyTestInterfaceAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyA ttribute>(v8::None), 0 /* on instance */},
1618 {"treatNullAsNullStringReadonlyStringAttribute", TestObjectPythonV8Internal: :treatNullAsNullStringReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */}, 1634 {"treatNullAsNullStringReadonlyStringAttribute", TestObjectPythonV8Internal: :treatNullAsNullStringReadonlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */},
1619 {"treatReturnedNullStringAsNullReadonlyStringAttribute", TestObjectPythonV8I nternal::treatReturnedNullStringAsNullReadonlyStringAttributeAttributeGetterCall back, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 1635 {"treatReturnedNullStringAsNullReadonlyStringAttribute", TestObjectPythonV8I nternal::treatReturnedNullStringAsNullReadonlyStringAttributeAttributeGetterCall back, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
1620 {"treatReturnedNullStringAsUndefinedReadonlyStringAttribute", TestObjectPyth onV8Internal::treatReturnedNullStringAsUndefinedReadonlyStringAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1636 {"treatReturnedNullStringAsUndefinedReadonlyStringAttribute", TestObjectPyth onV8Internal::treatReturnedNullStringAsUndefinedReadonlyStringAttributeAttribute GetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_ cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1621 {"urlReadonlyStringAttribute", TestObjectPythonV8Internal::urlReadonlyString AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8: :DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1637 {"urlReadonlyStringAttribute", TestObjectPythonV8Internal::urlReadonlyString AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8: :DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1622 {"urlReadonlyStringAttribute", TestObjectPythonV8Internal::urlReadonlyString AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8: :DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 1638 {"urlReadonlyStringAttribute", TestObjectPythonV8Internal::urlReadonlyString AttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessControl>(v8: :DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
1639 {"unforgeableReadonlyLongAttribute", TestObjectPythonV8Internal::unforgeable ReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::Access Control>(v8::PROHIBITS_OVERWRITING), static_cast<v8::PropertyAttribute>(v8::Dont Delete), 0 /* on instance */},
1623 }; 1640 };
1624 1641
1625 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8:: Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren tWorldType) 1642 static v8::Handle<v8::FunctionTemplate> ConfigureV8TestObjectPythonTemplate(v8:: Handle<v8::FunctionTemplate> desc, v8::Isolate* isolate, WrapperWorldType curren tWorldType)
1626 { 1643 {
1627 desc->ReadOnlyPrototype(); 1644 desc->ReadOnlyPrototype();
1628 1645
1629 v8::Local<v8::Signature> defaultSignature; 1646 v8::Local<v8::Signature> defaultSignature;
1630 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel dCount, 1647 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(desc, "TestOb jectPython", v8::Local<v8::FunctionTemplate>(), V8TestObjectPython::internalFiel dCount,
1631 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu tes), 1648 V8TestObjectPythonAttributes, WTF_ARRAY_LENGTH(V8TestObjectPythonAttribu tes),
1632 0, 0, isolate, currentWorldType); 1649 0, 0, isolate, currentWorldType);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr apper, isolate, WrapperConfiguration::Independent); 1728 V8DOMWrapper::associateObjectWithWrapper<V8TestObjectPython>(impl, &info, wr apper, isolate, WrapperConfiguration::Independent);
1712 return wrapper; 1729 return wrapper;
1713 } 1730 }
1714 1731
1715 void V8TestObjectPython::derefObject(void* object) 1732 void V8TestObjectPython::derefObject(void* object)
1716 { 1733 {
1717 fromInternalPointer(object)->deref(); 1734 fromInternalPointer(object)->deref();
1718 } 1735 }
1719 1736
1720 } // namespace WebCore 1737 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestObjectPython.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698