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

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

Issue 172033002: Remove WrapperTypeTraits (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 months 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 static size_t length(Uint16Array* array) 54 static size_t length(Uint16Array* array)
55 { 55 {
56 return array->length(); 56 return array->length();
57 } 57 }
58 }; 58 };
59 59
60 typedef V8TypedArray<Uint16Array> V8Uint16Array; 60 typedef V8TypedArray<Uint16Array> V8Uint16Array;
61 61
62 template<>
63 class WrapperTypeTraits<Uint16Array> : public TypedArrayWrapperTraits<Uint16Arra y> { };
64
65
66 inline v8::Handle<v8::Object> wrap(Uint16Array* impl, v8::Handle<v8::Object> cre ationContext, v8::Isolate* isolate) 62 inline v8::Handle<v8::Object> wrap(Uint16Array* impl, v8::Handle<v8::Object> cre ationContext, v8::Isolate* isolate)
67 { 63 {
68 return V8TypedArray<Uint16Array>::wrap(impl, creationContext, isolate); 64 return V8TypedArray<Uint16Array>::wrap(impl, creationContext, isolate);
69 } 65 }
70 66
71 inline v8::Handle<v8::Value> toV8(Uint16Array* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate) 67 inline v8::Handle<v8::Value> toV8(Uint16Array* impl, v8::Handle<v8::Object> crea tionContext, v8::Isolate* isolate)
72 { 68 {
73 return V8TypedArray<Uint16Array>::toV8(impl, creationContext, isolate); 69 return V8TypedArray<Uint16Array>::toV8(impl, creationContext, isolate);
74 } 70 }
75 71
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 106
111 template<class CallbackInfo, class Wrappable> 107 template<class CallbackInfo, class Wrappable>
112 inline void v8SetReturnValueFast(const CallbackInfo& info, PassRefPtr<Uint16Arra y> impl, Wrappable* wrappable) 108 inline void v8SetReturnValueFast(const CallbackInfo& info, PassRefPtr<Uint16Arra y> impl, Wrappable* wrappable)
113 { 109 {
114 v8SetReturnValueFast(info, impl.get(), wrappable); 110 v8SetReturnValueFast(info, impl.get(), wrappable);
115 } 111 }
116 112
117 } // namespace WebCore 113 } // namespace WebCore
118 114
119 #endif 115 #endif
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8Int8ArrayCustom.h ('k') | Source/bindings/v8/custom/V8Uint32ArrayCustom.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698