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

Unified Diff: examples/indirect_service/indirect_service_demo.mojom

Issue 733563002: Mojo Example that demos the difference between providing and requesting an interface (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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: examples/indirect_service/indirect_service_demo.mojom
diff --git a/examples/echo/echo_service.mojom b/examples/indirect_service/indirect_service_demo.mojom
similarity index 53%
copy from examples/echo/echo_service.mojom
copy to examples/indirect_service/indirect_service_demo.mojom
index 561c25eb39d3cb6c58e2f4d9948f8278dfdf01fe..bb2c73f98ca046ec90c92eb8d7e1f421734cf51e 100644
--- a/examples/echo/echo_service.mojom
+++ b/examples/indirect_service/indirect_service_demo.mojom
@@ -4,6 +4,11 @@
module mojo.examples;
-interface EchoService {
- EchoString(string? value) => (string? value);
+interface IntegerService {
+ Increment() => (int32 value);
+};
+
+interface IndirectIntegerService {
+ Set(IntegerService? service);
yzshen1 2014/11/20 18:17:18 wrong indent.
+ Get(IntegerService&? service);
};

Powered by Google App Engine
This is Rietveld 408576698