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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% include 'copyright_block.txt' %} 1 {% include 'copyright_block.txt' %}
2 #ifndef {{v8_original_class}}_h 2 #ifndef {{v8_original_class}}_h
3 #define {{v8_original_class}}_h 3 #define {{v8_original_class}}_h
4 4
5 {% for filename in header_includes %} 5 {% for filename in header_includes %}
6 #include "{{filename}}" 6 #include "{{filename}}"
7 {% endfor %} 7 {% endfor %}
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 11 matching lines...) Expand all
22 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im pl) 22 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, {{cpp_class}}& im pl)
23 { 23 {
24 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate())); 24 v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInf o.GetIsolate()));
25 } 25 }
26 26
27 template <> 27 template <>
28 struct NativeValueTraits<{{cpp_class}}> { 28 struct NativeValueTraits<{{cpp_class}}> {
29 static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value>, Excepti onState&); 29 static {{cpp_class}} nativeValue(v8::Isolate*, v8::Local<v8::Value>, Excepti onState&);
30 }; 30 };
31 31
32 template <>
33 struct V8TypeOf<{{cpp_class}}> {
34 typedef {{v8_class}} Type;
35 };
36
32 } // namespace blink 37 } // namespace blink
33 38
34 #endif // {{v8_original_class}}_h 39 #endif // {{v8_original_class}}_h
OLDNEW
« 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