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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1042 } | 1042 } |
1043 if (context && (context->isDocument())) { | 1043 if (context && (context->isDocument())) { |
1044 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"windowExposedAttribute", TestInterface5ImplementationV8Internal::window
ExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal:
:windowExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cas
t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 1044 static const V8DOMConfiguration::AccessorConfiguration accessorConfigura
tion = {"windowExposedAttribute", TestInterface5ImplementationV8Internal::window
ExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal:
:windowExposedAttributeAttributeSetterCallback, 0, 0, 0, v8::DEFAULT, static_cas
t<v8::PropertyAttribute>(v8::None), V8DOMConfiguration::ExposedToAllScripts, V8D
OMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
1045 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); | 1045 V8DOMConfiguration::installAccessor(isolate, v8::Local<v8::Object>(), pr
ototypeObject, v8::Local<v8::Function>(), signature, accessorConfiguration); |
1046 } | 1046 } |
1047 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); | 1047 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT
emplate(isolate)); |
1048 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); | 1048 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont
ext()); |
1049 ASSERT(context); | 1049 ASSERT(context); |
1050 if (context && (context->isWorkerGlobalScope())) { | 1050 if (context && (context->isWorkerGlobalScope())) { |
1051 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterface5ImplementationV8Internal::workerExposedMethodMethodC
allback, v8Undefined(), defaultSignature, 0); | 1051 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterface5ImplementationV8Internal::workerExposedMethodMethodC
allback, v8Undefined(), defaultSignature, 0); |
1052 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont
ext())).ToLocalChecked(); | 1052 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu
nction(isolate->GetCurrentContext())); |
1053 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "workerExposedMethod"), function)); | 1053 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "workerExposedMethod"), function)); |
1054 } | 1054 } |
1055 if (context && (context->isDocument())) { | 1055 if (context && (context->isDocument())) { |
1056 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterface5ImplementationV8Internal::windowExposedMethodMethodC
allback, v8Undefined(), defaultSignature, 0); | 1056 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterface5ImplementationV8Internal::windowExposedMethodMethodC
allback, v8Undefined(), defaultSignature, 0); |
1057 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont
ext())).ToLocalChecked(); | 1057 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu
nction(isolate->GetCurrentContext())); |
1058 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "windowExposedMethod"), function)); | 1058 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "windowExposedMethod"), function)); |
1059 } | 1059 } |
1060 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope
())) { | 1060 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope
())) { |
1061 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterface5ImplementationV8Internal::windowAndServiceWorkerExpo
sedMethodMethodCallback, v8Undefined(), defaultSignature, 0); | 1061 v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate:
:New(isolate, TestInterface5ImplementationV8Internal::windowAndServiceWorkerExpo
sedMethodMethodCallback, v8Undefined(), defaultSignature, 0); |
1062 v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentCont
ext())).ToLocalChecked(); | 1062 v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFu
nction(isolate->GetCurrentContext())); |
1063 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "windowAndServiceWorkerExposedMethod"), function)); | 1063 v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8Atomi
cString(isolate, "windowAndServiceWorkerExposedMethod"), function)); |
1064 } | 1064 } |
1065 } | 1065 } |
1066 | 1066 |
1067 ActiveDOMObject* V8TestInterface5::toActiveDOMObject(v8::Local<v8::Object> wrapp
er) | 1067 ActiveDOMObject* V8TestInterface5::toActiveDOMObject(v8::Local<v8::Object> wrapp
er) |
1068 { | 1068 { |
1069 return toImpl(wrapper); | 1069 return toImpl(wrapper); |
1070 } | 1070 } |
1071 | 1071 |
1072 void V8TestInterface5::refObject(ScriptWrappable* scriptWrappable) | 1072 void V8TestInterface5::refObject(ScriptWrappable* scriptWrappable) |
1073 { | 1073 { |
1074 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1074 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1075 } | 1075 } |
1076 | 1076 |
1077 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1077 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1078 { | 1078 { |
1079 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1079 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1080 } | 1080 } |
1081 | 1081 |
1082 } // namespace blink | 1082 } // namespace blink |
1083 #endif // ENABLE(CONDITION) | 1083 #endif // ENABLE(CONDITION) |
OLD | NEW |