| 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 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 if (!V8TestInterfaceEventInit::toImpl(info.GetIsolate(), info[1], testIn
terfaceEventInit, exceptionState)) { |
| 68 exceptionState.throwException(); |
| 69 return; |
| 70 } |
| 66 } | 71 } |
| 67 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv
entInitConstructor::create(type, testInterfaceEventInit); | 72 RefPtrWillBeRawPtr<TestInterfaceEventInitConstructor> impl = TestInterfaceEv
entInitConstructor::create(type, testInterfaceEventInit); |
| 68 v8::Local<v8::Object> wrapper = info.Holder(); | 73 v8::Local<v8::Object> wrapper = info.Holder(); |
| 69 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConst
ructor::wrapperTypeInfo, wrapper); | 74 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceEventInitConst
ructor::wrapperTypeInfo, wrapper); |
| 70 v8SetReturnValue(info, wrapper); | 75 v8SetReturnValue(info, wrapper); |
| 71 } | 76 } |
| 72 | 77 |
| 73 } // namespace TestInterfaceEventInitConstructorV8Internal | 78 } // namespace TestInterfaceEventInitConstructorV8Internal |
| 74 | 79 |
| 75 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInit
ConstructorAttributes[] = { | 80 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceEventInit
ConstructorAttributes[] = { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 145 } |
| 141 | 146 |
| 142 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra
ppable) | 147 void V8TestInterfaceEventInitConstructor::derefObject(ScriptWrappable* scriptWra
ppable) |
| 143 { | 148 { |
| 144 #if !ENABLE(OILPAN) | 149 #if !ENABLE(OILPAN) |
| 145 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); | 150 scriptWrappable->toImpl<TestInterfaceEventInitConstructor>()->deref(); |
| 146 #endif | 151 #endif |
| 147 } | 152 } |
| 148 | 153 |
| 149 } // namespace blink | 154 } // namespace blink |
| OLD | NEW |