blob: d28cb7b4db8650fdd1ac4697fce6726b527e1871 (
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
34
35
36
37
38
|
// Copyright 2014 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.
[JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"]
module imported;
// This sample just defines some types that are imported into
// sample_service.mojom, to show how import works.
enum Shape {
RECTANGLE = 1,
CIRCLE,
TRIANGLE,
LAST = TRIANGLE,
};
// These enum values should not interfere with those of Shape above.
enum AnotherShape {
RECTANGLE = 10,
CIRCLE,
TRIANGLE,
};
enum YetAnotherShape {
RECTANGLE = 20,
CIRCLE,
TRIANGLE,
};
struct Point {
int32 x;
int32 y;
};
interface ImportedInterface {
DoSomething();
};
|