107a852d8c1953036774d8f3b65d18dcfea3bb4a2Ben Murdoch// Copyright 2014 The Chromium Authors. All rights reserved.
207a852d8c1953036774d8f3b65d18dcfea3bb4a2Ben Murdoch// Use of this source code is governed by a BSD-style license that can be
307a852d8c1953036774d8f3b65d18dcfea3bb4a2Ben Murdoch// found in the LICENSE file.
45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
507a852d8c1953036774d8f3b65d18dcfea3bb4a2Ben Murdoch// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
7e52495584422c5edb5b2944981473a2e208da323Torne (Richard Coles)#ifndef V8TestObject_h
8e52495584422c5edb5b2944981473a2e208da323Torne (Richard Coles)#define V8TestObject_h
95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
10e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)#include "bindings/core/v8/ScriptWrappable.h"
11197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#include "bindings/core/v8/V8Binding.h"
12197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#include "bindings/core/v8/V8DOMWrapper.h"
13197021e6b966cfb06891637935ef33fff06433d1Ben Murdoch#include "bindings/core/v8/WrapperTypeInfo.h"
147242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci#include "bindings/tests/idls/core/TestObject.h"
1510f88d5669dbd969c059d61ba09fa37dd72ac559Ben Murdoch#include "platform/heap/Handle.h"
165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
17c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)namespace blink {
185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
19e52495584422c5edb5b2944981473a2e208da323Torne (Richard Coles)class V8TestObject {
205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)public:
21e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)    class PrivateScript {
22e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)    public:
23e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool voidMethodImplementedInPrivateScriptMethod(LocalFrame* frame, TestObject* holderImpl);
24e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool shortMethodImplementedInPrivateScriptMethod(LocalFrame* frame, TestObject* holderImpl, int* result);
25e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool shortMethodWithShortArgumentImplementedInPrivateScriptMethod(LocalFrame* frame, TestObject* holderImpl, int value, int* result);
26e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool stringMethodWithStringArgumentImplementedInPrivateScriptMethod(LocalFrame* frame, TestObject* holderImpl, String value, String* result);
27e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool nodeMethodWithNodeArgumentImplementedInPrivateScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<Node> value, RefPtrWillBeRawPtr<Node>* result);
28e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool nodeMethodWithVariousArgumentsImplementedInPrivateScriptMethod(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<Document> document, PassRefPtrWillBeRawPtr<Node> node, int value1, double value2, String string, RefPtrWillBeRawPtr<Node>* result);
29e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool methodForPrivateScriptOnlyMethod(LocalFrame* frame, TestObject* holderImpl, int value1, int value2, int* result);
30e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool readonlyShortAttributeAttributeGetter(LocalFrame* frame, TestObject* holderImpl, int* result);
31e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool shortAttributeAttributeGetter(LocalFrame* frame, TestObject* holderImpl, int* result);
32e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool shortAttributeAttributeSetter(LocalFrame* frame, TestObject* holderImpl, int cppValue);
33e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool stringAttributeAttributeGetter(LocalFrame* frame, TestObject* holderImpl, String* result);
34e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool stringAttributeAttributeSetter(LocalFrame* frame, TestObject* holderImpl, String cppValue);
35e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool nodeAttributeAttributeGetter(LocalFrame* frame, TestObject* holderImpl, RefPtrWillBeRawPtr<Node>* result);
36e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool nodeAttributeAttributeSetter(LocalFrame* frame, TestObject* holderImpl, PassRefPtrWillBeRawPtr<Node> cppValue);
37e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool attributeForPrivateScriptOnlyAttributeGetter(LocalFrame* frame, TestObject* holderImpl, String* result);
38e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)        static bool attributeForPrivateScriptOnlyAttributeSetter(LocalFrame* frame, TestObject* holderImpl, String cppValue);
397242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci        static bool enumForPrivateScriptAttributeGetter(LocalFrame* frame, TestObject* holderImpl, String* result);
407242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci        static bool enumForPrivateScriptAttributeSetter(LocalFrame* frame, TestObject* holderImpl, String cppValue);
41e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)    };
42e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)
4309380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    static bool hasInstance(v8::Handle<v8::Value>, v8::Isolate*);
44d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)    static v8::Handle<v8::Object> findInstanceInPrototypeChain(v8::Handle<v8::Value>, v8::Isolate*);
45d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)    static v8::Handle<v8::FunctionTemplate> domTemplate(v8::Isolate*);
467242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    static TestObject* toImpl(v8::Handle<v8::Object> object)
475c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    {
487242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci        return toImpl(blink::toScriptWrappableBase(object));
495c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    }
507242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    static TestObject* toImplWithTypeCheck(v8::Isolate*, v8::Handle<v8::Value>);
51f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)    static const WrapperTypeInfo wrapperTypeInfo;
527242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    static void refObject(ScriptWrappableBase* internalPointer);
53e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)    static void derefObject(ScriptWrappableBase* internalPointer);
547242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    static WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* internalPointer);
55f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customVoidMethodMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&);
56f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch#if ENABLE(CONDITION)
57f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void conditionalConditionCustomVoidMethodMethodCustom(const v8::FunctionCallbackInfo<v8::Value>&);
58f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch#endif // ENABLE(CONDITION)
59f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customObjectAttributeAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>&);
60f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customObjectAttributeAttributeSetterCustom(v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&);
61f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customGetterLongAttributeAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>&);
62f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customGetterReadonlyObjectAttributeAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>&);
63f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customSetterLongAttributeAttributeSetterCustom(v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&);
64f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch#if ENABLE(CONDITION)
65f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customLongAttributeAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>&);
66f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch#endif // ENABLE(CONDITION)
67f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch#if ENABLE(CONDITION)
68f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customLongAttributeAttributeSetterCustom(v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&);
69f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch#endif // ENABLE(CONDITION)
70f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customImplementedAsLongAttributeAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>&);
71f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customImplementedAsLongAttributeAttributeSetterCustom(v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&);
72f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customGetterImplementedAsLongAttributeAttributeGetterCustom(const v8::PropertyCallbackInfo<v8::Value>&);
73f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static void customSetterImplementedAsLongAttributeAttributeSetterCustom(v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&);
74f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + 0;
757242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    static inline ScriptWrappableBase* toScriptWrappableBase(TestObject* impl)
76e69819bd8e388ea4ad1636a19aa6b2eed4952191Ben Murdoch    {
777242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci        return impl->toScriptWrappableBase();
78e69819bd8e388ea4ad1636a19aa6b2eed4952191Ben Murdoch    }
79e69819bd8e388ea4ad1636a19aa6b2eed4952191Ben Murdoch
807242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    static inline TestObject* toImpl(ScriptWrappableBase* internalPointer)
81e69819bd8e388ea4ad1636a19aa6b2eed4952191Ben Murdoch    {
827242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci        return internalPointer->toImpl<TestObject>();
83e69819bd8e388ea4ad1636a19aa6b2eed4952191Ben Murdoch    }
84e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)    static void installConditionallyEnabledProperties(v8::Handle<v8::Object>, v8::Isolate*);
85e38fbeeb576b5094e34e038ab88d9d6a5c5c2214Torne (Richard Coles)    static void installConditionallyEnabledMethods(v8::Handle<v8::Object>, v8::Isolate*);
86c0e19a689c8ac22cdc96b291a8d33a5d3b0b34a4Torne (Richard Coles)
875c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)private:
885c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)};
895c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
907242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucciinline v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
917242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci{
927242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    return impl->wrap(creationContext, isolate);
937242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci}
945c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
95d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)inline v8::Handle<v8::Value> toV8(TestObject* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
965c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles){
97926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)    if (UNLIKELY(!impl))
98a854de003a23bf3c7f95ec0f8154ada64092ff5cTorne (Richard Coles)        return v8::Null(isolate);
99e69819bd8e388ea4ad1636a19aa6b2eed4952191Ben Murdoch    v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObject>(impl, isolate);
100926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)    if (!wrapper.IsEmpty())
101926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)        return wrapper;
1027242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci
1037242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    return impl->wrap(creationContext, isolate);
104926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)}
105926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)
106e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)template<typename CallbackInfo>
107d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObject* impl)
108926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles){
109e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    if (UNLIKELY(!impl)) {
110e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        v8SetReturnValueNull(callbackInfo);
111e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        return;
112e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    }
113e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    if (DOMDataStore::setReturnValueFromWrapper<V8TestObject>(callbackInfo.GetReturnValue(), impl))
114e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        return;
115f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)    v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
116e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    v8SetReturnValue(callbackInfo, wrapper);
117e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)}
118e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)
119e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)template<typename CallbackInfo>
120d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestObject* impl)
121e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles){
122f5f02c98d2d694be40c6182631462fff13b4a479Ben Murdoch    ASSERT(DOMWrapperWorld::current(callbackInfo.GetIsolate()).isMainWorld());
123e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    if (UNLIKELY(!impl)) {
124e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        v8SetReturnValueNull(callbackInfo);
125e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        return;
126e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    }
127e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestObject>(callbackInfo.GetReturnValue(), impl))
128e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        return;
129f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)    v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
130e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    v8SetReturnValue(callbackInfo, wrapper);
131926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)}
132926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)
133e69819bd8e388ea4ad1636a19aa6b2eed4952191Ben Murdochtemplate<class CallbackInfo, class Wrappable>
134d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestObject* impl, Wrappable* wrappable)
135926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles){
136e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    if (UNLIKELY(!impl)) {
137e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        v8SetReturnValueNull(callbackInfo);
138e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        return;
139e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    }
140e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    if (DOMDataStore::setReturnValueFromWrapperFast<V8TestObject>(callbackInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
141e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)        return;
142e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackInfo.GetIsolate());
143e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    v8SetReturnValue(callbackInfo, wrapper);
1445c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}
145926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)
146d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)inline v8::Handle<v8::Value> toV8(PassRefPtr<TestObject> impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
147926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles){
148e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    return toV8(impl.get(), creationContext, isolate);
149926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)}
150926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)
151e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)template<class CallbackInfo>
152d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestObject> impl)
153e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles){
154f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)    v8SetReturnValue(callbackInfo, impl.get());
155e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)}
156926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)
157e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)template<class CallbackInfo>
158d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<TestObject> impl)
159926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles){
160f79f16f17ddc4f842d7b7a38603e280e94be826aTorne (Richard Coles)    v8SetReturnValueForMainWorld(callbackInfo, impl.get());
161926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)}
162926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)
163e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)template<class CallbackInfo, class Wrappable>
164d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<TestObject> impl, Wrappable* wrappable)
1655c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles){
166e1f1df5f01594c0e62e751e4b46e779b85c2faa5Torne (Richard Coles)    v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
1675c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}
1685c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
1697242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci} // namespace blink
170e52495584422c5edb5b2944981473a2e208da323Torne (Richard Coles)#endif // V8TestObject_h
171