| 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 2280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2291 { | 2291 { |
| 2292 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 2292 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
| 2293 } | 2293 } |
| 2294 | 2294 |
| 2295 void V8TestInterface::installConditionallyEnabledProperties(v8::Local<v8::Object
> instanceObject, v8::Isolate* isolate) | 2295 void V8TestInterface::installConditionallyEnabledProperties(v8::Local<v8::Object
> instanceObject, v8::Isolate* isolate) |
| 2296 { | 2296 { |
| 2297 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); | 2297 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); |
| 2298 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2298 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 2299 | 2299 |
| 2300 if (context && (context->isWorkerGlobalScope())) { | 2300 if (context && (context->isWorkerGlobalScope())) { |
| 2301 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2301 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration = {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worke
rExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:
:workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
| 2302 {"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}; | |
| 2303 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); | 2302 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); |
| 2304 } | 2303 } |
| 2305 if (context && (context->isDocument())) { | 2304 if (context && (context->isDocument())) { |
| 2306 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2305 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration = {"windowExposedAttribute", TestInterfaceImplementationV8Internal::windo
wExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:
:windowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessC
ontrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigu
ration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
| 2307 {"windowExposedAttribute", TestInterfaceImplementationV8Internal::window
ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::
windowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo
ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur
ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; | |
| 2308 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); | 2306 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); |
| 2309 } | 2307 } |
| 2310 if (context && context->isDocument() && ContextFeatures::implementsContextNa
meEnabled(toDocument(context))) { | 2308 if (context && context->isDocument() && ContextFeatures::implementsContextNa
meEnabled(toDocument(context))) { |
| 2311 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2309 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration = {"implementsPerContextEnabledNodeAttribute", TestInterfaceImplementatio
nV8Internal::implementsPerContextEnabledNodeAttributeAttributeGetterCallback, Te
stInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttributeAtt
ributeSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stat
ic_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScript
s, V8DOMConfiguration::OnInstance}; |
| 2312 {"implementsPerContextEnabledNodeAttribute", TestInterfaceImplementation
V8Internal::implementsPerContextEnabledNodeAttributeAttributeGetterCallback, Tes
tInterfaceImplementationV8Internal::implementsPerContextEnabledNodeAttributeAttr
ibuteSetterCallback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), stati
c_cast<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts
, V8DOMConfiguration::OnInstance}; | |
| 2313 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); | 2310 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); |
| 2314 } | 2311 } |
| 2315 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { | 2312 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { |
| 2316 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2313 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration = {"partial2LongAttribute", TestInterfaceImplementationV8Internal::partia
l2LongAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::p
artial2LongAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCont
rol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigurat
ion::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
| 2317 {"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}; | |
| 2318 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); | 2314 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); |
| 2319 } | 2315 } |
| 2320 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { | 2316 if (context && context->isDocument() && ContextFeatures::partialContextNameE
nabled(toDocument(context))) { |
| 2321 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration =\ | 2317 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu
ration = {"partial2StaticLongAttribute", TestInterfaceImplementationV8Internal::
partial2StaticLongAttributeAttributeGetterCallback, TestInterfaceImplementationV
8Internal::partial2StaticLongAttributeAttributeSetterCallback, 0, 0, 0, static_c
ast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None
), V8DOMConfiguration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; |
| 2322 {"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}; | |
| 2323 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); | 2318 V8DOMConfiguration::installAttribute(isolate, instanceObject, prototypeO
bject, attributeConfiguration); |
| 2324 } | 2319 } |
| 2325 } | 2320 } |
| 2326 | 2321 |
| 2327 void V8TestInterface::installConditionallyEnabledMethods(v8::Local<v8::Object> p
rototypeObject, v8::Isolate* isolate) | 2322 void V8TestInterface::installConditionallyEnabledMethods(v8::Local<v8::Object> p
rototypeObject, v8::Isolate* isolate) |
| 2328 { | 2323 { |
| 2329 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 2324 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
| 2330 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2325 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 2331 ASSERT(context); | 2326 ASSERT(context); |
| 2332 | 2327 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2476 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2471 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2477 { | 2472 { |
| 2478 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2473 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2479 } | 2474 } |
| 2480 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2475 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2481 { | 2476 { |
| 2482 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2477 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2483 } | 2478 } |
| 2484 } // namespace blink | 2479 } // namespace blink |
| 2485 #endif // ENABLE(CONDITION) | 2480 #endif // ENABLE(CONDITION) |
| OLD | NEW |