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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
9 #include "V8TestInterface5.h" | 9 #include "V8TestInterface5.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface5::domTemplate, V8TestInterface5::refObject, V8TestInterface5::d
erefObject, V8TestInterface5::trace, V8TestInterface5::toActiveDOMObject, V8Test
Interface5::visitDOMWrapper, V8TestInterface5::installConditionallyEnabledMethod
s, V8TestInterface5::installConditionallyEnabledProperties, &V8TestInterfaceEmpt
y::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo
::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::De
pendent, WrapperTypeInfo::RefCountedObject }; | 30 const WrapperTypeInfo V8TestInterface5::wrapperTypeInfo = { gin::kEmbedderBlink,
V8TestInterface5::domTemplate, V8TestInterface5::refObject, V8TestInterface5::d
erefObject, V8TestInterface5::trace, V8TestInterface5::toActiveDOMObject, V8Test
Interface5::visitDOMWrapper, V8TestInterface5::installConditionallyEnabledMethod
s, V8TestInterface5::installConditionallyEnabledProperties, &V8TestInterfaceEmpt
y::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo
::ObjectClassId, WrapperTypeInfo::NotInheritFromEventTarget, WrapperTypeInfo::De
pendent, WrapperTypeInfo::RefCountedObject }; |
31 | 31 |
32 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e5Implementation.h. | 32 // This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestInterfac
e5Implementation.h. |
33 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in | 33 // For details, see the comment of DEFINE_WRAPPERTYPEINFO in |
34 // bindings/core/v8/ScriptWrappable.h. | 34 // bindings/core/v8/ScriptWrappable.h. |
35 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI
nterface5::wrapperTypeInfo; | 35 const WrapperTypeInfo& TestInterface5Implementation::s_wrapperTypeInfo = V8TestI
nterface5::wrapperTypeInfo; |
36 | 36 |
37 namespace TestInterface5ImplementationV8Internal { | 37 namespace TestInterface5ImplementationV8Internal { |
38 | 38 |
| 39 template<class CallbackInfo> |
| 40 static void TestInterface5ImplementationForceSetAttributeOnThis(v8::Local<v8::St
ring> name, v8::Local<v8::Value> v8Value, const CallbackInfo& info) |
| 41 { |
| 42 if (info.This()->IsObject()) |
| 43 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
| 44 } |
| 45 |
| 46 static void TestInterface5ImplementationForceSetAttributeOnThisCallback(v8::Loca
l<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
| 47 { |
| 48 TestInterface5ImplementationV8Internal::TestInterface5ImplementationForceSet
AttributeOnThis(name, v8Value, info); |
| 49 } |
| 50 |
39 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) | 51 static void testInterfaceAttributeAttributeGetter(const v8::PropertyCallbackInfo
<v8::Value>& info) |
40 { | 52 { |
41 v8::Local<v8::Object> holder = info.Holder(); | 53 v8::Local<v8::Object> holder = info.Holder(); |
42 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); | 54 TestInterface5Implementation* impl = V8TestInterface5::toImpl(holder); |
43 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); | 55 v8SetReturnValueFast(info, WTF::getPtr(impl->testInterfaceAttribute()), impl
); |
44 } | 56 } |
45 | 57 |
46 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 58 static void testInterfaceAttributeAttributeGetterCallback(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
47 { | 59 { |
48 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); | 60 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 static void TestInterface5ImplementationConstructorGetter(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) | 337 static void TestInterface5ImplementationConstructorGetter(v8::Local<v8::String>,
const v8::PropertyCallbackInfo<v8::Value>& info) |
326 { | 338 { |
327 v8::Local<v8::Value> data = info.Data(); | 339 v8::Local<v8::Value> data = info.Data(); |
328 ASSERT(data->IsExternal()); | 340 ASSERT(data->IsExternal()); |
329 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 341 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
330 if (!perContextData) | 342 if (!perContextData) |
331 return; | 343 return; |
332 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 344 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
333 } | 345 } |
334 | 346 |
335 static void TestInterface5ImplementationForceSetAttributeOnThis(v8::Local<v8::St
ring> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | |
336 { | |
337 if (info.This()->IsObject()) | |
338 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); | |
339 } | |
340 | |
341 static void TestInterface5ImplementationForceSetAttributeOnThisCallback(v8::Loca
l<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | |
342 { | |
343 TestInterface5ImplementationV8Internal::TestInterface5ImplementationForceSet
AttributeOnThis(name, v8Value, info); | |
344 } | |
345 | |
346 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 347 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
347 { | 348 { |
348 if (UNLIKELY(info.Length() < 1)) { | 349 if (UNLIKELY(info.Length() < 1)) { |
349 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInterface5", 1, info.Le
ngth()), info.GetIsolate()); | 350 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodTestInterfaceEmptyArg", "TestInterface5", 1, info.Le
ngth()), info.GetIsolate()); |
350 return; | 351 return; |
351 } | 352 } |
352 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; | 353 TestInterface5Implementation* impl = V8TestInterface5::toImpl(info.Holder())
; |
353 TestInterfaceEmpty* testInterfaceEmptyArg; | 354 TestInterfaceEmpty* testInterfaceEmptyArg; |
354 { | 355 { |
355 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); | 356 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); |
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1047 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 1048 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
1048 } | 1049 } |
1049 | 1050 |
1050 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 1051 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
1051 { | 1052 { |
1052 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 1053 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
1053 } | 1054 } |
1054 | 1055 |
1055 } // namespace blink | 1056 } // namespace blink |
1056 #endif // ENABLE(CONDITION) | 1057 #endif // ENABLE(CONDITION) |
OLD | NEW |