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

Unified Diff: mojo/common/platform_handle.typemap

Issue 2561003002: Add mojo structs for ScopedFD and ScopedHandle. (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
« no previous file with comments | « mojo/common/platform_handle.mojom ('k') | mojo/common/test_common_custom_types.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/platform_handle.typemap
diff --git a/mojo/common/platform_handle.typemap b/mojo/common/platform_handle.typemap
new file mode 100644
index 0000000000000000000000000000000000000000..6c78378b0ebb109f1ebff7624a9a734cec91254f
--- /dev/null
+++ b/mojo/common/platform_handle.typemap
@@ -0,0 +1,15 @@
+# Copyright 2016 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/common/platform_handle.mojom"
+public_headers = [ "//mojo/common/platform_handle.h" ]
+traits_headers = [ "//mojo/common/common_custom_types_struct_traits.h" ]
+public_deps = [
+ "//mojo/common:struct_traits",
+]
+
+type_mappings = [
+ "mojo.common.mojom.FileDescriptor=mojo::common::ScopedFDForwarder[move_only,nullable_is_same_type]",
+ "mojo.common.mojom.WindowsHandle=mojo::common::ScopedHandleForwarder[move_only,nullable_is_same_type]",
+]
« no previous file with comments | « mojo/common/platform_handle.mojom ('k') | mojo/common/test_common_custom_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698