| 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 "bindings/core/v8/UnionTypesCore.h" | 8 #include "bindings/core/v8/UnionTypesCore.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| (...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 if (v8Value.IsEmpty()) | 1074 if (v8Value.IsEmpty()) |
| 1075 return; | 1075 return; |
| 1076 | 1076 |
| 1077 if (V8TestInterface::hasInstance(v8Value, isolate)) { | 1077 if (V8TestInterface::hasInstance(v8Value, isolate)) { |
| 1078 RefPtr<TestInterfaceImplementation> cppValue = V8TestInterface::toImpl(v
8::Local<v8::Object>::Cast(v8Value)); | 1078 RefPtr<TestInterfaceImplementation> cppValue = V8TestInterface::toImpl(v
8::Local<v8::Object>::Cast(v8Value)); |
| 1079 impl.setTestInterface(cppValue); | 1079 impl.setTestInterface(cppValue); |
| 1080 return; | 1080 return; |
| 1081 } | 1081 } |
| 1082 | 1082 |
| 1083 if (v8Value->IsNumber()) { | 1083 if (v8Value->IsNumber()) { |
| 1084 int cppValue = toInt32(isolate, v8Value, exceptionState); | 1084 int cppValue = toInt32(isolate, v8Value, NormalConversion, exceptionStat
e); |
| 1085 if (exceptionState.hadException()) | 1085 if (exceptionState.hadException()) |
| 1086 return; | 1086 return; |
| 1087 impl.setLong(cppValue); | 1087 impl.setLong(cppValue); |
| 1088 return; | 1088 return; |
| 1089 } | 1089 } |
| 1090 | 1090 |
| 1091 { | 1091 { |
| 1092 int cppValue = toInt32(isolate, v8Value, exceptionState); | 1092 int cppValue = toInt32(isolate, v8Value, NormalConversion, exceptionStat
e); |
| 1093 if (exceptionState.hadException()) | 1093 if (exceptionState.hadException()) |
| 1094 return; | 1094 return; |
| 1095 impl.setLong(cppValue); | 1095 impl.setLong(cppValue); |
| 1096 return; | 1096 return; |
| 1097 } | 1097 } |
| 1098 | 1098 |
| 1099 } | 1099 } |
| 1100 | 1100 |
| 1101 v8::Local<v8::Value> toV8(const TestInterfaceOrLong& impl, v8::Local<v8::Object>
creationContext, v8::Isolate* isolate) | 1101 v8::Local<v8::Value> toV8(const TestInterfaceOrLong& impl, v8::Local<v8::Object>
creationContext, v8::Isolate* isolate) |
| 1102 { | 1102 { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 } | 1387 } |
| 1388 | 1388 |
| 1389 UnrestrictedDoubleOrString NativeValueTraits<UnrestrictedDoubleOrString>::native
Value(v8::Local<v8::Value> value, v8::Isolate* isolate, ExceptionState& exceptio
nState) | 1389 UnrestrictedDoubleOrString NativeValueTraits<UnrestrictedDoubleOrString>::native
Value(v8::Local<v8::Value> value, v8::Isolate* isolate, ExceptionState& exceptio
nState) |
| 1390 { | 1390 { |
| 1391 UnrestrictedDoubleOrString impl; | 1391 UnrestrictedDoubleOrString impl; |
| 1392 V8UnrestrictedDoubleOrString::toImpl(isolate, value, impl, exceptionState); | 1392 V8UnrestrictedDoubleOrString::toImpl(isolate, value, impl, exceptionState); |
| 1393 return impl; | 1393 return impl; |
| 1394 } | 1394 } |
| 1395 | 1395 |
| 1396 } // namespace blink | 1396 } // namespace blink |
| OLD | NEW |