OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 void initializeScriptWrappableForInterface(RealClass* object) | 80 void initializeScriptWrappableForInterface(RealClass* object) |
81 { | 81 { |
82 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) | 82 if (ScriptWrappable::wrapperCanBeStoredInObject(object)) |
83 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfaceImplemented
As::info); | 83 ScriptWrappable::setTypeInfoInObject(object, &V8TestInterfaceImplemented
As::info); |
84 } | 84 } |
85 #if defined(OS_WIN) | 85 #if defined(OS_WIN) |
86 namespace WebCore { | 86 namespace WebCore { |
87 #endif | 87 #endif |
88 WrapperTypeInfo V8TestInterfaceImplementedAs::info = { V8TestInterfaceImplemente
dAs::GetTemplate, V8TestInterfaceImplementedAs::derefObject, 0, 0, 0, V8TestInte
rfaceImplementedAs::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr
ototype }; | 88 WrapperTypeInfo V8TestInterfaceImplementedAs::info = { V8TestInterfaceImplemente
dAs::GetTemplate, V8TestInterfaceImplementedAs::derefObject, 0, 0, 0, V8TestInte
rfaceImplementedAs::installPerContextPrototypeProperties, 0, WrapperTypeObjectPr
ototype }; |
89 | 89 |
90 namespace TestInterfaceImplementedAsV8Internal { | 90 namespace RealClassV8Internal { |
91 | 91 |
92 template <typename T> void V8_USE(T) { } | 92 template <typename T> void V8_USE(T) { } |
93 | 93 |
94 static v8::Handle<v8::Value> aAttrGetter(v8::Local<v8::String> name, const v8::A
ccessorInfo& info) | 94 static v8::Handle<v8::Value> aAttrGetter(v8::Local<v8::String> name, const v8::A
ccessorInfo& info) |
95 { | 95 { |
96 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); | 96 RealClass* imp = V8TestInterfaceImplementedAs::toNative(info.Holder()); |
97 return v8String(imp->a(), info.GetIsolate(), ReturnUnsafeHandle); | 97 return v8String(imp->a(), info.GetIsolate(), ReturnUnsafeHandle); |
98 } | 98 } |
99 | 99 |
100 static v8::Handle<v8::Value> aAttrGetterCallback(v8::Local<v8::String> name, con
st v8::AccessorInfo& info) | 100 static v8::Handle<v8::Value> aAttrGetterCallback(v8::Local<v8::String> name, con
st v8::AccessorInfo& info) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); | 160 RealClass* imp = V8TestInterfaceImplementedAs::toNative(args.Holder()); |
161 V8TRYCATCH(RealClass*, orange, V8TestInterfaceImplementedAs::HasInstance(arg
s[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8TestInterfaceImplemen
tedAs::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); | 161 V8TRYCATCH(RealClass*, orange, V8TestInterfaceImplementedAs::HasInstance(arg
s[0], args.GetIsolate(), worldType(args.GetIsolate())) ? V8TestInterfaceImplemen
tedAs::toNative(v8::Handle<v8::Object>::Cast(args[0])) : 0); |
162 return v8String(imp->funcTestInterfaceImplementedAsParam(orange), args.GetIs
olate(), ReturnUnsafeHandle); | 162 return v8String(imp->funcTestInterfaceImplementedAsParam(orange), args.GetIs
olate(), ReturnUnsafeHandle); |
163 } | 163 } |
164 | 164 |
165 static v8::Handle<v8::Value> funcTestInterfaceImplementedAsParamMethodCallback(c
onst v8::Arguments& args) | 165 static v8::Handle<v8::Value> funcTestInterfaceImplementedAsParamMethodCallback(c
onst v8::Arguments& args) |
166 { | 166 { |
167 return RealClassV8Internal::funcTestInterfaceImplementedAsParamMethod(args); | 167 return RealClassV8Internal::funcTestInterfaceImplementedAsParamMethod(args); |
168 } | 168 } |
169 | 169 |
170 } // namespace TestInterfaceImplementedAsV8Internal | 170 } // namespace RealClassV8Internal |
171 | 171 |
172 static const V8DOMConfiguration::BatchedAttribute V8TestInterfaceImplementedAsAt
trs[] = { | 172 static const V8DOMConfiguration::BatchedAttribute V8TestInterfaceImplementedAsAt
trs[] = { |
173 // Attribute 'a' (Type: 'attribute' ExtAttr: '') | 173 // Attribute 'a' (Type: 'attribute' ExtAttr: '') |
174 {"a", RealClassV8Internal::aAttrGetterCallback, RealClassV8Internal::aAttrSe
tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 174 {"a", RealClassV8Internal::aAttrGetterCallback, RealClassV8Internal::aAttrSe
tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
175 // Attribute 'b' (Type: 'attribute' ExtAttr: '') | 175 // Attribute 'b' (Type: 'attribute' ExtAttr: '') |
176 {"b", RealClassV8Internal::bAttrGetterCallback, RealClassV8Internal::bAttrSe
tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, | 176 {"b", RealClassV8Internal::bAttrGetterCallback, RealClassV8Internal::bAttrSe
tterCallback, 0, 0, 0 /* no data */, static_cast<v8::AccessControl>(v8::DEFAULT)
, static_cast<v8::PropertyAttribute>(v8::None), 0 /* on instance */}, |
177 }; | 177 }; |
178 | 178 |
179 static const V8DOMConfiguration::BatchedMethod V8TestInterfaceImplementedAsMetho
ds[] = { | 179 static const V8DOMConfiguration::BatchedMethod V8TestInterfaceImplementedAsMetho
ds[] = { |
180 {"func1", RealClassV8Internal::func1MethodCallback, 0, 1}, | 180 {"func1", RealClassV8Internal::func1MethodCallback, 0, 1}, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 installPerContextProperties(wrapper, impl.get(), isolate); | 248 installPerContextProperties(wrapper, impl.get(), isolate); |
249 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); | 249 V8DOMWrapper::associateObjectWithWrapper(impl, &info, wrapper, isolate, hasD
ependentLifetime ? WrapperConfiguration::Dependent : WrapperConfiguration::Indep
endent); |
250 return wrapper; | 250 return wrapper; |
251 } | 251 } |
252 void V8TestInterfaceImplementedAs::derefObject(void* object) | 252 void V8TestInterfaceImplementedAs::derefObject(void* object) |
253 { | 253 { |
254 static_cast<RealClass*>(object)->deref(); | 254 static_cast<RealClass*>(object)->deref(); |
255 } | 255 } |
256 | 256 |
257 } // namespace WebCore | 257 } // namespace WebCore |
OLD | NEW |