OLD | NEW |
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 Loading... |
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 TONATIVE_CONVERT((type = info[0]).prepare(), return); |
60 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { | 60 if (!isUndefinedOrNull(info[1]) && !info[1]->IsObject()) { |
61 exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit'
) is not an object."); | 61 exceptionState.throwTypeError("parameter 2 ('testInterfaceEventInit'
) is not an object."); |
62 exceptionState.throwIfNeeded(); | 62 exceptionState.throwIfNeeded(); |
63 return; | 63 return; |
64 } | 64 } |
65 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestInterfaceEventInit::toImp
l(info.GetIsolate(), info[1], testInterfaceEventInit, exceptionState), exception
State); | 65 TONATIVE_CONVERT(V8TestInterfaceEventInit::toImpl(info.GetIsolate(), inf
o[1], testInterfaceEventInit, exceptionState), return exceptionState.throwExcept
ion()); |
66 } | 66 } |
67 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv
entInitConstructor::create(type, testInterfaceEventInit); | 67 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv
entInitConstructor::create(type, testInterfaceEventInit); |
68 v8::Local<v8::Object> wrapper = info.Holder(); | 68 v8::Local<v8::Object> wrapper = info.Holder(); |
69 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConst
ructor::wrapperTypeInfo, wrapper); | 69 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConst
ructor::wrapperTypeInfo, wrapper); |
70 v8SetReturnValue(info, wrapper); | 70 v8SetReturnValue(info, wrapper); |
71 } | 71 } |
72 | 72 |
73 } // namespace TestInterfaceEventInitConstructorV8Internal | 73 } // namespace TestInterfaceEventInitConstructorV8Internal |
74 | 74 |
75 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInit
ConstructorAttributes[] = { | 75 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInit
ConstructorAttributes[] = { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 140 } |
141 | 141 |
142 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra
ppable) | 142 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra
ppable) |
143 { | 143 { |
144 #if !ENABLE(OILPAN) | 144 #if !ENABLE(OILPAN) |
145 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); | 145 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); |
146 #endif | 146 #endif |
147 } | 147 } |
148 | 148 |
149 } // namespace blink | 149 } // namespace blink |
OLD | NEW |