Index: Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h |
diff --git a/Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h b/Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..24387f0c82d603d8e59e6259ad7789f8a5f2b784 |
--- /dev/null |
+++ b/Source/bindings/tests/results/core/TestInterfaceOrTestInterfaceEmpty.h |
@@ -0,0 +1,73 @@ |
+// 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 TestInterfaceOrTestInterfaceEmpty_h |
+#define TestInterfaceOrTestInterfaceEmpty_h |
+ |
+#include "bindings/core/v8/Dictionary.h" |
+#include "bindings/core/v8/ExceptionState.h" |
+#include "bindings/core/v8/V8Binding.h" |
+#include "bindings/core/v8/V8TestInterface.h" |
+#include "bindings/core/v8/V8TestInterfaceEmpty.h" |
+#include "bindings/tests/idls/core/TestImplements2.h" |
+#include "bindings/tests/idls/core/TestImplements3Implementation.h" |
+#include "bindings/tests/idls/core/TestPartialInterface.h" |
+#include "bindings/tests/idls/core/TestPartialInterfaceImplementation.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace blink { |
+ |
+class TestInterfaceOrTestInterfaceEmpty final { |
+ ALLOW_ONLY_INLINE_ALLOCATION(); |
+public: |
+ TestInterfaceOrTestInterfaceEmpty(); |
+ bool isNull() const { return m_type == SpecificTypeNone; } |
+ |
+ bool isTestInterface() const { return m_type == SpecificTypeTestInterface; } |
+ PassRefPtr<TestInterfaceImplementation> getAsTestInterface() const; |
+ void setTestInterface(PassRefPtr<TestInterfaceImplementation>); |
+ static TestInterfaceOrTestInterfaceEmpty fromTestInterface(PassRefPtr<TestInterfaceImplementation>); |
+ |
+ bool isTestInterfaceEmpty() const { return m_type == SpecificTypeTestInterfaceEmpty; } |
+ PassRefPtr<TestInterfaceEmpty> getAsTestInterfaceEmpty() const; |
+ void setTestInterfaceEmpty(PassRefPtr<TestInterfaceEmpty>); |
+ static TestInterfaceOrTestInterfaceEmpty fromTestInterfaceEmpty(PassRefPtr<TestInterfaceEmpty>); |
+ |
+private: |
+ enum SpecificTypes { |
+ SpecificTypeNone, |
+ SpecificTypeTestInterface, |
+ SpecificTypeTestInterfaceEmpty, |
+ }; |
+ SpecificTypes m_type; |
+ |
+ RefPtr<TestInterfaceImplementation> m_testInterface; |
+ RefPtr<TestInterfaceEmpty> m_testInterfaceEmpty; |
+ |
+ friend v8::Local<v8::Value> toV8(const TestInterfaceOrTestInterfaceEmpty&, v8::Local<v8::Object>, v8::Isolate*); |
+}; |
+ |
+class V8TestInterfaceOrTestInterfaceEmpty final { |
+public: |
+ static void toImpl(v8::Isolate*, v8::Local<v8::Value>, TestInterfaceOrTestInterfaceEmpty&, ExceptionState&); |
+}; |
+ |
+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())); |
+} |
+ |
+template <> |
+struct NativeValueTraits<TestInterfaceOrTestInterfaceEmpty> { |
+ static TestInterfaceOrTestInterfaceEmpty nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionState&); |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // TestInterfaceOrTestInterfaceEmpty_h |