Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(416)

Side by Side Diff: Source/bindings/v8/custom/V8Uint16ArrayCustom.h

Issue 50073004: We don't need to pass |creationContext| to v8SetReturnValue family (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
67 { 67 {
68 return V8TypedArray<Uint16Array>::wrap(impl, creationContext, isolate); 68 return V8TypedArray<Uint16Array>::wrap(impl, creationContext, isolate);
69 } 69 }
70 70
71 inline v8::Handle<v8::Value> toV8(Uint16Array* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 71 inline v8::Handle<v8::Value> toV8(Uint16Array* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
72 { 72 {
73 return V8TypedArray<Uint16Array>::toV8(impl, creationContext, isolate); 73 return V8TypedArray<Uint16Array>::toV8(impl, creationContext, isolate);
74 } 74 }
75 75
76 template<class CallbackInfo> 76 template<class CallbackInfo>
77 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Uint16Array* impl , v8::Handle<v8::Object> creationContext) 77 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Uint16Array* impl )
78 { 78 {
79 V8TypedArray<Uint16Array>::v8SetReturnValue(callbackInfo, impl, creationCont ext); 79 V8TypedArray<Uint16Array>::v8SetReturnValue(callbackInfo, impl);
80 } 80 }
81 81
82 template<class CallbackInfo> 82 template<class CallbackInfo>
83 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Uint1 6Array* impl, v8::Handle<v8::Object> creationContext) 83 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Uint1 6Array* impl)
84 { 84 {
85 V8TypedArray<Uint16Array>::v8SetReturnValueForMainWorld(callbackInfo, impl, creationContext); 85 V8TypedArray<Uint16Array>::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, Uint16Array* impl, Wrappable* wrappable) 89 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, Uint16Array* impl, Wrappable* wrappable)
90 { 90 {
91 V8TypedArray<Uint16Array>::v8SetReturnValueFast(callbackInfo, impl, wrappabl e); 91 V8TypedArray<Uint16Array>::v8SetReturnValueFast(callbackInfo, impl, wrappabl e);
92 } 92 }
93 93
94 inline v8::Handle<v8::Value> toV8(PassRefPtr< Uint16Array > impl, v8::Handle<v8: :Object> creationContext, v8::Isolate* isolate) 94 inline v8::Handle<v8::Value> toV8(PassRefPtr< Uint16Array > 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<Uint16 Array> impl, v8::Handle<v8::Object> creationContext) 100 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<Uint16 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<Uint16Array> impl, v8::Handle<v8::Object> creationContext) 106 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<Uint16Array> 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 nt16Array> impl, Wrappable* wrappable) 112 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Ui nt16Array> 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
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8TypedArrayCustom.h ('k') | Source/bindings/v8/custom/V8Uint32ArrayCustom.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698