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

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

Issue 50073004: We don't need to pass |creationContext| to v8SetReturnValue family (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 { 77 {
78 if (UNLIKELY(!impl)) 78 if (UNLIKELY(!impl))
79 return v8NullWithCheck(isolate); 79 return v8NullWithCheck(isolate);
80 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestEventTarget>( impl, isolate); 80 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestEventTarget>( impl, isolate);
81 if (!wrapper.IsEmpty()) 81 if (!wrapper.IsEmpty())
82 return wrapper; 82 return wrapper;
83 return wrap(impl, creationContext, isolate); 83 return wrap(impl, creationContext, isolate);
84 } 84 }
85 85
86 template<typename CallbackInfo> 86 template<typename CallbackInfo>
87 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEventTarget* impl, v8::Handle<v8::Object> creationContext) 87 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestEventTarget* impl)
88 { 88 {
89 if (UNLIKELY(!impl)) { 89 if (UNLIKELY(!impl)) {
90 v8SetReturnValueNull(callbackInfo); 90 v8SetReturnValueNull(callbackInfo);
91 return; 91 return;
92 } 92 }
93 if (DOMDataStore::setReturnValueFromWrapper<V8TestEventTarget>(callbackInfo. GetReturnValue(), impl)) 93 if (DOMDataStore::setReturnValueFromWrapper<V8TestEventTarget>(callbackInfo. GetReturnValue(), impl))
94 return; 94 return;
95 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 95 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
96 v8SetReturnValue(callbackInfo, wrapper); 96 v8SetReturnValue(callbackInfo, wrapper);
97 } 97 }
98 98
99 template<typename CallbackInfo> 99 template<typename CallbackInfo>
100 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestE ventTarget* impl, v8::Handle<v8::Object> creationContext) 100 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, TestE ventTarget* impl)
101 { 101 {
102 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); 102 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
103 if (UNLIKELY(!impl)) { 103 if (UNLIKELY(!impl)) {
104 v8SetReturnValueNull(callbackInfo); 104 v8SetReturnValueNull(callbackInfo);
105 return; 105 return;
106 } 106 }
107 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestEventTarget>(c allbackInfo.GetReturnValue(), impl)) 107 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestEventTarget>(c allbackInfo.GetReturnValue(), impl))
108 return; 108 return;
109 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get Isolate()); 109 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
110 v8SetReturnValue(callbackInfo, wrapper); 110 v8SetReturnValue(callbackInfo, wrapper);
111 } 111 }
112 112
113 template<class CallbackInfo, class Wrappable> 113 template<class CallbackInfo, class Wrappable>
114 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestEventTarg et* impl, Wrappable* wrappable) 114 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, TestEventTarg et* impl, Wrappable* wrappable)
115 { 115 {
116 if (UNLIKELY(!impl)) { 116 if (UNLIKELY(!impl)) {
117 v8SetReturnValueNull(callbackInfo); 117 v8SetReturnValueNull(callbackInfo);
118 return; 118 return;
119 } 119 }
120 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestEventTarget>(callbackI nfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 120 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestEventTarget>(callbackI nfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
121 return; 121 return;
122 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 122 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
123 v8SetReturnValue(callbackInfo, wrapper); 123 v8SetReturnValue(callbackInfo, wrapper);
124 } 124 }
125 125
126 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestEventTarget > impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate) 126 inline v8::Handle<v8::Value> toV8(PassRefPtr<TestEventTarget > impl, v8::Handle< v8::Object> creationContext, v8::Isolate* isolate)
127 { 127 {
128 return toV8(impl.get(), creationContext, isolate); 128 return toV8(impl.get(), creationContext, isolate);
129 } 129 }
130 130
131 template<class CallbackInfo> 131 template<class CallbackInfo>
132 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestEv entTarget > impl, v8::Handle<v8::Object> creationContext) 132 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<TestEv entTarget > impl)
133 { 133 {
134 v8SetReturnValue(callbackInfo, impl.get(), creationContext); 134 v8SetReturnValue(callbackInfo, impl.get());
135 } 135 }
136 136
137 template<class CallbackInfo> 137 template<class CallbackInfo>
138 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestEventTarget > impl, v8::Handle<v8::Object> creationContext) 138 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<TestEventTarget > impl)
139 { 139 {
140 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); 140 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
141 } 141 }
142 142
143 template<class CallbackInfo, class Wrappable> 143 template<class CallbackInfo, class Wrappable>
144 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stEventTarget > impl, Wrappable* wrappable) 144 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stEventTarget > impl, Wrappable* wrappable)
145 { 145 {
146 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 146 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
147 } 147 }
148 148
149 } 149 }
150 150
151 #endif // V8TestEventTarget_h 151 #endif // V8TestEventTarget_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestEventConstructor.h ('k') | Source/bindings/tests/results/V8TestEventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698