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

Unified Diff: mojo/common/values.typemap

Issue 2577563002: Add struct traits for base::Value. (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/common/values.mojom ('k') | mojo/common/values_struct_traits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/values.typemap
diff --git a/mojo/common/values.typemap b/mojo/common/values.typemap
index 6bda9fa650c425a10cb92583960d0438f105874a..069c277940b2c8e083ee310c994b34d4558b5274 100644
--- a/mojo/common/values.typemap
+++ b/mojo/common/values.typemap
@@ -4,12 +4,22 @@
mojom = "//mojo/common/values.mojom"
public_headers = [ "//base/values.h" ]
-traits_headers = [ "//ipc/ipc_message_utils.h" ]
+traits_headers = [
+ "//ipc/ipc_message_utils.h",
+ "//mojo/common/values_struct_traits.h",
+]
public_deps = [
+ "//base",
"//ipc",
]
+sources = [
+ "values_struct_traits.cc",
+ "values_struct_traits.h",
+]
type_mappings = [
- "mojo.common.mojom.DictionaryValue=base::DictionaryValue",
- "mojo.common.mojom.ListValue=base::ListValue",
+ "mojo.common.mojom.DictionaryValue=std::unique_ptr<base::DictionaryValue>[move_only,nullable_is_same_type]",
+ "mojo.common.mojom.LegacyListValue=base::ListValue",
+ "mojo.common.mojom.ListValue=std::unique_ptr<base::ListValue>[move_only,nullable_is_same_type]",
+ "mojo.common.mojom.Value=std::unique_ptr<base::Value>[move_only,nullable_is_same_type]",
]
« no previous file with comments | « mojo/common/values.mojom ('k') | mojo/common/values_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698