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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface2.cpp

Issue 499293003: IDL: Avoid generating empty ConstantConfiguration arrays (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased Created 6 years, 3 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
« no previous file with comments | « Source/bindings/tests/idls/TestInterface2.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "V8TestInterface2.h" 8 #include "V8TestInterface2.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 v8::Local<v8::Signature> defaultSignature; 478 v8::Local<v8::Signature> defaultSignature;
479 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterface2", v8::Local<v8::FunctionTemplate>(), V8TestInterface2::inte rnalFieldCount, 479 defaultSignature = V8DOMConfiguration::installDOMClassTemplate(functionTempl ate, "TestInterface2", v8::Local<v8::FunctionTemplate>(), V8TestInterface2::inte rnalFieldCount,
480 0, 0, 480 0, 0,
481 0, 0, 481 0, 0,
482 V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods), 482 V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods),
483 isolate); 483 isolate);
484 functionTemplate->SetCallHandler(V8TestInterface2::constructorCallback); 484 functionTemplate->SetCallHandler(V8TestInterface2::constructorCallback);
485 functionTemplate->SetLength(0); 485 functionTemplate->SetLength(0);
486 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla te->InstanceTemplate(); 486 v8::Local<v8::ObjectTemplate> instanceTemplate ALLOW_UNUSED = functionTempla te->InstanceTemplate();
487 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate(); 487 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl ate->PrototypeTemplate();
488 if (RuntimeEnabledFeatures::featureNameEnabled()) {
489 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"CONST_VALUE_1", 1, 0, 0, V8DOMConfiguration::ConstantTypeUnsignedShort} ;
490 V8DOMConfiguration::installConstants(functionTemplate, prototypeTemplate , &constantConfiguration, 1, isolate);
491 }
492 COMPILE_ASSERT(1 == TestInterface2::CONST_VALUE_1, TheValueOfTestInterface2_ CONST_VALUE_1DoesntMatchWithImplementation);
488 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac e2V8Internal::indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPr opertySetterCallback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallbac k, indexedPropertyEnumerator<TestInterface2>); 493 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac e2V8Internal::indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPr opertySetterCallback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallbac k, indexedPropertyEnumerator<TestInterface2>);
489 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface2 V8Internal::namedPropertyGetterCallback, TestInterface2V8Internal::namedProperty SetterCallback, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterf ace2V8Internal::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPro pertyEnumeratorCallback); 494 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface2 V8Internal::namedPropertyGetterCallback, TestInterface2V8Internal::namedProperty SetterCallback, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterf ace2V8Internal::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPro pertyEnumeratorCallback);
490 495
491 // Custom toString template 496 // Custom toString template
492 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 497 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
493 } 498 }
494 499
495 v8::Handle<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isol ate) 500 v8::Handle<v8::FunctionTemplate> V8TestInterface2::domTemplate(v8::Isolate* isol ate)
496 { 501 {
497 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterface2Template); 502 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), installV8TestInterface2Template);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 fromInternalPointer(internalPointer)->deref(); 559 fromInternalPointer(internalPointer)->deref();
555 } 560 }
556 561
557 template<> 562 template<>
558 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 563 v8::Handle<v8::Value> toV8NoInline(TestInterface2* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
559 { 564 {
560 return toV8(impl, creationContext, isolate); 565 return toV8(impl, creationContext, isolate);
561 } 566 }
562 567
563 } // namespace blink 568 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/idls/TestInterface2.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698