| 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 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterfacePartial.h" | 9 #include "V8TestInterfacePartial.h" |
| 10 | 10 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 if (UNLIKELY(info.Length() < 1)) { | 226 if (UNLIKELY(info.Length() < 1)) { |
| 227 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "partialVoidTestEnumModulesArgMethod", "TestInterface", 1, info
.Length()), info.GetIsolate()); | 227 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "partialVoidTestEnumModulesArgMethod", "TestInterface", 1, info
.Length()), info.GetIsolate()); |
| 228 return; | 228 return; |
| 229 } | 229 } |
| 230 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 230 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 231 V8StringResource<> arg; | 231 V8StringResource<> arg; |
| 232 { | 232 { |
| 233 arg = info[0]; | 233 arg = info[0]; |
| 234 if (!arg.prepare()) | 234 if (!arg.prepare()) |
| 235 return; | 235 return; |
| 236 String string = arg; | 236 static const char* validValues[] = { |
| 237 if (!(string == "EnumModulesValue1" || string == "EnumModulesValue2")) { | 237 "EnumModulesValue1", |
| 238 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("partialVoidTestEnumModulesArgMethod", "TestInterface", "para
meter 1 ('" + string + "') is not a valid enum value.")); | 238 "EnumModulesValue2", |
| 239 }; |
| 240 if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues))) { |
| 241 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("partialVoidTestEnumModulesArgMethod", "TestInterface", "para
meter 1 ('" + toCoreString(info.GetIsolate(), info[0]) + "') is not a valid enum
value.")); |
| 239 return; | 242 return; |
| 240 } | 243 } |
| 241 } | 244 } |
| 242 TestPartialInterfaceImplementation3::partialVoidTestEnumModulesArgMethod(*im
pl, arg); | 245 TestPartialInterfaceImplementation3::partialVoidTestEnumModulesArgMethod(*im
pl, arg); |
| 243 } | 246 } |
| 244 | 247 |
| 245 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 248 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 246 { | 249 { |
| 247 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); | 250 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod"); |
| 248 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM
ethodMethod(info); | 251 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM
ethodMethod(info); |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 360 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 358 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 361 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 359 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 362 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 360 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 363 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 361 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 364 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 362 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 365 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 363 } | 366 } |
| 364 | 367 |
| 365 } // namespace blink | 368 } // namespace blink |
| 366 #endif // ENABLE(CONDITION) | 369 #endif // ENABLE(CONDITION) |
| OLD | NEW |