| 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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 ASSERT(data->IsExternal()); | 321 ASSERT(data->IsExternal()); |
| 322 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); | 322 V8PerContextData* perContextData = V8PerContextData::from(info.Holder()->Cre
ationContext()); |
| 323 if (!perContextData) | 323 if (!perContextData) |
| 324 return; | 324 return; |
| 325 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); | 325 v8SetReturnValue(info, perContextData->constructorForType(WrapperTypeInfo::u
nwrap(data))); |
| 326 } | 326 } |
| 327 | 327 |
| 328 static void TestInterface5ImplementationForceSetAttributeOnThis(v8::Local<v8::St
ring> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) | 328 static void TestInterface5ImplementationForceSetAttributeOnThis(v8::Local<v8::St
ring> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>&
info) |
| 329 { | 329 { |
| 330 if (info.This()->IsObject()) | 330 if (info.This()->IsObject()) |
| 331 v8::Handle<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); | 331 v8::Local<v8::Object>::Cast(info.This())->ForceSet(name, v8Value); |
| 332 } | 332 } |
| 333 | 333 |
| 334 static void TestInterface5ImplementationForceSetAttributeOnThisCallback(v8::Loca
l<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) | 334 static void TestInterface5ImplementationForceSetAttributeOnThisCallback(v8::Loca
l<v8::String> name, v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo
<void>& info) |
| 335 { | 335 { |
| 336 TestInterface5ImplementationV8Internal::TestInterface5ImplementationForceSet
AttributeOnThis(name, v8Value, info); | 336 TestInterface5ImplementationV8Internal::TestInterface5ImplementationForceSet
AttributeOnThis(name, v8Value, info); |
| 337 } | 337 } |
| 338 | 338 |
| 339 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 339 static void voidMethodTestInterfaceEmptyArgMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 340 { | 340 { |
| 341 if (UNLIKELY(info.Length() < 1)) { | 341 if (UNLIKELY(info.Length() < 1)) { |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 if (context && (context->isDocument())) { | 850 if (context && (context->isDocument())) { |
| 851 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM
ethodConfiguration = { | 851 const V8DOMConfiguration::MethodConfiguration windowExposedStaticMethodM
ethodConfiguration = { |
| 852 "windowExposedStaticMethod", TestInterface5ImplementationV8Internal:
:windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll
Scripts, | 852 "windowExposedStaticMethod", TestInterface5ImplementationV8Internal:
:windowExposedStaticMethodMethodCallback, 0, 0, V8DOMConfiguration::ExposedToAll
Scripts, |
| 853 }; | 853 }; |
| 854 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat
ure>(), v8::None, windowExposedStaticMethodMethodConfiguration, isolate); | 854 V8DOMConfiguration::installMethod(functionTemplate, v8::Local<v8::Signat
ure>(), v8::None, windowExposedStaticMethodMethodConfiguration, isolate); |
| 855 } | 855 } |
| 856 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{ | 856 const V8DOMConfiguration::MethodConfiguration toStringMethodConfiguration =
{ |
| 857 "toString", TestInterface5ImplementationV8Internal::toStringMethodCallba
ck, 0, 0, V8DOMConfiguration::ExposedToAllScripts, | 857 "toString", TestInterface5ImplementationV8Internal::toStringMethodCallba
ck, 0, 0, V8DOMConfiguration::ExposedToAllScripts, |
| 858 }; | 858 }; |
| 859 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
iguration, isolate); | 859 V8DOMConfiguration::installMethod(prototypeTemplate, defaultSignature, stati
c_cast<v8::PropertyAttribute>(v8::DontDelete | v8::DontEnum), toStringMethodConf
iguration, isolate); |
| 860 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterface5ImplementationV8Internal::staticStringAttributeAttri
buteGetterCallback, TestInterface5ImplementationV8Internal::staticStringAttribut
eAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::Propert
yAttribute>(v8::None), v8::Handle<v8::AccessorSignature>(), static_cast<v8::Acce
ssControl>(v8::DEFAULT)); | 860 functionTemplate->SetNativeDataProperty(v8AtomicString(isolate, "staticStrin
gAttribute"), TestInterface5ImplementationV8Internal::staticStringAttributeAttri
buteGetterCallback, TestInterface5ImplementationV8Internal::staticStringAttribut
eAttributeSetterCallback, v8::External::New(isolate, 0), static_cast<v8::Propert
yAttribute>(v8::None), v8::Local<v8::AccessorSignature>(), static_cast<v8::Acces
sControl>(v8::DEFAULT)); |
| 861 | 861 |
| 862 // Custom toString template | 862 // Custom toString template |
| 863 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); | 863 functionTemplate->Set(v8AtomicString(isolate, "toString"), V8PerIsolateData:
:from(isolate)->toStringTemplate()); |
| 864 } | 864 } |
| 865 | 865 |
| 866 v8::Handle<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isol
ate) | 866 v8::Handle<v8::FunctionTemplate> V8TestInterface5::domTemplate(v8::Isolate* isol
ate) |
| 867 { | 867 { |
| 868 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); | 868 return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeI
nfo*>(&wrapperTypeInfo), installV8TestInterface5Template); |
| 869 } | 869 } |
| 870 | 870 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); | 927 scriptWrappable->toImpl<TestInterface5Implementation>()->ref(); |
| 928 } | 928 } |
| 929 | 929 |
| 930 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) | 930 void V8TestInterface5::derefObject(ScriptWrappable* scriptWrappable) |
| 931 { | 931 { |
| 932 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); | 932 scriptWrappable->toImpl<TestInterface5Implementation>()->deref(); |
| 933 } | 933 } |
| 934 | 934 |
| 935 } // namespace blink | 935 } // namespace blink |
| 936 #endif // ENABLE(CONDITION) | 936 #endif // ENABLE(CONDITION) |
| OLD | NEW |