summaryrefslogtreecommitdiff
path: root/Source/WTF/wtf/ArrayBufferView.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-07-30 11:37:48 +0200
committerSimon Hausmann <simon.hausmann@nokia.com>2012-07-30 11:38:52 +0200
commit89e2486a48b739f8d771d69ede5a6a1b244a10fc (patch)
tree503b1a7812cf97d93704c32437eb5f62dc1a1ff9 /Source/WTF/wtf/ArrayBufferView.h
parent625f028249cb37c55bbbd153f3902afd0b0756d9 (diff)
downloadqtwebkit-89e2486a48b739f8d771d69ede5a6a1b244a10fc.tar.gz
Imported WebKit commit 0282df8ca7c11d8c8a66ea18543695c69f545a27 (http://svn.webkit.org/repository/webkit/trunk@124002)
New snapshot with prospective Mountain Lion build fix
Diffstat (limited to 'Source/WTF/wtf/ArrayBufferView.h')
-rw-r--r--Source/WTF/wtf/ArrayBufferView.h23
1 files changed, 13 insertions, 10 deletions
diff --git a/Source/WTF/wtf/ArrayBufferView.h b/Source/WTF/wtf/ArrayBufferView.h
index 5ef482908..451c1b6ed 100644
--- a/Source/WTF/wtf/ArrayBufferView.h
+++ b/Source/WTF/wtf/ArrayBufferView.h
@@ -38,16 +38,19 @@ namespace WTF {
class WTF_EXPORT_PRIVATE_RTTI ArrayBufferView : public RefCounted<ArrayBufferView> {
public:
- virtual bool isByteArray() const { return false; }
- virtual bool isUnsignedByteArray() const { return false; }
- virtual bool isUnsignedByteClampedArray() const { return false; }
- virtual bool isShortArray() const { return false; }
- virtual bool isUnsignedShortArray() const { return false; }
- virtual bool isIntArray() const { return false; }
- virtual bool isUnsignedIntArray() const { return false; }
- virtual bool isFloatArray() const { return false; }
- virtual bool isDoubleArray() const { return false; }
- virtual bool isDataView() const { return false; }
+ enum ViewType {
+ TypeInt8,
+ TypeUint8,
+ TypeUint8Clamped,
+ TypeInt16,
+ TypeUint16,
+ TypeInt32,
+ TypeUint32,
+ TypeFloat32,
+ TypeFloat64,
+ TypeDataView
+ };
+ virtual ViewType getType() const = 0;
PassRefPtr<ArrayBuffer> buffer() const
{