Index: Source/bindings/tests/results/core/NodeOrNodeList.h |
diff --git a/Source/bindings/tests/results/core/NodeOrNodeList.h b/Source/bindings/tests/results/core/NodeOrNodeList.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b2efbbf30ad34daf929b31627b479f794fb475b6 |
--- /dev/null |
+++ b/Source/bindings/tests/results/core/NodeOrNodeList.h |
@@ -0,0 +1,75 @@ |
+// 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 NodeOrNodeList_h |
+#define NodeOrNodeList_h |
+ |
+#include "bindings/core/v8/Dictionary.h" |
+#include "bindings/core/v8/ExceptionState.h" |
+#include "bindings/core/v8/V8Binding.h" |
+#include "bindings/core/v8/V8Node.h" |
+#include "bindings/core/v8/V8NodeList.h" |
+#include "core/dom/NameNodeList.h" |
+#include "core/dom/NodeList.h" |
+#include "core/dom/StaticNodeList.h" |
+#include "core/html/LabelsNodeList.h" |
+#include "platform/heap/Handle.h" |
+ |
+namespace blink { |
+ |
+class NodeOrNodeList final { |
+ ALLOW_ONLY_INLINE_ALLOCATION(); |
+public: |
+ NodeOrNodeList(); |
+ bool isNull() const { return m_type == SpecificTypeNone; } |
+ |
+ bool isNode() const { return m_type == SpecificTypeNode; } |
+ PassRefPtrWillBeRawPtr<Node> getAsNode() const; |
+ void setNode(PassRefPtrWillBeRawPtr<Node>); |
+ static NodeOrNodeList fromNode(PassRefPtrWillBeRawPtr<Node>); |
+ |
+ bool isNodeList() const { return m_type == SpecificTypeNodeList; } |
+ PassRefPtrWillBeRawPtr<NodeList> getAsNodeList() const; |
+ void setNodeList(PassRefPtrWillBeRawPtr<NodeList>); |
+ static NodeOrNodeList fromNodeList(PassRefPtrWillBeRawPtr<NodeList>); |
+ |
+ DECLARE_TRACE(); |
+ |
+private: |
+ enum SpecificTypes { |
+ SpecificTypeNone, |
+ SpecificTypeNode, |
+ SpecificTypeNodeList, |
+ }; |
+ SpecificTypes m_type; |
+ |
+ RefPtrWillBeMember<Node> m_node; |
+ RefPtrWillBeMember<NodeList> m_nodeList; |
+ |
+ friend v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object>, v8::Isolate*); |
+}; |
+ |
+class V8NodeOrNodeList final { |
+public: |
+ static void toImpl(v8::Isolate*, v8::Local<v8::Value>, NodeOrNodeList&, ExceptionState&); |
+}; |
+ |
+v8::Local<v8::Value> toV8(const NodeOrNodeList&, v8::Local<v8::Object>, v8::Isolate*); |
+ |
+template <class CallbackInfo> |
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, NodeOrNodeList& impl) |
+{ |
+ v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); |
+} |
+ |
+template <> |
+struct NativeValueTraits<NodeOrNodeList> { |
+ static NodeOrNodeList nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionState&); |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // NodeOrNodeList_h |