OLD | NEW |
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 19 matching lines...) Expand all Loading... |
30 | 30 |
31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! | 31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! |
32 | 32 |
33 #include "config.h" | 33 #include "config.h" |
34 #if ENABLE(Condition1) || ENABLE(Condition2) | 34 #if ENABLE(Condition1) || ENABLE(Condition2) |
35 #include "V8TestInterface.h" | 35 #include "V8TestInterface.h" |
36 | 36 |
37 #include "RuntimeEnabledFeatures.h" | 37 #include "RuntimeEnabledFeatures.h" |
38 #include "V8Node.h" | 38 #include "V8Node.h" |
39 #include "V8NodeList.h" | 39 #include "V8NodeList.h" |
40 #include "V8ReferencedType.h" | |
41 #include "V8TestInterfaceEmpty.h" | 40 #include "V8TestInterfaceEmpty.h" |
42 #include "V8TestObject.h" | 41 #include "V8TestObject.h" |
43 #include "bindings/tests/idls/TestImplements.h" | 42 #include "bindings/tests/idls/TestImplements.h" |
44 #include "bindings/tests/idls/TestPartialInterface.h" | 43 #include "bindings/tests/idls/TestPartialInterface.h" |
45 #include "bindings/v8/ExceptionState.h" | 44 #include "bindings/v8/ExceptionState.h" |
46 #include "bindings/v8/V8AbstractEventListener.h" | 45 #include "bindings/v8/V8AbstractEventListener.h" |
47 #include "bindings/v8/V8DOMConfiguration.h" | 46 #include "bindings/v8/V8DOMConfiguration.h" |
48 #include "bindings/v8/V8EventListenerList.h" | 47 #include "bindings/v8/V8EventListenerList.h" |
49 #include "bindings/v8/V8ObjectConstructor.h" | 48 #include "bindings/v8/V8ObjectConstructor.h" |
50 #include "core/dom/ContextFeatures.h" | 49 #include "core/dom/ContextFeatures.h" |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 698 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
700 } | 699 } |
701 | 700 |
702 } // namespace TestInterfaceV8Internal | 701 } // namespace TestInterfaceV8Internal |
703 | 702 |
704 void V8TestInterface::visitDOMWrapper(void* object, const v8::Persistent<v8::Obj
ect>& wrapper, v8::Isolate* isolate) | 703 void V8TestInterface::visitDOMWrapper(void* object, const v8::Persistent<v8::Obj
ect>& wrapper, v8::Isolate* isolate) |
705 { | 704 { |
706 TestInterface* impl = fromInternalPointer(object); | 705 TestInterface* impl = fromInternalPointer(object); |
707 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); | 706 v8::Local<v8::Object> creationContext = v8::Local<v8::Object>::New(isolate,
wrapper); |
708 V8WrapperInstantiationScope scope(creationContext, isolate); | 707 V8WrapperInstantiationScope scope(creationContext, isolate); |
709 ReferencedType* referencedName = impl->referencedName(); | 708 TestObj* referencedName = impl->referencedName(); |
710 if (referencedName) { | 709 if (referencedName) { |
711 if (!DOMDataStore::containsWrapper<V8ReferencedType>(referencedName, iso
late)) | 710 if (!DOMDataStore::containsWrapper<V8TestObject>(referencedName, isolate
)) |
712 wrap(referencedName, creationContext, isolate); | 711 wrap(referencedName, creationContext, isolate); |
713 DOMDataStore::setWrapperReference<V8ReferencedType>(wrapper, referencedN
ame, isolate); | 712 DOMDataStore::setWrapperReference<V8TestObject>(wrapper, referencedName,
isolate); |
714 } | 713 } |
715 setObjectGroup(object, wrapper, isolate); | 714 setObjectGroup(object, wrapper, isolate); |
716 } | 715 } |
717 | 716 |
718 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { | 717 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceAttribute
s[] = { |
719 {"implementsReadonlyStringAttribute", TestInterfaceV8Internal::implementsRea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst
ance */}, | 718 {"implementsReadonlyStringAttribute", TestInterfaceV8Internal::implementsRea
donlyStringAttributeAttributeGetterCallback, 0, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on inst
ance */}, |
720 {"implementsStringAttribute", TestInterfaceV8Internal::implementsStringAttri
buteAttributeGetterCallback, TestInterfaceV8Internal::implementsStringAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 719 {"implementsStringAttribute", TestInterfaceV8Internal::implementsStringAttri
buteAttributeGetterCallback, TestInterfaceV8Internal::implementsStringAttributeA
ttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), st
atic_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
721 {"implementsNodeAttribute", TestInterfaceV8Internal::implementsNodeAttribute
AttributeGetterCallback, TestInterfaceV8Internal::implementsNodeAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 720 {"implementsNodeAttribute", TestInterfaceV8Internal::implementsNodeAttribute
AttributeGetterCallback, TestInterfaceV8Internal::implementsNodeAttributeAttribu
teSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_c
ast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
722 {"implementsEventHandlerAttribute", TestInterfaceV8Internal::implementsEvent
HandlerAttributeAttributeGetterCallback, TestInterfaceV8Internal::implementsEven
tHandlerAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, | 721 {"implementsEventHandlerAttribute", TestInterfaceV8Internal::implementsEvent
HandlerAttributeAttributeGetterCallback, TestInterfaceV8Internal::implementsEven
tHandlerAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl
>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance *
/}, |
723 #if ENABLE(CONDITION_PARTIAL) | 722 #if ENABLE(CONDITION_PARTIAL) |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 } | 884 } |
886 | 885 |
887 template<> | 886 template<> |
888 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) | 887 v8::Handle<v8::Value> toV8NoInline(TestInterface* impl, v8::Handle<v8::Object> c
reationContext, v8::Isolate* isolate) |
889 { | 888 { |
890 return toV8(impl, creationContext, isolate); | 889 return toV8(impl, creationContext, isolate); |
891 } | 890 } |
892 | 891 |
893 } // namespace WebCore | 892 } // namespace WebCore |
894 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 893 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
OLD | NEW |