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

Side by Side Diff: Source/bindings/tests/results/V8TestInterface.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 #if ENABLE(CONDITION) 8 #if ENABLE(CONDITION)
9 #include "V8TestInterface.h" 9 #include "V8TestInterface.h"
10 10
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 { 353 {
354 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter"); 354 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMSetter");
355 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeSette r(v8Value, info); 355 TestInterfaceImplementationV8Internal::implementsNodeAttributeAttributeSette r(v8Value, info);
356 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 356 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
357 } 357 }
358 358
359 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info) 359 static void implementsEventHandlerAttributeAttributeGetter(const v8::PropertyCal lbackInfo<v8::Value>& info)
360 { 360 {
361 v8::Handle<v8::Object> holder = info.Holder(); 361 v8::Handle<v8::Object> holder = info.Holder();
362 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder); 362 TestInterfaceImplementation* impl = V8TestInterface::toNative(holder);
363 EventListener* v8Value = impl->implementsEventHandlerAttribute(); 363 EventListener* cppValue(impl->implementsEventHandlerAttribute());
364 v8SetReturnValue(info, v8Value ? v8::Handle<v8::Value>(V8AbstractEventListen er::cast(v8Value)->getListenerObject(impl->executionContext())) : v8::Handle<v8: :Value>(v8::Null(info.GetIsolate()))); 364 v8SetReturnValue(info, cppValue ? v8::Handle<v8::Value>(V8AbstractEventListe ner::cast(cppValue)->getListenerObject(impl->executionContext())) : v8::Handle<v 8::Value>(v8::Null(info.GetIsolate())));
365 } 365 }
366 366
367 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info) 367 static void implementsEventHandlerAttributeAttributeGetterCallback(v8::Local<v8: :String>, const v8::PropertyCallbackInfo<v8::Value>& info)
368 { 368 {
369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 369 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
370 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteGetter(info); 370 TestInterfaceImplementationV8Internal::implementsEventHandlerAttributeAttrib uteGetter(info);
371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 371 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
372 } 372 }
373 373
374 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info) 374 static void implementsEventHandlerAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const v8::PropertyCallbackInfo<void>& info)
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 } 1548 }
1549 1549
1550 template<> 1550 template<>
1551 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate) 1551 v8::Handle<v8::Value> toV8NoInline(TestInterfaceImplementation* impl, v8::Handle <v8::Object> creationContext, v8::Isolate* isolate)
1552 { 1552 {
1553 return toV8(impl, creationContext, isolate); 1553 return toV8(impl, creationContext, isolate);
1554 } 1554 }
1555 1555
1556 } // namespace WebCore 1556 } // namespace WebCore
1557 #endif // ENABLE(CONDITION) 1557 #endif // ENABLE(CONDITION)
OLDNEW
« no previous file with comments | « Source/bindings/templates/attributes.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698