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

Unified Diff: examples/hello_mojo/hello_mojo.mojom

Issue 1702103002: Add an even simpler standalone example. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 10 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
Index: examples/hello_mojo/hello_mojo.mojom
diff --git a/fusl/test/vector.cc b/examples/hello_mojo/hello_mojo.mojom
similarity index 57%
copy from fusl/test/vector.cc
copy to examples/hello_mojo/hello_mojo.mojom
index 77b04a305215b38c1acde7d693940283fbaefb0a..7c02852bd8bac4bcda8d0306e643deb7d8aa6007 100644
--- a/fusl/test/vector.cc
+++ b/examples/hello_mojo/hello_mojo.mojom
@@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <vector>
+module examples;
-int main(int argc, char** argv) {
- std::vector<int> xs(10);
-}
+[ServiceName="examples.HelloMojo"]
+interface HelloMojo {
+ Say(string request) => (string response);
+};

Powered by Google App Engine
This is Rietveld 408576698