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

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

Issue 214283002: Bindings: rename |jsValue| => |v8Value| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 6 years, 9 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 "V8TestInterfaceNamedConstructor.h" 8 #include "V8TestInterfaceNamedConstructor.h"
9 9
10 #include "RuntimeEnabledFeatures.h" 10 #include "RuntimeEnabledFeatures.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 static void TestInterfaceNamedConstructorConstructorGetter(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info) 46 static void TestInterfaceNamedConstructorConstructorGetter(v8::Local<v8::String> , const v8::PropertyCallbackInfo<v8::Value>& info)
47 { 47 {
48 v8::Handle<v8::Value> data = info.Data(); 48 v8::Handle<v8::Value> data = info.Data();
49 ASSERT(data->IsExternal()); 49 ASSERT(data->IsExternal());
50 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext()); 50 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre ationContext());
51 if (!perContextData) 51 if (!perContextData)
52 return; 52 return;
53 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data))); 53 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u nwrap(data)));
54 } 54 }
55 55
56 static void TestInterfaceNamedConstructorReplaceableAttributeSetter(v8::Local<v8 ::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<voi d>& info) 56 static void TestInterfaceNamedConstructorReplaceableAttributeSetter(v8::Local<v8 ::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<voi d>& info)
57 { 57 {
58 info.This()->ForceSet(name, jsValue); 58 info.This()->ForceSet(name, v8Value);
59 } 59 }
60 60
61 static void TestInterfaceNamedConstructorReplaceableAttributeSetterCallback(v8:: Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallback Info<void>& info) 61 static void TestInterfaceNamedConstructorReplaceableAttributeSetterCallback(v8:: Local<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallback Info<void>& info)
62 { 62 {
63 TestInterfaceNamedConstructorV8Internal::TestInterfaceNamedConstructorReplac eableAttributeSetter(name, jsValue, info); 63 TestInterfaceNamedConstructorV8Internal::TestInterfaceNamedConstructorReplac eableAttributeSetter(name, v8Value, info);
64 } 64 }
65 65
66 } // namespace TestInterfaceNamedConstructorV8Internal 66 } // namespace TestInterfaceNamedConstructorV8Internal
67 67
68 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons tructorAttributes[] = { 68 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceNamedCons tructorAttributes[] = {
69 {"testNamedConstructorConstructorAttribute", TestInterfaceNamedConstructorV8 Internal::TestInterfaceNamedConstructorConstructorGetter, TestInterfaceNamedCons tructorV8Internal::TestInterfaceNamedConstructorReplaceableAttributeSetterCallba ck, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestNamedConstructor::wrapperTypeInfo) , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::DontEnum), 0 /* on instance */}, 69 {"testNamedConstructorConstructorAttribute", TestInterfaceNamedConstructorV8 Internal::TestInterfaceNamedConstructorConstructorGetter, TestInterfaceNamedCons tructorV8Internal::TestInterfaceNamedConstructorReplaceableAttributeSetterCallba ck, 0, 0, const_cast<WrapperTypeInfo*>(&V8TestNamedConstructor::wrapperTypeInfo) , static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::PropertyAttribute >(v8::DontEnum), 0 /* on instance */},
70 }; 70 };
71 71
72 const WrapperTypeInfo V8TestInterfaceNamedConstructorConstructor::wrapperTypeInf o = { gin::kEmbedderBlink, V8TestInterfaceNamedConstructorConstructor::domTempla te, V8TestInterfaceNamedConstructor::derefObject, V8TestInterfaceNamedConstructo r::toActiveDOMObject, 0, 0, V8TestInterfaceNamedConstructor::installPerContextEn abledMethods, 0, WrapperTypeObjectPrototype, false }; 72 const WrapperTypeInfo V8TestInterfaceNamedConstructorConstructor::wrapperTypeInf o = { gin::kEmbedderBlink, V8TestInterfaceNamedConstructorConstructor::domTempla te, V8TestInterfaceNamedConstructor::derefObject, V8TestInterfaceNamedConstructo r::toActiveDOMObject, 0, 0, V8TestInterfaceNamedConstructor::installPerContextEn abledMethods, 0, WrapperTypeObjectPrototype, false };
73 73
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 if (!result.IsEmpty()) 152 if (!result.IsEmpty())
153 return result; 153 return result;
154 154
155 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); 155 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate");
156 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode); 156 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons tructorMode);
157 configureV8TestInterfaceNamedConstructorTemplate(result, isolate); 157 configureV8TestInterfaceNamedConstructorTemplate(result, isolate);
158 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ; 158 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result) ;
159 return result; 159 return result;
160 } 160 }
161 161
162 bool V8TestInterfaceNamedConstructor::hasInstance(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) 162 bool V8TestInterfaceNamedConstructor::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
163 { 163 {
164 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, jsValu e); 164 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu e);
165 } 165 }
166 166
167 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor::findInstanceInPrototypeC hain(v8::Handle<v8::Value> jsValue, v8::Isolate* isolate) 167 v8::Handle<v8::Object> V8TestInterfaceNamedConstructor::findInstanceInPrototypeC hain(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
168 { 168 {
169 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, jsValue); 169 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
170 } 170 }
171 171
172 TestInterfaceNamedConstructor* V8TestInterfaceNamedConstructor::toNativeWithType Check(v8::Isolate* isolate, v8::Handle<v8::Value> value) 172 TestInterfaceNamedConstructor* V8TestInterfaceNamedConstructor::toNativeWithType Check(v8::Isolate* isolate, v8::Handle<v8::Value> value)
173 { 173 {
174 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0; 174 return hasInstance(value, isolate) ? fromInternalPointer(v8::Handle<v8::Obje ct>::Cast(value)->GetAlignedPointerFromInternalField(v8DOMWrapperObjectIndex)) : 0;
175 } 175 }
176 176
177 ActiveDOMObject* V8TestInterfaceNamedConstructor::toActiveDOMObject(v8::Handle<v 8::Object> wrapper) 177 ActiveDOMObject* V8TestInterfaceNamedConstructor::toActiveDOMObject(v8::Handle<v 8::Object> wrapper)
178 { 178 {
179 return toNative(wrapper); 179 return toNative(wrapper);
(...skipping 24 matching lines...) Expand all
204 fromInternalPointer(object)->deref(); 204 fromInternalPointer(object)->deref();
205 } 205 }
206 206
207 template<> 207 template<>
208 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 208 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
209 { 209 {
210 return toV8(impl, creationContext, isolate); 210 return toV8(impl, creationContext, isolate);
211 } 211 }
212 212
213 } // namespace WebCore 213 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698