Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp

Issue 2730183003: bindings: Add C++ versions of WebIDL types and generalize NativeValueTraits. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
index c0f6cf3659d58dbb95d758624b404a156f565e45..c26bc6d9c309dec5d104b07ce99ac8806d3a6149 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterface2.cpp
@@ -12,8 +12,10 @@
#include "V8TestInterface2.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/IDLTypes.h"
#include "bindings/core/v8/ScriptState.h"
#include "bindings/core/v8/ScriptValue.h"
+#include "bindings/core/v8/V8BindingForIDLTypes.h"
#include "bindings/core/v8/V8DOMConfiguration.h"
#include "bindings/core/v8/V8Iterator.h"
#include "bindings/core/v8/V8ObjectConstructor.h"
@@ -68,7 +70,7 @@ static void legacyCallerMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
}
uint32_t index;
- index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
+ index = NativeValueTraits<IDLUnsignedLong>::nativeValue(info.GetIsolate(), info[0], exceptionState, NormalConversion);
if (exceptionState.hadException())
return;
@@ -86,7 +88,7 @@ static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
}
uint32_t index;
- index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
+ index = NativeValueTraits<IDLUnsignedLong>::nativeValue(info.GetIsolate(), info[0], exceptionState, NormalConversion);
if (exceptionState.hadException())
return;
@@ -109,7 +111,7 @@ static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
uint32_t index;
TestInterfaceEmpty* value;
- index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
+ index = NativeValueTraits<IDLUnsignedLong>::nativeValue(info.GetIsolate(), info[0], exceptionState, NormalConversion);
if (exceptionState.hadException())
return;
@@ -138,7 +140,7 @@ static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
}
uint32_t index;
- index = toUInt32(info.GetIsolate(), info[0], NormalConversion, exceptionState);
+ index = NativeValueTraits<IDLUnsignedLong>::nativeValue(info.GetIsolate(), info[0], exceptionState, NormalConversion);
if (exceptionState.hadException())
return;

Powered by Google App Engine
This is Rietveld 408576698