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

Side by Side Diff: Source/bindings/templates/methods.cpp

Issue 39493002: IDL compiler: void() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revised Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 {##############################################################################}
2 {% macro generate_method(method) %}
3 static void {{method.name}}Method(const v8::FunctionCallbackInfo<v8::Value>& arg s)
4 {
5 {{cpp_class_name}}* imp = {{v8_class_name}}::toNative(args.Holder());
6 imp->{{method.name}}();
7
8 return;
9 }
10 {% endmacro %}
11
12
13 {##############################################################################}
14 {% macro method_callback(method) %}
15 static void {{method.name}}MethodCallback(const v8::FunctionCallbackInfo<v8::Val ue>& args)
16 {
17 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
18 {{cpp_class_name}}V8Internal::{{method.name}}Method(args);
19 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
20 }
21 {% endmacro %}
OLDNEW
« no previous file with comments | « Source/bindings/templates/interface_base.cpp ('k') | Source/bindings/tests/idls/TestObjectPython.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698