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 "V8TestInterface.h" | 9 #include "V8TestInterface.h" |
10 | 10 |
(...skipping 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2127 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle<
v8::Value> v8Value, v8::Isolate* isolate) | 2127 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle<
v8::Value> v8Value, v8::Isolate* isolate) |
2128 { | 2128 { |
2129 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 2129 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
2130 } | 2130 } |
2131 | 2131 |
2132 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Handle<v8::Value> value) | 2132 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Handle<v8::Value> value) |
2133 { | 2133 { |
2134 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; | 2134 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val
ue)) : 0; |
2135 } | 2135 } |
2136 | 2136 |
2137 void V8TestInterface::installConditionallyEnabledProperties(v8::Handle<v8::Objec
t> instanceObject, v8::Isolate* isolate) | 2137 void V8TestInterface::installConditionallyEnabledProperties(v8::Local<v8::Object
> instanceObject, v8::Isolate* isolate) |
2138 { | 2138 { |
2139 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); | 2139 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); |
2140 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2140 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
2141 | 2141 |
2142 if (context && (context->isWorkerGlobalScope())) { | 2142 if (context && (context->isWorkerGlobalScope())) { |
2143 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2143 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
2144 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker
ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | 2144 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker
ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
2145 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); | 2145 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); |
2146 } | 2146 } |
2147 if (context && (context->isDocument())) { | 2147 if (context && (context->isDocument())) { |
(...skipping 11 matching lines...) Expand all Loading... |
2159 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial
2LongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::pa
rtial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr
ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | 2159 {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partial
2LongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::pa
rtial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessContr
ol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurati
on::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
2160 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); | 2160 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); |
2161 } | 2161 } |
2162 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { | 2162 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { |
2163 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2163 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ |
2164 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::p
artial2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8
Internal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | 2164 {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::p
artial2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV8
Internal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, static_ca
st<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None)
, V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
2165 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); | 2165 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at
tributeConfiguration, isolate); |
2166 } | 2166 } |
2167 } | 2167 } |
2168 | 2168 |
2169 void V8TestInterface::installConditionallyEnabledMethods(v8::Handle<v8::Object>
prototypeObject, v8::Isolate* isolate) | 2169 void V8TestInterface::installConditionallyEnabledMethods(v8::Local<v8::Object> p
rototypeObject, v8::Isolate* isolate) |
2170 { | 2170 { |
2171 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 2171 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
2172 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2172 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
2173 ASSERT(context); | 2173 ASSERT(context); |
2174 | 2174 |
2175 if (context && (context->isWorkerGlobalScope())) { | 2175 if (context && (context->isWorkerGlobalScope())) { |
2176 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::workerExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 2176 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::workerExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
2177 } | 2177 } |
2178 if (context && (context->isDocument())) { | 2178 if (context && (context->isDocument())) { |
2179 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::windowExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); | 2179 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8:
:FunctionTemplate::New(isolate, TestInterfaceImplementationV8Internal::windowExp
osedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2314 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2314 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2315 { | 2315 { |
2316 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2316 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
2317 } | 2317 } |
2318 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2318 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
2319 { | 2319 { |
2320 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2320 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
2321 } | 2321 } |
2322 } // namespace blink | 2322 } // namespace blink |
2323 #endif // ENABLE(CONDITION) | 2323 #endif // ENABLE(CONDITION) |
OLD | NEW |