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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface3.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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 156
157 void V8TestInterface3::indexedPropertySetterCallback(uint32_t index, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) { 157 void V8TestInterface3::indexedPropertySetterCallback(uint32_t index, v8::Local<v 8::Value> v8Value, const v8::PropertyCallbackInfo<v8::Value>& info) {
158 V8TestInterface3::indexedPropertySetterCustom(index, v8Value, info); 158 V8TestInterface3::indexedPropertySetterCustom(index, v8Value, info);
159 } 159 }
160 160
161 void V8TestInterface3::indexedPropertyDeleterCallback(uint32_t index, const v8:: PropertyCallbackInfo<v8::Boolean>& info) { 161 void V8TestInterface3::indexedPropertyDeleterCallback(uint32_t index, const v8:: PropertyCallbackInfo<v8::Boolean>& info) {
162 V8TestInterface3::indexedPropertyDeleterCustom(index, info); 162 V8TestInterface3::indexedPropertyDeleterCustom(index, info);
163 } 163 }
164 164
165 const V8DOMConfiguration::AccessorConfiguration V8TestInterface3Accessors[] = { 165 static const V8DOMConfiguration::AccessorConfiguration V8TestInterface3Accessors [] = {
166 {"length", V8TestInterface3::lengthAttributeGetterCallback, nullptr, nullptr , nullptr, nullptr, nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V 8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder}, 166 {"length", V8TestInterface3::lengthAttributeGetterCallback, nullptr, nullptr , nullptr, static_cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration: :OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::AllWorlds},
167 {"readonlyStringifierAttribute", V8TestInterface3::readonlyStringifierAttrib uteAttributeGetterCallback, nullptr, nullptr, nullptr, nullptr, nullptr, static_ cast<v8::PropertyAttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DO MConfiguration::CheckHolder}, 167 {"readonlyStringifierAttribute", V8TestInterface3::readonlyStringifierAttrib uteAttributeGetterCallback, nullptr, nullptr, nullptr, static_cast<v8::PropertyA ttribute>(v8::ReadOnly), V8DOMConfiguration::OnPrototype, V8DOMConfiguration::Ch eckHolder, V8DOMConfiguration::AllWorlds},
168 }; 168 };
169 169
170 const V8DOMConfiguration::MethodConfiguration V8TestInterface3Methods[] = { 170 static const V8DOMConfiguration::MethodConfiguration V8TestInterface3Methods[] = {
171 {"voidMethodDocument", V8TestInterface3::voidMethodDocumentMethodCallback, 1 , v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8 DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds}, 171 {"voidMethodDocument", V8TestInterface3::voidMethodDocumentMethodCallback, 1 , v8::None, V8DOMConfiguration::OnPrototype, V8DOMConfiguration::CheckHolder, V8 DOMConfiguration::DoNotCheckAccess, V8DOMConfiguration::AllWorlds},
172 {"toString", V8TestInterface3::toStringMethodCallback, 0, v8::None, V8DOMCon figuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::Do NotCheckAccess, V8DOMConfiguration::AllWorlds}, 172 {"toString", V8TestInterface3::toStringMethodCallback, 0, v8::None, V8DOMCon figuration::OnPrototype, V8DOMConfiguration::CheckHolder, V8DOMConfiguration::Do NotCheckAccess, V8DOMConfiguration::AllWorlds},
173 }; 173 };
174 174
175 static void installV8TestInterface3Template(v8::Isolate* isolate, const DOMWrapp erWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) { 175 static void installV8TestInterface3Template(v8::Isolate* isolate, const DOMWrapp erWorld& world, v8::Local<v8::FunctionTemplate> interfaceTemplate) {
176 // Initialize the interface object's template. 176 // Initialize the interface object's template.
177 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterface3::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate >(), V8TestInterface3::internalFieldCount); 177 V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestInterface3::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate >(), V8TestInterface3::internalFieldCount);
178 178
179 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late); 179 v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemp late);
180 ALLOW_UNUSED_LOCAL(signature); 180 ALLOW_UNUSED_LOCAL(signature);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 TestInterface3* V8TestInterface3::toImplWithTypeCheck(v8::Isolate* isolate, v8:: Local<v8::Value> value) { 219 TestInterface3* V8TestInterface3::toImplWithTypeCheck(v8::Isolate* isolate, v8:: Local<v8::Value> value) {
220 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr; 220 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value) ) : nullptr;
221 } 221 }
222 222
223 TestInterface3* NativeValueTraits<TestInterface3>::nativeValue(v8::Isolate* isol ate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { 223 TestInterface3* NativeValueTraits<TestInterface3>::nativeValue(v8::Isolate* isol ate, v8::Local<v8::Value> value, ExceptionState& exceptionState) {
224 return V8TestInterface3::toImplWithTypeCheck(isolate, value); 224 return V8TestInterface3::toImplWithTypeCheck(isolate, value);
225 } 225 }
226 226
227 } // namespace blink 227 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698