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 "V8TestInterfaceEventConstructor.h" | 8 #include "V8TestInterfaceEventConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 } | 36 } |
37 | 37 |
38 } // namespace blink | 38 } // namespace blink |
39 | 39 |
40 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceEventConst
ructor* object) | 40 void webCoreInitializeScriptWrappableForInterface(blink::TestInterfaceEventConst
ructor* object) |
41 { | 41 { |
42 blink::initializeScriptWrappableForInterface(object); | 42 blink::initializeScriptWrappableForInterface(object); |
43 } | 43 } |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::derefObject, 0, 0, 0, V8TestInterfaceEventConstructor::installPer
ContextEnabledMethods, &V8Event::wrapperTypeInfo, WrapperTypeObjectPrototype, Wi
llBeGarbageCollectedObject }; | 46 const WrapperTypeInfo V8TestInterfaceEventConstructor::wrapperTypeInfo = { gin::
kEmbedderBlink, V8TestInterfaceEventConstructor::domTemplate, V8TestInterfaceEve
ntConstructor::derefObject, 0, 0, 0, V8TestInterfaceEventConstructor::installCon
ditionallyEnabledMethods, &V8Event::wrapperTypeInfo, WrapperTypeObjectPrototype,
WillBeGarbageCollectedObject }; |
47 | 47 |
48 namespace TestInterfaceEventConstructorV8Internal { | 48 namespace TestInterfaceEventConstructorV8Internal { |
49 | 49 |
50 template <typename T> void V8_USE(T) { } | 50 template <typename T> void V8_USE(T) { } |
51 | 51 |
52 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) | 52 static void readonlyStringAttributeAttributeGetter(const v8::PropertyCallbackInf
o<v8::Value>& info) |
53 { | 53 { |
54 v8::Handle<v8::Object> holder = info.Holder(); | 54 v8::Handle<v8::Object> holder = info.Holder(); |
55 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); | 55 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat
ive(holder); |
56 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); | 56 v8SetReturnValueString(info, impl->readonlyStringAttribute(), info.GetIsolat
e()); |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); | 399 const WrapperTypeInfo* actualInfo = ScriptWrappable::fromObject(impl.get
())->typeInfo(); |
400 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have | 400 // Might be a XXXConstructor::wrapperTypeInfo instead of an XXX::wrapper
TypeInfo. These will both have |
401 // the same object de-ref functions, though, so use that as the basis of
the check. | 401 // the same object de-ref functions, though, so use that as the basis of
the check. |
402 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); | 402 RELEASE_ASSERT_WITH_SECURITY_IMPLICATION(actualInfo->derefObjectFunction
== wrapperTypeInfo.derefObjectFunction); |
403 } | 403 } |
404 | 404 |
405 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); | 405 v8::Handle<v8::Object> wrapper = V8DOMWrapper::createWrapper(creationContext
, &wrapperTypeInfo, toInternalPointer(impl.get()), isolate); |
406 if (UNLIKELY(wrapper.IsEmpty())) | 406 if (UNLIKELY(wrapper.IsEmpty())) |
407 return wrapper; | 407 return wrapper; |
408 | 408 |
409 installPerContextEnabledProperties(wrapper, impl.get(), isolate); | 409 installConditionallyEnabledProperties(wrapper, isolate); |
410 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(im
pl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); | 410 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventConstructor>(im
pl, &wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |
411 return wrapper; | 411 return wrapper; |
412 } | 412 } |
413 | 413 |
414 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappableBase* internalP
ointer) | 414 void V8TestInterfaceEventConstructor::derefObject(ScriptWrappableBase* internalP
ointer) |
415 { | 415 { |
416 #if !ENABLE(OILPAN) | 416 #if !ENABLE(OILPAN) |
417 fromInternalPointer(internalPointer)->deref(); | 417 fromInternalPointer(internalPointer)->deref(); |
418 #endif // !ENABLE(OILPAN) | 418 #endif // !ENABLE(OILPAN) |
419 } | 419 } |
420 | 420 |
421 template<> | 421 template<> |
422 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 422 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
423 { | 423 { |
424 return toV8(impl, creationContext, isolate); | 424 return toV8(impl, creationContext, isolate); |
425 } | 425 } |
426 | 426 |
427 } // namespace blink | 427 } // namespace blink |
OLD | NEW |