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

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

Issue 23913008: C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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_service.idl
diff --git a/mojo/public/bindings/sample_service.idl b/mojo/public/bindings/sample_service.idl
new file mode 100644
index 0000000000000000000000000000000000000000..11bf7d0eac344036bec1c905652bac441f2e4565
--- /dev/null
+++ b/mojo/public/bindings/sample_service.idl
@@ -0,0 +1,30 @@
+// 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;
+};
viettrungluu 2013/10/01 00:51:04 Are we going to support ... - ... "enums"? Enumer
+
+struct Foo {
+ 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);
+};
+
+interface Service {
+ Frobinate @0 (foo @0 :Foo, baz @1 :bool);
+};
+
+}

Powered by Google App Engine
This is Rietveld 408576698