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

Unified Diff: third_party/WebKit/Source/bindings/templates/dictionary_v8.h

Issue 1686033002: Add V8TypeOf<> for IDL dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/templates/dictionary_v8.h
diff --git a/third_party/WebKit/Source/bindings/templates/dictionary_v8.h b/third_party/WebKit/Source/bindings/templates/dictionary_v8.h
index 7eb47ade1796abfbfa12c189109df8774e2cdd85..e9bc6dc1681a4ae9230b71f78e6ca76dee3f106c 100644
--- a/third_party/WebKit/Source/bindings/templates/dictionary_v8.h
+++ b/third_party/WebKit/Source/bindings/templates/dictionary_v8.h
@@ -29,6 +29,11 @@ struct NativeValueTraits<{{cpp_class}}> {
static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value>, ExceptionState&);
};
+template <>
+struct V8TypeOf<{{cpp_class}}> {
+ typedef {{v8_class}} Type;
+};
+
} // namespace blink
#endif // {{v8_original_class}}_h
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698