| Index: Source/bindings/tests/results/core/TestEnumOrDouble.h
|
| diff --git a/Source/bindings/tests/results/core/TestEnumOrDouble.h b/Source/bindings/tests/results/core/TestEnumOrDouble.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2c8c2eda4ede86355c08caac1476d886eb78364b
|
| --- /dev/null
|
| +++ b/Source/bindings/tests/results/core/TestEnumOrDouble.h
|
| @@ -0,0 +1,67 @@
|
| +// 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 TestEnumOrDouble_h
|
| +#define TestEnumOrDouble_h
|
| +
|
| +#include "bindings/core/v8/Dictionary.h"
|
| +#include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/core/v8/V8Binding.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class TestEnumOrDouble final {
|
| + ALLOW_ONLY_INLINE_ALLOCATION();
|
| +public:
|
| + TestEnumOrDouble();
|
| + bool isNull() const { return m_type == SpecificTypeNone; }
|
| +
|
| + bool isTestEnum() const { return m_type == SpecificTypeTestEnum; }
|
| + String getAsTestEnum() const;
|
| + void setTestEnum(String);
|
| + static TestEnumOrDouble fromTestEnum(String);
|
| +
|
| + bool isDouble() const { return m_type == SpecificTypeDouble; }
|
| + double getAsDouble() const;
|
| + void setDouble(double);
|
| + static TestEnumOrDouble fromDouble(double);
|
| +
|
| +private:
|
| + enum SpecificTypes {
|
| + SpecificTypeNone,
|
| + SpecificTypeTestEnum,
|
| + SpecificTypeDouble,
|
| + };
|
| + SpecificTypes m_type;
|
| +
|
| + String m_testEnum;
|
| + double m_double;
|
| +
|
| + friend v8::Local<v8::Value> toV8(const TestEnumOrDouble&, v8::Local<v8::Object>, v8::Isolate*);
|
| +};
|
| +
|
| +class V8TestEnumOrDouble final {
|
| +public:
|
| + static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestEnumOrDouble&, ExceptionState&);
|
| +};
|
| +
|
| +v8::Local<v8::Value> toV8(const TestEnumOrDouble&, v8::Local<v8::Object>, v8::Isolate*);
|
| +
|
| +template <class CallbackInfo>
|
| +inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEnumOrDouble& impl)
|
| +{
|
| + v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
|
| +}
|
| +
|
| +template <>
|
| +struct NativeValueTraits<TestEnumOrDouble> {
|
| + static TestEnumOrDouble nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionState&);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // TestEnumOrDouble_h
|
|
|