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

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

Issue 349523004: IDL: Generate all constructor callbacks with the same template macro (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix arity check Created 6 years, 6 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
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 "V8TestInterfaceEventTarget.h" 8 #include "V8TestInterfaceEventTarget.h"
9 9
10 #include "bindings/v8/ExceptionState.h" 10 #include "bindings/v8/ExceptionState.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 v8::Isolate* isolate = info.GetIsolate(); 52 v8::Isolate* isolate = info.GetIsolate();
53 if (!info.IsConstructCall()) { 53 if (!info.IsConstructCall()) {
54 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Name "), isolate); 54 throwTypeError(ExceptionMessages::constructorNotCallableAsFunction("Name "), isolate);
55 return; 55 return;
56 } 56 }
57 57
58 if (ConstructorMode::current(isolate) == ConstructorMode::WrapExistingObject ) { 58 if (ConstructorMode::current(isolate) == ConstructorMode::WrapExistingObject ) {
59 v8SetReturnValue(info, info.Holder()); 59 v8SetReturnValue(info, info.Holder());
60 return; 60 return;
61 } 61 }
62
63 Document& document = *toDocument(currentExecutionContext(isolate)); 62 Document& document = *toDocument(currentExecutionContext(isolate));
64
65 RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget ::createForJSConstructor(document); 63 RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget ::createForJSConstructor(document);
66 64
67 v8::Handle<v8::Object> wrapper = info.Holder(); 65 v8::Handle<v8::Object> wrapper = info.Holder();
68 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventTarget>(impl.re lease(), &V8TestInterfaceEventTargetConstructor::wrapperTypeInfo, wrapper, isola te, WrapperConfiguration::Independent); 66 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventTarget>(impl.re lease(), &V8TestInterfaceEventTargetConstructor::wrapperTypeInfo, wrapper, isola te, WrapperConfiguration::Independent);
69 v8SetReturnValue(info, wrapper); 67 v8SetReturnValue(info, wrapper);
70 } 68 }
71 69
72 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempl ate(v8::Isolate* isolate) 70 v8::Handle<v8::FunctionTemplate> V8TestInterfaceEventTargetConstructor::domTempl ate(v8::Isolate* isolate)
73 { 71 {
74 static int domTemplateKey; // This address is used for a key to look up the dom template. 72 static int domTemplateKey; // This address is used for a key to look up the dom template.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 #endif // !ENABLE(OILPAN) 161 #endif // !ENABLE(OILPAN)
164 } 162 }
165 163
166 template<> 164 template<>
167 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate) 165 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventTarget* impl, v8::Handle<v8 ::Object> creationContext, v8::Isolate* isolate)
168 { 166 {
169 return toV8(impl, creationContext, isolate); 167 return toV8(impl, creationContext, isolate);
170 } 168 }
171 169
172 } // namespace WebCore 170 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698