| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 TypeUint8Clamped, | 45 TypeUint8Clamped, |
| 46 TypeInt16, | 46 TypeInt16, |
| 47 TypeUint16, | 47 TypeUint16, |
| 48 TypeInt32, | 48 TypeInt32, |
| 49 TypeUint32, | 49 TypeUint32, |
| 50 TypeFloat32, | 50 TypeFloat32, |
| 51 TypeFloat64, | 51 TypeFloat64, |
| 52 TypeDataView | 52 TypeDataView |
| 53 }; | 53 }; |
| 54 virtual ViewType getType() const = 0; | 54 virtual ViewType getType() const = 0; |
| 55 const char* typeName(); |
| 55 | 56 |
| 56 PassRefPtr<ArrayBuffer> buffer() const | 57 PassRefPtr<ArrayBuffer> buffer() const |
| 57 { | 58 { |
| 58 return m_buffer; | 59 return m_buffer; |
| 59 } | 60 } |
| 60 | 61 |
| 61 void* baseAddress() const | 62 void* baseAddress() const |
| 62 { | 63 { |
| 63 return m_baseAddress; | 64 return m_baseAddress; |
| 64 } | 65 } |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 end = start; | 201 end = start; |
| 201 *offset = static_cast<unsigned>(start); | 202 *offset = static_cast<unsigned>(start); |
| 202 *length = static_cast<unsigned>(end - start); | 203 *length = static_cast<unsigned>(end - start); |
| 203 } | 204 } |
| 204 | 205 |
| 205 } // namespace WTF | 206 } // namespace WTF |
| 206 | 207 |
| 207 using WTF::ArrayBufferView; | 208 using WTF::ArrayBufferView; |
| 208 | 209 |
| 209 #endif // ArrayBufferView_h | 210 #endif // ArrayBufferView_h |
| OLD | NEW |