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 2737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2748 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8
::Value> v8Value, v8::Isolate* isolate) { | 2748 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8
::Value> v8Value, v8::Isolate* isolate) { |
2749 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 2749 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
2750 } | 2750 } |
2751 | 2751 |
2752 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) { | 2752 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i
solate, v8::Local<v8::Value> value) { |
2753 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 2753 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
2754 } | 2754 } |
2755 | 2755 |
2756 void V8TestInterface::preparePrototypeAndInterfaceObject(v8::Local<v8::Context>
context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8
::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interface
Template) { | 2756 void V8TestInterface::preparePrototypeAndInterfaceObject(v8::Local<v8::Context>
context, const DOMWrapperWorld& world, v8::Local<v8::Object> prototypeObject, v8
::Local<v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interface
Template) { |
2757 v8::Isolate* isolate = context->GetIsolate(); | 2757 v8::Isolate* isolate = context->GetIsolate(); |
| 2758 |
2758 ExecutionContext* executionContext = toExecutionContext(context); | 2759 ExecutionContext* executionContext = toExecutionContext(context); |
2759 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 2760 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
2760 if (executionContext && (executionContext->isWorkerGlobalScope())) { | 2761 if (executionContext && (executionContext->isWorkerGlobalScope())) { |
2761 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
rkerExposedAttribute", V8TestInterface::workerExposedAttributeAttributeGetterCal
lback, V8TestInterface::workerExposedAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2762 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wo
rkerExposedAttribute", V8TestInterface::workerExposedAttributeAttributeGetterCal
lback, V8TestInterface::workerExposedAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2762 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 2763 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
2763 } | 2764 } |
2764 if (executionContext && (executionContext->isDocument())) { | 2765 if (executionContext && (executionContext->isDocument())) { |
2765 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
ndowExposedAttribute", V8TestInterface::windowExposedAttributeAttributeGetterCal
lback, V8TestInterface::windowExposedAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; | 2766 const V8DOMConfiguration::AccessorConfiguration accessorConfiguration = {"wi
ndowExposedAttribute", V8TestInterface::windowExposedAttributeAttributeGetterCal
lback, V8TestInterface::windowExposedAttributeAttributeSetterCallback, nullptr,
nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::None), V8DOMCo
nfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}; |
2766 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); | 2767 V8DOMConfiguration::installAccessor(isolate, world, v8::Local<v8::Object>(),
prototypeObject, interfaceObject, signature, accessorConfiguration); |
2767 } | 2768 } |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2999 | 3000 |
3000 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { | 3001 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void (
*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { |
3001 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter
face = method; | 3002 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInter
face = method; |
3002 } | 3003 } |
3003 | 3004 |
3004 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { | 3005 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(
void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) { |
3005 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia
lInterface = method; | 3006 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPartia
lInterface = method; |
3006 } | 3007 } |
3007 | 3008 |
3008 } // namespace blink | 3009 } // namespace blink |
OLD | NEW |