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

Unified Diff: third_party/WebKit/Source/platform/mojo/CommonCustomTypes.typemap

Issue 2539383002: Replace base::File wrapping with typemapping. (Closed)
Patch Set: 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
Index: third_party/WebKit/Source/platform/mojo/CommonCustomTypes.typemap
diff --git a/third_party/WebKit/Source/platform/mojo/CommonCustomTypes.typemap b/third_party/WebKit/Source/platform/mojo/CommonCustomTypes.typemap
index 3c3b1bb8833b237dc35ecacf6144dd26613451cf..00ec681843a1ba84be655158e7fe361a348ce71f 100644
--- a/third_party/WebKit/Source/platform/mojo/CommonCustomTypes.typemap
+++ b/third_party/WebKit/Source/platform/mojo/CommonCustomTypes.typemap
@@ -3,10 +3,19 @@
# found in the LICENSE file.
mojom = "//mojo/common/common_custom_types.mojom"
-public_headers = [ "//third_party/WebKit/Source/wtf/text/WTFString.h" ]
-traits_headers = [ "//third_party/WebKit/Source/platform/mojo/CommonCustomTypesStructTraits.h" ]
+public_headers = [
+ "//base/files/file.h",
+ "//third_party/WebKit/Source/wtf/text/WTFString.h",
+]
+traits_headers = [
+ "//mojo/common/common_custom_types_struct_traits.h",
+ "//third_party/WebKit/Source/platform/mojo/CommonCustomTypesStructTraits.h",
+]
deps = [
+ "//mojo/common:struct_traits",
"//mojo/public/cpp/bindings",
]
-type_mappings =
- [ "mojo.common.mojom.String16=WTF::String[nullable_is_same_type]" ]
+type_mappings = [
+ "mojo.common.mojom.File=base::File[move_only,nullable_is_same_type]",
+ "mojo.common.mojom.String16=WTF::String[nullable_is_same_type]",
+]

Powered by Google App Engine
This is Rietveld 408576698