| Index: Source/bindings/tests/results/core/V8Uint8ClampedArray.cpp
|
| diff --git a/Source/bindings/tests/results/core/V8Uint8ClampedArray.cpp b/Source/bindings/tests/results/core/V8Uint8ClampedArray.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c54eb5a24524eaaba730fe216a6dee73d6540544
|
| --- /dev/null
|
| +++ b/Source/bindings/tests/results/core/V8Uint8ClampedArray.cpp
|
| @@ -0,0 +1,72 @@
|
| +// Copyright 2014 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!
|
| +
|
| +#include "config.h"
|
| +#include "V8Uint8ClampedArray.h"
|
| +
|
| +#include "bindings/core/v8/ExceptionState.h"
|
| +#include "bindings/core/v8/V8ArrayBuffer.h"
|
| +#include "bindings/core/v8/V8DOMConfiguration.h"
|
| +#include "bindings/core/v8/V8HiddenValue.h"
|
| +#include "bindings/core/v8/V8ObjectConstructor.h"
|
| +#include "core/dom/ContextFeatures.h"
|
| +#include "core/dom/Document.h"
|
| +#include "platform/RuntimeEnabledFeatures.h"
|
| +#include "platform/TraceEvent.h"
|
| +#include "wtf/GetPtr.h"
|
| +#include "wtf/RefPtr.h"
|
| +
|
| +namespace blink {
|
| +
|
| +const WrapperTypeInfo V8Uint8ClampedArray::wrapperTypeInfo = { gin::kEmbedderBlink, 0, V8Uint8ClampedArray::refObject, V8Uint8ClampedArray::derefObject, V8Uint8ClampedArray::trace, 0, 0, 0, V8Uint8ClampedArray::installConditionallyEnabledMethods, V8Uint8ClampedArray::installConditionallyEnabledProperties, &V8ArrayBufferView::wrapperTypeInfo, WrapperTypeInfo::WrapperTypeObjectPrototype, WrapperTypeInfo::ObjectClassId, WrapperTypeInfo::Independent, WrapperTypeInfo::RefCountedObject };
|
| +
|
| +// This static member must be declared by DEFINE_WRAPPERTYPEINFO in TestUint8ClampedArray.h.
|
| +// For details, see the comment of DEFINE_WRAPPERTYPEINFO in
|
| +// bindings/core/v8/ScriptWrappable.h.
|
| +template<>
|
| +const WrapperTypeInfo& TestUint8ClampedArray::s_wrapperTypeInfo = V8Uint8ClampedArray::wrapperTypeInfo;
|
| +
|
| +bool V8Uint8ClampedArray::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate)
|
| +{
|
| + return v8Value->IsUint8ClampedArray();
|
| +}
|
| +
|
| +TestUint8ClampedArray* V8Uint8ClampedArray::toImpl(v8::Handle<v8::Object> object)
|
| +{
|
| + ASSERT(object->IsUint8ClampedArray());
|
| + ScriptWrappableBase* internalPointer = blink::toScriptWrappableBase(object);
|
| + if (internalPointer)
|
| + return internalPointer->toImpl<TestUint8ClampedArray>();
|
| +
|
| + v8::Handle<v8::Uint8ClampedArray> v8View = object.As<v8::Uint8ClampedArray>();
|
| + RefPtr<TestUint8ClampedArray> typedArray = TestUint8ClampedArray::create(V8ArrayBuffer::toImpl(v8View->Buffer()), v8View->ByteOffset(), v8View->Length());
|
| + typedArray->associateWithWrapper(typedArray->wrapperTypeInfo(), object, v8::Isolate::GetCurrent());
|
| +
|
| + return typedArray->toImpl<TestUint8ClampedArray>();
|
| +}
|
| +
|
| +TestUint8ClampedArray* V8Uint8ClampedArray::toImplWithTypeCheck(v8::Isolate* isolate, v8::Handle<v8::Value> value)
|
| +{
|
| + return hasInstance(value, isolate) ? toImpl(v8::Handle<v8::Object>::Cast(value)) : 0;
|
| +}
|
| +
|
| +void V8Uint8ClampedArray::refObject(ScriptWrappableBase* internalPointer)
|
| +{
|
| + internalPointer->toImpl<TestUint8ClampedArray>()->ref();
|
| +}
|
| +
|
| +void V8Uint8ClampedArray::derefObject(ScriptWrappableBase* internalPointer)
|
| +{
|
| + internalPointer->toImpl<TestUint8ClampedArray>()->deref();
|
| +}
|
| +
|
| +template<>
|
| +v8::Handle<v8::Value> toV8NoInline(TestUint8ClampedArray* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| +{
|
| + return toV8(impl, creationContext, isolate);
|
| +}
|
| +
|
| +} // namespace blink
|
|
|