Generate java bindings for structs.
commit88f666c4e84a6ba47557f3fd8582b4aa0610db6f
authorqsr@chromium.org <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 25 Jun 2014 13:28:50 +0000 (25 13:28 +0000)
committerqsr@chromium.org <qsr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 25 Jun 2014 13:28:50 +0000 (25 13:28 +0000)
tree80d65f7c3234733f285df5105de2dcfa30768f65
parent94d19055e4b0943e8ddd8976d9a455910d4b42fc
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
23 files changed:
build/android/findbugs_filter/findbugs_exclude.xml
build/get_landmines.py
mojo/android/javatests/src/org/chromium/mojo/HandleMock.java [copied from mojo/public/java/src/org/chromium/mojo/system/InvalidHandle.java with 62% similarity]
mojo/android/javatests/src/org/chromium/mojo/bindings/BindingsTest.java
mojo/android/javatests/src/org/chromium/mojo/system/impl/CoreImplTest.java
mojo/bindings/java/src/org/chromium/mojo/bindings/Struct.java [new file with mode: 0644]
mojo/public/interfaces/bindings/tests/math_calculator.mojom
mojo/public/interfaces/bindings/tests/sample_factory.mojom
mojo/public/interfaces/bindings/tests/sample_import.mojom
mojo/public/interfaces/bindings/tests/sample_import2.mojom
mojo/public/interfaces/bindings/tests/sample_interfaces.mojom
mojo/public/interfaces/bindings/tests/sample_service.mojom
mojo/public/interfaces/bindings/tests/test_structs.mojom
mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom
mojo/public/java/src/org/chromium/mojo/system/InvalidHandle.java
mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl
mojo/public/tools/bindings/generators/java_templates/java_macros.tmpl [deleted file]
mojo/public/tools/bindings/generators/java_templates/struct.java.tmpl [new file with mode: 0644]
mojo/public/tools/bindings/generators/java_templates/struct_definition.tmpl [new file with mode: 0644]
mojo/public/tools/bindings/generators/mojom_java_generator.py
mojo/public/tools/bindings/mojom_bindings_generator.gypi
mojo/public/tools/bindings/pylib/mojom/generate/generator.py
mojo/public/tools/bindings/pylib/mojom/generate/template_expander.py