| Index: Source/bindings/tests/results/core/BooleanOrStringOrUnrestrictedDouble.h
|
| diff --git a/Source/bindings/tests/results/core/BooleanOrStringOrUnrestrictedDouble.h b/Source/bindings/tests/results/core/BooleanOrStringOrUnrestrictedDouble.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f6991545568859de3b5a781578eaa8363e300b33
|
| --- /dev/null
|
| +++ b/Source/bindings/tests/results/core/BooleanOrStringOrUnrestrictedDouble.h
|
| @@ -0,0 +1,74 @@
|
| +// 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 BooleanOrStringOrUnrestrictedDouble_h
|
| +#define BooleanOrStringOrUnrestrictedDouble_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 BooleanOrStringOrUnrestrictedDouble final {
|
| + ALLOW_ONLY_INLINE_ALLOCATION();
|
| +public:
|
| + BooleanOrStringOrUnrestrictedDouble();
|
| + bool isNull() const { return m_type == SpecificTypeNone; }
|
| +
|
| + bool isBoolean() const { return m_type == SpecificTypeBoolean; }
|
| + bool getAsBoolean() const;
|
| + void setBoolean(bool);
|
| + static BooleanOrStringOrUnrestrictedDouble fromBoolean(bool);
|
| +
|
| + bool isString() const { return m_type == SpecificTypeString; }
|
| + String getAsString() const;
|
| + void setString(String);
|
| + static BooleanOrStringOrUnrestrictedDouble fromString(String);
|
| +
|
| + bool isUnrestrictedDouble() const { return m_type == SpecificTypeUnrestrictedDouble; }
|
| + double getAsUnrestrictedDouble() const;
|
| + void setUnrestrictedDouble(double);
|
| + static BooleanOrStringOrUnrestrictedDouble fromUnrestrictedDouble(double);
|
| +
|
| +private:
|
| + enum SpecificTypes {
|
| + SpecificTypeNone,
|
| + SpecificTypeBoolean,
|
| + SpecificTypeString,
|
| + SpecificTypeUnrestrictedDouble,
|
| + };
|
| + SpecificTypes m_type;
|
| +
|
| + bool m_boolean;
|
| + String m_string;
|
| + double m_unrestrictedDouble;
|
| +
|
| + friend v8::Local<v8::Value> toV8(const BooleanOrStringOrUnrestrictedDouble&, v8::Local<v8::Object>, v8::Isolate*);
|
| +};
|
| +
|
| +class V8BooleanOrStringOrUnrestrictedDouble final {
|
| +public:
|
| + static void toImpl(v8::Isolate*, v8::Local<v8::Value>, BooleanOrStringOrUnrestrictedDouble&, ExceptionState&);
|
| +};
|
| +
|
| +v8::Local<v8::Value> toV8(const BooleanOrStringOrUnrestrictedDouble&, v8::Local<v8::Object>, v8::Isolate*);
|
| +
|
| +template <class CallbackInfo>
|
| +inline void v8SetReturnValue(const CallbackInfo& callbackInfo, BooleanOrStringOrUnrestrictedDouble& impl)
|
| +{
|
| + v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
|
| +}
|
| +
|
| +template <>
|
| +struct NativeValueTraits<BooleanOrStringOrUnrestrictedDouble> {
|
| + static BooleanOrStringOrUnrestrictedDouble nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionState&);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // BooleanOrStringOrUnrestrictedDouble_h
|
|
|