Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8SVGTestInterface.cpp

Issue 2758893002: Slim V8DOMConfiguration structs for attributes and accessors. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 void V8SVGTestInterface::typeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) { 87 void V8SVGTestInterface::typeAttributeSetterCallback(const v8::FunctionCallbackI nfo<v8::Value>& info) {
88 v8::Local<v8::Value> v8Value = info[0]; 88 v8::Local<v8::Value> v8Value = info[0];
89 89
90 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope; 90 V0CustomElementProcessingStack::CallbackDeliveryScope deliveryScope;
91 91
92 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info); 92 SVGTestInterfaceV8Internal::typeAttributeSetter(v8Value, info);
93 } 93 }
94 94
95 const V8DOMConfiguration::AccessorConfiguration V8SVGTestInterfaceAccessors[] = { 95 static const V8DOMConfiguration::AccessorConfiguration V8SVGTestInterfaceAccesso rs[] = {
96 {"type", V8SVGTestInterface::typeAttributeGetterCallback, V8SVGTestInterface ::typeAttributeSetterCallback, nullptr, nullptr, nullptr, nullptr, static_cast<v 8::PropertyAttribute>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfigura tion::CheckHolder}, 96 {"type", V8SVGTestInterface::typeAttributeGetterCallback, V8SVGTestInterface ::typeAttributeSetterCallback, nullptr, nullptr, static_cast<v8::PropertyAttribu te>(v8::None), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
97 }; 97 };
98 98
99 static void installV8SVGTestInterfaceTemplate(v8::Isolate* isolate, const DOMWra pperWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 99 static void installV8SVGTestInterfaceTemplate(v8::Isolate* isolate, const DOMWra pperWorld& 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, V8SVGTestInterface::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTempla te>(), V8SVGTestInterface::internalFieldCount); 101 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8SVGTestInterface::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTempla te>(), V8SVGTestInterface::internalFieldCount);
102 102
103 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 103 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
104 ALLOW_UNUSED_LOCAL(signature); 104 ALLOW_UNUSED_LOCAL(signature);
105 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate(); 105 v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTe mplate();
106 ALLOW_UNUSED_LOCAL(instanceTemplate); 106 ALLOW_UNUSED_LOCAL(instanceTemplate);
(...skipping 18 matching lines...) Expand all
125 125
126 SVGTestInterface* V8SVGTestInterface::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) { 126 SVGTestInterface* V8SVGTestInterface::toImplWithTypeCheck(v8::Isolate* isolate, v8::Local<v8::Value> value) {
127 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 127 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
128 } 128 }
129 129
130 SVGTestInterface* NativeValueTraits<SVGTestInterface>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { 130 SVGTestInterface* NativeValueTraits<SVGTestInterface>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) {
131 return V8SVGTestInterface::toImplWithTypeCheck(isolate, value); 131 return V8SVGTestInterface::toImplWithTypeCheck(isolate, value);
132 } 132 }
133 133
134 } // namespace blink 134 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698