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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterface3.cpp

Issue 922233002: bindings: Makes runtime-enabled attributes on prototype chains compilable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed review comments. Created 5 years, 10 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 | Annotate | Revision Log
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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterface3.h" 8 #include "V8TestInterface3.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 { 222 {
223 v8::IndexedPropertyHandlerConfiguration config(TestInterface3V8Internal: :indexedPropertyGetterCallback, TestInterface3V8Internal::indexedPropertySetterC allback, 0, TestInterface3V8Internal::indexedPropertyDeleterCallback, indexedPro pertyEnumerator<TestInterface3>); 223 v8::IndexedPropertyHandlerConfiguration config(TestInterface3V8Internal: :indexedPropertyGetterCallback, TestInterface3V8Internal::indexedPropertySetterC allback, 0, TestInterface3V8Internal::indexedPropertyDeleterCallback, indexedPro pertyEnumerator<TestInterface3>);
224 functionTemplate->InstanceTemplate()->SetHandler(config); 224 functionTemplate->InstanceTemplate()->SetHandler(config);
225 } 225 }
226 { 226 {
227 v8::NamedPropertyHandlerConfiguration config(TestInterface3V8Internal::n amedPropertyGetterCallback, TestInterface3V8Internal::namedPropertySetterCallbac k, TestInterface3V8Internal::namedPropertyQueryCallback, TestInterface3V8Interna l::namedPropertyDeleterCallback, TestInterface3V8Internal::namedPropertyEnumerat orCallback); 227 v8::NamedPropertyHandlerConfiguration config(TestInterface3V8Internal::n amedPropertyGetterCallback, TestInterface3V8Internal::namedPropertySetterCallbac k, TestInterface3V8Internal::namedPropertyQueryCallback, TestInterface3V8Interna l::namedPropertyDeleterCallback, TestInterface3V8Internal::namedPropertyEnumerat orCallback);
228 functionTemplate->InstanceTemplate()->SetHandler(config); 228 functionTemplate->InstanceTemplate()->SetHandler(config);
229 } 229 }
230 if (RuntimeEnabledFeatures::featureNameEnabled()) { 230 if (RuntimeEnabledFeatures::featureNameEnabled()) {
231 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKe yedIteratorConfiguration = { v8::Symbol::GetIterator, TestInterface3V8Internal:: iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts }; 231 static const V8DOMConfiguration::SymbolKeyedMethodConfiguration symbolKe yedIteratorConfiguration = { v8::Symbol::GetIterator, TestInterface3V8Internal:: iteratorMethodCallback, 0, V8DOMConfiguration::ExposedToAllScripts };
232 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::DontDelete, symbolKeyedIteratorConfiguration, isolate); 232 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::DontDelete, symbolKeyedIteratorConfiguration);
233 } 233 }
234 if (RuntimeEnabledFeatures::featureNameEnabled()) { 234 if (RuntimeEnabledFeatures::featureNameEnabled()) {
235 const V8DOMConfiguration::MethodConfiguration keysMethodConfiguration = { 235 const V8DOMConfiguration::MethodConfiguration keysMethodConfiguration = {
236 "keys", TestInterface3V8Internal::keysMethodCallback, 0, 0, V8DOMCon figuration::ExposedToAllScripts, 236 "keys", TestInterface3V8Internal::keysMethodCallback, 0, 0, V8DOMCon figuration::ExposedToAllScripts,
237 }; 237 };
238 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, keysMethodConfiguration, isolate); 238 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, keysMethodConfiguration);
239 } 239 }
240 if (RuntimeEnabledFeatures::featureNameEnabled()) { 240 if (RuntimeEnabledFeatures::featureNameEnabled()) {
241 const V8DOMConfiguration::MethodConfiguration valuesMethodConfiguration = { 241 const V8DOMConfiguration::MethodConfiguration valuesMethodConfiguration = {
242 "values", TestInterface3V8Internal::valuesMethodCallback, 0, 0, V8DO MConfiguration::ExposedToAllScripts, 242 "values", TestInterface3V8Internal::valuesMethodCallback, 0, 0, V8DO MConfiguration::ExposedToAllScripts,
243 }; 243 };
244 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, valuesMethodConfiguration, isolate); 244 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, valuesMethodConfiguration);
245 } 245 }
246 if (RuntimeEnabledFeatures::featureNameEnabled()) { 246 if (RuntimeEnabledFeatures::featureNameEnabled()) {
247 const V8DOMConfiguration::MethodConfiguration entriesMethodConfiguration = { 247 const V8DOMConfiguration::MethodConfiguration entriesMethodConfiguration = {
248 "entries", TestInterface3V8Internal::entriesMethodCallback, 0, 0, V8 DOMConfiguration::ExposedToAllScripts, 248 "entries", TestInterface3V8Internal::entriesMethodCallback, 0, 0, V8 DOMConfiguration::ExposedToAllScripts,
249 }; 249 };
250 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, entriesMethodConfiguration, isolate); 250 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, entriesMethodConfiguration);
251 } 251 }
252 if (RuntimeEnabledFeatures::featureNameEnabled()) { 252 if (RuntimeEnabledFeatures::featureNameEnabled()) {
253 const V8DOMConfiguration::MethodConfiguration forEachMethodConfiguration = { 253 const V8DOMConfiguration::MethodConfiguration forEachMethodConfiguration = {
254 "forEach", TestInterface3V8Internal::forEachMethodCallback, 0, 1, V8 DOMConfiguration::ExposedToAllScripts, 254 "forEach", TestInterface3V8Internal::forEachMethodCallback, 0, 1, V8 DOMConfiguration::ExposedToAllScripts,
255 }; 255 };
256 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, v 8::None, forEachMethodConfiguration, isolate); 256 V8DOMConfiguration::installMethod(isolate, prototypeTemplate, defaultSig nature, v8::None, forEachMethodConfiguration);
257 } 257 }
258 258
259 // Custom toString template 259 // Custom toString template
260 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 260 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
261 } 261 }
262 262
263 v8::Local<v8::FunctionTemplate> V8TestInterface3::domTemplate(v8::Isolate* isola te) 263 v8::Local<v8::FunctionTemplate> V8TestInterface3::domTemplate(v8::Isolate* isola te)
264 { 264 {
265 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterface3Template); 265 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterface3Template);
266 } 266 }
(...skipping 17 matching lines...) Expand all
284 { 284 {
285 scriptWrappable->toImpl<TestInterface3>()->ref(); 285 scriptWrappable->toImpl<TestInterface3>()->ref();
286 } 286 }
287 287
288 void V8TestInterface3::derefObject(ScriptWrappable* scriptWrappable) 288 void V8TestInterface3::derefObject(ScriptWrappable* scriptWrappable)
289 { 289 {
290 scriptWrappable->toImpl<TestInterface3>()->deref(); 290 scriptWrappable->toImpl<TestInterface3>()->deref();
291 } 291 }
292 292
293 } // namespace blink 293 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698