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

Unified Diff: mojo/public/bindings/tests/sample_interfaces.mojom

Issue 198343002: Mojo: request/response bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
« no previous file with comments | « mojo/public/bindings/tests/router_unittest.cc ('k') | mojo/services/gles2/command_buffer.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/tests/sample_interfaces.mojom
diff --git a/mojo/public/bindings/tests/sample_interfaces.mojom b/mojo/public/bindings/tests/sample_interfaces.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..93c334d98b9e35caffa3c3ca61a9cce3cc4a8c8d
--- /dev/null
+++ b/mojo/public/bindings/tests/sample_interfaces.mojom
@@ -0,0 +1,27 @@
+// Copyright 2014 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.
+
+module sample {
+
+struct Coord {
+ int32 x;
+ int32 y;
+};
+
+[Peer=ProviderClient]
+interface Provider {
+ EchoString(string a) => (string a);
+ EchoStrings(string a, string b) => (string a, string b);
+ EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a);
+ //EchoVoid() => ();
+ //MakeCoord(int32 x, int32 y) => (Coord coord);
+ //Make2Coords(int32 x1, int32 y1, int32 x2, int32 y2) =>
+ // (Coord coord1, Coord coord2);
+};
+
+[Peer=Provider]
+interface ProviderClient {
+};
+
+}
« no previous file with comments | « mojo/public/bindings/tests/router_unittest.cc ('k') | mojo/services/gles2/command_buffer.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698