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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp

Issue 351403003: IDL: Merge duplicating local variable assignment in attribute_getter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Further v8Value -> cppValue renaming Created 6 years, 5 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceEventConstructor.h" 8 #include "V8TestInterfaceEventConstructor.h"
9 9
10 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" 10 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 { 116 {
117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 117 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
118 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyLongAttributeAttributeGetter(info); 118 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyLongAttributeAttributeGetter(info);
119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 119 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
120 } 120 }
121 121
122 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet ter(const v8::PropertyCallbackInfo<v8::Value>& info) 122 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet ter(const v8::PropertyCallbackInfo<v8::Value>& info)
123 { 123 {
124 v8::Handle<v8::Object> holder = info.Holder(); 124 v8::Handle<v8::Object> holder = info.Holder();
125 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 125 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder);
126 RefPtr<Uint8Array> result(impl->initializedByEventConstructorReadonlyUint8Ar rayAttribute()); 126 RefPtr<Uint8Array> cppValue(impl->initializedByEventConstructorReadonlyUint8 ArrayAttribute());
127 if (result && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.Get ReturnValue(), result.get())) 127 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8Uint8Array>(info.G etReturnValue(), cppValue.get()))
128 return; 128 return;
129 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate() ); 129 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ());
130 if (!wrapper.IsEmpty()) { 130 if (!wrapper.IsEmpty()) {
131 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"), wrapper); 131 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyUint8ArrayAttribute"), wrapper);
132 v8SetReturnValue(info, wrapper); 132 v8SetReturnValue(info, wrapper);
133 } 133 }
134 } 134 }
135 135
136 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in fo) 136 static void initializedByEventConstructorReadonlyUint8ArrayAttributeAttributeGet terCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& in fo)
137 { 137 {
138 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 138 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
139 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyUint8ArrayAttributeAttributeGetter(info); 139 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyUint8ArrayAttributeAttributeGetter(info);
140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 140 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
141 } 141 }
142 142
143 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 143 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr ibuteGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
144 { 144 {
145 v8::Handle<v8::Object> holder = info.Holder(); 145 v8::Handle<v8::Object> holder = info.Holder();
146 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 146 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder);
147 RefPtr<TestInterfaceEmpty> result(impl->initializedByEventConstructorReadonl yTestInterfaceEmptyAttribute()); 147 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado nlyTestInterfaceEmptyAttribute());
148 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>( info.GetReturnValue(), result.get())) 148 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty >(info.GetReturnValue(), cppValue.get()))
149 return; 149 return;
150 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate() ); 150 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ());
151 if (!wrapper.IsEmpty()) { 151 if (!wrapper.IsEmpty()) {
152 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri bute"), wrapper); 152 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyTestInterfaceEmptyAttri bute"), wrapper);
153 v8SetReturnValue(info, wrapper); 153 v8SetReturnValue(info, wrapper);
154 } 154 }
155 } 155 }
156 156
157 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va lue>& info) 157 static void initializedByEventConstructorReadonlyTestInterfaceEmptyAttributeAttr ibuteGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Va lue>& info)
158 { 158 {
159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 159 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
160 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyAttributeAttributeGetter(info); 160 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyAttributeAttributeGetter(info);
(...skipping 12 matching lines...) Expand all
173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); 174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyArrayAttributeAttributeGetter(info);
175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
176 } 176 }
177 177
178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
179 { 179 {
180 v8::Handle<v8::Object> holder = info.Holder(); 180 v8::Handle<v8::Object> holder = info.Holder();
181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder);
182 bool isNull = false; 182 bool isNull = false;
183 RefPtr<TestInterfaceEmpty> v8Value = impl->initializedByEventConstructorRead onlyNullableTestInterfaceEmptyAttribute(isNull); 183 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado nlyNullableTestInterfaceEmptyAttribute(isNull));
184 if (isNull) { 184 if (isNull) {
185 v8SetReturnValueNull(info); 185 v8SetReturnValueNull(info);
186 return; 186 return;
187 } 187 }
188 RefPtr<TestInterfaceEmpty> result(v8Value); 188 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty >(info.GetReturnValue(), cppValue.get()))
189 if (result && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty>( info.GetReturnValue(), result.get()))
190 return; 189 return;
191 v8::Handle<v8::Value> wrapper = toV8(result.get(), holder, info.GetIsolate() ); 190 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ());
192 if (!wrapper.IsEmpty()) { 191 if (!wrapper.IsEmpty()) {
193 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm ptyAttribute"), wrapper); 192 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm ptyAttribute"), wrapper);
194 v8SetReturnValue(info, wrapper); 193 v8SetReturnValue(info, wrapper);
195 } 194 }
196 } 195 }
197 196
198 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf o<v8::Value>& info) 197 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf o<v8::Value>& info)
199 { 198 {
200 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 199 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
201 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyNullableTestInterfaceEmptyAttributeAttributeGetter(info); 200 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyNullableTestInterfaceEmptyAttributeAttributeGetter(info);
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 #endif // !ENABLE(OILPAN) 424 #endif // !ENABLE(OILPAN)
426 } 425 }
427 426
428 template<> 427 template<>
429 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 428 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
430 { 429 {
431 return toV8(impl, creationContext, isolate); 430 return toV8(impl, creationContext, isolate);
432 } 431 }
433 432
434 } // namespace WebCore 433 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698