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

Side by Side Diff: Source/bindings/tests/results/V8TestExtendedEvent.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 { 78 {
79 if (UNLIKELY(!impl)) 79 if (UNLIKELY(!impl))
80 return v8NullWithCheck(isolate); 80 return v8NullWithCheck(isolate);
81 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestExtendedEvent >(impl, isolate); 81 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestExtendedEvent >(impl, isolate);
82 if (!wrapper.IsEmpty()) 82 if (!wrapper.IsEmpty())
83 return wrapper; 83 return wrapper;
84 return wrap(impl, creationContext, isolate); 84 return wrap(impl, creationContext, isolate);
85 } 85 }
86 86
87 template<typename CallbackInfo> 87 template<typename CallbackInfo>
88 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Event* impl, v8:: Handle<v8::Object> creationContext) 88 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Event* impl)
89 { 89 {
90 if (UNLIKELY(!impl)) { 90 if (UNLIKELY(!impl)) {
91 v8SetReturnValueNull(callbackInfo); 91 v8SetReturnValueNull(callbackInfo);
92 return; 92 return;
93 } 93 }
94 if (DOMDataStore::setReturnValueFromWrapper<V8TestExtendedEvent>(callbackInf o.GetReturnValue(), impl)) 94 if (DOMDataStore::setReturnValueFromWrapper<V8TestExtendedEvent>(callbackInf o.GetReturnValue(), impl))
95 return; 95 return;
96 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 96 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
97 v8SetReturnValue(callbackInfo, wrapper); 97 v8SetReturnValue(callbackInfo, wrapper);
98 } 98 }
99 99
100 template<typename CallbackInfo> 100 template<typename CallbackInfo>
101 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Event * impl, v8::Handle<v8::Object> creationContext) 101 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Event * impl)
102 { 102 {
103 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld); 103 ASSERT(worldType(callbackInfo.GetIsolate()) == MainWorld);
104 if (UNLIKELY(!impl)) { 104 if (UNLIKELY(!impl)) {
105 v8SetReturnValueNull(callbackInfo); 105 v8SetReturnValueNull(callbackInfo);
106 return; 106 return;
107 } 107 }
108 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestExtendedEvent> (callbackInfo.GetReturnValue(), impl)) 108 if (DOMDataStore::setReturnValueFromWrapperForMainWorld<V8TestExtendedEvent> (callbackInfo.GetReturnValue(), impl))
109 return; 109 return;
110 v8::Handle<v8::Value> wrapper = wrap(impl, creationContext, callbackInfo.Get Isolate()); 110 v8::Handle<v8::Value> wrapper = wrap(impl, callbackInfo.Holder(), callbackIn fo.GetIsolate());
111 v8SetReturnValue(callbackInfo, wrapper); 111 v8SetReturnValue(callbackInfo, wrapper);
112 } 112 }
113 113
114 template<class CallbackInfo, class Wrappable> 114 template<class CallbackInfo, class Wrappable>
115 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, Event* impl, Wrappable* wrappable) 115 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, Event* impl, Wrappable* wrappable)
116 { 116 {
117 if (UNLIKELY(!impl)) { 117 if (UNLIKELY(!impl)) {
118 v8SetReturnValueNull(callbackInfo); 118 v8SetReturnValueNull(callbackInfo);
119 return; 119 return;
120 } 120 }
121 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestExtendedEvent>(callbac kInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable)) 121 if (DOMDataStore::setReturnValueFromWrapperFast<V8TestExtendedEvent>(callbac kInfo.GetReturnValue(), impl, callbackInfo.Holder(), wrappable))
122 return; 122 return;
123 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate()); 123 v8::Handle<v8::Object> wrapper = wrap(impl, callbackInfo.Holder(), callbackI nfo.GetIsolate());
124 v8SetReturnValue(callbackInfo, wrapper); 124 v8SetReturnValue(callbackInfo, wrapper);
125 } 125 }
126 126
127 inline v8::Handle<v8::Value> toV8(PassRefPtr<Event > impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate) 127 inline v8::Handle<v8::Value> toV8(PassRefPtr<Event > impl, v8::Handle<v8::Object > creationContext, v8::Isolate* isolate)
128 { 128 {
129 return toV8(impl.get(), creationContext, isolate); 129 return toV8(impl.get(), creationContext, isolate);
130 } 130 }
131 131
132 template<class CallbackInfo> 132 template<class CallbackInfo>
133 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<Event > impl, v8::Handle<v8::Object> creationContext) 133 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<Event > impl)
134 { 134 {
135 v8SetReturnValue(callbackInfo, impl.get(), creationContext); 135 v8SetReturnValue(callbackInfo, impl.get());
136 } 136 }
137 137
138 template<class CallbackInfo> 138 template<class CallbackInfo>
139 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<Event > impl, v8::Handle<v8::Object> creationContext) 139 inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR efPtr<Event > impl)
140 { 140 {
141 v8SetReturnValueForMainWorld(callbackInfo, impl.get(), creationContext); 141 v8SetReturnValueForMainWorld(callbackInfo, impl.get());
142 } 142 }
143 143
144 template<class CallbackInfo, class Wrappable> 144 template<class CallbackInfo, class Wrappable>
145 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Ev ent > impl, Wrappable* wrappable) 145 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Ev ent > impl, Wrappable* wrappable)
146 { 146 {
147 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 147 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
148 } 148 }
149 149
150 bool fillEventInit(EventInit&, const Dictionary&); 150 bool fillEventInit(EventInit&, const Dictionary&);
151 151
152 } 152 }
153 153
154 #endif // ENABLE(TEST) 154 #endif // ENABLE(TEST)
155 155
156 #endif // V8TestExtendedEvent_h 156 #endif // V8TestExtendedEvent_h
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestException.h ('k') | Source/bindings/tests/results/V8TestInterface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698