summaryrefslogtreecommitdiffstats
path: root/mojo/public/bindings/sample/sample_service.mojom
blob: 3358a58f07ec02a6c7898eafcbdb17bf00cb1d3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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 {
  uint8 alpha @0;
  uint8 beta @1;
  uint8 gamma @2;
};

[RequiredFields=7]
struct Foo {
  string name @8;
  int32 x @0;
  int32 y @1;
  bool a @2;
  bool b @3;
  bool c @4;
  Bar bar @5;
  Bar[] extra_bars @7;
  uint8[] data @6;
  handle[] files @9;
};

interface Service {
  void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0;
};

}