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. | 5 // This file has been auto-generated by code_generator_v8.py. |
6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
7 | 7 |
8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/interface.cpp.tmpl |
10 | 10 |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 v8::Local<v8::Object> V8TestInterface5::findInstanceInPrototypeChain(v8::Local<v
8::Value> v8Value, v8::Isolate* isolate) { | 844 v8::Local<v8::Object> V8TestInterface5::findInstanceInPrototypeChain(v8::Local<v
8::Value> v8Value, v8::Isolate* isolate) { |
845 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 845 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
846 } | 846 } |
847 | 847 |
848 TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { | 848 TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { |
849 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 849 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
850 } | 850 } |
851 | 851 |
852 void V8TestInterface5::preparePrototypeAndInterfaceObject(v8::Local<v8::Context>
context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v
8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfac
eTemplate) { | 852 void V8TestInterface5::preparePrototypeAndInterfaceObject(v8::Local<v8::Context>
context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v
8::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfac
eTemplate) { |
853 v8::Isolate* isolate = context->GetIsolate(); | 853 v8::Isolate* isolate = context->GetIsolate(); |
| 854 |
854 ExecutionContext* executionContext = toExecutionContext(context); | 855 ExecutionContext* executionContext = toExecutionContext(context); |
855 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 856 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
856 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 857 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
857 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
rkerExposedAttribute", V8TestInterface5::workerExposedAttributeAttributeGetterCa
llback, V8TestInterface5::workerExposedAttributeAttributeSetterCallback, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 858 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
rkerExposedAttribute", V8TestInterface5::workerExposedAttributeAttributeGetterCa
llback, V8TestInterface5::workerExposedAttributeAttributeSetterCallback, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
858 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 859 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
859 } | 860 } |
860 if (executionContext && (executionContext->isDocument())) { | 861 if (executionContext && (executionContext->isDocument())) { |
861 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
ndowExposedAttribute", V8TestInterface5::windowExposedAttributeAttributeGetterCa
llback, V8TestInterface5::windowExposedAttributeAttributeSetterCallback, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 862 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
ndowExposedAttribute", V8TestInterface5::windowExposedAttributeAttributeGetterCa
llback, V8TestInterface5::windowExposedAttributeAttributeSetterCallback, nullptr
, nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOM
Configuration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
862 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 863 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
863 } | 864 } |
(...skipping 16 matching lines...) Expand all Loading... |
880 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho
dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; | 881 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho
dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; |
881 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi
guration); | 882 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi
guration); |
882 } | 883 } |
883 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { | 884 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { |
884 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa
ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 885 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa
ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
885 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM
ethodConfiguration); | 886 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM
ethodConfiguration); |
886 } | 887 } |
887 } | 888 } |
888 | 889 |
889 } // namespace blink | 890 } // namespace blink |
OLD | NEW |