| OLD | NEW |
| 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 "V8TestInterface3.h" | 8 #include "V8TestInterface3.h" |
| 9 | 9 |
| 10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); | 115 v8::Local<v8::ObjectTemplate> prototypeTemplate ALLOW_UNUSED = functionTempl
ate->PrototypeTemplate(); |
| 116 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e3V8Internal::indexedPropertyGetterCallback, TestInterface3V8Internal::indexedPr
opertySetterCallback, 0, TestInterface3V8Internal::indexedPropertyDeleterCallbac
k, indexedPropertyEnumerator<TestInterface3>); | 116 functionTemplate->InstanceTemplate()->SetIndexedPropertyHandler(TestInterfac
e3V8Internal::indexedPropertyGetterCallback, TestInterface3V8Internal::indexedPr
opertySetterCallback, 0, TestInterface3V8Internal::indexedPropertyDeleterCallbac
k, indexedPropertyEnumerator<TestInterface3>); |
| 117 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface3
V8Internal::namedPropertyGetterCallback, TestInterface3V8Internal::namedProperty
SetterCallback, TestInterface3V8Internal::namedPropertyQueryCallback, TestInterf
ace3V8Internal::namedPropertyDeleterCallback, TestInterface3V8Internal::namedPro
pertyEnumeratorCallback); | 117 functionTemplate->InstanceTemplate()->SetNamedPropertyHandler(TestInterface3
V8Internal::namedPropertyGetterCallback, TestInterface3V8Internal::namedProperty
SetterCallback, TestInterface3V8Internal::namedPropertyQueryCallback, TestInterf
ace3V8Internal::namedPropertyDeleterCallback, TestInterface3V8Internal::namedPro
pertyEnumeratorCallback); |
| 118 | 118 |
| 119 // Custom toString template | 119 // Custom toString template |
| 120 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 120 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 121 } | 121 } |
| 122 | 122 |
| 123 v8::Handle<v8::FunctionTemplate> V8TestInterface3::domTemplate(v8::Isolate* isol
ate) | 123 v8::Handle<v8::FunctionTemplate> V8TestInterface3::domTemplate(v8::Isolate* isol
ate) |
| 124 { | 124 { |
| 125 V8PerIsolateData* data = V8PerIsolateData::from(isolate); | 125 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), configureV8TestInterface3Template); |
| 126 v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cas
t<WrapperTypeInfo*>(&wrapperTypeInfo)); | |
| 127 if (!result.IsEmpty()) | |
| 128 return result; | |
| 129 | |
| 130 TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); | |
| 131 result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidCons
tructorMode); | |
| 132 configureV8TestInterface3Template(result, isolate); | |
| 133 data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result)
; | |
| 134 return result; | |
| 135 } | 126 } |
| 136 | 127 |
| 137 bool V8TestInterface3::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* i
solate) | 128 bool V8TestInterface3::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* i
solate) |
| 138 { | 129 { |
| 139 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); | 130 return V8PerIsolateData::from(isolate)->hasInstance(&wrapperTypeInfo, v8Valu
e); |
| 140 } | 131 } |
| 141 | 132 |
| 142 v8::Handle<v8::Object> V8TestInterface3::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) | 133 v8::Handle<v8::Object> V8TestInterface3::findInstanceInPrototypeChain(v8::Handle
<v8::Value> v8Value, v8::Isolate* isolate) |
| 143 { | 134 { |
| 144 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); | 135 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe
rTypeInfo, v8Value); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 174 fromInternalPointer(object)->deref(); | 165 fromInternalPointer(object)->deref(); |
| 175 } | 166 } |
| 176 | 167 |
| 177 template<> | 168 template<> |
| 178 v8::Handle<v8::Value> toV8NoInline(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 169 v8::Handle<v8::Value> toV8NoInline(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
| 179 { | 170 { |
| 180 return toV8(impl, creationContext, isolate); | 171 return toV8(impl, creationContext, isolate); |
| 181 } | 172 } |
| 182 | 173 |
| 183 } // namespace WebCore | 174 } // namespace WebCore |
| OLD | NEW |