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

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

Issue 26792002: Reland: Reland: Implement new Blink IDL attribute [SetReference] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: codegen impl Created 7 years, 2 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 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 inline v8::Handle<v8::Value> toV8(TestInterface* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate) 83 inline v8::Handle<v8::Value> toV8(TestInterface* impl, v8::Handle<v8::Object> cr eationContext, v8::Isolate* isolate)
84 { 84 {
85 if (UNLIKELY(!impl)) 85 if (UNLIKELY(!impl))
86 return v8NullWithCheck(isolate); 86 return v8NullWithCheck(isolate);
87 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterface>(im pl, isolate); 87 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestInterface>(im pl, isolate);
88 if (!wrapper.IsEmpty()) 88 if (!wrapper.IsEmpty())
89 return wrapper; 89 return wrapper;
90 return wrap(impl, creationContext, isolate); 90 return wrap(impl, creationContext, isolate);
91 } 91 }
92 92
93 inline UnsafePersistent<v8::Object> toV8Persistent(TestInterface* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
94 {
95 ASSERT(impl);
96
97 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer sistent<V8TestInterface>(impl, isolate);
98 if (LIKELY(!wrapperPersistent.isEmpty()))
99 return wrapperPersistent;
100
101 wrap(impl, creationContext, isolate);
102
103 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestInterface>(impl , isolate);
104 ASSERT(!wrapperPersistent.isEmpty());
105 return wrapperPersistent;
106 }
107
93 template<typename CallbackInfo> 108 template<typename CallbackInfo>
94 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterface* im pl, v8::Handle<v8::Object> creationContext) 109 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestInterface* im pl, v8::Handle<v8::Object> creationContext)
95 { 110 {
96 if (UNLIKELY(!impl)) { 111 if (UNLIKELY(!impl)) {
97 v8SetReturnValueNull(callbackInfo); 112 v8SetReturnValueNull(callbackInfo);
98 return; 113 return;
99 } 114 }
100 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(callbackInfo.Ge tReturnValue(), impl)) 115 if (DOMDataStore::setReturnValueFromWrapper<V8TestInterface>(callbackInfo.Ge tReturnValue(), impl))
101 return; 116 return;
102 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 117 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate());
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterface > impl, Wrappable* wrappable) 166 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stInterface > impl, Wrappable* wrappable)
152 { 167 {
153 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 168 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
154 } 169 }
155 170
156 } 171 }
157 172
158 #endif // ENABLE(Condition1) || ENABLE(Condition2) 173 #endif // ENABLE(Condition1) || ENABLE(Condition2)
159 174
160 #endif // V8TestInterface_h 175 #endif // V8TestInterface_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698