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.
5 import "sample_import.mojom"
6 import "sample_import2.mojom"
12 TYPE_VERTICAL = 1 << 0,
13 TYPE_HORIZONTAL = (1 << 1) + 0,
14 TYPE_BOTH = TYPE_VERTICAL | TYPE_HORIZONTAL,
17 uint8 alpha = (0x100 - 1) @0;
20 Type type = sample.Bar.TYPE_VERTICAL @3;
25 string name = "Fooby" @8;
33 uint8[] data = [1,2,3] @6;
34 handle<message_pipe> source @9;
35 handle<data_pipe_consumer>[] input_streams @10;
36 handle<data_pipe_producer>[] output_streams @11;
39 struct DefaultsTestInner {
41 string[] names = ["Jim"] @1;
42 int32 height = 6*12 @3;
46 sample.DefaultsTestInner[] people = [{32, ["Bob", "Bobby"]}] @1;
47 uint8[] data = [1, 2, 3] @2;
48 imported.Point point = {7, 15} @3;
49 int32[] shape_masks = [1 << imported.SHAPE_RECTANGLE] @4;
50 imported.Thing thing = {imported.SHAPE_CIRCLE, imported.COLOR_BLACK};
51 Bar.Type bar_type = Bar.TYPE_BOTH;
55 PostMessage@0(string message_text @0);
64 Frobinate@0(Foo foo @0, BazOptions baz @1, Port port @2);
68 interface ServiceClient {
69 DidFrobinate@0(int32 result @0);