Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Unified Diff: mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/DefaultsTest.java

Issue 306893010: Generate java bindings for structs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Follow review Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/DefaultsTest.java
diff --git a/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/DefaultsTest.java b/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/DefaultsTest.java
new file mode 100644
index 0000000000000000000000000000000000000000..92c46a9fafc409916c6bcb81d291d305fb53e854
--- /dev/null
+++ b/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/DefaultsTest.java
@@ -0,0 +1,56 @@
+// 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.
+
+// This file is autogenerated by:
+// mojo/public/tools/bindings/mojom_bindings_generator.py
+// For:
+// mojo/public/interfaces/bindings/tests/sample_service.mojom
+//
+
+package org.chromium.mojo.bindings.test.sample;
+
+public final class DefaultsTest extends org.chromium.mojo.bindings.Struct {
+
+ public byte a0;
+ public byte a1;
+ public short a2;
+ public short a3;
+ public int a4;
+ public int a5;
+ public long a6;
+ public long a7;
+ public int a8;
+ public int a9;
+ public int a10;
+ public boolean a11;
+ public boolean a12;
+ public float a13;
+ public double a14;
+ public double a15;
+ public double a16;
+ public double a17;
+ public org.chromium.mojo.bindings.test.sample.DefaultsTestInner a18;
+ public byte[] a19;
+ public String a20;
+
+ public DefaultsTest() {
+ a0 = (byte) -12L;
+ a1 = (byte) 12L;
+ a2 = (short) 1234L;
+ a3 = (short) 34567L;
+ a4 = (int) 123456L;
+ a6 = (long) 111111111111L;
+ a8 = (int) 0x12345;
+ a9 = (int) -0x12345;
+ a10 = (int) +1234L;
+ a11 = (boolean) true;
+ a12 = (boolean) false;
+ a13 = (float) 123.25;
+ a14 = (double) 1234567890.123;
+ a15 = (double) 1E10;
+ a16 = (double) -1.2E+20;
+ a17 = (double) +1.23E-20;
+ }
+
+ }

Powered by Google App Engine
This is Rietveld 408576698