| 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 2458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2469 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8
::Value> v8Value, v8::Isolate* isolate) | 2469 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8
::Value> v8Value, v8::Isolate* isolate) |
| 2470 { | 2470 { |
| 2471 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 2471 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| 2472 } | 2472 } |
| 2473 | 2473 |
| 2474 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) | 2474 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) |
| 2475 { | 2475 { |
| 2476 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; | 2476 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu
e)) : 0; |
| 2477 } | 2477 } |
| 2478 | 2478 |
| 2479 void V8TestInterface::installConditionallyEnabledProperties(v8::Local<v8::Object
> instanceObject, v8::Isolate* isolate) | 2479 void V8TestInterface::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8:
:Object> prototypeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate) |
| 2480 { | 2480 { |
| 2481 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance
Object->GetPrototype()); | |
| 2482 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2481 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 2483 | 2482 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTe
mplate); |
| 2484 if (context && (context->isWorkerGlobalScope())) { | 2483 if (context && (context->isWorkerGlobalScope())) { |
| 2485 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | 2484 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"workerExposedAttribute", TestInterfaceImplementationV8Internal::workerE
xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w
orkerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder}; |
| 2486 // TODO(yukishiino): Implement the feature again if there is a client. | 2485 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); |
| 2487 } | 2486 } |
| 2488 if (context && (context->isDocument())) { | 2487 if (context && (context->isDocument())) { |
| 2489 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | 2488 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"windowExposedAttribute", TestInterfaceImplementationV8Internal::windowE
xposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal::w
indowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCon
trol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigura
tion::ExposedToAllScripts, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::
CheckHolder}; |
| 2490 // TODO(yukishiino): Implement the feature again if there is a client. | 2489 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); |
| 2491 } | 2490 } |
| 2492 if (context && (context->isWorkerGlobalScope())) { | |
| 2493 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2494 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2495 } | |
| 2496 if (context && (context->isDocument())) { | |
| 2497 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2498 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2499 } | |
| 2500 if (context && (context->isWorkerGlobalScope())) { | |
| 2501 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2502 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2503 } | |
| 2504 if (context && (context->isDocument())) { | |
| 2505 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2506 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2507 } | |
| 2508 if (context && (context->isDocument())) { | |
| 2509 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2510 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2511 } | |
| 2512 if (context && (context->isDocument())) { | |
| 2513 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2514 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2515 } | |
| 2516 if (context && (context->isDocument())) { | |
| 2517 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2518 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2519 } | |
| 2520 if (context && (context->isDocument())) { | |
| 2521 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2522 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2523 } | |
| 2524 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNameEna
bled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featureNam
e2Enabled()))) { | |
| 2525 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2526 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2527 } | |
| 2528 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope()))
{ | |
| 2529 #error No one is actually using per-member [Exposed] extended attribute. No
t supported. Contact to blink-reviews-bindings@ if you need. | |
| 2530 // TODO(yukishiino): Implement the feature again if there is a client. | |
| 2531 } | |
| 2532 } | |
| 2533 | |
| 2534 void V8TestInterface::preparePrototypeObject(v8::Isolate* isolate, v8::Local<v8:
:Object> prototypeObject) | |
| 2535 { | |
| 2536 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 2491 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
| 2537 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 2492 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
| 2538 ASSERT(context); | 2493 ASSERT(context); |
| 2539 if (context && (context->isWorkerGlobalScope())) { | 2494 if (context && (context->isWorkerGlobalScope())) { |
| 2540 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterfaceImplementationV8Internal::workerExposedMethodMethodCa
llback, v8Undefined(), defaultSignature, 0); | 2495 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterfaceImplementationV8Internal::workerExposedMethodMethodCa
llback, v8Undefined(), defaultSignature, 0); |
| 2541 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont
ext())).ToLocalChecked(); | 2496 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont
ext())).ToLocalChecked(); |
| 2542 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "workerExposedMethod"), function)); | 2497 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "workerExposedMethod"), function)); |
| 2543 } | 2498 } |
| 2544 if (context && (context->isDocument())) { | 2499 if (context && (context->isDocument())) { |
| 2545 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterfaceImplementationV8Internal::windowExposedMethodMethodCa
llback, v8Undefined(), defaultSignature, 0); | 2500 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterfaceImplementationV8Internal::windowExposedMethodMethodCa
llback, v8Undefined(), defaultSignature, 0); |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2700 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2655 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2701 { | 2656 { |
| 2702 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; | 2657 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt
erface = method; |
| 2703 } | 2658 } |
| 2704 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) | 2659 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) |
| 2705 { | 2660 { |
| 2706 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; | 2661 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart
ialInterface = method; |
| 2707 } | 2662 } |
| 2708 } // namespace blink | 2663 } // namespace blink |
| 2709 #endif // ENABLE(CONDITION) | 2664 #endif // ENABLE(CONDITION) |
| OLD | NEW |