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

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/interface_declaration.tmpl

Issue 2584763002: Mojo C++ bindings: remove support for generating code with mojo::Array/String/Map/WTFArray/WTFMap. (Closed)
Patch Set: Created 4 years 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
OLDNEW
1 {%- import "interface_macros.tmpl" as interface_macros %} 1 {%- import "interface_macros.tmpl" as interface_macros %}
2 class {{interface.name}}Proxy; 2 class {{interface.name}}Proxy;
3 3
4 template <typename ImplRefTraits> 4 template <typename ImplRefTraits>
5 class {{interface.name}}Stub; 5 class {{interface.name}}Stub;
6 6
7 class {{interface.name}}RequestValidator; 7 class {{interface.name}}RequestValidator;
8 {%- if interface|has_callbacks %} 8 {%- if interface|has_callbacks %}
9 class {{interface.name}}ResponseValidator; 9 class {{interface.name}}ResponseValidator;
10 {%- endif %} 10 {%- endif %}
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 {%- for method in interface.methods %} 49 {%- for method in interface.methods %}
50 {% if method.response_parameters != None %} 50 {% if method.response_parameters != None %}
51 {%- if method.sync %} 51 {%- if method.sync %}
52 // Sync method. This signature is used by the client side; the service side 52 // Sync method. This signature is used by the client side; the service side
53 // should implement the signature with callback below. 53 // should implement the signature with callback below.
54 virtual bool {{method.name}}({{interface_macros.declare_sync_method_params("", method)}}); 54 virtual bool {{method.name}}({{interface_macros.declare_sync_method_params("", method)}});
55 {%- endif %} 55 {%- endif %}
56 56
57 using {{method.name}}Callback = {{interface_macros.declare_callback(method, 57 using {{method.name}}Callback = {{interface_macros.declare_callback(method,
58 for_blink, use_new_wrapper_types, use_once_callback)}}; 58 for_blink, use_once_callback)}};
59 {%- endif %} 59 {%- endif %}
60 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod, use_once_callback)}}) = 0; 60 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod, use_once_callback)}}) = 0;
61 {%- endfor %} 61 {%- endfor %}
62 }; 62 };
OLDNEW
« no previous file with comments | « PRESUBMIT.py ('k') | mojo/public/tools/bindings/generators/cpp_templates/interface_definition.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698