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 // clang-format off | 8 // clang-format off |
9 #include "V8TestInterfaceDocument.h" | 9 #include "V8TestInterfaceDocument.h" |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 void locationAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) { | 87 void locationAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) { |
88 v8::Local<v8::Value> v8Value = info[0]; | 88 v8::Local<v8::Value> v8Value = info[0]; |
89 | 89 |
90 TestInterfaceDocumentV8Internal::locationAttributeSetter(v8Value, info); | 90 TestInterfaceDocumentV8Internal::locationAttributeSetter(v8Value, info); |
91 } | 91 } |
92 | 92 |
93 } // namespace TestInterfaceDocumentV8Internal | 93 } // namespace TestInterfaceDocumentV8Internal |
94 | 94 |
95 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceDocumentAccessors
[] = { | 95 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceDocumentAccessors
[] = { |
96 {"location", TestInterfaceDocumentV8Internal::locationAttributeGetterCallbac
k, TestInterfaceDocumentV8Internal::locationAttributeSetterCallback, 0, 0, nullp
tr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMCon
figuration::ExposedToAllScripts, V8DOMConfiguration::OnInstance, V8DOMConfigurat
ion::CheckHolder}, | 96 {"location", TestInterfaceDocumentV8Internal::locationAttributeGetterCallbac
k, TestInterfaceDocumentV8Internal::locationAttributeSetterCallback, 0, 0, nullp
tr, 0, v8::DEFAULT, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMCon
figuration::OnInstance, V8DOMConfiguration::CheckHolder}, |
97 }; | 97 }; |
98 | 98 |
99 static void installV8TestInterfaceDocumentTemplate(v8::Isolate* isolate, const D
OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 99 static void installV8TestInterfaceDocumentTemplate(v8::Isolate* isolate, const D
OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
100 // Initialize the interface object's template. | 100 // Initialize the interface object's template. |
101 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceDocument::wrapperTypeInfo.interfaceName, V8Document::domTemplate
(isolate, world), V8TestInterfaceDocument::internalFieldCount); | 101 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceDocument::wrapperTypeInfo.interfaceName, V8Document::domTemplate
(isolate, world), V8TestInterfaceDocument::internalFieldCount); |
102 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 102 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
103 ALLOW_UNUSED_LOCAL(signature); | 103 ALLOW_UNUSED_LOCAL(signature); |
104 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 104 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
105 ALLOW_UNUSED_LOCAL(instanceTemplate); | 105 ALLOW_UNUSED_LOCAL(instanceTemplate); |
106 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); | 106 v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->Prototype
Template(); |
(...skipping 13 matching lines...) Expand all Loading... |
120 | 120 |
121 v8::Local<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8::
Local<v8::Value> v8Value, v8::Isolate* isolate) { | 121 v8::Local<v8::Object> V8TestInterfaceDocument::findInstanceInPrototypeChain(v8::
Local<v8::Value> v8Value, v8::Isolate* isolate) { |
122 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); | 122 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrapperT
ypeInfo, v8Value); |
123 } | 123 } |
124 | 124 |
125 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { | 125 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { |
126 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 126 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
127 } | 127 } |
128 | 128 |
129 } // namespace blink | 129 } // namespace blink |
OLD | NEW |