| 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 "V8TestInterfaceConstructor.h" | 8 #include "V8TestInterfaceConstructor.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) | 53 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 54 { | 54 { |
| 55 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), info.GetIsolate()); | 55 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), info.GetIsolate()); |
| 56 double doubleArg; | 56 double doubleArg; |
| 57 V8StringResource<> stringArg; | 57 V8StringResource<> stringArg; |
| 58 TestInterfaceEmpty* testInterfaceEmptyArg; | 58 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 59 Dictionary dictionaryArg; | 59 Dictionary dictionaryArg; |
| 60 Vector<String> sequenceStringArg; | 60 Vector<String> sequenceStringArg; |
| 61 Vector<Dictionary> sequenceDictionaryArg; | 61 Vector<Dictionary> sequenceDictionaryArg; |
| 62 Vector<LongOrTestDictionary> sequenceLongOrTestDictionaryArg; | 62 HeapVector<LongOrTestDictionary> sequenceLongOrTestDictionaryArg; |
| 63 Dictionary optionalDictionaryArg; | 63 Dictionary optionalDictionaryArg; |
| 64 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; | 64 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; |
| 65 { | 65 { |
| 66 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionStat
e); | 66 doubleArg = toRestrictedDouble(info.GetIsolate(), info[0], exceptionStat
e); |
| 67 if (exceptionState.throwIfNeeded()) | 67 if (exceptionState.throwIfNeeded()) |
| 68 return; | 68 return; |
| 69 stringArg = info[1]; | 69 stringArg = info[1]; |
| 70 if (!stringArg.prepare()) | 70 if (!stringArg.prepare()) |
| 71 return; | 71 return; |
| 72 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[2]); | 72 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[2]); |
| 73 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { | 73 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { |
| 74 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); | 74 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); |
| 75 exceptionState.throwIfNeeded(); | 75 exceptionState.throwIfNeeded(); |
| 76 return; | 76 return; |
| 77 } | 77 } |
| 78 dictionaryArg = Dictionary(info[3], info.GetIsolate(), exceptionState); | 78 dictionaryArg = Dictionary(info[3], info.GetIsolate(), exceptionState); |
| 79 if (exceptionState.throwIfNeeded()) | 79 if (exceptionState.throwIfNeeded()) |
| 80 return; | 80 return; |
| 81 sequenceStringArg = toImplArray<Vector<String>>(info[4], 5, info.GetIsol
ate(), exceptionState); | 81 sequenceStringArg = toImplArray<Vector<String>>(info[4], 5, info.GetIsol
ate(), exceptionState); |
| 82 if (exceptionState.throwIfNeeded()) | 82 if (exceptionState.throwIfNeeded()) |
| 83 return; | 83 return; |
| 84 sequenceDictionaryArg = toImplArray<Vector<Dictionary>>(info[5], 6, info
.GetIsolate(), exceptionState); | 84 sequenceDictionaryArg = toImplArray<Vector<Dictionary>>(info[5], 6, info
.GetIsolate(), exceptionState); |
| 85 if (exceptionState.throwIfNeeded()) | 85 if (exceptionState.throwIfNeeded()) |
| 86 return; | 86 return; |
| 87 sequenceLongOrTestDictionaryArg = toImplArray<Vector<LongOrTestDictionar
y>>(info[6], 7, info.GetIsolate(), exceptionState); | 87 sequenceLongOrTestDictionaryArg = toImplArray<HeapVector<LongOrTestDicti
onary>>(info[6], 7, info.GetIsolate(), exceptionState); |
| 88 if (exceptionState.throwIfNeeded()) | 88 if (exceptionState.throwIfNeeded()) |
| 89 return; | 89 return; |
| 90 if (!isUndefinedOrNull(info[7]) && !info[7]->IsObject()) { | 90 if (!isUndefinedOrNull(info[7]) && !info[7]->IsObject()) { |
| 91 exceptionState.throwTypeError("parameter 8 ('optionalDictionaryArg')
is not an object."); | 91 exceptionState.throwTypeError("parameter 8 ('optionalDictionaryArg')
is not an object."); |
| 92 exceptionState.throwIfNeeded(); | 92 exceptionState.throwIfNeeded(); |
| 93 return; | 93 return; |
| 94 } | 94 } |
| 95 optionalDictionaryArg = Dictionary(info[7], info.GetIsolate(), exception
State); | 95 optionalDictionaryArg = Dictionary(info[7], info.GetIsolate(), exception
State); |
| 96 if (exceptionState.throwIfNeeded()) | 96 if (exceptionState.throwIfNeeded()) |
| 97 return; | 97 return; |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 { | 376 { |
| 377 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref(); | 377 scriptWrappable->toImpl<TestInterfaceConstructor>()->ref(); |
| 378 } | 378 } |
| 379 | 379 |
| 380 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable) | 380 void V8TestInterfaceConstructor::derefObject(ScriptWrappable* scriptWrappable) |
| 381 { | 381 { |
| 382 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); | 382 scriptWrappable->toImpl<TestInterfaceConstructor>()->deref(); |
| 383 } | 383 } |
| 384 | 384 |
| 385 } // namespace blink | 385 } // namespace blink |
| OLD | NEW |