| 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/dom/DOMArrayBuffer.h" | 10 #include "core/dom/DOMArrayBuffer.h" |
| 10 #include "wtf/ArrayBufferView.h" | 11 #include "wtf/ArrayBufferView.h" |
| 11 #include "wtf/RefCounted.h" | 12 #include "wtf/RefCounted.h" |
| 12 | 13 |
| 13 namespace blink { | 14 namespace blink { |
| 14 | 15 |
| 15 class DOMArrayBufferView : public RefCounted<DOMArrayBufferView>, public ScriptW
rappable { | 16 class CORE_EXPORT DOMArrayBufferView : public RefCounted<DOMArrayBufferView>, pu
blic ScriptWrappable { |
| 16 DEFINE_WRAPPERTYPEINFO(); | 17 DEFINE_WRAPPERTYPEINFO(); |
| 17 public: | 18 public: |
| 18 typedef WTF::ArrayBufferView::ViewType ViewType; | 19 typedef WTF::ArrayBufferView::ViewType ViewType; |
| 19 static const ViewType TypeInt8 = WTF::ArrayBufferView::TypeInt8; | 20 static const ViewType TypeInt8 = WTF::ArrayBufferView::TypeInt8; |
| 20 static const ViewType TypeUint8 = WTF::ArrayBufferView::TypeUint8; | 21 static const ViewType TypeUint8 = WTF::ArrayBufferView::TypeUint8; |
| 21 static const ViewType TypeUint8Clamped = WTF::ArrayBufferView::TypeUint8Clam
ped; | 22 static const ViewType TypeUint8Clamped = WTF::ArrayBufferView::TypeUint8Clam
ped; |
| 22 static const ViewType TypeInt16 = WTF::ArrayBufferView::TypeInt16; | 23 static const ViewType TypeInt16 = WTF::ArrayBufferView::TypeInt16; |
| 23 static const ViewType TypeUint16 = WTF::ArrayBufferView::TypeUint16; | 24 static const ViewType TypeUint16 = WTF::ArrayBufferView::TypeUint16; |
| 24 static const ViewType TypeInt32 = WTF::ArrayBufferView::TypeInt32; | 25 static const ViewType TypeInt32 = WTF::ArrayBufferView::TypeInt32; |
| 25 static const ViewType TypeUint32 = WTF::ArrayBufferView::TypeUint32; | 26 static const ViewType TypeUint32 = WTF::ArrayBufferView::TypeUint32; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 } | 73 } |
| 73 | 74 |
| 74 private: | 75 private: |
| 75 RefPtr<WTF::ArrayBufferView> m_bufferView; | 76 RefPtr<WTF::ArrayBufferView> m_bufferView; |
| 76 mutable RefPtr<DOMArrayBuffer> m_domArrayBuffer; | 77 mutable RefPtr<DOMArrayBuffer> m_domArrayBuffer; |
| 77 }; | 78 }; |
| 78 | 79 |
| 79 } // namespace blink | 80 } // namespace blink |
| 80 | 81 |
| 81 #endif // DOMArrayBufferView_h | 82 #endif // DOMArrayBufferView_h |
| OLD | NEW |