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

Side by Side Diff: Source/bindings/tests/results/modules/V8TestInterface5.cpp

Issue 822883002: [bindings] Interface functions installConditionallyEnabled[Methods/Properties] should use Local<> (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface5.h" 9 #include "V8TestInterface5.h"
10 10
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 v8::Handle<v8::Object> V8TestInterface5::findInstanceInPrototypeChain(v8::Handle <v8::Value> v8Value, v8::Isolate* isolate) 876 v8::Handle<v8::Object> V8TestInterface5::findInstanceInPrototypeChain(v8::Handle <v8::Value> v8Value, v8::Isolate* isolate)
877 { 877 {
878 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 878 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
879 } 879 }
880 880
881 TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value) 881 TestInterface5Implementation* V8TestInterface5::toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value)
882 { 882 {
883 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val ue)) : 0; 883 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val ue)) : 0;
884 } 884 }
885 885
886 void V8TestInterface5::installConditionallyEnabledProperties(v8::Handle<v8::Obje ct> instanceObject, v8::Isolate* isolate) 886 void V8TestInterface5::installConditionallyEnabledProperties(v8::Local<v8::Objec t> instanceObject, v8::Isolate* isolate)
887 { 887 {
888 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype()); 888 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype());
889 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 889 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
890 890
891 if (context && (context->isWorkerGlobalScope())) { 891 if (context && (context->isWorkerGlobalScope())) {
892 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 892 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
893 {"workerExposedAttribute", TestInterface5ImplementationV8Internal::worke rExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal ::workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 893 {"workerExposedAttribute", TestInterface5ImplementationV8Internal::worke rExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal ::workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
894 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate); 894 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate);
895 } 895 }
896 if (context && (context->isDocument())) { 896 if (context && (context->isDocument())) {
897 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 897 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
898 {"windowExposedAttribute", TestInterface5ImplementationV8Internal::windo wExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal ::windowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 898 {"windowExposedAttribute", TestInterface5ImplementationV8Internal::windo wExposedAttributeAttributeGetterCallback, TestInterface5ImplementationV8Internal ::windowExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::Access Control>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfig uration::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
899 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate); 899 V8DOMConfiguration::installAttribute(instanceObject, prototypeObject, at tributeConfiguration, isolate);
900 } 900 }
901 } 901 }
902 902
903 void V8TestInterface5::installConditionallyEnabledMethods(v8::Handle<v8::Object> prototypeObject, v8::Isolate* isolate) 903 void V8TestInterface5::installConditionallyEnabledMethods(v8::Local<v8::Object> prototypeObject, v8::Isolate* isolate)
904 { 904 {
905 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate)); 905 v8::Local<v8::Signature> defaultSignature = v8::Signature::New(isolate, domT emplate(isolate));
906 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 906 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
907 ASSERT(context); 907 ASSERT(context);
908 908
909 if (context && (context->isWorkerGlobalScope())) { 909 if (context && (context->isWorkerGlobalScope())) {
910 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8: :FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::workerEx posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); 910 prototypeObject->Set(v8AtomicString(isolate, "workerExposedMethod"), v8: :FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::workerEx posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction());
911 } 911 }
912 if (context && (context->isDocument())) { 912 if (context && (context->isDocument())) {
913 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8: :FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::windowEx posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction()); 913 prototypeObject->Set(v8AtomicString(isolate, "windowExposedMethod"), v8: :FunctionTemplate::New(isolate, TestInterface5ImplementationV8Internal::windowEx posedMethodMethodCallback, v8Undefined(), defaultSignature, 0)->GetFunction());
(...skipping 13 matching lines...) Expand all
927 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); 927 scriptWrappable->toImpl<TestInterface5Implementation>()->ref();
928 } 928 }
929 929
930 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) 930 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable)
931 { 931 {
932 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); 932 scriptWrappable->toImpl<TestInterface5Implementation>()->deref();
933 } 933 }
934 934
935 } // namespace blink 935 } // namespace blink
936 #endif // ENABLE(CONDITION) 936 #endif // ENABLE(CONDITION)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698