Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / mojo / public / interfaces / bindings / tests / sample_import.mojom
index ff99c09..d28cb7b 100644 (file)
@@ -2,16 +2,30 @@
 // 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 {
@@ -20,6 +34,5 @@ struct Point {
 };
 
 interface ImportedInterface {
+  DoSomething();
 };
-
-}  // module imported