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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h

Issue 2730183003: bindings: Add C++ versions of WebIDL types and generalize NativeValueTraits. (Closed)
Patch Set: Move specialization for SerializedScriptValue to the appropriate header Created 3 years, 9 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/LongOrTestDictionary.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h b/third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h
index 40de8bbc03a046280ca3f7a9a4bb64fc1c944c0c..ee0b5c6442b9cb7b81c5cb8bda6509afd300ff4a 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/LongOrTestDictionary.h
@@ -14,6 +14,7 @@
#include "bindings/core/v8/Dictionary.h"
#include "bindings/core/v8/ExceptionState.h"
+#include "bindings/core/v8/NativeValueTraits.h"
#include "bindings/core/v8/V8Binding.h"
#include "bindings/core/v8/V8TestDictionary.h"
#include "core/CoreExport.h"
@@ -74,10 +75,15 @@ inline void v8SetReturnValue(const CallbackInfo& callbackInfo, LongOrTestDiction
}
template <>
-struct NativeValueTraits<LongOrTestDictionary> {
+struct NativeValueTraits<LongOrTestDictionary> : public NativeValueTraitsBase<LongOrTestDictionary> {
CORE_EXPORT static LongOrTestDictionary nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
};
+template <>
+struct V8TypeOf<LongOrTestDictionary> {
+ typedef V8LongOrTestDictionary Type;
+};
+
} // namespace blink
// We need to set canInitializeWithMemset=true because HeapVector supports

Powered by Google App Engine
This is Rietveld 408576698