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

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

Issue 2709983004: WIP bindings: Add support for the record<K,V> WebIDL type. (Closed)
Patch Set: Rebased patch using NativeValueTraits for IDL types 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/VoidCallbackFunctionInterfaceArg.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h b/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h
index fa825b209e828135898cb9a704aff5a5a2e5d28a..53f4632c4d8b7b59fcd10304b41d2c55ef69d283 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/VoidCallbackFunctionInterfaceArg.h
@@ -13,6 +13,7 @@
#ifndef VoidCallbackFunctionInterfaceArg_h
#define VoidCallbackFunctionInterfaceArg_h
+#include "bindings/core/v8/NativeValueTraits.h"
#include "bindings/core/v8/ScriptWrappable.h"
#include "bindings/core/v8/TraceWrapperV8Reference.h"
#include "core/CoreExport.h"
@@ -46,6 +47,12 @@ class CORE_EXPORT VoidCallbackFunctionInterfaceArg final : public GarbageCollect
TraceWrapperV8Reference<v8::Function> m_callback;
};
+template <>
+struct NativeValueTraits<VoidCallbackFunctionInterfaceArg> {
+ using ImplType = VoidCallbackFunctionInterfaceArg;
+ CORE_EXPORT static VoidCallbackFunctionInterfaceArg* nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
+};
+
} // namespace blink
#endif // VoidCallbackFunctionInterfaceArg_h

Powered by Google App Engine
This is Rietveld 408576698