Index: third_party/WebKit/Source/bindings/tests/results/core/BooleanOrStringOrUnrestrictedDouble.h |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/BooleanOrStringOrUnrestrictedDouble.h b/third_party/WebKit/Source/bindings/tests/results/core/BooleanOrStringOrUnrestrictedDouble.h |
deleted file mode 100644 |
index 554827e4b51c2c6a563f68bbc3bcb176063a14dc..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/BooleanOrStringOrUnrestrictedDouble.h |
+++ /dev/null |
@@ -1,87 +0,0 @@ |
-// Copyright 2014 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 "core/CoreExport.h" |
-#include "platform/heap/Handle.h" |
- |
-namespace blink { |
- |
- |
-class CORE_EXPORT BooleanOrStringOrUnrestrictedDouble final { |
- DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
-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); |
- |
- BooleanOrStringOrUnrestrictedDouble(const BooleanOrStringOrUnrestrictedDouble&); |
- ~BooleanOrStringOrUnrestrictedDouble(); |
- BooleanOrStringOrUnrestrictedDouble& operator=(const BooleanOrStringOrUnrestrictedDouble&); |
- DECLARE_TRACE(); |
- |
-private: |
- enum SpecificTypes { |
- SpecificTypeNone, |
- SpecificTypeBoolean, |
- SpecificTypeString, |
- SpecificTypeUnrestrictedDouble, |
- }; |
- SpecificTypes m_type; |
- |
- bool m_boolean; |
- String m_string; |
- double m_unrestrictedDouble; |
- |
- friend CORE_EXPORT v8::Local<v8::Value> toV8(const BooleanOrStringOrUnrestrictedDouble&, v8::Local<v8::Object>, v8::Isolate*); |
-}; |
- |
-class V8BooleanOrStringOrUnrestrictedDouble final { |
-public: |
- CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, BooleanOrStringOrUnrestrictedDouble&, UnionTypeConversionMode, ExceptionState&); |
-}; |
- |
-CORE_EXPORT 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> { |
- CORE_EXPORT static BooleanOrStringOrUnrestrictedDouble nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&); |
-}; |
- |
-} // namespace blink |
- |
-// We need to set canInitializeWithMemset=true because HeapVector supports |
-// items that can initialize with memset or have a vtable. It is safe to |
-// set canInitializeWithMemset=true for a union type object in practice. |
-// See https://codereview.chromium.org/1118993002/#msg5 for more details. |
-WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::BooleanOrStringOrUnrestrictedDouble); |
- |
-#endif // BooleanOrStringOrUnrestrictedDouble_h |