| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! | 31 // This file has been auto-generated by code_generator_v8.pm. DO NOT MODIFY! |
| 32 | 32 |
| 33 #include "config.h" | 33 #include "config.h" |
| 34 #include "V8TestTypedefs.h" | 34 #include "V8TestTypedefs.h" |
| 35 | 35 |
| 36 #include "RuntimeEnabledFeatures.h" | 36 #include "RuntimeEnabledFeatures.h" |
| 37 #include "V8SVGPoint.h" | 37 #include "V8SVGPoint.h" |
| 38 #include "V8SerializedScriptValue.h" | 38 #include "V8SerializedScriptValue.h" |
| 39 #include "V8TestCallback.h" | 39 #include "V8TestCallbackInterface.h" |
| 40 #include "V8TestSubObj.h" | 40 #include "V8TestSubObj.h" |
| 41 #include "bindings/v8/ExceptionMessages.h" | 41 #include "bindings/v8/ExceptionMessages.h" |
| 42 #include "bindings/v8/ExceptionState.h" | 42 #include "bindings/v8/ExceptionState.h" |
| 43 #include "bindings/v8/SerializedScriptValue.h" | 43 #include "bindings/v8/SerializedScriptValue.h" |
| 44 #include "bindings/v8/V8DOMConfiguration.h" | 44 #include "bindings/v8/V8DOMConfiguration.h" |
| 45 #include "bindings/v8/V8ObjectConstructor.h" | 45 #include "bindings/v8/V8ObjectConstructor.h" |
| 46 #include "core/dom/ContextFeatures.h" | 46 #include "core/dom/ContextFeatures.h" |
| 47 #include "core/dom/Document.h" | 47 #include "core/dom/Document.h" |
| 48 #include "core/svg/properties/SVGPropertyTearOff.h" | 48 #include "core/svg/properties/SVGPropertyTearOff.h" |
| 49 #include "platform/TraceEvent.h" | 49 #include "platform/TraceEvent.h" |
| (...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 434 { | 434 { |
| 435 if (UNLIKELY(info.Length() < 2)) { | 435 if (UNLIKELY(info.Length() < 2)) { |
| 436 throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TestTy
pedefs", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsola
te()); | 436 throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TestTy
pedefs", ExceptionMessages::notEnoughArguments(2, info.Length())), info.GetIsola
te()); |
| 437 return; | 437 return; |
| 438 } | 438 } |
| 439 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, hello, info[0]); | 439 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, hello, info[0]); |
| 440 if (info.Length() <= 1 || !info[1]->IsFunction()) { | 440 if (info.Length() <= 1 || !info[1]->IsFunction()) { |
| 441 throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TestTy
pedefs", "The callback provided as parameter 2 is not a function."), info.GetIso
late()); | 441 throwTypeError(ExceptionMessages::failedToExecute("Constructor", "TestTy
pedefs", "The callback provided as parameter 2 is not a function."), info.GetIso
late()); |
| 442 return; | 442 return; |
| 443 } | 443 } |
| 444 OwnPtr<TestCallback> testCallback = V8TestCallback::create(v8::Handle<v8::Fu
nction>::Cast(info[1]), getExecutionContext()); | 444 OwnPtr<TestCallbackInterface> testCallbackInterface = V8TestCallbackInterfac
e::create(v8::Handle<v8::Function>::Cast(info[1]), getExecutionContext()); |
| 445 RefPtr<TestTypedefs> impl = TestTypedefs::create(hello, testCallback); | 445 RefPtr<TestTypedefs> impl = TestTypedefs::create(hello, testCallbackInterfac
e); |
| 446 v8::Handle<v8::Object> wrapper = info.Holder(); | 446 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 447 | 447 |
| 448 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration:
:Dependent); | 448 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl.release(), &V8
TestTypedefs::wrapperTypeInfo, wrapper, info.GetIsolate(), WrapperConfiguration:
:Dependent); |
| 449 v8SetReturnValue(info, wrapper); | 449 v8SetReturnValue(info, wrapper); |
| 450 } | 450 } |
| 451 | 451 |
| 452 } // namespace TestTypedefsV8Internal | 452 } // namespace TestTypedefsV8Internal |
| 453 | 453 |
| 454 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes
[] = { | 454 static const V8DOMConfiguration::AttributeConfiguration V8TestTypedefsAttributes
[] = { |
| 455 {"unsignedLongLongAttr", TestTypedefsV8Internal::unsignedLongLongAttrAttribu
teGetterCallback, TestTypedefsV8Internal::unsignedLongLongAttrAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, | 455 {"unsignedLongLongAttr", TestTypedefsV8Internal::unsignedLongLongAttrAttribu
teGetterCallback, TestTypedefsV8Internal::unsignedLongLongAttrAttributeSetterCal
lback, 0, 0, 0, static_cast<v8::AccessControl>(v8::DEFAULT), static_cast<v8::Pro
pertyAttribute>(v8::None), 0 /* on instance */}, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 fromInternalPointer(object)->deref(); | 560 fromInternalPointer(object)->deref(); |
| 561 } | 561 } |
| 562 | 562 |
| 563 template<> | 563 template<> |
| 564 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) | 564 v8::Handle<v8::Value> toV8NoInline(TestTypedefs* impl, v8::Handle<v8::Object> cr
eationContext, v8::Isolate* isolate) |
| 565 { | 565 { |
| 566 return toV8(impl, creationContext, isolate); | 566 return toV8(impl, creationContext, isolate); |
| 567 } | 567 } |
| 568 | 568 |
| 569 } // namespace WebCore | 569 } // namespace WebCore |
| OLD | NEW |