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

Unified Diff: mojo/public/bindings/generators/cpp_templates/struct_serialization.h-template

Issue 60863002: Mojo: Support camel cased types in generator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Additional fixes 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | mojo/public/bindings/generators/mojom_cpp_generator.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/generators/cpp_templates/struct_serialization.h-template
diff --git a/mojo/public/bindings/generators/cpp_templates/struct_serialization.h-template b/mojo/public/bindings/generators/cpp_templates/struct_serialization.h-template
index 54e5129f75f2eba61c992cf123511063ac18c213..2e3128319f7c4ff15c3a9cd7e5bbc7455faa6adf 100644
--- a/mojo/public/bindings/generators/cpp_templates/struct_serialization.h-template
+++ b/mojo/public/bindings/generators/cpp_templates/struct_serialization.h-template
@@ -17,11 +17,11 @@ namespace internal {
template <>
class ObjectTraits<$FULL_CLASS> {
public:
- static size_t ComputeSizeOf(const $FULL_CLASS* bar);
+ static size_t ComputeSizeOf(const $FULL_CLASS* $NAME);
static $FULL_CLASS* Clone(const $FULL_CLASS* bar, Buffer* buf);
- static void EncodePointersAndHandles($FULL_CLASS* bar,
+ static void EncodePointersAndHandles($FULL_CLASS* $NAME,
std::vector<mojo::Handle>* handles);
- static bool DecodePointersAndHandles($FULL_CLASS* bar,
+ static bool DecodePointersAndHandles($FULL_CLASS* $NAME,
const mojo::Message& message);
};
« no previous file with comments | « no previous file | mojo/public/bindings/generators/mojom_cpp_generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698