OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef DOMTypedArray_h | 5 #ifndef DOMTypedArray_h |
6 #define DOMTypedArray_h | 6 #define DOMTypedArray_h |
7 | 7 |
| 8 #include <v8.h> |
8 #include "bindings/core/v8/ScriptWrappable.h" | 9 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "core/CoreExport.h" | 10 #include "core/CoreExport.h" |
10 #include "core/dom/DOMArrayBufferView.h" | 11 #include "core/dom/DOMArrayBufferView.h" |
11 #include "core/dom/DOMSharedArrayBuffer.h" | 12 #include "core/dom/DOMSharedArrayBuffer.h" |
12 #include "wtf/typed_arrays/Float32Array.h" | 13 #include "wtf/typed_arrays/Float32Array.h" |
13 #include "wtf/typed_arrays/Float64Array.h" | 14 #include "wtf/typed_arrays/Float64Array.h" |
14 #include "wtf/typed_arrays/Int16Array.h" | 15 #include "wtf/typed_arrays/Int16Array.h" |
15 #include "wtf/typed_arrays/Int32Array.h" | 16 #include "wtf/typed_arrays/Int32Array.h" |
16 #include "wtf/typed_arrays/Int8Array.h" | 17 #include "wtf/typed_arrays/Int8Array.h" |
17 #include "wtf/typed_arrays/Uint16Array.h" | 18 #include "wtf/typed_arrays/Uint16Array.h" |
18 #include "wtf/typed_arrays/Uint32Array.h" | 19 #include "wtf/typed_arrays/Uint32Array.h" |
19 #include "wtf/typed_arrays/Uint8Array.h" | 20 #include "wtf/typed_arrays/Uint8Array.h" |
20 #include "wtf/typed_arrays/Uint8ClampedArray.h" | 21 #include "wtf/typed_arrays/Uint8ClampedArray.h" |
21 #include <v8.h> | |
22 | 22 |
23 namespace blink { | 23 namespace blink { |
24 | 24 |
25 template <typename WTFTypedArray, typename V8TypedArray> | 25 template <typename WTFTypedArray, typename V8TypedArray> |
26 class CORE_TEMPLATE_CLASS_EXPORT DOMTypedArray final | 26 class CORE_TEMPLATE_CLASS_EXPORT DOMTypedArray final |
27 : public DOMArrayBufferView { | 27 : public DOMArrayBufferView { |
28 typedef DOMTypedArray<WTFTypedArray, V8TypedArray> ThisType; | 28 typedef DOMTypedArray<WTFTypedArray, V8TypedArray> ThisType; |
29 DECLARE_WRAPPERTYPEINFO(); | 29 DECLARE_WRAPPERTYPEINFO(); |
30 | 30 |
31 public: | 31 public: |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 typedef DOMTypedArray<WTF::Uint8ClampedArray, v8::Uint8ClampedArray> | 109 typedef DOMTypedArray<WTF::Uint8ClampedArray, v8::Uint8ClampedArray> |
110 DOMUint8ClampedArray; | 110 DOMUint8ClampedArray; |
111 typedef DOMTypedArray<WTF::Uint16Array, v8::Uint16Array> DOMUint16Array; | 111 typedef DOMTypedArray<WTF::Uint16Array, v8::Uint16Array> DOMUint16Array; |
112 typedef DOMTypedArray<WTF::Uint32Array, v8::Uint32Array> DOMUint32Array; | 112 typedef DOMTypedArray<WTF::Uint32Array, v8::Uint32Array> DOMUint32Array; |
113 typedef DOMTypedArray<WTF::Float32Array, v8::Float32Array> DOMFloat32Array; | 113 typedef DOMTypedArray<WTF::Float32Array, v8::Float32Array> DOMFloat32Array; |
114 typedef DOMTypedArray<WTF::Float64Array, v8::Float64Array> DOMFloat64Array; | 114 typedef DOMTypedArray<WTF::Float64Array, v8::Float64Array> DOMFloat64Array; |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // DOMTypedArray_h | 118 #endif // DOMTypedArray_h |
OLD | NEW |