| Index: third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h b/third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h
|
| index d6c1c2899ab0aa5d84c0e17064510581ad3a5578..495bb9d7c80b488aca0dedbc2344dd6121fe1696 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h
|
| @@ -20,59 +20,58 @@ class TestInterfaceEmpty;
|
| class TestInterfaceImplementation;
|
|
|
| class CORE_EXPORT TestInterfaceOrTestInterfaceEmpty final {
|
| - DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
|
| -public:
|
| - TestInterfaceOrTestInterfaceEmpty();
|
| - bool isNull() const { return m_type == SpecificTypeNone; }
|
| -
|
| - bool isTestInterface() const { return m_type == SpecificTypeTestInterface; }
|
| - TestInterfaceImplementation* getAsTestInterface() const;
|
| - void setTestInterface(TestInterfaceImplementation*);
|
| - static TestInterfaceOrTestInterfaceEmpty fromTestInterface(TestInterfaceImplementation*);
|
| -
|
| - bool isTestInterfaceEmpty() const { return m_type == SpecificTypeTestInterfaceEmpty; }
|
| - TestInterfaceEmpty* getAsTestInterfaceEmpty() const;
|
| - void setTestInterfaceEmpty(TestInterfaceEmpty*);
|
| - static TestInterfaceOrTestInterfaceEmpty fromTestInterfaceEmpty(TestInterfaceEmpty*);
|
| -
|
| - TestInterfaceOrTestInterfaceEmpty(const TestInterfaceOrTestInterfaceEmpty&);
|
| - ~TestInterfaceOrTestInterfaceEmpty();
|
| - TestInterfaceOrTestInterfaceEmpty& operator=(const TestInterfaceOrTestInterfaceEmpty&);
|
| - DECLARE_TRACE();
|
| -
|
| -private:
|
| - enum SpecificTypes {
|
| - SpecificTypeNone,
|
| - SpecificTypeTestInterface,
|
| - SpecificTypeTestInterfaceEmpty,
|
| - };
|
| - SpecificTypes m_type;
|
| -
|
| - Member<TestInterfaceImplementation> m_testInterface;
|
| - Member<TestInterfaceEmpty> m_testInterfaceEmpty;
|
| -
|
| - friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&, v8::Local<v8::Object>, v8::Isolate*);
|
| + DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
|
| + public:
|
| + TestInterfaceOrTestInterfaceEmpty();
|
| + bool isNull() const { return m_type == SpecificTypeNone; }
|
| +
|
| + bool isTestInterface() const { return m_type == SpecificTypeTestInterface; }
|
| + TestInterfaceImplementation* getAsTestInterface() const;
|
| + void setTestInterface(TestInterfaceImplementation*);
|
| + static TestInterfaceOrTestInterfaceEmpty fromTestInterface(TestInterfaceImplementation*);
|
| +
|
| + bool isTestInterfaceEmpty() const { return m_type == SpecificTypeTestInterfaceEmpty; }
|
| + TestInterfaceEmpty* getAsTestInterfaceEmpty() const;
|
| + void setTestInterfaceEmpty(TestInterfaceEmpty*);
|
| + static TestInterfaceOrTestInterfaceEmpty fromTestInterfaceEmpty(TestInterfaceEmpty*);
|
| +
|
| + TestInterfaceOrTestInterfaceEmpty(const TestInterfaceOrTestInterfaceEmpty&);
|
| + ~TestInterfaceOrTestInterfaceEmpty();
|
| + TestInterfaceOrTestInterfaceEmpty& operator=(const TestInterfaceOrTestInterfaceEmpty&);
|
| + DECLARE_TRACE();
|
| +
|
| + private:
|
| + enum SpecificTypes {
|
| + SpecificTypeNone,
|
| + SpecificTypeTestInterface,
|
| + SpecificTypeTestInterfaceEmpty,
|
| + };
|
| + SpecificTypes m_type;
|
| +
|
| + Member<TestInterfaceImplementation> m_testInterface;
|
| + Member<TestInterfaceEmpty> m_testInterfaceEmpty;
|
| +
|
| + friend CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&, v8::Local<v8::Object>, v8::Isolate*);
|
| };
|
|
|
| class V8TestInterfaceOrTestInterfaceEmpty final {
|
| -public:
|
| - CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceOrTestInterfaceEmpty&, UnionTypeConversionMode, ExceptionState&);
|
| + public:
|
| + CORE_EXPORT static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceOrTestInterfaceEmpty&, UnionTypeConversionMode, ExceptionState&);
|
| };
|
|
|
| CORE_EXPORT v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&, v8::Local<v8::Object>, v8::Isolate*);
|
|
|
| template <class CallbackInfo>
|
| -inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceOrTestInterfaceEmpty& impl)
|
| -{
|
| - v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
|
| +inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterfaceOrTestInterfaceEmpty& impl) {
|
| + v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
|
| }
|
|
|
| template <>
|
| struct NativeValueTraits<TestInterfaceOrTestInterfaceEmpty> {
|
| - CORE_EXPORT static TestInterfaceOrTestInterfaceEmpty nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
|
| + CORE_EXPORT static TestInterfaceOrTestInterfaceEmpty 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
|
| @@ -80,4 +79,4 @@ struct NativeValueTraits<TestInterfaceOrTestInterfaceEmpty> {
|
| // See https://codereview.chromium.org/1118993002/#msg5 for more details.
|
| WTF_ALLOW_MOVE_AND_INIT_WITH_MEM_FUNCTIONS(blink::TestInterfaceOrTestInterfaceEmpty);
|
|
|
| -#endif // TestInterfaceOrTestInterfaceEmpty_h
|
| +#endif // TestInterfaceOrTestInterfaceEmpty_h
|
|
|