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

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

Issue 813513004: [bindings] Remove all the usages of Handle<> from binding templates. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 2101 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 // Custom toString template 2112 // Custom toString template
2113 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate()); 2113 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData: :from(isolate)->toStringTemplate());
2114 } 2114 }
2115 2115
2116 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat e) 2116 v8::Local<v8::FunctionTemplate> V8TestInterface::domTemplate(v8::Isolate* isolat e)
2117 { 2117 {
2118 ASSERT(V8TestInterface::installV8TestInterfaceTemplateFunction != V8TestInte rface::installV8TestInterfaceTemplate); 2118 ASSERT(V8TestInterface::installV8TestInterfaceTemplateFunction != V8TestInte rface::installV8TestInterfaceTemplate);
2119 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFunction ); 2119 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI nfo*>(&wrapperTypeInfo), V8TestInterface::installV8TestInterfaceTemplateFunction );
2120 } 2120 }
2121 2121
2122 bool V8TestInterface::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* is olate) 2122 bool V8TestInterface::hasInstance(v8::Local<v8::Value> v8Value, v8::Isolate* iso late)
2123 { 2123 {
2124 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e); 2124 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
2125 } 2125 }
2126 2126
2127 v8::Handle<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Handle< v8::Value> v8Value, v8::Isolate* isolate) 2127 v8::Local<v8::Object> V8TestInterface::findInstanceInPrototypeChain(v8::Local<v8 ::Value> v8Value, v8::Isolate* isolate)
2128 { 2128 {
2129 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 2129 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
2130 } 2130 }
2131 2131
2132 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i solate, v8::Handle<v8::Value> value) 2132 TestInterfaceImplementation* V8TestInterface::toImplWithTypeCheck(v8::Isolate* i solate, v8::Local<v8::Value> value)
2133 { 2133 {
2134 return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(val ue)) : 0; 2134 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : 0;
2135 } 2135 }
2136 2136
2137 void V8TestInterface::installConditionallyEnabledProperties(v8::Local<v8::Object > instanceObject, v8::Isolate* isolate) 2137 void V8TestInterface::installConditionallyEnabledProperties(v8::Local<v8::Object > instanceObject, v8::Isolate* isolate)
2138 { 2138 {
2139 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype()); 2139 v8::Local<v8::Object> prototypeObject = v8::Local<v8::Object>::Cast(instance Object->GetPrototype());
2140 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext()); 2140 ExecutionContext* context = toExecutionContext(prototypeObject->CreationCont ext());
2141 2141
2142 if (context && (context->isWorkerGlobalScope())) { 2142 if (context && (context->isWorkerGlobalScope())) {
2143 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\ 2143 static const V8DOMConfiguration::AttributeConfiguration attributeConfigu ration =\
2144 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance}; 2144 {"workerExposedAttribute", TestInterfaceImplementationV8Internal::worker ExposedAttributeAttributeGetterCallback, TestInterfaceImplementationV8Internal:: workerExposedAttributeAttributeSetterCallback, 0, 0, 0, static_cast<v8::AccessCo ntrol>(v8::DEFAULT), static_cast<v8::PropertyAttribute>(v8::None), V8DOMConfigur ation::ExposedToAllScripts, V8DOMConfiguration::OnInstance};
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2187 prototypeObject->Set(v8AtomicString(isolate, "overloadMethodWithExposedA ndRuntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplemen tationV8Internal::overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 1)->GetFunction()); 2187 prototypeObject->Set(v8AtomicString(isolate, "overloadMethodWithExposedA ndRuntimeEnabledFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplemen tationV8Internal::overloadMethodWithExposedAndRuntimeEnabledFlagMethodCallback, v8Undefined(), defaultSignature, 1)->GetFunction());
2188 } 2188 }
2189 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur eName2Enabled()))) { 2189 if (context && ((context->isDocument() && RuntimeEnabledFeatures::featureNam eEnabled()) || (context->isWorkerGlobalScope() && RuntimeEnabledFeatures::featur eName2Enabled()))) {
2190 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedHavingRun timeEnabldFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementation V8Internal::methodWithExposedHavingRuntimeEnabldFlagMethodCallback, v8Undefined( ), defaultSignature, 0)->GetFunction()); 2190 prototypeObject->Set(v8AtomicString(isolate, "methodWithExposedHavingRun timeEnabldFlag"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementation V8Internal::methodWithExposedHavingRuntimeEnabldFlagMethodCallback, v8Undefined( ), defaultSignature, 0)->GetFunction());
2191 } 2191 }
2192 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope ())) { 2192 if (context && (context->isDocument() || context->isServiceWorkerGlobalScope ())) {
2193 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo sedMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Int ernal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), default Signature, 0)->GetFunction()); 2193 prototypeObject->Set(v8AtomicString(isolate, "windowAndServiceWorkerExpo sedMethod"), v8::FunctionTemplate::New(isolate, TestInterfaceImplementationV8Int ernal::windowAndServiceWorkerExposedMethodMethodCallback, v8Undefined(), default Signature, 0)->GetFunction());
2194 } 2194 }
2195 } 2195 }
2196 2196
2197 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Handle<v8::Object> wrapp er) 2197 ActiveDOMObject* V8TestInterface::toActiveDOMObject(v8::Local<v8::Object> wrappe r)
2198 { 2198 {
2199 return toImpl(wrapper); 2199 return toImpl(wrapper);
2200 } 2200 }
2201 2201
2202 void V8TestInterface::refObject(ScriptWrappable* scriptWrappable) 2202 void V8TestInterface::refObject(ScriptWrappable* scriptWrappable)
2203 { 2203 {
2204 scriptWrappable->toImpl<TestInterfaceImplementation>()->ref(); 2204 scriptWrappable->toImpl<TestInterfaceImplementation>()->ref();
2205 } 2205 }
2206 2206
2207 void V8TestInterface::derefObject(ScriptWrappable* scriptWrappable) 2207 void V8TestInterface::derefObject(ScriptWrappable* scriptWrappable)
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2314 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2314 void V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(void ( *method)(const v8::FunctionCallbackInfo<v8::Value>&))
2315 { 2315 {
2316 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method; 2316 TestInterfaceImplementationV8Internal::partial2VoidMethodMethodForPartialInt erface = method;
2317 } 2317 }
2318 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&)) 2318 void V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface( void (*method)(const v8::FunctionCallbackInfo<v8::Value>&))
2319 { 2319 {
2320 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method; 2320 TestInterfaceImplementationV8Internal::partial2StaticVoidMethodMethodForPart ialInterface = method;
2321 } 2321 }
2322 } // namespace blink 2322 } // namespace blink
2323 #endif // ENABLE(CONDITION) 2323 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/V8TestInterface.h ('k') | Source/bindings/tests/results/core/V8TestInterface2.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698