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 "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 } | 30 } |
31 | 31 |
32 } // namespace blink | 32 } // namespace blink |
33 | 33 |
34 void webCoreInitializeScriptWrappableForInterface(blink::TestInterface3* object) | 34 void webCoreInitializeScriptWrappableForInterface(blink::TestInterface3* object) |
35 { | 35 { |
36 blink::initializeScriptWrappableForInterface(object); | 36 blink::initializeScriptWrappableForInterface(object); |
37 } | 37 } |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 const WrapperTypeInfo V8TestInterface3::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface3::domTemplate, V8TestInterface3::derefObject, 0, 0, V8TestInter
face3::visitDOMWrapper, V8TestInterface3::installPerContextEnabledMethods, 0, Wr
apperTypeObjectPrototype, RefCountedObject }; | 40 const WrapperTypeInfo V8TestInterface3::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface3::domTemplate, V8TestInterface3::derefObject, 0, 0, V8TestInter
face3::visitDOMWrapper, V8TestInterface3::installConditionallyEnabledMethods, 0,
WrapperTypeObjectPrototype, RefCountedObject }; |
41 | 41 |
42 namespace TestInterface3V8Internal { | 42 namespace TestInterface3V8Internal { |
43 | 43 |
44 template <typename T> void V8_USE(T) { } | 44 template <typename T> void V8_USE(T) { } |
45 | 45 |
46 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) | 46 static void indexedPropertyGetterCallback(uint32_t index, const v8::PropertyCall
backInfo<v8::Value>& info) |
47 { | 47 { |
48 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); | 48 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMIndexedProperty"); |
49 V8TestInterface3::indexedPropertyGetterCustom(index, info); | 49 V8TestInterface3::indexedPropertyGetterCustom(index, info); |
50 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); | 50 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 155 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
156 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 156 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
157 // the same object de-ref functions, though, so use that as the basis of
the check. | 157 // the same object de-ref functions, though, so use that as the basis of
the check. |
158 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 158 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
159 } | 159 } |
160 | 160 |
161 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 161 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
162 if (UNLIKELY(wrapper.IsEmpty())) | 162 if (UNLIKELY(wrapper.IsEmpty())) |
163 return wrapper; | 163 return wrapper; |
164 | 164 |
165 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 165 installConditionallyEnabledProperties(wrapper, isolate); |
166 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface3>(impl, &wrapperTyp
eInfo, wrapper, isolate, WrapperConfiguration::Dependent); | 166 V8DOMWrapper::associateObjectWithWrapper<V8TestInterface3>(impl, &wrapperTyp
eInfo, wrapper, isolate, WrapperConfiguration::Dependent); |
167 return wrapper; | 167 return wrapper; |
168 } | 168 } |
169 | 169 |
170 void V8TestInterface3::derefObject(ScriptWrappableBase* internalPointer) | 170 void V8TestInterface3::derefObject(ScriptWrappableBase* internalPointer) |
171 { | 171 { |
172 fromInternalPointer(internalPointer)->deref(); | 172 fromInternalPointer(internalPointer)->deref(); |
173 } | 173 } |
174 | 174 |
175 template<> | 175 template<> |
176 v8::Handle<v8::Value> toV8NoInline(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) | 176 v8::Handle<v8::Value> toV8NoInline(TestInterface3* impl, v8::Handle<v8::Object>
creationContext, v8::Isolate* isolate) |
177 { | 177 { |
178 return toV8(impl, creationContext, isolate); | 178 return toV8(impl, creationContext, isolate); |
179 } | 179 } |
180 | 180 |
181 } // namespace blink | 181 } // namespace blink |
OLD | NEW |