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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 void V8TestInterfaceDocument::locationAttributeGetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) { | 87 void V8TestInterfaceDocument::locationAttributeGetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) { |
88 TestInterfaceDocumentV8Internal::locationAttributeGetter(info); | 88 TestInterfaceDocumentV8Internal::locationAttributeGetter(info); |
89 } | 89 } |
90 | 90 |
91 void V8TestInterfaceDocument::locationAttributeSetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) { | 91 void V8TestInterfaceDocument::locationAttributeSetterCallback(const v8::Function
CallbackInfo<v8::Value>& info) { |
92 v8::Local<v8::Value> v8Value = info[0]; | 92 v8::Local<v8::Value> v8Value = info[0]; |
93 | 93 |
94 TestInterfaceDocumentV8Internal::locationAttributeSetter(v8Value, info); | 94 TestInterfaceDocumentV8Internal::locationAttributeSetter(v8Value, info); |
95 } | 95 } |
96 | 96 |
97 const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceDocumentAccessors
[] = { | 97 static const V8DOMConfiguration::AccessorConfiguration V8TestInterfaceDocumentAc
cessors[] = { |
98 {"location", V8TestInterfaceDocument::locationAttributeGetterCallback, V8Tes
tInterfaceDocument::locationAttributeSetterCallback, nullptr, nullptr, nullptr,
nullptr, static_cast<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration:
:OnInstance, V8DOMConfiguration::CheckHolder}, | 98 {"location", V8TestInterfaceDocument::locationAttributeGetterCallback, V8Tes
tInterfaceDocument::locationAttributeSetterCallback, nullptr, nullptr, static_ca
st<v8::PropertyAttribute>(v8::DontDelete), V8DOMConfiguration::OnInstance, V8DOM
Configuration::CheckHolder, V8DOMConfiguration::AllWorlds}, |
99 }; | 99 }; |
100 | 100 |
101 static void installV8TestInterfaceDocumentTemplate(v8::Isolate* isolate, const D
OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { | 101 static void installV8TestInterfaceDocumentTemplate(v8::Isolate* isolate, const D
OMWrapperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { |
102 // Initialize the interface object's template. | 102 // Initialize the interface object's template. |
103 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceDocument::wrapperTypeInfo.interfaceName, V8Document::domTemplate
(isolate, world), V8TestInterfaceDocument::internalFieldCount); | 103 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate,
V8TestInterfaceDocument::wrapperTypeInfo.interfaceName, V8Document::domTemplate
(isolate, world), V8TestInterfaceDocument::internalFieldCount); |
104 | 104 |
105 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); | 105 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp
late); |
106 ALLOW_UNUSED_LOCAL(signature); | 106 ALLOW_UNUSED_LOCAL(signature); |
107 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); | 107 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe
mplate(); |
108 ALLOW_UNUSED_LOCAL(instanceTemplate); | 108 ALLOW_UNUSED_LOCAL(instanceTemplate); |
(...skipping 18 matching lines...) Expand all Loading... |
127 | 127 |
128 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { | 128 TestInterfaceDocument* V8TestInterfaceDocument::toImplWithTypeCheck(v8::Isolate*
isolate, v8::Local<v8::Value> value) { |
129 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; | 129 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)
) : nullptr; |
130 } | 130 } |
131 | 131 |
132 TestInterfaceDocument* NativeValueTraits<TestInterfaceDocument>::nativeValue(v8:
:Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { | 132 TestInterfaceDocument* NativeValueTraits<TestInterfaceDocument>::nativeValue(v8:
:Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
133 return V8TestInterfaceDocument::toImplWithTypeCheck(isolate, value); | 133 return V8TestInterfaceDocument::toImplWithTypeCheck(isolate, value); |
134 } | 134 } |
135 | 135 |
136 } // namespace blink | 136 } // namespace blink |
OLD | NEW |