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 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
| 855 ExecutionContext* executionContext = toExecutionContext(context); |
| 856 DCHECK(executionContext); |
854 | 857 |
855 ExecutionContext* executionContext = toExecutionContext(context); | |
856 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | |
857 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 858 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
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}; | 859 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}; |
859 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 860 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
860 } | 861 } |
861 if (executionContext && (executionContext->isDocument())) { | 862 if (executionContext && (executionContext->isDocument())) { |
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}; | 863 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}; |
863 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 864 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
864 } | 865 } |
865 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | |
866 ExecutionContext* executionContext = toExecutionContext(prototypeObject->Creat
ionContext()); | |
867 DCHECK(executionContext); | |
868 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 866 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
869 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi
guration = {"workerExposedMethod", V8TestInterface5::workerExposedMethodMethodCa
llback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder}; | 867 const V8DOMConfiguration::MethodConfiguration workerExposedMethodMethodConfi
guration = {"workerExposedMethod", V8TestInterface5::workerExposedMethodMethodCa
llback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder}; |
870 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigurati
on); | 868 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedMethodMethodConfigurati
on); |
871 } | 869 } |
872 if (executionContext && (executionContext->isDocument())) { | 870 if (executionContext && (executionContext->isDocument())) { |
873 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodConfi
guration = {"windowExposedMethod", V8TestInterface5::windowExposedMethodMethodCa
llback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder}; | 871 const V8DOMConfiguration::MethodConfiguration windowExposedMethodMethodConfi
guration = {"windowExposedMethod", V8TestInterface5::windowExposedMethodMethodCa
llback, nullptr, 0, v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguratio
n::CheckHolder}; |
874 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigurati
on); | 872 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedMethodMethodConfigurati
on); |
875 } | 873 } |
876 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 874 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
877 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMetho
dConfiguration = {"workerExposedStaticMethod", V8TestInterface5::workerExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; | 875 const V8DOMConfiguration::MethodConfiguration workerExposedStaticMethodMetho
dConfiguration = {"workerExposedStaticMethod", V8TestInterface5::workerExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; |
878 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodConfi
guration); | 876 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, workerExposedStaticMethodMethodConfi
guration); |
879 } | 877 } |
880 if (executionContext && (executionContext->isDocument())) { | 878 if (executionContext && (executionContext->isDocument())) { |
881 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho
dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; | 879 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodMetho
dConfiguration = {"windowExposedStaticMethod", V8TestInterface5::windowExposedSt
aticMethodMethodCallback, nullptr, 0, v8::None, V8DOMConfiguration::OnInterface,
V8DOMConfiguration::CheckHolder}; |
882 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi
guration); | 880 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowExposedStaticMethodMethodConfi
guration); |
883 } | 881 } |
884 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { | 882 if (executionContext && (executionContext->isDocument() || executionContext->i
sServiceWorkerGlobalScope())) { |
885 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa
ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 883 const V8DOMConfiguration::MethodConfiguration windowAndServiceWorkerExposedM
ethodMethodConfiguration = {"windowAndServiceWorkerExposedMethod", V8TestInterfa
ce5::windowAndServiceWorkerExposedMethodMethodCallback, nullptr, 0, v8::None, V8
DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
886 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM
ethodConfiguration); | 884 V8DOMConfiguration::installMethod(isolate, world, v8::Local<v8::Object>(), p
rototypeObject, interfaceObject, signature, windowAndServiceWorkerExposedMethodM
ethodConfiguration); |
887 } | 885 } |
888 } | 886 } |
889 | 887 |
890 } // namespace blink | 888 } // namespace blink |
OLD | NEW |