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

Unified Diff: mojo/public/bindings/sample/sample_service.idl

Issue 27034003: Mojo C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compilation issue on Official Linux builder Created 7 years, 2 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: mojo/public/bindings/sample/sample_service.idl
diff --git a/mojo/public/bindings/sample/sample_service.idl b/mojo/public/bindings/sample/sample_service.idl
new file mode 100644
index 0000000000000000000000000000000000000000..ed611a4db7183e6a902804849cc9f8306d8eac1a
--- /dev/null
+++ b/mojo/public/bindings/sample/sample_service.idl
@@ -0,0 +1,32 @@
+// Copyright 2013 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.
+
+// HYPOTHETICAL IDL:
+
+module sample {
+
+struct Bar {
+ alpha @0 :uint8;
+ beta @1 :uint8;
+ gamma @2 :uint8;
+};
+
+struct Foo {
+ name @8 :string;
+ x @0 :int32;
+ y @1 :int32;
+ a @2 :bool;
+ b @3 :bool;
+ c @4 :bool;
+ bar @5 :Bar;
+ extra_bars @7 :array(Bar) [optional];
+ data @6 :array(uint8);
+ files @9 :array(handle);
+};
+
+interface Service {
+ Frobinate @0 (foo @0 :Foo, baz @1 :bool, port @2 :handle);
+};
+
+}

Powered by Google App Engine
This is Rietveld 408576698