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

Unified Diff: mojo/public/cpp/bindings/tests/struct_with_traits.typemap

Issue 1832703002: Mojo: Simplify typemap usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-bindings-variant-import
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: mojo/public/cpp/bindings/tests/struct_with_traits.typemap
diff --git a/mojo/public/cpp/bindings/tests/struct_with_traits.typemap b/mojo/public/cpp/bindings/tests/struct_with_traits.typemap
new file mode 100644
index 0000000000000000000000000000000000000000..cbaf7d482d0db6f439ff9b7b058555fcb757d770
--- /dev/null
+++ b/mojo/public/cpp/bindings/tests/struct_with_traits.typemap
@@ -0,0 +1,15 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+mojom = "//mojo/public/interfaces/bindings/tests/struct_with_traits.mojom"
+public_headers =
+ [ "//mojo/public/cpp/bindings/tests/struct_with_traits_impl.h" ]
+traits_headers =
+ [ "//mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.h" ]
+sources = [
+ "//mojo/public/cpp/bindings/tests/struct_with_traits_impl_traits.cc",
yzshen1 2016/04/05 17:36:14 Is "struct_with_triats_impl.cc" missing? Do we nee
Sam McNally 2016/04/06 07:02:53 The typemap should have: - deps for the native typ
yzshen1 2016/04/06 16:00:47 Can |sources| in case #1 be compiled into one of t
Sam McNally 2016/04/07 00:19:43 No, the sources in #1 depend on the generated mojo
yzshen1 2016/04/08 19:58:25 Of course. :) Thanks for explaining.
+]
+
+type_mappings =
+ [ "mojo.test.StructWithTraits=mojo::test::StructWithTraitsImpl" ]

Powered by Google App Engine
This is Rietveld 408576698