| 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<Uint8ClampedArray>::wrap(impl, creationContext, isolate)
     ; | 68     return V8TypedArray<Uint8ClampedArray>::wrap(impl, creationContext, isolate)
     ; | 
| 69 } | 69 } | 
| 70 | 70 | 
| 71 inline v8::Handle<v8::Value> toV8(Uint8ClampedArray* impl, v8::Handle<v8::Object
     > creationContext, v8::Isolate* isolate) | 71 inline v8::Handle<v8::Value> toV8(Uint8ClampedArray* impl, v8::Handle<v8::Object
     > creationContext, v8::Isolate* isolate) | 
| 72 { | 72 { | 
| 73     return V8TypedArray<Uint8ClampedArray>::toV8(impl, creationContext, isolate)
     ; | 73     return V8TypedArray<Uint8ClampedArray>::toV8(impl, creationContext, isolate)
     ; | 
| 74 } | 74 } | 
| 75 | 75 | 
| 76 template<class CallbackInfo> | 76 template<class CallbackInfo> | 
| 77 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Uint8ClampedArray
     * impl, v8::Handle<v8::Object> creationContext) | 77 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Uint8ClampedArray
     * impl) | 
| 78 { | 78 { | 
| 79     V8TypedArray<Uint8ClampedArray>::v8SetReturnValue(callbackInfo, impl, creati
     onContext); | 79     V8TypedArray<Uint8ClampedArray>::v8SetReturnValue(callbackInfo, impl); | 
| 80 } | 80 } | 
| 81 | 81 | 
| 82 template<class CallbackInfo> | 82 template<class CallbackInfo> | 
| 83 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Uint8
     ClampedArray* impl, v8::Handle<v8::Object> creationContext) | 83 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Uint8
     ClampedArray* impl) | 
| 84 { | 84 { | 
| 85     V8TypedArray<Uint8ClampedArray>::v8SetReturnValueForMainWorld(callbackInfo, 
     impl, creationContext); | 85     V8TypedArray<Uint8ClampedArray>::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, Uint8ClampedA
     rray* impl, Wrappable* wrappable) | 89 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, Uint8ClampedA
     rray* impl, Wrappable* wrappable) | 
| 90 { | 90 { | 
| 91     V8TypedArray<Uint8ClampedArray>::v8SetReturnValueFast(callbackInfo, impl, wr
     appable); | 91     V8TypedArray<Uint8ClampedArray>::v8SetReturnValueFast(callbackInfo, impl, wr
     appable); | 
| 92 } | 92 } | 
| 93 | 93 | 
| 94 inline v8::Handle<v8::Value> toV8(PassRefPtr< Uint8ClampedArray > impl, v8::Hand
     le<v8::Object> creationContext, v8::Isolate* isolate) | 94 inline v8::Handle<v8::Value> toV8(PassRefPtr< Uint8ClampedArray > impl, v8::Hand
     le<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<Uint8C
     lampedArray> impl, v8::Handle<v8::Object> creationContext) | 100 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<Uint8C
     lampedArray> 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<Uint8ClampedArray> impl, v8::Handle<v8::Object> creationContext) | 106 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
     efPtr<Uint8ClampedArray> 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<Ui
     nt8ClampedArray> impl, Wrappable* wrappable) | 112 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Ui
     nt8ClampedArray> 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 | 
|---|