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

Unified Diff: mojo/public/tools/bindings/generators/mojom_cpp_generator.py

Issue 1967703004: Mojo C++ bindings: add StringTraits and ArrayTraits for STL types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@27_update_users
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/interfaces/bindings/tests/struct_with_traits.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/generators/mojom_cpp_generator.py
diff --git a/mojo/public/tools/bindings/generators/mojom_cpp_generator.py b/mojo/public/tools/bindings/generators/mojom_cpp_generator.py
index d3e23fe18bdd83807e9342819340332995578654..daac7802b642b046f2d97d816909f4b388f013dc 100644
--- a/mojo/public/tools/bindings/generators/mojom_cpp_generator.py
+++ b/mojo/public/tools/bindings/generators/mojom_cpp_generator.py
@@ -177,11 +177,7 @@ def GetCppPodType(kind):
def GetCppArrayArgWrapperType(kind):
if IsTypemappedKind(kind):
- if mojom.IsStructKind(kind) and kind.native_only:
- return GetNativeTypeName(kind)
- else:
- raise Exception(
- "Cannot serialize containers of non-native typemapped structs yet!")
+ return GetNativeTypeName(kind)
if mojom.IsEnumKind(kind):
return GetNameForKind(kind)
if mojom.IsStructKind(kind) or mojom.IsUnionKind(kind):
« no previous file with comments | « mojo/public/interfaces/bindings/tests/struct_with_traits.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698