| Index: Source/bindings/tests/results/core/TestInterfaceOrLong.h
 | 
| diff --git a/Source/bindings/tests/results/core/TestInterfaceOrLong.h b/Source/bindings/tests/results/core/TestInterfaceOrLong.h
 | 
| new file mode 100644
 | 
| index 0000000000000000000000000000000000000000..4e8ac6f3a2bf7a453a2fbe44b01a342e0025ddae
 | 
| --- /dev/null
 | 
| +++ b/Source/bindings/tests/results/core/TestInterfaceOrLong.h
 | 
| @@ -0,0 +1,72 @@
 | 
| +// Copyright 2015 The Chromium Authors. All rights reserved.
 | 
| +// Use of this source code is governed by a BSD-style license that can be
 | 
| +// found in the LICENSE file.
 | 
| +
 | 
| +// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
 | 
| +
 | 
| +#ifndef TestInterfaceOrLong_h
 | 
| +#define TestInterfaceOrLong_h
 | 
| +
 | 
| +#include "bindings/core/v8/Dictionary.h"
 | 
| +#include "bindings/core/v8/ExceptionState.h"
 | 
| +#include "bindings/core/v8/V8Binding.h"
 | 
| +#include "bindings/core/v8/V8TestInterface.h"
 | 
| +#include "bindings/tests/idls/core/TestImplements2.h"
 | 
| +#include "bindings/tests/idls/core/TestImplements3Implementation.h"
 | 
| +#include "bindings/tests/idls/core/TestPartialInterface.h"
 | 
| +#include "bindings/tests/idls/core/TestPartialInterfaceImplementation.h"
 | 
| +#include "platform/heap/Handle.h"
 | 
| +
 | 
| +namespace blink {
 | 
| +
 | 
| +class TestInterfaceOrLong final {
 | 
| +    ALLOW_ONLY_INLINE_ALLOCATION();
 | 
| +public:
 | 
| +    TestInterfaceOrLong();
 | 
| +    bool isNull() const { return m_type == SpecificTypeNone; }
 | 
| +
 | 
| +    bool isTestInterface() const { return m_type == SpecificTypeTestInterface; }
 | 
| +    PassRefPtr<TestInterfaceImplementation> getAsTestInterface() const;
 | 
| +    void setTestInterface(PassRefPtr<TestInterfaceImplementation>);
 | 
| +    static TestInterfaceOrLong fromTestInterface(PassRefPtr<TestInterfaceImplementation>);
 | 
| +
 | 
| +    bool isLong() const { return m_type == SpecificTypeLong; }
 | 
| +    int getAsLong() const;
 | 
| +    void setLong(int);
 | 
| +    static TestInterfaceOrLong fromLong(int);
 | 
| +
 | 
| +private:
 | 
| +    enum SpecificTypes {
 | 
| +        SpecificTypeNone,
 | 
| +        SpecificTypeTestInterface,
 | 
| +        SpecificTypeLong,
 | 
| +    };
 | 
| +    SpecificTypes m_type;
 | 
| +
 | 
| +    RefPtr<TestInterfaceImplementation> m_testInterface;
 | 
| +    int m_long;
 | 
| +
 | 
| +    friend v8::Local<v8::Value> toV8(const TestInterfaceOrLong&, v8::Local<v8::Object>, v8::Isolate*);
 | 
| +};
 | 
| +
 | 
| +class V8TestInterfaceOrLong final {
 | 
| +public:
 | 
| +    static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceOrLong&, ExceptionState&);
 | 
| +};
 | 
| +
 | 
| +v8::Local<v8::Value> toV8(const TestInterfaceOrLong&, v8::Local<v8::Object>, v8::Isolate*);
 | 
| +
 | 
| +template <class CallbackInfo>
 | 
| +inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceOrLong& impl)
 | 
| +{
 | 
| +    v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
 | 
| +}
 | 
| +
 | 
| +template <>
 | 
| +struct NativeValueTraits<TestInterfaceOrLong> {
 | 
| +    static TestInterfaceOrLong nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionState&);
 | 
| +};
 | 
| +
 | 
| +} // namespace blink
 | 
| +
 | 
| +#endif // TestInterfaceOrLong_h
 | 
| 
 |