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

Side by Side Diff: Source/bindings/tests/results/core/V8TestInterfaceEventInitConstructor.cpp

Issue 946973005: IDL: Drop value conversion (V8 -> C++) macros from generated code (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address comments Created 5 years, 10 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 "V8TestInterfaceEventInitConstructor.h" 8 #include "V8TestInterfaceEventInitConstructor.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 { 49 {
50 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceEventInitConstructor", info.Holder(), info.GetIsolate()); 50 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte rfaceEventInitConstructor", info.Holder(), info.GetIsolate());
51 if (UNLIKELY(info.Length() < 2)) { 51 if (UNLIKELY(info.Length() < 2)) {
52 setMinimumArityTypeError(exceptionState, 2, info.Length()); 52 setMinimumArityTypeError(exceptionState, 2, info.Length());
53 exceptionState.throwIfNeeded(); 53 exceptionState.throwIfNeeded();
54 return; 54 return;
55 } 55 }
56 V8StringResource<> type; 56 V8StringResource<> type;
57 TestInterfaceEventInit testInterfaceEventInit; 57 TestInterfaceEventInit testInterfaceEventInit;
58 { 58 {
59 TOSTRING_VOID_INTERNAL(type, info[0]); 59 type = info[0];
60 if (!type.prepare())
61 return;
60 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { 62 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) {
61 exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit' ) is not an object."); 63 exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit' ) is not an object.");
62 exceptionState.throwIfNeeded(); 64 exceptionState.throwIfNeeded();
63 return; 65 return;
64 } 66 }
65 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestInterfaceEventInit::toImp l(info.GetIsolate(), info[1], testInterfaceEventInit, exceptionState), exception State); 67 V8TestInterfaceEventInit::toImpl(info.GetIsolate(), info[1], testInterfa ceEventInit, exceptionState);
68 if (exceptionState.throwIfNeeded())
69 return;
66 } 70 }
67 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv entInitConstructor::create(type, testInterfaceEventInit); 71 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv entInitConstructor::create(type, testInterfaceEventInit);
68 v8::Local<v8::Object> wrapper = info.Holder(); 72 v8::Local<v8::Object> wrapper = info.Holder();
69 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConst ructor::wrapperTypeInfo, wrapper); 73 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConst ructor::wrapperTypeInfo, wrapper);
70 v8SetReturnValue(info, wrapper); 74 v8SetReturnValue(info, wrapper);
71 } 75 }
72 76
73 } // namespace TestInterfaceEventInitConstructorV8Internal 77 } // namespace TestInterfaceEventInitConstructorV8Internal
74 78
75 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInit ConstructorAttributes[] = { 79 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInit ConstructorAttributes[] = {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 144 }
141 145
142 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra ppable) 146 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra ppable)
143 { 147 {
144 #if !ENABLE(OILPAN) 148 #if !ENABLE(OILPAN)
145 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); 149 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref();
146 #endif 150 #endif
147 } 151 }
148 152
149 } // namespace blink 153 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698