| Index: third_party/WebKit/Source/bindings/tests/results/modules/BooleanOrString.h
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/BooleanOrString.h b/third_party/WebKit/Source/bindings/tests/results/modules/BooleanOrString.h
|
| index bef5f4cb008fa991546e663383fb509821cbf79e..5e88b944a355b6559eaa81f82ecb99e1ae49ab7a 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/modules/BooleanOrString.h
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/modules/BooleanOrString.h
|
| @@ -17,59 +17,58 @@
|
| namespace blink {
|
|
|
| class MODULES_EXPORT BooleanOrString final {
|
| - DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
|
| -public:
|
| - BooleanOrString();
|
| - 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 isString() const { return m_type == SpecificTypeString; }
|
| - String getAsString() const;
|
| - void setString(String);
|
| - static BooleanOrString fromString(String);
|
| -
|
| - BooleanOrString(const BooleanOrString&);
|
| - ~BooleanOrString();
|
| - BooleanOrString& operator=(const BooleanOrString&);
|
| - DECLARE_TRACE();
|
| -
|
| -private:
|
| - enum SpecificTypes {
|
| - SpecificTypeNone,
|
| - SpecificTypeBoolean,
|
| - SpecificTypeString,
|
| - };
|
| - SpecificTypes m_type;
|
| -
|
| - bool m_boolean;
|
| - String m_string;
|
| -
|
| - friend MODULES_EXPORT v8::Local<v8::Value> toV8(const BooleanOrString&, v8::Local<v8::Object>, v8::Isolate*);
|
| + DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
|
| + public:
|
| + BooleanOrString();
|
| + 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 isString() const { return m_type == SpecificTypeString; }
|
| + String getAsString() const;
|
| + void setString(String);
|
| + static BooleanOrString fromString(String);
|
| +
|
| + BooleanOrString(const BooleanOrString&);
|
| + ~BooleanOrString();
|
| + BooleanOrString& operator=(const BooleanOrString&);
|
| + DECLARE_TRACE();
|
| +
|
| + private:
|
| + enum SpecificTypes {
|
| + SpecificTypeNone,
|
| + SpecificTypeBoolean,
|
| + SpecificTypeString,
|
| + };
|
| + SpecificTypes m_type;
|
| +
|
| + bool m_boolean;
|
| + String m_string;
|
| +
|
| + friend MODULES_EXPORT v8::Local<v8::Value> toV8(const BooleanOrString&, v8::Local<v8::Object>, v8::Isolate*);
|
| };
|
|
|
| class V8BooleanOrString final {
|
| -public:
|
| - MODULES_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, BooleanOrString&, UnionTypeConversionMode, ExceptionState&);
|
| + public:
|
| + MODULES_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, BooleanOrString&, UnionTypeConversionMode, ExceptionState&);
|
| };
|
|
|
| MODULES_EXPORT v8::Local<v8::Value> toV8(const BooleanOrString&, v8::Local<v8::Object>, v8::Isolate*);
|
|
|
| template <class CallbackInfo>
|
| -inline void v8SetReturnValue(const CallbackInfo& callbackInfo, BooleanOrString& impl)
|
| -{
|
| - v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
|
| +inline void v8SetReturnValue(const CallbackInfo& callbackInfo, BooleanOrString& 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&);
|
| + MODULES_EXPORT static BooleanOrString nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
|
| };
|
|
|
| -} // namespace blink
|
| +} // 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
|
| @@ -77,4 +76,4 @@ struct NativeValueTraits<BooleanOrString> {
|
| // See https://codereview.chromium.org/1118993002/#msg5 for more details.
|
| WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::BooleanOrString);
|
|
|
| -#endif // BooleanOrString_h
|
| +#endif // BooleanOrString_h
|
|
|