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

Side by Side Diff: Source/bindings/tests/results/V8TestActiveDOMObject.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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 inline v8::Handle<v8::Value> toV8(TestActiveDOMObject* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate) 73 inline v8::Handle<v8::Value> toV8(TestActiveDOMObject* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate)
74 { 74 {
75 if (UNLIKELY(!impl)) 75 if (UNLIKELY(!impl))
76 return v8NullWithCheck(isolate); 76 return v8NullWithCheck(isolate);
77 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestActiveDOMObje ct>(impl, isolate); 77 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestActiveDOMObje ct>(impl, isolate);
78 if (!wrapper.IsEmpty()) 78 if (!wrapper.IsEmpty())
79 return wrapper; 79 return wrapper;
80 return wrap(impl, creationContext, isolate); 80 return wrap(impl, creationContext, isolate);
81 } 81 }
82 82
83 inline UnsafePersistent<v8::Object> toV8Persistent(TestActiveDOMObject* impl, v8 ::Handle<v8::Object> creationContext, v8::Isolate* isolate)
84 {
85 ASSERT(impl);
86
87 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer sistent<V8TestActiveDOMObject>(impl, isolate);
88 if (LIKELY(!wrapperPersistent.isEmpty()))
89 return wrapperPersistent;
90
91 wrap(impl, creationContext, isolate);
92
93 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestActiveDOMObject >(impl, isolate);
94 ASSERT(!wrapperPersistent.isEmpty());
95 return wrapperPersistent;
96 }
97
83 template<typename CallbackInfo> 98 template<typename CallbackInfo>
84 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestActiveDOMObje ct* impl, v8::Handle<v8::Object> creationContext) 99 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestActiveDOMObje ct* impl, v8::Handle<v8::Object> creationContext)
85 { 100 {
86 if (UNLIKELY(!impl)) { 101 if (UNLIKELY(!impl)) {
87 v8SetReturnValueNull(callbackInfo); 102 v8SetReturnValueNull(callbackInfo);
88 return; 103 return;
89 } 104 }
90 if (DOMDataStore::setReturnValueFromWrapper<V8TestActiveDOMObject>(callbackI nfo.GetReturnValue(), impl)) 105 if (DOMDataStore::setReturnValueFromWrapper<V8TestActiveDOMObject>(callbackI nfo.GetReturnValue(), impl))
91 return; 106 return;
92 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 107 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate());
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 154
140 template<class CallbackInfo, class Wrappable> 155 template<class CallbackInfo, class Wrappable>
141 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stActiveDOMObject > impl, Wrappable* wrappable) 156 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stActiveDOMObject > impl, Wrappable* wrappable)
142 { 157 {
143 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 158 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
144 } 159 }
145 160
146 } 161 }
147 162
148 #endif // V8TestActiveDOMObject_h 163 #endif // V8TestActiveDOMObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698