// 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.imported"]
-module imported {
+[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 {
- SHAPE_RECTANGLE = 1,
- SHAPE_CIRCLE,
- SHAPE_TRIANGLE,
+ 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 {
};
interface ImportedInterface {
+ DoSomething();
};
-
-} // module imported