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

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

Issue 151173004: IDL compiler: [GarbageCollected] on other interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 6 years, 10 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #include "V8Element.h" 42 #include "V8Element.h"
43 #include "V8EventTarget.h" 43 #include "V8EventTarget.h"
44 #include "V8HTMLCollection.h" 44 #include "V8HTMLCollection.h"
45 #include "V8HTMLElement.h" 45 #include "V8HTMLElement.h"
46 #include "V8Node.h" 46 #include "V8Node.h"
47 #include "V8NodeFilter.h" 47 #include "V8NodeFilter.h"
48 #include "V8ShadowRoot.h" 48 #include "V8ShadowRoot.h"
49 #include "V8TestCallbackInterface.h" 49 #include "V8TestCallbackInterface.h"
50 #include "V8TestInterface.h" 50 #include "V8TestInterface.h"
51 #include "V8TestInterfaceEmpty.h" 51 #include "V8TestInterfaceEmpty.h"
52 #include "V8TestInterfaceGarbageCollected.h"
52 #include "V8TestInterfacePython.h" 53 #include "V8TestInterfacePython.h"
53 #include "V8TestNode.h" 54 #include "V8TestNode.h"
54 #include "V8TestObjectA.h" 55 #include "V8TestObjectA.h"
55 #include "V8Window.h" 56 #include "V8Window.h"
56 #include "V8XPathNSResolver.h" 57 #include "V8XPathNSResolver.h"
57 #include "bindings/v8/BindingSecurity.h" 58 #include "bindings/v8/BindingSecurity.h"
58 #include "bindings/v8/Dictionary.h" 59 #include "bindings/v8/Dictionary.h"
59 #include "bindings/v8/ExceptionState.h" 60 #include "bindings/v8/ExceptionState.h"
60 #include "bindings/v8/ScriptCallStackFactory.h" 61 #include "bindings/v8/ScriptCallStackFactory.h"
61 #include "bindings/v8/ScriptPromise.h" 62 #include "bindings/v8/ScriptPromise.h"
(...skipping 1930 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 1993 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
1993 } 1994 }
1994 1995
1995 static void customImplementedAsLongAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo) 1996 static void customImplementedAsLongAttributeAttributeSetterCallback(v8::Local<v8 ::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& i nfo)
1996 { 1997 {
1997 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1998 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1998 V8TestObjectPython::customImplementedAsLongAttributeAttributeSetterCustom(js Value, info); 1999 V8TestObjectPython::customImplementedAsLongAttributeAttributeSetterCustom(js Value, info);
1999 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2000 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2000 } 2001 }
2001 2002
2002 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
2003 {
2004 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2005 v8SetReturnValueFast(info, imp->testInterfacePythonAttribute(), imp);
2006 }
2007
2008 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
2009 {
2010 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2011 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info );
2012 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2013 }
2014
2015 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info)
2016 {
2017 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
2018 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac ePython::hasInstance(jsValue, info.GetIsolate()) ? V8TestInterfacePython::toNati ve(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
2019 imp->setTestInterfacePythonAttribute(WTF::getPtr(cppValue));
2020 }
2021
2022 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2023 {
2024 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
2025 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(jsVa lue, info);
2026 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2027 }
2028
2029 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) 2003 static void customGetterImplementedAsLongAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
2030 { 2004 {
2031 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 2005 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
2032 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus tom(info); 2006 V8TestObjectPython::customGetterImplementedAsLongAttributeAttributeGetterCus tom(info);
2033 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 2007 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
2034 } 2008 }
2035 2009
2036 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 2010 static void customGetterImplementedAsLongAttributeAttributeSetter(v8::Local<v8:: Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
2037 { 2011 {
2038 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()) ; 2012 ExceptionState exceptionState(ExceptionState::SetterContext, "customGetterIm plementedAsLongAttribute", "TestObjectPython", info.Holder(), info.GetIsolate()) ;
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after
3799 } 3773 }
3800 3774
3801 static void anotherStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) 3775 static void anotherStringAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3802 { 3776 {
3803 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 3777 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3804 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; 3778 CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope;
3805 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(jsValue, i nfo); 3779 TestObjectPythonV8Internal::anotherStringAttributeAttributeSetter(jsValue, i nfo);
3806 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); 3780 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3807 } 3781 }
3808 3782
3783 static void testInterfacePythonAttributeAttributeGetter(const v8::PropertyCallba ckInfo<v8::Value>& info)
3784 {
3785 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3786 v8SetReturnValueFast(info, imp->testInterfacePythonAttribute(), imp);
3787 }
3788
3789 static void testInterfacePythonAttributeAttributeGetterCallback(v8::Local<v8::St ring>, const v8::PropertyCallbackInfo<v8::Value>& info)
3790 {
3791 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3792 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeGetter(info );
3793 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3794 }
3795
3796 static void testInterfacePythonAttributeAttributeSetter(v8::Local<v8::Value> jsV alue, const v8::PropertyCallbackInfo<void>& info)
3797 {
3798 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3799 V8TRYCATCH_VOID(TestInterfacePythonImplementation*, cppValue, V8TestInterfac ePython::hasInstance(jsValue, info.GetIsolate()) ? V8TestInterfacePython::toNati ve(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
3800 imp->setTestInterfacePythonAttribute(WTF::getPtr(cppValue));
3801 }
3802
3803 static void testInterfacePythonAttributeAttributeSetterCallback(v8::Local<v8::St ring>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3804 {
3805 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3806 TestObjectPythonV8Internal::testInterfacePythonAttributeAttributeSetter(jsVa lue, info);
3807 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3808 }
3809
3810 static void testInterfaceGarbageCollectedAttributeAttributeGetter(const v8::Prop ertyCallbackInfo<v8::Value>& info)
3811 {
3812 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3813 bool isNull = false;
3814 RefPtrWillBeRawPtr<TestInterfaceGarbageCollected> jsValue = imp->testInterfa ceGarbageCollectedAttribute(isNull);
3815 if (isNull) {
3816 v8SetReturnValueNull(info);
3817 return;
3818 }
3819 v8SetReturnValueFast(info, jsValue.release(), imp);
3820 }
3821
3822 static void testInterfaceGarbageCollectedAttributeAttributeGetterCallback(v8::Lo cal<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info)
3823 {
3824 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
3825 TestObjectPythonV8Internal::testInterfaceGarbageCollectedAttributeAttributeG etter(info);
3826 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3827 }
3828
3829 static void testInterfaceGarbageCollectedAttributeAttributeSetter(v8::Local<v8:: Value> jsValue, const v8::PropertyCallbackInfo<void>& info)
3830 {
3831 TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder());
3832 V8TRYCATCH_VOID(TestInterfaceGarbageCollected*, cppValue, V8TestInterfaceGar bageCollected::hasInstance(jsValue, info.GetIsolate()) ? V8TestInterfaceGarbageC ollected::toNative(v8::Handle<v8::Object>::Cast(jsValue)) : 0);
3833 imp->setTestInterfaceGarbageCollectedAttribute(WTF::getPtr(cppValue));
3834 }
3835
3836 static void testInterfaceGarbageCollectedAttributeAttributeSetterCallback(v8::Lo cal<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<vo id>& info)
3837 {
3838 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
3839 TestObjectPythonV8Internal::testInterfaceGarbageCollectedAttributeAttributeS etter(jsValue, info);
3840 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution");
3841 }
3842
3809 static void TestObjectPythonConstructorGetter(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info) 3843 static void TestObjectPythonConstructorGetter(v8::Local<v8::String>, const v8::P ropertyCallbackInfo<v8::Value>& info)
3810 { 3844 {
3811 v8::Handle<v8::Value> data = info.Data(); 3845 v8::Handle<v8::Value> data = info.Data();
3812 ASSERT(data->IsExternal()); 3846 ASSERT(data->IsExternal());
3813 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 3847 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
3814 if (!perContextData) 3848 if (!perContextData)
3815 return; 3849 return;
3816 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data))); 3850 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data)));
3817 } 3851 }
3818 3852
(...skipping 3338 matching lines...) Expand 10 before | Expand all | Expand 10 after
7157 {"customGetterReadonlyObjectAttribute", TestObjectPythonV8Internal::customGe tterReadonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7191 {"customGetterReadonlyObjectAttribute", TestObjectPythonV8Internal::customGe tterReadonlyObjectAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8:: AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7158 {"customSetterLongAttribute", TestObjectPythonV8Internal::customSetterLongAt tributeAttributeGetterCallback, TestObjectPythonV8Internal::customSetterLongAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7192 {"customSetterLongAttribute", TestObjectPythonV8Internal::customSetterLongAt tributeAttributeGetterCallback, TestObjectPythonV8Internal::customSetterLongAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7159 #if ENABLE(CONDITION) 7193 #if ENABLE(CONDITION)
7160 {"customLongAttribute", TestObjectPythonV8Internal::customLongAttributeAttri buteGetterCallback, TestObjectPythonV8Internal::customLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */}, 7194 {"customLongAttribute", TestObjectPythonV8Internal::customLongAttributeAttri buteGetterCallback, TestObjectPythonV8Internal::customLongAttributeAttributeSett erCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8 ::PropertyAttribute>(v8::None), 0 /* on instance */},
7161 #endif // ENABLE(CONDITION) 7195 #endif // ENABLE(CONDITION)
7162 {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal: :customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */}, 7196 {"customElementsCallbacksReadonlyLongAttribute", TestObjectPythonV8Internal: :customElementsCallbacksReadonlyLongAttributeAttributeGetterCallback, 0, 0, 0, 0 , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::None), 0 /* on instance */},
7163 {"deprecatedLongAttribute", TestObjectPythonV8Internal::deprecatedLongAttrib uteAttributeGetterCallback, TestObjectPythonV8Internal::deprecatedLongAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7197 {"deprecatedLongAttribute", TestObjectPythonV8Internal::deprecatedLongAttrib uteAttributeGetterCallback, TestObjectPythonV8Internal::deprecatedLongAttributeA ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7164 {"enforceRangeLongAttribute", TestObjectPythonV8Internal::enforceRangeLongAt tributeAttributeGetterCallback, TestObjectPythonV8Internal::enforceRangeLongAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7198 {"enforceRangeLongAttribute", TestObjectPythonV8Internal::enforceRangeLongAt tributeAttributeGetterCallback, TestObjectPythonV8Internal::enforceRangeLongAttr ibuteAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAUL T), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7165 {"implementedAsLongAttribute", TestObjectPythonV8Internal::implementedAsLong AttributeAttributeGetterCallback, TestObjectPythonV8Internal::implementedAsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7199 {"implementedAsLongAttribute", TestObjectPythonV8Internal::implementedAsLong AttributeAttributeGetterCallback, TestObjectPythonV8Internal::implementedAsLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7166 {"customImplementedAsLongAttribute", TestObjectPythonV8Internal::customImple mentedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::custom ImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 7200 {"customImplementedAsLongAttribute", TestObjectPythonV8Internal::customImple mentedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::custom ImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
7167 {"testInterfacePythonAttribute", TestObjectPythonV8Internal::testInterfacePy thonAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testInterfaceP ythonAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7168 {"customGetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo mGetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::customGetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */}, 7201 {"customGetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo mGetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::customGetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */},
7169 {"customSetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo mSetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::customSetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */}, 7202 {"customSetterImplementedAsLongAttribute", TestObjectPythonV8Internal::custo mSetterImplementedAsLongAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::customSetterImplementedAsLongAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */},
7170 {"measureAsLongAttribute", TestObjectPythonV8Internal::measureAsLongAttribut eAttributeGetterCallback, TestObjectPythonV8Internal::measureAsLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7203 {"measureAsLongAttribute", TestObjectPythonV8Internal::measureAsLongAttribut eAttributeGetterCallback, TestObjectPythonV8Internal::measureAsLongAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7171 {"notEnumerableLongAttribute", TestObjectPythonV8Internal::notEnumerableLong AttributeAttributeGetterCallback, TestObjectPythonV8Internal::notEnumerableLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instance */}, 7204 {"notEnumerableLongAttribute", TestObjectPythonV8Internal::notEnumerableLong AttributeAttributeGetterCallback, TestObjectPythonV8Internal::notEnumerableLongA ttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEF AULT), static_cast<v8::PropertyAttribute>(v8::DontEnum), 0 /* on instance */},
7172 {"perWorldBindingsLongAttribute", TestObjectPythonV8Internal::perWorldBindin gsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perWorldBind ingsLongAttributeAttributeSetterCallback, TestObjectPythonV8Internal::perWorldBi ndingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Intern al::perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static_ cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non e), 0 /* on instance */}, 7205 {"perWorldBindingsLongAttribute", TestObjectPythonV8Internal::perWorldBindin gsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::perWorldBind ingsLongAttributeAttributeSetterCallback, TestObjectPythonV8Internal::perWorldBi ndingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Intern al::perWorldBindingsLongAttributeAttributeSetterCallbackForMainWorld, 0, static_ cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::Non e), 0 /* on instance */},
7173 {"perWorldBindingsReadonlyLongAttribute", TestObjectPythonV8Internal::perWor ldBindingsReadonlyLongAttributeAttributeGetterCallback, 0, TestObjectPythonV8Int ernal::perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */}, 7206 {"perWorldBindingsReadonlyLongAttribute", TestObjectPythonV8Internal::perWor ldBindingsReadonlyLongAttributeAttributeGetterCallback, 0, TestObjectPythonV8Int ernal::perWorldBindingsReadonlyLongAttributeAttributeGetterCallbackForMainWorld, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttr ibute>(v8::None), 0 /* on instance */},
7174 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectPythonV8Int ernal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback , TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribute AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingAccessPerWor ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In ternal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallbac kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 7207 {"activityLoggingAccessPerWorldBindingsLongAttribute", TestObjectPythonV8Int ernal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeGetterCallback , TestObjectPythonV8Internal::activityLoggingAccessPerWorldBindingsLongAttribute AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingAccessPerWor ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In ternal::activityLoggingAccessPerWorldBindingsLongAttributeAttributeSetterCallbac kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
7175 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingA ccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti vityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7208 {"activityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingA ccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test ObjectPythonV8Internal::activityLoggingAccessForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti vityLoggingAccessForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7176 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectPythonV8Int ernal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback , TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribute AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingGetterPerWor ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In ternal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallbac kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 7209 {"activityLoggingGetterPerWorldBindingsLongAttribute", TestObjectPythonV8Int ernal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeGetterCallback , TestObjectPythonV8Internal::activityLoggingGetterPerWorldBindingsLongAttribute AttributeSetterCallback, TestObjectPythonV8Internal::activityLoggingGetterPerWor ldBindingsLongAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8In ternal::activityLoggingGetterPerWorldBindingsLongAttributeAttributeSetterCallbac kForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
7177 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingG etterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti vityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7210 {"activityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttribute", Test ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallback, TestObjectPythonV8Internal::activityLoggingG etterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCallback, Test ObjectPythonV8Internal::activityLoggingGetterForIsolatedWorldsPerWorldBindingsLo ngAttributeAttributeGetterCallbackForMainWorld, TestObjectPythonV8Internal::acti vityLoggingGetterForIsolatedWorldsPerWorldBindingsLongAttributeAttributeSetterCa llbackForMainWorld, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast< v8::PropertyAttribute>(v8::None), 0 /* on instance */},
(...skipping 30 matching lines...) Expand all
7208 {"setterCallWithExecutionContextStringAttribute", TestObjectPythonV8Internal ::setterCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObje ctPythonV8Internal::setterCallWithExecutionContextStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */}, 7241 {"setterCallWithExecutionContextStringAttribute", TestObjectPythonV8Internal ::setterCallWithExecutionContextStringAttributeAttributeGetterCallback, TestObje ctPythonV8Internal::setterCallWithExecutionContextStringAttributeAttributeSetter Callback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8:: PropertyAttribute>(v8::None), 0 /* on instance */},
7209 {"strictTypeCheckingFloatAttribute", TestObjectPythonV8Internal::strictTypeC heckingFloatAttributeAttributeGetterCallback, TestObjectPythonV8Internal::strict TypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */}, 7242 {"strictTypeCheckingFloatAttribute", TestObjectPythonV8Internal::strictTypeC heckingFloatAttributeAttributeGetterCallback, TestObjectPythonV8Internal::strict TypeCheckingFloatAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acce ssControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on i nstance */},
7210 {"strictTypeCheckingTestInterfaceAttribute", TestObjectPythonV8Internal::str ictTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestObjectPythonV8 Internal::strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */}, 7243 {"strictTypeCheckingTestInterfaceAttribute", TestObjectPythonV8Internal::str ictTypeCheckingTestInterfaceAttributeAttributeGetterCallback, TestObjectPythonV8 Internal::strictTypeCheckingTestInterfaceAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribu te>(v8::None), 0 /* on instance */},
7211 {"treatNullAsNullStringStringAttribute", TestObjectPythonV8Internal::treatNu llAsNullStringStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal ::treatNullAsNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */}, 7244 {"treatNullAsNullStringStringAttribute", TestObjectPythonV8Internal::treatNu llAsNullStringStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal ::treatNullAsNullStringStringAttributeAttributeSetterCallback, 0, 0, 0, static_c ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None ), 0 /* on instance */},
7212 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal: :treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */}, 7245 {"treatReturnedNullStringAsNullStringAttribute", TestObjectPythonV8Internal: :treatReturnedNullStringAsNullStringAttributeAttributeGetterCallback, TestObject PythonV8Internal::treatReturnedNullStringAsNullStringAttributeAttributeSetterCal lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro pertyAttribute>(v8::None), 0 /* on instance */},
7213 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7246 {"treatReturnedNullStringAsUndefinedStringAttribute", TestObjectPythonV8Inte rnal::treatReturnedNullStringAsUndefinedStringAttributeAttributeGetterCallback, TestObjectPythonV8Internal::treatReturnedNullStringAsUndefinedStringAttributeAtt ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat ic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7214 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 7247 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
7215 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */}, 7248 {"urlStringAttribute", TestObjectPythonV8Internal::urlStringAttributeAttribu teGetterCallback, TestObjectPythonV8Internal::urlStringAttributeAttributeSetterC allback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::P ropertyAttribute>(v8::None), 0 /* on instance */},
7216 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS _OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta nce */}, 7249 {"unforgeableLongAttribute", TestObjectPythonV8Internal::unforgeableLongAttr ibuteAttributeGetterCallback, TestObjectPythonV8Internal::unforgeableLongAttribu teAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::PROHIBITS _OVERWRITING), static_cast<v8::PropertyAttribute>(v8::DontDelete), 0 /* on insta nce */},
7217 {"anotherStringAttribute", TestObjectPythonV8Internal::anotherStringAttribut eAttributeGetterCallback, TestObjectPythonV8Internal::anotherStringAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, 7250 {"anotherStringAttribute", TestObjectPythonV8Internal::anotherStringAttribut eAttributeGetterCallback, TestObjectPythonV8Internal::anotherStringAttributeAttr ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati c_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7251 {"testInterfacePythonAttribute", TestObjectPythonV8Internal::testInterfacePy thonAttributeAttributeGetterCallback, TestObjectPythonV8Internal::testInterfaceP ythonAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v 8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */},
7252 {"testInterfaceGarbageCollectedAttribute", TestObjectPythonV8Internal::testI nterfaceGarbageCollectedAttributeAttributeGetterCallback, TestObjectPythonV8Inte rnal::testInterfaceGarbageCollectedAttributeAttributeSetterCallback, 0, 0, 0, st atic_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8 ::None), 0 /* on instance */},
7218 }; 7253 };
7219 7254
7220 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectPythonAccesso rs[] = { 7255 static const V8DOMConfiguration::AccessorConfiguration V8TestObjectPythonAccesso rs[] = {
7221 {"exposeJSAccessorsLongAttribute", TestObjectPythonV8Internal::exposeJSAcces sorsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::exposeJSAc cessorsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)}, 7256 {"exposeJSAccessorsLongAttribute", TestObjectPythonV8Internal::exposeJSAcces sorsLongAttributeAttributeGetterCallback, TestObjectPythonV8Internal::exposeJSAc cessorsLongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)},
7222 }; 7257 };
7223 7258
7224 static const V8DOMConfiguration::MethodConfiguration V8TestObjectPythonMethods[] = { 7259 static const V8DOMConfiguration::MethodConfiguration V8TestObjectPythonMethods[] = {
7225 {"voidMethod", TestObjectPythonV8Internal::voidMethodMethodCallback, 0, 0}, 7260 {"voidMethod", TestObjectPythonV8Internal::voidMethodMethodCallback, 0, 0},
7226 {"dateMethod", TestObjectPythonV8Internal::dateMethodMethodCallback, 0, 0}, 7261 {"dateMethod", TestObjectPythonV8Internal::dateMethodMethodCallback, 0, 0},
7227 {"stringMethod", TestObjectPythonV8Internal::stringMethodMethodCallback, 0, 0}, 7262 {"stringMethod", TestObjectPythonV8Internal::stringMethodMethodCallback, 0, 0},
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
7540 fromInternalPointer(object)->deref(); 7575 fromInternalPointer(object)->deref();
7541 } 7576 }
7542 7577
7543 template<> 7578 template<>
7544 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 7579 v8::Handle<v8::Value> toV8NoInline(TestObjectPython* impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
7545 { 7580 {
7546 return toV8(impl, creationContext, isolate); 7581 return toV8(impl, creationContext, isolate);
7547 } 7582 }
7548 7583
7549 } // namespace WebCore 7584 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698