| 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 DOMArrayBufferView_h | 5 #ifndef DOMArrayBufferView_h |
| 6 #define DOMArrayBufferView_h | 6 #define DOMArrayBufferView_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 10 #include "core/dom/DOMArrayBuffer.h" | 10 #include "core/dom/DOMArrayBuffer.h" |
| 11 #include "core/dom/DOMSharedArrayBuffer.h" | 11 #include "core/dom/DOMSharedArrayBuffer.h" |
| 12 #include "wtf/ArrayBufferView.h" | 12 #include "wtf/typed_arrays/ArrayBufferView.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class CORE_EXPORT DOMArrayBufferView : public GarbageCollectedFinalized<DOMArray
BufferView>, public ScriptWrappable { | 16 class CORE_EXPORT DOMArrayBufferView : public GarbageCollectedFinalized<DOMArray
BufferView>, public ScriptWrappable { |
| 17 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
| 18 public: | 18 public: |
| 19 typedef WTF::ArrayBufferView::ViewType ViewType; | 19 typedef WTF::ArrayBufferView::ViewType ViewType; |
| 20 static const ViewType TypeInt8 = WTF::ArrayBufferView::TypeInt8; | 20 static const ViewType TypeInt8 = WTF::ArrayBufferView::TypeInt8; |
| 21 static const ViewType TypeUint8 = WTF::ArrayBufferView::TypeUint8; | 21 static const ViewType TypeUint8 = WTF::ArrayBufferView::TypeUint8; |
| 22 static const ViewType TypeUint8Clamped = WTF::ArrayBufferView::TypeUint8Clam
ped; | 22 static const ViewType TypeUint8Clamped = WTF::ArrayBufferView::TypeUint8Clam
ped; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 private: | 96 private: |
| 97 RefPtr<WTF::ArrayBufferView> m_bufferView; | 97 RefPtr<WTF::ArrayBufferView> m_bufferView; |
| 98 mutable Member<DOMArrayBufferBase> m_domArrayBuffer; | 98 mutable Member<DOMArrayBufferBase> m_domArrayBuffer; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 } // namespace blink | 101 } // namespace blink |
| 102 | 102 |
| 103 #endif // DOMArrayBufferView_h | 103 #endif // DOMArrayBufferView_h |
| OLD | NEW |