Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / Source / core / dom / DOMDataView.h
blob7e5d4b1aa2099d9e503c9230095d4798bd64bf04
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
3 // found in the LICENSE file.
5 #ifndef DOMDataView_h
6 #define DOMDataView_h
8 #include "core/dom/DOMArrayBufferView.h"
10 namespace blink {
12 class DOMDataView final : public DOMArrayBufferView {
13 DEFINE_WRAPPERTYPEINFO();
14 public:
15 typedef char ValueType;
17 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBufferBase>, unsigned byteOffset, unsigned byteLength);
19 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationContext) override;
21 private:
22 DOMDataView(PassRefPtr<WTF::ArrayBufferView> dataView, PassRefPtr<DOMArrayBufferBase> domArrayBuffer)
23 : DOMArrayBufferView(dataView, domArrayBuffer) { }
26 } // namespace blink
28 #endif // DOMDataView_h