| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 { | 67 { |
| 68 return V8TypedArray<Uint8Array>::wrap(impl, creationContext, isolate); | 68 return V8TypedArray<Uint8Array>::wrap(impl, creationContext, isolate); |
| 69 } | 69 } |
| 70 | 70 |
| 71 inline v8::Handle<v8::Value> toV8(Uint8Array* impl, v8::Handle<v8::Object> creat
ionContext, v8::Isolate* isolate) | 71 inline v8::Handle<v8::Value> toV8(Uint8Array* impl, v8::Handle<v8::Object> creat
ionContext, v8::Isolate* isolate) |
| 72 { | 72 { |
| 73 return V8TypedArray<Uint8Array>::toV8(impl, creationContext, isolate); | 73 return V8TypedArray<Uint8Array>::toV8(impl, creationContext, isolate); |
| 74 } | 74 } |
| 75 | 75 |
| 76 template<class CallbackInfo> | 76 template<class CallbackInfo> |
| 77 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Uint8Array* impl,
v8::Handle<v8::Object> creationContext) | 77 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Uint8Array* impl) |
| 78 { | 78 { |
| 79 V8TypedArray<Uint8Array>::v8SetReturnValue(callbackInfo, impl, creationConte
xt); | 79 V8TypedArray<Uint8Array>::v8SetReturnValue(callbackInfo, impl); |
| 80 } | 80 } |
| 81 | 81 |
| 82 template<class CallbackInfo> | 82 template<class CallbackInfo> |
| 83 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Uint8
Array* impl, v8::Handle<v8::Object> creationContext) | 83 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Uint8
Array* impl) |
| 84 { | 84 { |
| 85 V8TypedArray<Uint8Array>::v8SetReturnValueForMainWorld(callbackInfo, impl, c
reationContext); | 85 V8TypedArray<Uint8Array>::v8SetReturnValueForMainWorld(callbackInfo, impl); |
| 86 } | 86 } |
| 87 | 87 |
| 88 template<class CallbackInfo, class Wrappable> | 88 template<class CallbackInfo, class Wrappable> |
| 89 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, Uint8Array* i
mpl, Wrappable* wrappable) | 89 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, Uint8Array* i
mpl, Wrappable* wrappable) |
| 90 { | 90 { |
| 91 V8TypedArray<Uint8Array>::v8SetReturnValueFast(callbackInfo, impl, wrappable
); | 91 V8TypedArray<Uint8Array>::v8SetReturnValueFast(callbackInfo, impl, wrappable
); |
| 92 } | 92 } |
| 93 | 93 |
| 94 inline v8::Handle<v8::Value> toV8(PassRefPtr< Uint8Array > impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) | 94 inline v8::Handle<v8::Value> toV8(PassRefPtr< Uint8Array > impl, v8::Handle<v8::
Object> creationContext, v8::Isolate* isolate) |
| 95 { | 95 { |
| 96 return toV8(impl.get(), creationContext, isolate); | 96 return toV8(impl.get(), creationContext, isolate); |
| 97 } | 97 } |
| 98 | 98 |
| 99 template<class CallbackInfo> | 99 template<class CallbackInfo> |
| 100 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr< Uint8
Array > impl, v8::Handle<v8::Object> creationContext) | 100 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr< Uint8
Array > impl) |
| 101 { | 101 { |
| 102 v8SetReturnValue(callbackInfo, impl.get(), creationContext); | 102 v8SetReturnValue(callbackInfo, impl.get()); |
| 103 } | 103 } |
| 104 | 104 |
| 105 template<class CallbackInfo> | 105 template<class CallbackInfo> |
| 106 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr< Uint8Array > impl, v8::Handle<v8::Object> creationContext) | 106 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
efPtr< Uint8Array > impl) |
| 107 { | 107 { |
| 108 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); | 108 v8SetReturnValueForMainWorld(callbackInfo, impl.get()); |
| 109 } | 109 } |
| 110 | 110 |
| 111 template<class CallbackInfo, class Wrappable> | 111 template<class CallbackInfo, class Wrappable> |
| 112 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr< U
int8Array > impl, Wrappable* wrappable) | 112 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr< U
int8Array > impl, Wrappable* wrappable) |
| 113 { | 113 { |
| 114 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); | 114 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); |
| 115 } | 115 } |
| 116 | 116 |
| 117 } // namespace WebCore | 117 } // namespace WebCore |
| 118 | 118 |
| 119 #endif | 119 #endif |
| OLD | NEW |