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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
861 | 861 |
862 // Custom toString template | 862 // Custom toString template |
863 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 863 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
864 } | 864 } |
865 | 865 |
866 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola
te) | 866 v8::Local<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isola
te) |
867 { | 867 { |
868 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); | 868 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); |
869 } | 869 } |
870 | 870 |
871 bool V8TestInterface5::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* i
solate) | 871 bool V8TestInterface5::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* is
olate) |
872 { | 872 { |
873 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 873 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
874 } | 874 } |
875 | 875 |
876 v8::Handle<v8::Object> V8TestInterface5::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) | 876 v8::Local<v8::Object> V8TestInterface5::findInstanceInPrototypeChain(v8::Local<v
8::Value> v8Value, v8::Isolate* isolate) |
877 { | 877 { |
878 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 878 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
879 } | 879 } |
880 | 880 |
881 TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Handle<v8::Value> value) | 881 TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) |
882 { | 882 { |
883 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; | 883 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
884 } | 884 } |
885 | 885 |
886 void V8TestInterface5::installConditionallyEnabledProperties(v8::Local<v8::Objec
t> instanceObject, v8::Isolate* isolate) | 886 void V8TestInterface5::installConditionallyEnabledProperties(v8::Local<v8::Objec
t> instanceObject, v8::Isolate* isolate) |
887 { | 887 { |
888 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); | 888 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); |
889 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 889 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
890 | 890 |
891 if (context && (context->isWorkerGlobalScope())) { | 891 if (context && (context->isWorkerGlobalScope())) { |
892 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 892 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
893 {"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}; | 893 {"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 16 matching lines...) Expand all Loading... |
910 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::workerEx
posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 910 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::workerEx
posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
911 } | 911 } |
912 if (context && (context->isDocument())) { | 912 if (context && (context->isDocument())) { |
913 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::windowEx
posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 913 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::windowEx
posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
914 } | 914 } |
915 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope
())) { | 915 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope
())) { |
916 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo
sedMethod"), v8::FunctionTemplate::New(isolate, TestInterface5ImplementationV8In
ternal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), defaul
tSignature, 0)->GetFunction()); | 916 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo
sedMethod"), v8::FunctionTemplate::New(isolate, TestInterface5ImplementationV8In
ternal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), defaul
tSignature, 0)->GetFunction()); |
917 } | 917 } |
918 } | 918 } |
919 | 919 |
920 ActiveDOMObject* V8TestInterface5::toActiveDOMObject(v8::Handle<v8::Object> wrap
per) | 920 ActiveDOMObject* V8TestInterface5::toActiveDOMObject(v8::Local<v8::Object> wrapp
er) |
921 { | 921 { |
922 return toImpl(wrapper); | 922 return toImpl(wrapper); |
923 } | 923 } |
924 | 924 |
925 void V8TestInterface5::refObject(ScriptWrappable* scriptWrappable) | 925 void V8TestInterface5::refObject(ScriptWrappable* scriptWrappable) |
926 { | 926 { |
927 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 927 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
928 } | 928 } |
929 | 929 |
930 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 930 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
931 { | 931 { |
932 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 932 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
933 } | 933 } |
934 | 934 |
935 } // namespace blink | 935 } // namespace blink |
936 #endif // ENABLE(CONDITION) | 936 #endif // ENABLE(CONDITION) |
OLD | NEW |