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

Side by Side Diff: Source/bindings/tests/results/V8TestObject.h

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #ifndef V8TestObject_h 7 #ifndef V8TestObject_h
8 #define V8TestObject_h 8 #define V8TestObject_h
9 9
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> creationCon text, v8::Isolate*); 92 v8::Handle<v8::Object> wrap(TestObject* impl, v8::Handle<v8::Object> creationCon text, v8::Isolate*);
93 93
94 inline v8::Handle<v8::Value> toV8(TestObject* impl, v8::Handle<v8::Object> creat ionContext, v8::Isolate* isolate) 94 inline v8::Handle<v8::Value> toV8(TestObject* impl, v8::Handle<v8::Object> creat ionContext, v8::Isolate* isolate)
95 { 95 {
96 if (UNLIKELY(!impl)) 96 if (UNLIKELY(!impl))
97 return v8::Null(isolate); 97 return v8::Null(isolate);
98 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObject>(impl, isolate); 98 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObject>(impl, isolate);
99 if (!wrapper.IsEmpty()) 99 if (!wrapper.IsEmpty())
100 return wrapper; 100 return wrapper;
101 return wrap(impl, creationContext, isolate); 101
102 return impl->wrap(creationContext, isolate);
102 } 103 }
103 104
104 template<typename CallbackInfo> 105 template<typename CallbackInfo>
105 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObject* impl) 106 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObject* impl)
106 { 107 {
107 if (UNLIKELY(!impl)) { 108 if (UNLIKELY(!impl)) {
108 v8SetReturnValueNull(callbackInfo); 109 v8SetReturnValueNull(callbackInfo);
109 return; 110 return;
110 } 111 }
111 if (DOMDataStore::setReturnValueFromWrapper<V8TestObject>(callbackInfo.GetRe turnValue(), impl)) 112 if (DOMDataStore::setReturnValueFromWrapper<V8TestObject>(callbackInfo.GetRe turnValue(), impl))
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 } 160 }
160 161
161 template<class CallbackInfo, class Wrappable> 162 template<class CallbackInfo, class Wrappable>
162 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObject> impl, Wrappable* wrappable) 163 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObject> impl, Wrappable* wrappable)
163 { 164 {
164 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 165 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
165 } 166 }
166 167
167 } // namespace blink 168 } // namespace blink
168 #endif // V8TestObject_h 169 #endif // V8TestObject_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestNode.cpp ('k') | Source/bindings/tests/results/V8TestObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698