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

Side by Side Diff: Source/bindings/tests/results/V8TestObjectPython.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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 inline v8::Handle<v8::Value> toV8(TestObjectPython* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate) 81 inline v8::Handle<v8::Value> toV8(TestObjectPython* impl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
82 { 82 {
83 if (UNLIKELY(!impl)) 83 if (UNLIKELY(!impl))
84 return v8NullWithCheck(isolate); 84 return v8NullWithCheck(isolate);
85 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObjectPython> (impl, isolate); 85 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestObjectPython> (impl, isolate);
86 if (!wrapper.IsEmpty()) 86 if (!wrapper.IsEmpty())
87 return wrapper; 87 return wrapper;
88 return wrap(impl, creationContext, isolate); 88 return wrap(impl, creationContext, isolate);
89 } 89 }
90 90
91 inline UnsafePersistent<v8::Object> toV8Persistent(TestObjectPython* impl, v8::H andle<v8::Object> creationContext, v8::Isolate* isolate)
92 {
93 ASSERT(impl);
94
95 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer sistent<V8TestObjectPython>(impl, isolate);
96 if (LIKELY(!wrapperPersistent.isEmpty()))
97 return wrapperPersistent;
98
99 wrap(impl, creationContext, isolate);
100
101 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestObjectPython>(i mpl, isolate);
102 ASSERT(!wrapperPersistent.isEmpty());
103 return wrapperPersistent;
104 }
105
91 template<typename CallbackInfo> 106 template<typename CallbackInfo>
92 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObjectPython* impl, v8::Handle<v8::Object> creationContext) 107 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestObjectPython* impl, v8::Handle<v8::Object> creationContext)
93 { 108 {
94 if (UNLIKELY(!impl)) { 109 if (UNLIKELY(!impl)) {
95 v8SetReturnValueNull(callbackInfo); 110 v8SetReturnValueNull(callbackInfo);
96 return; 111 return;
97 } 112 }
98 if (DOMDataStore::setReturnValueFromWrapper<V8TestObjectPython>(callbackInfo .GetReturnValue(), impl)) 113 if (DOMDataStore::setReturnValueFromWrapper<V8TestObjectPython>(callbackInfo .GetReturnValue(), impl))
99 return; 114 return;
100 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 115 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate());
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 162
148 template<class CallbackInfo, class Wrappable> 163 template<class CallbackInfo, class Wrappable>
149 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObjectPython > impl, Wrappable* wrappable) 164 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stObjectPython > impl, Wrappable* wrappable)
150 { 165 {
151 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 166 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
152 } 167 }
153 168
154 } 169 }
155 170
156 #endif // V8TestObjectPython_h 171 #endif // V8TestObjectPython_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698