Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
index c6de14d2b7356e6ac08bef51f9a60420eab683dd..17eda00a30d48092ed421ac374585f59425d9b92 100644 |
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp |
@@ -12,6 +12,8 @@ |
#include "V8TestTypedefs.h" |
#include "bindings/core/v8/ExceptionState.h" |
+#include "bindings/core/v8/IDLTypes.h" |
+#include "bindings/core/v8/NativeValueTraitsImpl.h" |
#include "bindings/core/v8/StringOrDouble.h" |
#include "bindings/core/v8/TestInterfaceOrTestInterfaceEmpty.h" |
#include "bindings/core/v8/V8DOMConfiguration.h" |
@@ -72,7 +74,7 @@ static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons |
ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext, "TestTypedefs", "uLongLongAttribute"); |
// Prepare the value to be set. |
- uint64_t cppValue = toUInt64(info.GetIsolate(), v8Value, NormalConversion, exceptionState); |
+ uint64_t cppValue = NativeValueTraits<IDLUnsignedLongLong>::nativeValue(info.GetIsolate(), v8Value, exceptionState, NormalConversion); |
if (exceptionState.hadException()) |
return; |
@@ -140,7 +142,7 @@ static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8: |
float floatArg; |
V8StringResource<> stringArg; |
- floatArg = toRestrictedFloat(info.GetIsolate(), info[0], exceptionState); |
+ floatArg = NativeValueTraits<IDLFloat>::nativeValue(info.GetIsolate(), info[0], exceptionState); |
if (exceptionState.hadException()) |
return; |
@@ -389,4 +391,8 @@ TestTypedefs* V8TestTypedefs::toImplWithTypeCheck(v8::Isolate* isolate, v8::Loca |
return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(value)) : nullptr; |
} |
+TestTypedefs* NativeValueTraits<TestTypedefs>::nativeValue(v8::Isolate* isolate, v8::Local<v8::Value> value, ExceptionState& exceptionState) { |
+ return V8TestTypedefs::toImplWithTypeCheck(isolate, value); |
+} |
+ |
} // namespace blink |