| Index: Source/bindings/tests/results/core/ArrayBufferOrArrayBufferViewOrDictionary.h
|
| diff --git a/Source/bindings/tests/results/core/ArrayBufferOrArrayBufferViewOrDictionary.h b/Source/bindings/tests/results/core/ArrayBufferOrArrayBufferViewOrDictionary.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..aa72bcde5093bfcdefab11123d78dec9d63f7e16
|
| --- /dev/null
|
| +++ b/Source/bindings/tests/results/core/ArrayBufferOrArrayBufferViewOrDictionary.h
|
| @@ -0,0 +1,76 @@
|
| +// 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 ArrayBufferOrArrayBufferViewOrDictionary_h
|
| +#define ArrayBufferOrArrayBufferViewOrDictionary_h
|
| +
|
| +#include "bindings/core/v8/Dictionary.h"
|
| +#include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/core/v8/V8ArrayBuffer.h"
|
| +#include "bindings/core/v8/V8ArrayBufferView.h"
|
| +#include "bindings/core/v8/V8Binding.h"
|
| +#include "platform/heap/Handle.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class ArrayBufferOrArrayBufferViewOrDictionary final {
|
| + ALLOW_ONLY_INLINE_ALLOCATION();
|
| +public:
|
| + ArrayBufferOrArrayBufferViewOrDictionary();
|
| + bool isNull() const { return m_type == SpecificTypeNone; }
|
| +
|
| + bool isArrayBuffer() const { return m_type == SpecificTypeArrayBuffer; }
|
| + PassRefPtr<TestArrayBuffer> getAsArrayBuffer() const;
|
| + void setArrayBuffer(PassRefPtr<TestArrayBuffer>);
|
| + static ArrayBufferOrArrayBufferViewOrDictionary fromArrayBuffer(PassRefPtr<TestArrayBuffer>);
|
| +
|
| + bool isArrayBufferView() const { return m_type == SpecificTypeArrayBufferView; }
|
| + PassRefPtr<TestArrayBufferView> getAsArrayBufferView() const;
|
| + void setArrayBufferView(PassRefPtr<TestArrayBufferView>);
|
| + static ArrayBufferOrArrayBufferViewOrDictionary fromArrayBufferView(PassRefPtr<TestArrayBufferView>);
|
| +
|
| + bool isDictionary() const { return m_type == SpecificTypeDictionary; }
|
| + Dictionary getAsDictionary() const;
|
| + void setDictionary(Dictionary);
|
| + static ArrayBufferOrArrayBufferViewOrDictionary fromDictionary(Dictionary);
|
| +
|
| +private:
|
| + enum SpecificTypes {
|
| + SpecificTypeNone,
|
| + SpecificTypeArrayBuffer,
|
| + SpecificTypeArrayBufferView,
|
| + SpecificTypeDictionary,
|
| + };
|
| + SpecificTypes m_type;
|
| +
|
| + RefPtr<TestArrayBuffer> m_arrayBuffer;
|
| + RefPtr<TestArrayBufferView> m_arrayBufferView;
|
| + Dictionary m_dictionary;
|
| +
|
| + friend v8::Local<v8::Value> toV8(const ArrayBufferOrArrayBufferViewOrDictionary&, v8::Local<v8::Object>, v8::Isolate*);
|
| +};
|
| +
|
| +class V8ArrayBufferOrArrayBufferViewOrDictionary final {
|
| +public:
|
| + static void toImpl(v8::Isolate*, v8::Local<v8::Value>, ArrayBufferOrArrayBufferViewOrDictionary&, ExceptionState&);
|
| +};
|
| +
|
| +v8::Local<v8::Value> toV8(const ArrayBufferOrArrayBufferViewOrDictionary&, v8::Local<v8::Object>, v8::Isolate*);
|
| +
|
| +template <class CallbackInfo>
|
| +inline void v8SetReturnValue(const CallbackInfo& callbackInfo, ArrayBufferOrArrayBufferViewOrDictionary& impl)
|
| +{
|
| + v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate()));
|
| +}
|
| +
|
| +template <>
|
| +struct NativeValueTraits<ArrayBufferOrArrayBufferViewOrDictionary> {
|
| + static ArrayBufferOrArrayBufferViewOrDictionary nativeValue(const v8::Local<v8::Value>&, v8::Isolate*, ExceptionState&);
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // ArrayBufferOrArrayBufferViewOrDictionary_h
|
|
|