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

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

Issue 1329653003: [bindings] Club related constants for a runtime enabled flag in a single |if| block (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
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 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
648 0, 0, 648 0, 0,
649 0, 0, 649 0, 0,
650 V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods)); 650 V8TestInterface2Methods, WTF_ARRAY_LENGTH(V8TestInterface2Methods));
651 functionTemplate->SetCallHandler(V8TestInterface2::constructorCallback); 651 functionTemplate->SetCallHandler(V8TestInterface2::constructorCallback);
652 functionTemplate->SetLength(0); 652 functionTemplate->SetLength(0);
653 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate(); 653 v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceT emplate();
654 ALLOW_UNUSED_LOCAL(instanceTemplate); 654 ALLOW_UNUSED_LOCAL(instanceTemplate);
655 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate(); 655 v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->Prototyp eTemplate();
656 ALLOW_UNUSED_LOCAL(prototypeTemplate); 656 ALLOW_UNUSED_LOCAL(prototypeTemplate);
657 if (RuntimeEnabledFeatures::featureNameEnabled()) { 657 if (RuntimeEnabledFeatures::featureNameEnabled()) {
658 static const V8DOMConfiguration::ConstantConfiguration constantConfigura tion = {"CONST_VALUE_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsignedShort}; 658 static const V8DOMConfiguration::ConstantConfiguration constantConstValu e1Configuration = {"CONST_VALUE_1", 1, 0, V8DOMConfiguration::ConstantTypeUnsign edShort};
659 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantConfiguration); 659 V8DOMConfiguration::installConstant(isolate, functionTemplate, prototype Template, constantConstValue1Configuration);
660 } 660 }
661 static_assert(1 == TestInterface2::CONST_VALUE_1, "the value of TestInterfac e2_CONST_VALUE_1 does not match with implementation"); 661 static_assert(1 == TestInterface2::CONST_VALUE_1, "the value of TestInterfac e2_CONST_VALUE_1 does not match with implementation");
662 { 662 {
663 v8::IndexedPropertyHandlerConfiguration config(TestInterface2V8Internal: :indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPropertySetterC allback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallback, indexedPro pertyEnumerator<TestInterface2>); 663 v8::IndexedPropertyHandlerConfiguration config(TestInterface2V8Internal: :indexedPropertyGetterCallback, TestInterface2V8Internal::indexedPropertySetterC allback, 0, TestInterface2V8Internal::indexedPropertyDeleterCallback, indexedPro pertyEnumerator<TestInterface2>);
664 functionTemplate->InstanceTemplate()->SetHandler(config); 664 functionTemplate->InstanceTemplate()->SetHandler(config);
665 } 665 }
666 { 666 {
667 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings); 667 int flags = static_cast<int>(v8::PropertyHandlerFlags::kOnlyInterceptStr ings);
668 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking); 668 flags |= static_cast<int>(v8::PropertyHandlerFlags::kNonMasking);
669 v8::NamedPropertyHandlerConfiguration config(TestInterface2V8Internal::n amedPropertyGetterCallback, TestInterface2V8Internal::namedPropertySetterCallbac k, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterface2V8Interna l::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPropertyEnumerat orCallback, v8::Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags )); 669 v8::NamedPropertyHandlerConfiguration config(TestInterface2V8Internal::n amedPropertyGetterCallback, TestInterface2V8Internal::namedPropertySetterCallbac k, TestInterface2V8Internal::namedPropertyQueryCallback, TestInterface2V8Interna l::namedPropertyDeleterCallback, TestInterface2V8Internal::namedPropertyEnumerat orCallback, v8::Handle<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(flags ));
(...skipping 30 matching lines...) Expand all
700 { 700 {
701 scriptWrappable->toImpl<TestInterface2>()->ref(); 701 scriptWrappable->toImpl<TestInterface2>()->ref();
702 } 702 }
703 703
704 void V8TestInterface2::derefObject(ScriptWrappable* scriptWrappable) 704 void V8TestInterface2::derefObject(ScriptWrappable* scriptWrappable)
705 { 705 {
706 scriptWrappable->toImpl<TestInterface2>()->deref(); 706 scriptWrappable->toImpl<TestInterface2>()->deref();
707 } 707 }
708 708
709 } // namespace blink 709 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.cpp ('k') | Source/bindings/tests/results/core/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698