| 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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
derefObject, 0, 0, 0, V8TestInterfaceConstructor::installPerContextEnabledMethod
s, 0, WrapperTypeObjectPrototype, RefCountedObject }; | 43 const WrapperTypeInfo V8TestInterfaceConstructor::wrapperTypeInfo = { gin::kEmbe
dderBlink, V8TestInterfaceConstructor::domTemplate, V8TestInterfaceConstructor::
derefObject, 0, 0, 0, V8TestInterfaceConstructor::installPerContextEnabledMethod
s, 0, WrapperTypeObjectPrototype, RefCountedObject }; |
| 44 | 44 |
| 45 namespace TestInterfaceConstructorV8Internal { | 45 namespace TestInterfaceConstructorV8Internal { |
| 46 | 46 |
| 47 template <typename T> void V8_USE(T) { } | 47 template <typename T> void V8_USE(T) { } |
| 48 | 48 |
| 49 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) | 49 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 50 { | 50 { |
| 51 v8::Isolate* isolate = info.GetIsolate(); | 51 v8::Isolate* isolate = info.GetIsolate(); |
| 52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), isolate); | 52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), isolate); |
| 53 ExecutionContext* context = currentExecutionContext(isolate); | 53 ExecutionContext* scriptContext = currentExecutionContext(isolate); |
| 54 Document& document = *toDocument(currentExecutionContext(isolate)); | 54 Document& document = *toDocument(currentExecutionContext(isolate)); |
| 55 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(con
text, document, exceptionState); | 55 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(scr
iptContext, document, exceptionState); |
| 56 if (exceptionState.throwIfNeeded()) | 56 if (exceptionState.throwIfNeeded()) |
| 57 return; | 57 return; |
| 58 | 58 |
| 59 v8::Handle<v8::Object> wrapper = info.Holder(); | 59 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re
lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper
Configuration::Independent); | 60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re
lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper
Configuration::Independent); |
| 61 v8SetReturnValue(info, wrapper); | 61 v8SetReturnValue(info, wrapper); |
| 62 } | 62 } |
| 63 | 63 |
| 64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) | 64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 65 { | 65 { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 88 TONATIVE_VOID_INTERNAL(sequenceStringArg, toNativeArray<String>(info[4],
5, info.GetIsolate())); | 88 TONATIVE_VOID_INTERNAL(sequenceStringArg, toNativeArray<String>(info[4],
5, info.GetIsolate())); |
| 89 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toNativeArray<Dictionary>(
info[5], 6, info.GetIsolate())); | 89 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toNativeArray<Dictionary>(
info[5], 6, info.GetIsolate())); |
| 90 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.G
etIsolate())); | 90 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.G
etIsolate())); |
| 91 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg
.isObject()) { | 91 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg
.isObject()) { |
| 92 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); | 92 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); |
| 93 exceptionState.throwIfNeeded(); | 93 exceptionState.throwIfNeeded(); |
| 94 return; | 94 return; |
| 95 } | 95 } |
| 96 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[7])); | 96 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[7])); |
| 97 } | 97 } |
| 98 ExecutionContext* context = currentExecutionContext(isolate); | 98 ExecutionContext* scriptContext = currentExecutionContext(isolate); |
| 99 Document& document = *toDocument(currentExecutionContext(isolate)); | 99 Document& document = *toDocument(currentExecutionContext(isolate)); |
| 100 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(con
text, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionaryArg, sequ
enceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTestInterfa
ceEmptyArg, exceptionState); | 100 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(scr
iptContext, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionaryArg
, sequenceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTestI
nterfaceEmptyArg, exceptionState); |
| 101 if (exceptionState.throwIfNeeded()) | 101 if (exceptionState.throwIfNeeded()) |
| 102 return; | 102 return; |
| 103 | 103 |
| 104 v8::Handle<v8::Object> wrapper = info.Holder(); | 104 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 105 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re
lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper
Configuration::Independent); | 105 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re
lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper
Configuration::Independent); |
| 106 v8SetReturnValue(info, wrapper); | 106 v8SetReturnValue(info, wrapper); |
| 107 } | 107 } |
| 108 | 108 |
| 109 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 109 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 110 { | 110 { |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 fromInternalPointer(object)->deref(); | 238 fromInternalPointer(object)->deref(); |
| 239 } | 239 } |
| 240 | 240 |
| 241 template<> | 241 template<> |
| 242 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 242 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 243 { | 243 { |
| 244 return toV8(impl, creationContext, isolate); | 244 return toV8(impl, creationContext, isolate); |
| 245 } | 245 } |
| 246 | 246 |
| 247 } // namespace WebCore | 247 } // namespace WebCore |
| OLD | NEW |