- add sources.
[platform/framework/web/crosswalk.git] / src / mojo / public / bindings / sample / sample_service.idl
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // HYPOTHETICAL IDL:
6
7 module sample {
8
9 struct Bar {
10   uint8 alpha @0;
11   uint8 beta @1;
12   uint8 gamma @2;
13 };
14
15 [RequiredFields=7]
16 struct Foo {
17   string name @8;
18   int32 x @0;
19   int32 y @1;
20   bool a @2;
21   bool b @3;
22   bool c @4;
23   Bar bar @5;
24   Bar[] extra_bars @7;
25   uint8[] data @6;
26   handle[] files @9;
27 };
28
29 interface Service {
30   void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0;
31 };
32
33 }