Index: third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.h |
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/UnionTypesModules.h b/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.h |
similarity index 50% |
copy from third_party/WebKit/Source/bindings/tests/results/modules/UnionTypesModules.h |
copy to third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.h |
index 519ceb52991b0436ebf42dc608ec719596b0871d..5412c36fd5a7313444ab09f59c1fd09899d5cd0c 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/modules/UnionTypesModules.h |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/DoubleOrString.h |
@@ -4,70 +4,69 @@ |
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
-#ifndef UnionTypeModules_h |
-#define UnionTypeModules_h |
+#ifndef DoubleOrString_h |
+#define DoubleOrString_h |
#include "bindings/core/v8/Dictionary.h" |
#include "bindings/core/v8/ExceptionState.h" |
-#include "bindings/core/v8/UnionTypesCore.h" |
#include "bindings/core/v8/V8Binding.h" |
-#include "modules/ModulesExport.h" |
+#include "core/CoreExport.h" |
#include "platform/heap/Handle.h" |
namespace blink { |
-class MODULES_EXPORT BooleanOrString final { |
+class CORE_EXPORT DoubleOrString final { |
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
public: |
- BooleanOrString(); |
+ DoubleOrString(); |
bool isNull() const { return m_type == SpecificTypeNone; } |
- bool isBoolean() const { return m_type == SpecificTypeBoolean; } |
- bool getAsBoolean() const; |
- void setBoolean(bool); |
- static BooleanOrString fromBoolean(bool); |
+ bool isDouble() const { return m_type == SpecificTypeDouble; } |
+ double getAsDouble() const; |
+ void setDouble(double); |
+ static DoubleOrString fromDouble(double); |
bool isString() const { return m_type == SpecificTypeString; } |
String getAsString() const; |
void setString(String); |
- static BooleanOrString fromString(String); |
+ static DoubleOrString fromString(String); |
- BooleanOrString(const BooleanOrString&); |
- ~BooleanOrString(); |
- BooleanOrString& operator=(const BooleanOrString&); |
+ DoubleOrString(const DoubleOrString&); |
+ ~DoubleOrString(); |
+ DoubleOrString& operator=(const DoubleOrString&); |
DECLARE_TRACE(); |
private: |
enum SpecificTypes { |
SpecificTypeNone, |
- SpecificTypeBoolean, |
+ SpecificTypeDouble, |
SpecificTypeString, |
}; |
SpecificTypes m_type; |
- bool m_boolean; |
+ double m_double; |
String m_string; |
- friend MODULES_EXPORT v8::Local<v8::Value> toV8(const BooleanOrString&, v8::Local<v8::Object>, v8::Isolate*); |
+ friend CORE_EXPORT v8::Local<v8::Value> toV8(const DoubleOrString&, v8::Local<v8::Object>, v8::Isolate*); |
}; |
-class V8BooleanOrString final { |
+class V8DoubleOrString final { |
public: |
- MODULES_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, BooleanOrString&, UnionTypeConversionMode, ExceptionState&); |
+ CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, DoubleOrString&, UnionTypeConversionMode, ExceptionState&); |
}; |
-MODULES_EXPORT v8::Local<v8::Value> toV8(const BooleanOrString&, v8::Local<v8::Object>, v8::Isolate*); |
+CORE_EXPORT v8::Local<v8::Value> toV8(const DoubleOrString&, v8::Local<v8::Object>, v8::Isolate*); |
template <class CallbackInfo> |
-inline void v8SetReturnValue(const CallbackInfo& callbackInfo, BooleanOrString& impl) |
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, DoubleOrString& impl) |
{ |
v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); |
} |
template <> |
-struct NativeValueTraits<BooleanOrString> { |
- MODULES_EXPORT static BooleanOrString nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&); |
+struct NativeValueTraits<DoubleOrString> { |
+ CORE_EXPORT static DoubleOrString nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&); |
}; |
} // namespace blink |
@@ -76,6 +75,6 @@ struct NativeValueTraits<BooleanOrString> { |
// 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::BooleanOrString); |
+WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::DoubleOrString); |
-#endif // UnionTypeModules_h |
+#endif // DoubleOrString_h |