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 DOMDataView_h | 5 #ifndef DOMDataView_h |
6 #define DOMDataView_h | 6 #define DOMDataView_h |
7 | 7 |
| 8 #include "core/CoreExport.h" |
8 #include "core/dom/DOMArrayBufferView.h" | 9 #include "core/dom/DOMArrayBufferView.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 class DOMDataView final : public DOMArrayBufferView { | 13 class CORE_EXPORT DOMDataView final : public DOMArrayBufferView { |
13 DEFINE_WRAPPERTYPEINFO(); | 14 DEFINE_WRAPPERTYPEINFO(); |
14 public: | 15 public: |
15 typedef char ValueType; | 16 typedef char ValueType; |
16 | 17 |
17 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBufferBase>, unsign
ed byteOffset, unsigned byteLength); | 18 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBufferBase>, unsign
ed byteOffset, unsigned byteLength); |
18 | 19 |
19 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte
xt) override; | 20 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte
xt) override; |
20 | 21 |
21 private: | 22 private: |
22 DOMDataView(PassRefPtr<WTF::ArrayBufferView> dataView, PassRefPtr<DOMArrayBu
fferBase> domArrayBuffer) | 23 DOMDataView(PassRefPtr<WTF::ArrayBufferView> dataView, PassRefPtr<DOMArrayBu
fferBase> domArrayBuffer) |
23 : DOMArrayBufferView(dataView, domArrayBuffer) { } | 24 : DOMArrayBufferView(dataView, domArrayBuffer) { } |
24 }; | 25 }; |
25 | 26 |
26 } // namespace blink | 27 } // namespace blink |
27 | 28 |
28 #endif // DOMDataView_h | 29 #endif // DOMDataView_h |
OLD | NEW |