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

Side by Side Diff: Source/bindings/tests/results/V8TestSpecialOperationsCustom.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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 return static_cast<TestSpecialOperationsCustom*>(object); 70 return static_cast<TestSpecialOperationsCustom*>(object);
71 } 71 }
72 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestS pecialOperationsCustom*, v8::Isolate*) { } 72 static void installPerContextEnabledProperties(v8::Handle<v8::Object>, TestS pecialOperationsCustom*, v8::Isolate*) { }
73 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { } 73 static void installPerContextEnabledMethods(v8::Handle<v8::Object>, v8::Isol ate*) { }
74 74
75 private: 75 private:
76 friend v8::Handle<v8::Object> wrap(TestSpecialOperationsCustom*, v8::Handle< v8::Object> creationContext, v8::Isolate*); 76 friend v8::Handle<v8::Object> wrap(TestSpecialOperationsCustom*, v8::Handle< v8::Object> creationContext, v8::Isolate*);
77 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestSpecialOperations Custom>, v8::Handle<v8::Object> creationContext, v8::Isolate*); 77 static v8::Handle<v8::Object> createWrapper(PassRefPtr<TestSpecialOperations Custom>, v8::Handle<v8::Object> creationContext, v8::Isolate*);
78 }; 78 };
79 79
80 template<>
81 class WrapperTypeTraits<TestSpecialOperationsCustom > {
82 public:
83 static const WrapperTypeInfo* wrapperTypeInfo() { return &V8TestSpecialOpera tionsCustom::wrapperTypeInfo; }
84 };
85
86 inline v8::Handle<v8::Object> wrap(TestSpecialOperationsCustom* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 80 inline v8::Handle<v8::Object> wrap(TestSpecialOperationsCustom* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate)
87 { 81 {
88 ASSERT(impl); 82 ASSERT(impl);
89 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsCustom>(impl, i solate)); 83 ASSERT(!DOMDataStore::containsWrapper<V8TestSpecialOperationsCustom>(impl, i solate));
90 return V8TestSpecialOperationsCustom::createWrapper(impl, creationContext, i solate); 84 return V8TestSpecialOperationsCustom::createWrapper(impl, creationContext, i solate);
91 } 85 }
92 86
93 inline v8::Handle<v8::Value> toV8(TestSpecialOperationsCustom* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate) 87 inline v8::Handle<v8::Value> toV8(TestSpecialOperationsCustom* impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate)
94 { 88 {
95 if (UNLIKELY(!impl)) 89 if (UNLIKELY(!impl))
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 } 152 }
159 153
160 template<class CallbackInfo, class Wrappable> 154 template<class CallbackInfo, class Wrappable>
161 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stSpecialOperationsCustom> impl, Wrappable* wrappable) 155 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stSpecialOperationsCustom> impl, Wrappable* wrappable)
162 { 156 {
163 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 157 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
164 } 158 }
165 159
166 } 160 }
167 #endif // V8TestSpecialOperationsCustom_h 161 #endif // V8TestSpecialOperationsCustom_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698