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 "V8TestInterfaceConstructor2.h" | 8 #include "V8TestInterfaceConstructor2.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 } // namespace blink | 34 } // namespace blink |
35 | 35 |
36 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceConstructo
r2* object) | 36 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceConstructo
r2* object) |
37 { | 37 { |
38 blink::initializeScriptWrappableForInterface(object); | 38 blink::initializeScriptWrappableForInterface(object); |
39 } | 39 } |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 const WrapperTypeInfo V8TestInterfaceConstructor2::wrapperTypeInfo = { gin::kEmb
edderBlink, V8TestInterfaceConstructor2::domTemplate, V8TestInterfaceConstructor
2::derefObject, 0, 0, 0, V8TestInterfaceConstructor2::installPerContextEnabledMe
thods, 0, WrapperTypeObjectPrototype, RefCountedObject }; | 42 const WrapperTypeInfo V8TestInterfaceConstructor2::wrapperTypeInfo = { gin::kEmb
edderBlink, V8TestInterfaceConstructor2::domTemplate, V8TestInterfaceConstructor
2::derefObject, 0, 0, 0, V8TestInterfaceConstructor2::installConditionallyEnable
dMethods, 0, WrapperTypeObjectPrototype, RefCountedObject }; |
43 | 43 |
44 namespace TestInterfaceConstructor2V8Internal { | 44 namespace TestInterfaceConstructor2V8Internal { |
45 | 45 |
46 template <typename T> void V8_USE(T) { } | 46 template <typename T> void V8_USE(T) { } |
47 | 47 |
48 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) | 48 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) |
49 { | 49 { |
50 V8StringResource<> stringArg; | 50 V8StringResource<> stringArg; |
51 { | 51 { |
52 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 52 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 241 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
242 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 242 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
243 // the same object de-ref functions, though, so use that as the basis of
the check. | 243 // the same object de-ref functions, though, so use that as the basis of
the check. |
244 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 244 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
245 } | 245 } |
246 | 246 |
247 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 247 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
248 if (UNLIKELY(wrapper.IsEmpty())) | 248 if (UNLIKELY(wrapper.IsEmpty())) |
249 return wrapper; | 249 return wrapper; |
250 | 250 |
251 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 251 installConditionallyEnabledProperties(wrapper, isolate); |
252 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor2>(impl,
&wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 252 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor2>(impl,
&wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
253 return wrapper; | 253 return wrapper; |
254 } | 254 } |
255 | 255 |
256 void V8TestInterfaceConstructor2::derefObject(ScriptWrappableBase* internalPoint
er) | 256 void V8TestInterfaceConstructor2::derefObject(ScriptWrappableBase* internalPoint
er) |
257 { | 257 { |
258 fromInternalPointer(internalPointer)->deref(); | 258 fromInternalPointer(internalPointer)->deref(); |
259 } | 259 } |
260 | 260 |
261 template<> | 261 template<> |
262 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 262 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
263 { | 263 { |
264 return toV8(impl, creationContext, isolate); | 264 return toV8(impl, creationContext, isolate); |
265 } | 265 } |
266 | 266 |
267 } // namespace blink | 267 } // namespace blink |
OLD | NEW |