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

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: Fixed Android build 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
« no previous file with comments | « examples/indirect_service/indirect_service_demo.cc ('k') | examples/indirect_service/integer_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 54%
copy from examples/echo/echo_service.mojom
copy to examples/indirect_service/indirect_service_demo.mojom
index 561c25eb39d3cb6c58e2f4d9948f8278dfdf01fe..830fdbafa237511df2b4ef8aaeaa9541afff85cd 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);
+ Get(IntegerService&? service);
};
« no previous file with comments | « examples/indirect_service/indirect_service_demo.cc ('k') | examples/indirect_service/integer_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698