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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
803 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 803 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
804 } | 804 } |
805 | 805 |
806 v8::Handle<v8::Object> V8TestInterface5::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) | 806 v8::Handle<v8::Object> V8TestInterface5::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) |
807 { | 807 { |
808 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 808 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
809 } | 809 } |
810 | 810 |
811 TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) | 811 TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) |
812 { | 812 { |
813 return hasInstance(value, isolate) ? blink::toScriptWrappableBase(v8::Handle
<v8::Object>::Cast(value))->toImpl<TestInterface5Implementation>() : 0; | 813 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
814 } | 814 } |
815 | 815 |
816 void V8TestInterface5::installConditionallyEnabledProperties(v8::Handle<v8::Obje
ct> instanceObject, v8::Isolate* isolate) | 816 void V8TestInterface5::installConditionallyEnabledProperties(v8::Handle<v8::Obje
ct> instanceObject, v8::Isolate* isolate) |
817 { | 817 { |
818 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); | 818 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); |
819 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 819 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
820 | 820 |
821 if (context && (context->isWorkerGlobalScope())) { | 821 if (context && (context->isWorkerGlobalScope())) { |
822 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 822 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
823 {"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}; | 823 {"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}; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
876 } | 876 } |
877 | 877 |
878 template<> | 878 template<> |
879 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) | 879 v8::Handle<v8::Value> toV8NoInline(TestInterface5Implementation* impl, v8::Handl
e<v8::Object> creationContext, v8::Isolate* isolate) |
880 { | 880 { |
881 return toV8(impl, creationContext, isolate); | 881 return toV8(impl, creationContext, isolate); |
882 } | 882 } |
883 | 883 |
884 } // namespace blink | 884 } // namespace blink |
885 #endif // ENABLE(CONDITION) | 885 #endif // ENABLE(CONDITION) |
OLD | NEW |