OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 unsigned WebArrayBufferView::byteLength() const | 57 unsigned WebArrayBufferView::byteLength() const |
58 { | 58 { |
59 return m_private->byteLength(); | 59 return m_private->byteLength(); |
60 } | 60 } |
61 | 61 |
62 WebArrayBufferView* WebArrayBufferView::createFromV8Value(v8::Handle<v8::Value>
value) | 62 WebArrayBufferView* WebArrayBufferView::createFromV8Value(v8::Handle<v8::Value>
value) |
63 { | 63 { |
64 if (!value->IsArrayBufferView()) | 64 if (!value->IsArrayBufferView()) |
65 return 0; | 65 return 0; |
66 ArrayBufferView* view = V8ArrayBufferView::toNative(value->ToObject()); | 66 ArrayBufferView* view = V8ArrayBufferView::toImpl(value->ToObject()); |
67 return new WebArrayBufferView(view); | 67 return new WebArrayBufferView(view); |
68 } | 68 } |
69 | 69 |
70 WebArrayBufferView::WebArrayBufferView(const PassRefPtr<ArrayBufferView>& value) | 70 WebArrayBufferView::WebArrayBufferView(const PassRefPtr<ArrayBufferView>& value) |
71 : m_private(value) | 71 : m_private(value) |
72 { | 72 { |
73 } | 73 } |
74 | 74 |
75 WebArrayBufferView& WebArrayBufferView::operator=(const PassRefPtr<ArrayBufferVi
ew>& value) | 75 WebArrayBufferView& WebArrayBufferView::operator=(const PassRefPtr<ArrayBufferVi
ew>& value) |
76 { | 76 { |
77 m_private = value; | 77 m_private = value; |
78 return *this; | 78 return *this; |
79 } | 79 } |
80 | 80 |
81 WebArrayBufferView::operator PassRefPtr<ArrayBufferView>() const | 81 WebArrayBufferView::operator PassRefPtr<ArrayBufferView>() const |
82 { | 82 { |
83 return m_private.get(); | 83 return m_private.get(); |
84 } | 84 } |
85 | 85 |
86 } // namespace blink | 86 } // namespace blink |
OLD | NEW |