| OLD | NEW |
| 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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
| 10 | 10 |
| (...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1003 { | 1003 { |
| 1004 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 1004 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
| 1005 } | 1005 } |
| 1006 | 1006 |
| 1007 void V8TestInterface5::installConditionallyEnabledProperties(v8::Local<v8::Objec
t> instanceObject, v8::Isolate* isolate) | 1007 void V8TestInterface5::installConditionallyEnabledProperties(v8::Local<v8::Objec
t> instanceObject, v8::Isolate* isolate) |
| 1008 { | 1008 { |
| 1009 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); | 1009 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); |
| 1010 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 1010 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 1011 | 1011 |
| 1012 if (context && (context->isWorkerGlobalScope())) { | 1012 if (context && (context->isWorkerGlobalScope())) { |
| 1013 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 1013 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration = {"workerExposedAttribute", TestInterface5ImplementationV8Internal::work
erExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Interna
l::workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces
sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
| 1014 {"workerExposedAttribute", TestInterface5ImplementationV8Internal::worke
rExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal
::workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | |
| 1015 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); | 1014 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); |
| 1016 } | 1015 } |
| 1017 if (context && (context->isDocument())) { | 1016 if (context && (context->isDocument())) { |
| 1018 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 1017 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration = {"windowExposedAttribute", TestInterface5ImplementationV8Internal::wind
owExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Interna
l::windowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Acces
sControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfi
guration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
| 1019 {"windowExposedAttribute", TestInterface5ImplementationV8Internal::windo
wExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal
::windowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access
Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig
uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | |
| 1020 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); | 1018 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); |
| 1021 } | 1019 } |
| 1022 } | 1020 } |
| 1023 | 1021 |
| 1024 void V8TestInterface5::installConditionallyEnabledMethods(v8::Local<v8::Object>
prototypeObject, v8::Isolate* isolate) | 1022 void V8TestInterface5::installConditionallyEnabledMethods(v8::Local<v8::Object>
prototypeObject, v8::Isolate* isolate) |
| 1025 { | 1023 { |
| 1026 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 1024 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
| 1027 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 1025 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 1028 ASSERT(context); | 1026 ASSERT(context); |
| 1029 | 1027 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1048 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1046 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
| 1049 } | 1047 } |
| 1050 | 1048 |
| 1051 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1049 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
| 1052 { | 1050 { |
| 1053 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1051 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
| 1054 } | 1052 } |
| 1055 | 1053 |
| 1056 } // namespace blink | 1054 } // namespace blink |
| 1057 #endif // ENABLE(CONDITION) | 1055 #endif // ENABLE(CONDITION) |
| OLD | NEW |