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

Unified Diff: mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/Bar.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/Bar.java
diff --git a/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/Bar.java b/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/Bar.java
new file mode 100644
index 0000000000000000000000000000000000000000..f4a015eb4bb9e5f8e9efcb4512bace9f3a293cd8
--- /dev/null
+++ b/mojo/not-to-commit/mojo_public_test_interfaces/src/org/chromium/mojo/bindings/test/sample/Bar.java
@@ -0,0 +1,36 @@
+// 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 Bar extends org.chromium.mojo.bindings.Struct {
+
+ public static final class Type {
+
+ public static final int TYPE_VERTICAL = (int) (1L<<0L);
+ public static final int TYPE_HORIZONTAL = (int) ((1L<<1L)+0L);
+ public static final int TYPE_BOTH = (int) (org.chromium.mojo.bindings.test.sample.Bar.Type.TYPE_VERTICAL|org.chromium.mojo.bindings.test.sample.Bar.Type.TYPE_HORIZONTAL);
+ public static final int TYPE_INVALID = TYPE_BOTH + 1;
+
+ private Type() {}
+
+ }
+
+ public byte alpha;
+ public byte beta;
+ public byte gamma;
+ public int type;
+
+ public Bar() {
+ alpha = (byte) (0x100-1L);
+ type = (int) org.chromium.mojo.bindings.test.sample.Bar.Type.TYPE_VERTICAL;
+ }
+
+ }

Powered by Google App Engine
This is Rietveld 408576698