OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include <stddef.h> |
5 #include <stdlib.h> | 6 #include <stdlib.h> |
6 | 7 |
7 #include "base/logging.h" | 8 #include "base/logging.h" |
8 #include "gin/array_buffer.h" | 9 #include "gin/array_buffer.h" |
9 #include "gin/per_isolate_data.h" | 10 #include "gin/per_isolate_data.h" |
10 | 11 |
11 namespace gin { | 12 namespace gin { |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 bool Converter<ArrayBufferView>::FromV8(v8::Isolate* isolate, | 196 bool Converter<ArrayBufferView>::FromV8(v8::Isolate* isolate, |
196 v8::Local<v8::Value> val, | 197 v8::Local<v8::Value> val, |
197 ArrayBufferView* out) { | 198 ArrayBufferView* out) { |
198 if (!val->IsArrayBufferView()) | 199 if (!val->IsArrayBufferView()) |
199 return false; | 200 return false; |
200 *out = ArrayBufferView(isolate, v8::Local<v8::ArrayBufferView>::Cast(val)); | 201 *out = ArrayBufferView(isolate, v8::Local<v8::ArrayBufferView>::Cast(val)); |
201 return true; | 202 return true; |
202 } | 203 } |
203 | 204 |
204 } // namespace gin | 205 } // namespace gin |
OLD | NEW |