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

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

Issue 1751563002: Mojo C++ bindings: support mapping mojo string to WTF::String. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync & rebase Created 4 years, 9 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
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 class {{interface.name}}Stub; 3 class {{interface.name}}Stub;
4 4
5 class {{interface.name}}RequestValidator; 5 class {{interface.name}}RequestValidator;
6 {%- if interface|has_callbacks %} 6 {%- if interface|has_callbacks %}
7 class {{interface.name}}ResponseValidator; 7 class {{interface.name}}ResponseValidator;
8 {%- endif %} 8 {%- endif %}
9 9
10 class {{interface.name}} { 10 class {{interface.name}} {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 {% if method.response_parameters != None %} 46 {% if method.response_parameters != None %}
47 {%- if method.sync %} 47 {%- if method.sync %}
48 virtual bool {{method.name}}({{interface_macros.declare_sync_method_params("", method)}}) { 48 virtual bool {{method.name}}({{interface_macros.declare_sync_method_params("", method)}}) {
49 // Sync method. This signature is used by the client side; the service side 49 // Sync method. This signature is used by the client side; the service side
50 // should implement the signature with callback below. 50 // should implement the signature with callback below.
51 NOTREACHED(); 51 NOTREACHED();
52 return false; 52 return false;
53 } 53 }
54 {%- endif %} 54 {%- endif %}
55 55
56 using {{method.name}}Callback = {{interface_macros.declare_callback(method)}}; 56 using {{method.name}}Callback = {{interface_macros.declare_callback(method, fo r_blink)}};
57 {%- endif %} 57 {%- endif %}
58 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0; 58 virtual void {{method.name}}({{interface_macros.declare_request_params("", met hod)}}) = 0;
59 {%- endfor %} 59 {%- endfor %}
60 }; 60 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698