summaryrefslogtreecommitdiffstats
path: root/mojo/public/interfaces/bindings/tests
diff options
context:
space:
mode:
authorqsr@chromium.org <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-25 13:28:50 +0000
committerqsr@chromium.org <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-25 13:28:50 +0000
commit88f666c4e84a6ba47557f3fd8582b4aa0610db6f (patch)
tree80d65f7c3234733f285df5105de2dcfa30768f65 /mojo/public/interfaces/bindings/tests
parent94d19055e4b0943e8ddd8976d9a455910d4b42fc (diff)
downloadchromium_src-88f666c4e84a6ba47557f3fd8582b4aa0610db6f.zip
chromium_src-88f666c4e84a6ba47557f3fd8582b4aa0610db6f.tar.gz
chromium_src-88f666c4e84a6ba47557f3fd8582b4aa0610db6f.tar.bz2
Generate java bindings for structs.
This CL introduces bindings for struct. It only generates fields and not serialization/deserialization methods. R=rmcilroy@chromium.org, viettrungluu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279677 Review URL: https://codereview.chromium.org/306893010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@279707 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'mojo/public/interfaces/bindings/tests')
-rw-r--r--mojo/public/interfaces/bindings/tests/math_calculator.mojom2
-rw-r--r--mojo/public/interfaces/bindings/tests/sample_factory.mojom2
-rw-r--r--mojo/public/interfaces/bindings/tests/sample_import.mojom2
-rw-r--r--mojo/public/interfaces/bindings/tests/sample_import2.mojom2
-rw-r--r--mojo/public/interfaces/bindings/tests/sample_interfaces.mojom2
-rw-r--r--mojo/public/interfaces/bindings/tests/sample_service.mojom2
-rw-r--r--mojo/public/interfaces/bindings/tests/test_structs.mojom2
-rw-r--r--mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom2
8 files changed, 9 insertions, 7 deletions
diff --git a/mojo/public/interfaces/bindings/tests/math_calculator.mojom b/mojo/public/interfaces/bindings/tests/math_calculator.mojom
index 9901476..a18add1 100644
--- a/mojo/public/interfaces/bindings/tests/math_calculator.mojom
+++ b/mojo/public/interfaces/bindings/tests/math_calculator.mojom
@@ -2,7 +2,7 @@
// 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.math"]
+[JavaPackage="org.chromium.mojo.bindings.test.mojom.math"]
module math {
[Client=CalculatorUI]
diff --git a/mojo/public/interfaces/bindings/tests/sample_factory.mojom b/mojo/public/interfaces/bindings/tests/sample_factory.mojom
index f33864f..5273416 100644
--- a/mojo/public/interfaces/bindings/tests/sample_factory.mojom
+++ b/mojo/public/interfaces/bindings/tests/sample_factory.mojom
@@ -4,7 +4,7 @@
import "sample_import.mojom"
-[JavaPackage="org.chromium.mojo.bindings.test.sample"]
+[JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"]
module sample {
// This sample shows how handles to MessagePipes can be sent as both parameters
diff --git a/mojo/public/interfaces/bindings/tests/sample_import.mojom b/mojo/public/interfaces/bindings/tests/sample_import.mojom
index ff99c09..fddd587 100644
--- a/mojo/public/interfaces/bindings/tests/sample_import.mojom
+++ b/mojo/public/interfaces/bindings/tests/sample_import.mojom
@@ -2,7 +2,7 @@
// 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"]
+[JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"]
module imported {
// This sample just defines some types that are imported into
diff --git a/mojo/public/interfaces/bindings/tests/sample_import2.mojom b/mojo/public/interfaces/bindings/tests/sample_import2.mojom
index 7f6bcad..ebdde7c 100644
--- a/mojo/public/interfaces/bindings/tests/sample_import2.mojom
+++ b/mojo/public/interfaces/bindings/tests/sample_import2.mojom
@@ -4,7 +4,7 @@
import "sample_import.mojom"
-[JavaPackage="org.chromium.mojo.bindings.test.imported"]
+[JavaPackage="org.chromium.mojo.bindings.test.mojom.imported"]
module imported {
// This sample adds more types and constants to the "imported" namespace,
diff --git a/mojo/public/interfaces/bindings/tests/sample_interfaces.mojom b/mojo/public/interfaces/bindings/tests/sample_interfaces.mojom
index 429520f..5e19f41 100644
--- a/mojo/public/interfaces/bindings/tests/sample_interfaces.mojom
+++ b/mojo/public/interfaces/bindings/tests/sample_interfaces.mojom
@@ -2,7 +2,7 @@
// 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.sample",
+[JavaPackage="org.chromium.mojo.bindings.test.mojom.sample",
JavaConstantsClassName="InterfaceConstants",
Foo = "hello world"]
module sample {
diff --git a/mojo/public/interfaces/bindings/tests/sample_service.mojom b/mojo/public/interfaces/bindings/tests/sample_service.mojom
index 9a4694b..1dcc1c7 100644
--- a/mojo/public/interfaces/bindings/tests/sample_service.mojom
+++ b/mojo/public/interfaces/bindings/tests/sample_service.mojom
@@ -5,7 +5,7 @@
import "sample_import.mojom"
import "sample_import2.mojom"
-[JavaPackage="org.chromium.mojo.bindings.test.sample"]
+[JavaPackage="org.chromium.mojo.bindings.test.mojom.sample"]
module sample {
const uint8 kTwelve = 12;
diff --git a/mojo/public/interfaces/bindings/tests/test_structs.mojom b/mojo/public/interfaces/bindings/tests/test_structs.mojom
index 25399c8..cf91161 100644
--- a/mojo/public/interfaces/bindings/tests/test_structs.mojom
+++ b/mojo/public/interfaces/bindings/tests/test_structs.mojom
@@ -2,7 +2,7 @@
// 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.test_structs"]
+[JavaPackage="org.chromium.mojo.bindings.test.mojom.test_structs"]
module mojo.test {
struct Rect {
diff --git a/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom b/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
index 964d73b..310d916 100644
--- a/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
+++ b/mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
@@ -2,6 +2,8 @@
// 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.mojo"]
module mojo.test {
struct StructA {