From 760d419f845f4dd75763558b1807f46fc4f89dd2 Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Thu, 17 Mar 2016 23:45:50 -0300 Subject: [PATCH 01/10] refactoring typedarrays step 1 --- .../emu/java/io/Numbers.java | 33 +- .../emu/java/nio/DirectByteBuffer.java | 292 +++++--- .../nio/DirectReadOnlyFloatBufferAdapter.java | 8 +- .../nio/DirectReadOnlyIntBufferAdapter.java | 4 +- .../nio/DirectReadOnlyShortBufferAdapter.java | 4 +- .../DirectReadWriteFloatBufferAdapter.java | 4 +- .../nio/DirectReadWriteIntBufferAdapter.java | 4 +- .../DirectReadWriteShortBufferAdapter.java | 4 +- .../gdx/backends/dragome/DragomeGL20.java | 28 +- .../dragome/js/typedarrays/ArrayBuffer.java | 24 +- .../js/typedarrays/FerTypedArraysFactory.java | 135 ++++ .../dragome/js/typedarrays/Float32Array.java | 43 +- .../dragome/js/typedarrays/Float64Array.java | 43 +- .../dragome/js/typedarrays/Int16Array.java | 41 +- .../dragome/js/typedarrays/Int32Array.java | 41 +- .../dragome/js/typedarrays/Int8Array.java | 43 +- .../dragome/js/typedarrays/Uint16Array.java | 41 +- .../dragome/js/typedarrays/Uint32Array.java | 41 +- .../dragome/js/typedarrays/Uint8Array.java | 41 +- .../js/typedarrays/Uint8ClampedArray.java | 55 +- .../js/typedarrays/utils/NativeImpl.java | 325 --------- .../js/typedarrays/utils/TypedArrays.java | 669 +----------------- .../typedarrays/utils/TypedArraysFactory.java | 23 - .../dragome/preloader/AssetDownloader.java | 11 +- .../gdx/tests/dragome/GearsLauncher.java | 1 - .../gdx/tests/dragome/examples/GearsDemo.java | 118 +-- 26 files changed, 472 insertions(+), 1604 deletions(-) create mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/FerTypedArraysFactory.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/NativeImpl.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArraysFactory.java diff --git a/backends/gdx-backend-dragome/emu/java/io/Numbers.java b/backends/gdx-backend-dragome/emu/java/io/Numbers.java index fdc551ed..cf187381 100644 --- a/backends/gdx-backend-dragome/emu/java/io/Numbers.java +++ b/backends/gdx-backend-dragome/emu/java/io/Numbers.java @@ -1,12 +1,12 @@ /* * Copyright 2010 Google Inc. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -16,37 +16,44 @@ package java.io; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; -public class Numbers { +public class Numbers +{ - static final double LN2 = Math.log(2); + static final double LN2= Math.log(2); - public static final int floatToIntBits (float f) { + public static final int floatToIntBits(float f) + { wfa.set(0, f); return wia.get(0); } - static Int8Array wba = Int8Array.create(4); - static Int32Array wia = Int32Array.create(wba.get_buffer(), 0, 1); - static Float32Array wfa = Float32Array.create(wba.get_buffer(), 0, 1); + static Int8Array wba= FerTypedArraysFactory.create(Int8Array.class, 4); + static Int32Array wia= FerTypedArraysFactory.create(Int32Array.class, wba.get_buffer(), 0, 1); + static Float32Array wfa= FerTypedArraysFactory.create(Float32Array.class, wba.get_buffer(), 0, 1); - public static final float intBitsToFloat (int i) { + public static final float intBitsToFloat(int i) + { wia.set(0, i); return wfa.get(0); } - public static final long doubleToLongBits (Double d) { + public static final long doubleToLongBits(Double d) + { throw new RuntimeException("NYI"); } - public static final double longBitsToDouble (long l) { + public static final double longBitsToDouble(long l) + { throw new RuntimeException("NYI"); } - public static long doubleToRawLongBits (double value) { + public static long doubleToRawLongBits(double value) + { throw new RuntimeException("NYI: Numbers.doubleToRawLongBits"); } } diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java index 2142a7bd..8289134f 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java @@ -21,6 +21,7 @@ import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; import com.badlogic.gdx.backends.dragome.utils.Endianness; @@ -31,219 +32,274 @@ *

* All methods are marked final for runtime performance. *

*/ -abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBufferView { +abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBufferView +{ Int8Array byteArray; - DirectByteBuffer (int capacity) { - this(ArrayBuffer.create(capacity), capacity, 0); + DirectByteBuffer(int capacity) + { + this(FerTypedArraysFactory.createArrayBuffer(capacity), capacity, 0); } - DirectByteBuffer (ArrayBuffer buf) { + DirectByteBuffer(ArrayBuffer buf) + { this(buf, buf.get_byteLength(), 0); } - DirectByteBuffer (ArrayBuffer buffer, int capacity, int offset) { + DirectByteBuffer(ArrayBuffer buffer, int capacity, int offset) + { super(capacity); - byteArray = Int8Array.create(buffer, offset, capacity); + byteArray= FerTypedArraysFactory.create(Int8Array.class, buffer, offset, capacity); } - public ArrayBufferView getTypedArray () { + public ArrayBufferView getTypedArray() + { return byteArray; } - public int getElementSize () { + public int getElementSize() + { return 1; } /* * Override ByteBuffer.get(byte[], int, int) to improve performance. - * + * * (non-Javadoc) - * + * * @see java.nio.ByteBuffer#get(byte[], int, int) */ - public final ByteBuffer get (byte[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { + public final ByteBuffer get(byte[] dest, int off, int len) + { + int length= dest.length; + if (off < 0 || len < 0 || (long) off + (long) len > length) + { throw new IndexOutOfBoundsException(); } - if (len > remaining()) { + if (len > remaining()) + { throw new BufferUnderflowException(); } - for (int i = 0; i < len; i++) { - dest[i + off] = get(position + i); + for (int i= 0; i < len; i++) + { + dest[i + off]= get(position + i); } - position += len; + position+= len; return this; } - public final byte get () { -// if (position == limit) { -// throw new BufferUnderflowException(); -// } - return (byte)byteArray.get(position++); + public final byte get() + { + // if (position == limit) { + // throw new BufferUnderflowException(); + // } + return (byte) byteArray.get(position++); } - public final byte get (int index) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - return (byte)byteArray.get(index); + public final byte get(int index) + { + // if (index < 0 || index >= limit) { + // throw new IndexOutOfBoundsException(); + // } + return (byte) byteArray.get(index); } - public final double getDouble () { + public final double getDouble() + { return Numbers.longBitsToDouble(getLong()); } - public final double getDouble (int index) { + public final double getDouble(int index) + { return Numbers.longBitsToDouble(getLong(index)); } - public final float getFloat () { + public final float getFloat() + { return Numbers.intBitsToFloat(getInt()); } - public final float getFloat (int index) { + public final float getFloat(int index) + { return Numbers.intBitsToFloat(getInt(index)); } - public final int getInt () { - int newPosition = position + 4; -// if (newPosition > limit) { -// throw new BufferUnderflowException(); -// } - int result = loadInt(position); - position = newPosition; + public final int getInt() + { + int newPosition= position + 4; + // if (newPosition > limit) { + // throw new BufferUnderflowException(); + // } + int result= loadInt(position); + position= newPosition; return result; } - public final int getInt (int index) { -// if (index < 0 || index + 4 > limit) { -// throw new IndexOutOfBoundsException(); -// } + public final int getInt(int index) + { + // if (index < 0 || index + 4 > limit) { + // throw new IndexOutOfBoundsException(); + // } return loadInt(index); } - public final long getLong () { - int newPosition = position + 8; -// if (newPosition > limit) { -// throw new BufferUnderflowException(); -// } - long result = loadLong(position); - position = newPosition; + public final long getLong() + { + int newPosition= position + 8; + // if (newPosition > limit) { + // throw new BufferUnderflowException(); + // } + long result= loadLong(position); + position= newPosition; return result; } - public final long getLong (int index) { -// if (index < 0 || index + 8 > limit) { -// throw new IndexOutOfBoundsException(); -// } + public final long getLong(int index) + { + // if (index < 0 || index + 8 > limit) { + // throw new IndexOutOfBoundsException(); + // } return loadLong(index); } - public final short getShort () { - int newPosition = position + 2; -// if (newPosition > limit) { -// throw new BufferUnderflowException(); -// } - short result = loadShort(position); - position = newPosition; + public final short getShort() + { + int newPosition= position + 2; + // if (newPosition > limit) { + // throw new BufferUnderflowException(); + // } + short result= loadShort(position); + position= newPosition; return result; } - public final short getShort (int index) { -// if (index < 0 || index + 2 > limit) { -// throw new IndexOutOfBoundsException(); -// } + public final short getShort(int index) + { + // if (index < 0 || index + 2 > limit) { + // throw new IndexOutOfBoundsException(); + // } return loadShort(index); } - public final boolean isDirect () { + public final boolean isDirect() + { return false; } - protected final int loadInt (int baseOffset) { - int bytes = 0; - if (order == Endianness.BIG_ENDIAN) { - for (int i = 0; i < 4; i++) { - bytes = bytes << 8; - bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); + protected final int loadInt(int baseOffset) + { + int bytes= 0; + if (order == Endianness.BIG_ENDIAN) + { + for (int i= 0; i < 4; i++) + { + bytes= bytes << 8; + bytes= bytes | (byteArray.get(baseOffset + i) & 0xFF); } - } else { - for (int i = 3; i >= 0; i--) { - bytes = bytes << 8; - bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); + } + else + { + for (int i= 3; i >= 0; i--) + { + bytes= bytes << 8; + bytes= bytes | (byteArray.get(baseOffset + i) & 0xFF); } } return bytes; } - protected final long loadLong (int baseOffset) { - long bytes = 0; - if (order == Endianness.BIG_ENDIAN) { - for (int i = 0; i < 8; i++) { - bytes = bytes << 8; - bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); + protected final long loadLong(int baseOffset) + { + long bytes= 0; + if (order == Endianness.BIG_ENDIAN) + { + for (int i= 0; i < 8; i++) + { + bytes= bytes << 8; + bytes= bytes | (byteArray.get(baseOffset + i) & 0xFF); } - } else { - for (int i = 7; i >= 0; i--) { - bytes = bytes << 8; - bytes = bytes | (byteArray.get(baseOffset + i) & 0xFF); + } + else + { + for (int i= 7; i >= 0; i--) + { + bytes= bytes << 8; + bytes= bytes | (byteArray.get(baseOffset + i) & 0xFF); } } return bytes; } - protected final short loadShort (int baseOffset) { - short bytes = 0; - if (order == Endianness.BIG_ENDIAN) { - bytes = (short)(byteArray.get(baseOffset) << 8); - bytes |= (byteArray.get(baseOffset + 1) & 0xFF); - } else { - bytes = (short)(byteArray.get(baseOffset + 1) << 8); - bytes |= (byteArray.get(baseOffset) & 0xFF); + protected final short loadShort(int baseOffset) + { + short bytes= 0; + if (order == Endianness.BIG_ENDIAN) + { + bytes= (short) (byteArray.get(baseOffset) << 8); + bytes|= (byteArray.get(baseOffset + 1) & 0xFF); + } + else + { + bytes= (short) (byteArray.get(baseOffset + 1) << 8); + bytes|= (byteArray.get(baseOffset) & 0xFF); } return bytes; } - protected final void store (int baseOffset, int value) { - if (order == Endianness.BIG_ENDIAN) { - for (int i = 3; i >= 0; i--) { - byteArray.set(baseOffset + i, (byte)(value & 0xFF)); - value = value >> 8; + protected final void store(int baseOffset, int value) + { + if (order == Endianness.BIG_ENDIAN) + { + for (int i= 3; i >= 0; i--) + { + byteArray.set(baseOffset + i, (byte) (value & 0xFF)); + value= value >> 8; } - } else { - for (int i = 0; i <= 3; i++) { - byteArray.set(baseOffset + i, (byte)(value & 0xFF)); - value = value >> 8; + } + else + { + for (int i= 0; i <= 3; i++) + { + byteArray.set(baseOffset + i, (byte) (value & 0xFF)); + value= value >> 8; } } } - protected final void store (int baseOffset, long value) { - if (order == Endianness.BIG_ENDIAN) { - for (int i = 7; i >= 0; i--) { - byteArray.set(baseOffset + i, (byte)(value & 0xFF)); - value = value >> 8; + protected final void store(int baseOffset, long value) + { + if (order == Endianness.BIG_ENDIAN) + { + for (int i= 7; i >= 0; i--) + { + byteArray.set(baseOffset + i, (byte) (value & 0xFF)); + value= value >> 8; } - } else { - for (int i = 0; i <= 7; i++) { - byteArray.set(baseOffset + i, (byte)(value & 0xFF)); - value = value >> 8; + } + else + { + for (int i= 0; i <= 7; i++) + { + byteArray.set(baseOffset + i, (byte) (value & 0xFF)); + value= value >> 8; } } } - protected final void store (int baseOffset, short value) { - if (order == Endianness.BIG_ENDIAN) { - byteArray.set(baseOffset, (byte)((value >> 8) & 0xFF)); - byteArray.set(baseOffset + 1, (byte)(value & 0xFF)); - } else { - byteArray.set(baseOffset + 1, (byte)((value >> 8) & 0xFF)); - byteArray.set(baseOffset, (byte)(value & 0xFF)); + protected final void store(int baseOffset, short value) + { + if (order == Endianness.BIG_ENDIAN) + { + byteArray.set(baseOffset, (byte) ((value >> 8) & 0xFF)); + byteArray.set(baseOffset + 1, (byte) (value & 0xFF)); + } + else + { + byteArray.set(baseOffset + 1, (byte) ((value >> 8) & 0xFF)); + byteArray.set(baseOffset, (byte) (value & 0xFF)); } } } diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java index 07dd47d6..e080f1a5 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java @@ -4,9 +4,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,8 +17,8 @@ package java.nio; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; /** This class wraps a byte buffer to be a float buffer. *

@@ -44,7 +44,7 @@ static FloatBuffer wrap (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.floatArray = TypedArrays.createFloat32Array(byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.floatArray = FerTypedArraysFactory.create(Float32Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); } @Override diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java index 5a9b8fdf..ef6cedcd 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java @@ -17,8 +17,8 @@ package java.nio; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; /** This class wraps a byte buffer to be a int buffer. *

@@ -44,7 +44,7 @@ static IntBuffer wrap (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.intArray = FerTypedArraysFactory.create(Int32Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); } @Override diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java index f7aa8f19..2a8aa4ab 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java @@ -17,8 +17,8 @@ package java.nio; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; /** This class wraps a byte buffer to be a short buffer. *

@@ -43,7 +43,7 @@ static ShortBuffer wrap (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 1)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.shortArray = FerTypedArraysFactory.create(Int16Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); } @Override diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java index 1bed4d61..c153db52 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java @@ -17,8 +17,8 @@ package java.nio; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; /** This class wraps a byte buffer to be a float buffer. *

@@ -44,7 +44,7 @@ static FloatBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.floatArray = TypedArrays.createFloat32Array(byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.floatArray = FerTypedArraysFactory.create(Float32Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); } // TODO(haustein) This will be slow diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java index 53c41b78..af8a2155 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java @@ -17,8 +17,8 @@ package java.nio; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; /** This class wraps a byte buffer to be a int buffer. *

@@ -43,7 +43,7 @@ static IntBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.intArray = TypedArrays.createInt32Array(byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.intArray = FerTypedArraysFactory.create(Int32Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); } // TODO(haustein) This will be slow diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java index e615baab..2a3036ae 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java @@ -17,8 +17,8 @@ package java.nio; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; /** This class wraps a byte buffer to be a short buffer. *

@@ -44,7 +44,7 @@ static ShortBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 1)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.shortArray = TypedArrays.createInt16Array(byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.shortArray = FerTypedArraysFactory.create(Int16Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); } // TODO(haustein) This will be slow diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java index 4188e559..746ce76f 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -26,11 +26,11 @@ import java.util.Map; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLActiveInfo; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLBuffer; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLFramebuffer; @@ -45,7 +45,7 @@ import com.badlogic.gdx.utils.GdxRuntimeException; import com.dragome.commons.javascript.ScriptHelper; -/** Ported from GWT backend. +/** Ported from GWT backend. * @author xpenatan */ public class DragomeGL20 implements GL20 { final Map programs = new HashMap(); @@ -73,27 +73,27 @@ public class DragomeGL20 implements GL20 { public DragomeGL20 (WebGLRenderingContext gl) { this.gl = gl; - floatBuffer = TypedArrays.createFloat32Array(2000 * 20); - intBuffer = TypedArrays.createInt32Array(2000 * 6); - shortBuffer = TypedArrays.createInt16Array(2000 * 6); + floatBuffer= FerTypedArraysFactory.create(Float32Array.class, 2000 * 20); + intBuffer= FerTypedArraysFactory.create(Int32Array.class, 2000 * 6); + shortBuffer = FerTypedArraysFactory.create(Int16Array.class, 2000 * 6); this.gl.pixelStorei(WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 0); } private void ensureCapacity (FloatBuffer buffer) { if (buffer.remaining() > floatBuffer.get_length()) { - floatBuffer = TypedArrays.createFloat32Array(buffer.remaining()); + floatBuffer= FerTypedArraysFactory.create(Float32Array.class, buffer.remaining()); } } private void ensureCapacity (ShortBuffer buffer) { if (buffer.remaining() > shortBuffer.get_length()) { - shortBuffer = TypedArrays.createInt16Array(buffer.remaining()); + shortBuffer = FerTypedArraysFactory.create(Int16Array.class, buffer.remaining()); } } private void ensureCapacity (IntBuffer buffer) { if (buffer.remaining() > intBuffer.get_length()) { - intBuffer = TypedArrays.createInt32Array(buffer.remaining()); + intBuffer = FerTypedArraysFactory.create(Int32Array.class, buffer.remaining()); } } @@ -417,7 +417,7 @@ public void glReadPixels (int x, int y, int width, int height, int format, int t // create new ArrayBufferView (4 bytes per pixel) int size = 4 * width * height; - Uint8Array buffer = Uint8Array.create(size); + Uint8Array buffer = FerTypedArraysFactory.create(Uint8Array.class, size); // read bytes to ArrayBufferView gl.readPixels(x, y, width, height, format, type, buffer); @@ -463,7 +463,7 @@ public void glTexImage2D (int target, int level, int internalformat, int width, int byteOffset = webGLArray.get_byteOffset() + pixels.position() * 4; - Uint8Array buffer = Uint8Array.create(webGLArray.get_buffer(), byteOffset, remainingBytes); + Uint8Array buffer = FerTypedArraysFactory.create(Uint8Array.class, webGLArray.get_buffer(), byteOffset, remainingBytes); gl.texImage2D(target, level, internalformat, width, height, border, format, type, buffer); } else { @@ -489,7 +489,7 @@ public void glTexSubImage2D (int target, int level, int xoffset, int yoffset, in int byteOffset = webGLArray.get_byteOffset() + pixels.position() * 4; - Uint8Array buffer = Uint8Array.create(webGLArray.get_buffer(), byteOffset, remainingBytes); + Uint8Array buffer = FerTypedArraysFactory.create(Uint8Array.class, webGLArray.get_buffer(), byteOffset, remainingBytes); gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, buffer); } else { diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBuffer.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBuffer.java index bfaaa274..94512e08 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBuffer.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBuffer.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,20 +16,8 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ -public interface ArrayBuffer { - - @DelegateCode(ignore = true) - public static ArrayBuffer create (int length) { - ScriptHelper.put("lenght", length, null); - Object instance = ScriptHelper.eval("new ArrayBuffer(length);", null); - ArrayBuffer node = JsDelegateFactory.createFrom(instance, ArrayBuffer.class); - return node; - } - - int get_byteLength (); +public interface ArrayBuffer +{ + int get_byteLength(); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/FerTypedArraysFactory.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/FerTypedArraysFactory.java new file mode 100644 index 00000000..ae2b1ff7 --- /dev/null +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/FerTypedArraysFactory.java @@ -0,0 +1,135 @@ +package com.badlogic.gdx.backends.dragome.js.typedarrays; + +import com.dragome.commons.DelegateCode; +import com.dragome.commons.javascript.ScriptHelper; +import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; + +public class FerTypedArraysFactory +{ + @DelegateCode(ignore= true) + public static T create(Class type, ArrayBuffer buffer) + { + ScriptHelper.put("buffer", buffer, null); + String script= "new " + type.getSimpleName() + "(buffer.node)"; + Object instance= ScriptHelper.eval(script, null); + T node= (T) JsDelegateFactory.createFrom(instance, type); + return node; + } + + @DelegateCode(ignore= true) + public static T create(Class type, ArrayBuffer buffer, int byteOffset) + { + ScriptHelper.put("buffer", buffer, null); + ScriptHelper.put("byteOffset", byteOffset, null); + String script= "new " + type.getSimpleName() + "(buffer.node, byteOffset);"; + Object instance= ScriptHelper.eval(script, null); + T node= JsDelegateFactory.createFrom(instance, type); + return node; + }; + + @DelegateCode(ignore= true) + public static T create(Class type, ArrayBuffer buffer, int byteOffset, int length) + { + ScriptHelper.put("buffer", buffer, null); + ScriptHelper.put("byteOffset", byteOffset, null); + ScriptHelper.put("length", length, null); + String script= "new " + type.getSimpleName() + "(buffer.node, byteOffset, length);"; + Object instance= ScriptHelper.eval(script, null); + T node= JsDelegateFactory.createFrom(instance, type); + return node; + }; + + @DelegateCode(ignore= true) + public static T create(Class type, int length) + { + ScriptHelper.put("length", length, null); + String script= "new " + type.getSimpleName() + "(length);"; + Object instance= ScriptHelper.eval(script, null); + T node= JsDelegateFactory.createFrom(instance, type); + return node; + }; + + public T createFloat32Array(Class type, float[] array) + { + ScriptHelper.put("array", array, this); + String script= "new " + type.getSimpleName() + "(array)"; + Object eval= ScriptHelper.eval(script, this); + return (T) JsDelegateFactory.createFrom(eval, type); + } + + + public Float32Array createFloat32Array(ArrayBuffer buffer) + { + return create(Float32Array.class, buffer, 0, getElementCount(buffer.get_byteLength(), Float32Array.BYTES_PER_ELEMENT)); + } + + public Float32Array createFloat32Array(ArrayBuffer buffer, int byteOffset) + { + return create(Float32Array.class, buffer, byteOffset, getElementCount(buffer.get_byteLength() - byteOffset, Float32Array.BYTES_PER_ELEMENT)); + } + + public Float32Array createFloat32Array(float[] array) + { + Float32Array result= createFloat32Array(array.length); + result.set(array, 0); + return result; + } + + public Float32Array createFloat32Array(int length) + { + return createFloat32Array(createArrayBuffer(length * Float32Array.BYTES_PER_ELEMENT)); + } + + /** Get the number of elements in a number of bytes, throwing an exception if it isn't an integral number. + * + * @param byteLength + * @param elemLength length of each element in bytes + * @return count of elements + * @throws IllegalArgumentException if {@code byteLength} isn't an integral multiple of {@code elemLength} */ + protected static int getElementCount(int byteLength, int elemLength) + { + int count= byteLength / elemLength; + if (count * elemLength != byteLength) + { + throw new IllegalArgumentException(); + } + return count; + } + + @DelegateCode(ignore = true) + public static ArrayBuffer createArrayBuffer (int length) { + ScriptHelper.put("lenght", length, null); + Object instance = ScriptHelper.eval("new ArrayBuffer(length);", null); + ArrayBuffer node = JsDelegateFactory.createFrom(instance, ArrayBuffer.class); + return node; + } + + public Uint32Array createUint32Array(long[] array) + { + int len= array.length; + double[] temp= new double[len]; + for (int i= 0; i < len; ++i) + { + temp[i]= array[i]; + } + ScriptHelper.put("array", temp, this); + Object eval= ScriptHelper.eval("new Uint32Array(array)", this); + return JsDelegateFactory.createFrom(eval, Uint32Array.class); + } + + protected boolean checkDataViewSupport() + { + return ScriptHelper.evalBoolean("!!(window.DataView)", this); + } + + protected boolean checkUint8ClampedArraySupport() + { + return ScriptHelper.evalBoolean("!!(window.Uint8ClampedArray)", this); + } + + protected boolean runtimeSupportCheck() + { + return ScriptHelper.evalBoolean("!!(window.ArrayBuffer)", this); + } + +} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java index 399c34f5..4a0d7105 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,49 +17,12 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; /** @author xpenatan */ public interface Float32Array extends ArrayBufferView { final int BYTES_PER_ELEMENT = 4; - @DelegateCode(ignore = true) - public static Float32Array create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Float32Array(buffer.node);", null); - Float32Array node = JsDelegateFactory.createFrom(instance, Float32Array.class); - return node; - } - - @DelegateCode(ignore = true) - public static Float32Array create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Float32Array(buffer.node, byteOffset);", null); - Float32Array node = JsDelegateFactory.createFrom(instance, Float32Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Float32Array create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Float32Array(buffer.node, byteOffset, length);", null); - Float32Array node = JsDelegateFactory.createFrom(instance, Float32Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Float32Array create (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Float32Array(length);", null); - Float32Array node = JsDelegateFactory.createFrom(instance, Float32Array.class); - return node; - }; - int get_length (); @DelegateCode(eval = "this.node[$1]") diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java index 568d808f..29099b94 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,49 +17,12 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; /** @author xpenatan */ public interface Float64Array extends ArrayBufferView { final int BYTES_PER_ELEMENT = 8; - @DelegateCode(ignore = true) - public static Float64Array create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Float64Array(buffer.node);", null); - Float64Array node = JsDelegateFactory.createFrom(instance, Float64Array.class); - return node; - } - - @DelegateCode(ignore = true) - public static Float64Array create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Float64Array(buffer.node, byteOffset);", null); - Float64Array node = JsDelegateFactory.createFrom(instance, Float64Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Float64Array create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Float64Array(buffer.node, byteOffset, length);", null); - Float64Array node = JsDelegateFactory.createFrom(instance, Float64Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Float64Array create (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Float64Array(length);", null); - Float64Array node = JsDelegateFactory.createFrom(instance, Float64Array.class); - return node; - }; - int get_length (); @DelegateCode(eval = "this.node[$1]") diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java index e560ca0a..512fc4ab 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -25,41 +25,6 @@ public interface Int16Array extends ArrayBufferView { final int BYTES_PER_ELEMENT = 2; - @DelegateCode(ignore = true) - public static Int16Array create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Int16Array(buffer.node);", null); - Int16Array node = JsDelegateFactory.createFrom(instance, Int16Array.class); - return node; - } - - @DelegateCode(ignore = true) - public static Int16Array create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Int16Array(buffer.node, byteOffset);", null); - Int16Array node = JsDelegateFactory.createFrom(instance, Int16Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Int16Array create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Int16Array(buffer.node, byteOffset, length);", null); - Int16Array node = JsDelegateFactory.createFrom(instance, Int16Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Int16Array create (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Int16Array(length);", null); - Int16Array node = JsDelegateFactory.createFrom(instance, Int16Array.class); - return node; - }; - int get_length (); @DelegateCode(eval = "this.node[$1]") diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java index 5fc4d8fd..ff78d772 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -25,41 +25,6 @@ public interface Int32Array extends ArrayBufferView { final int BYTES_PER_ELEMENT = 4; - @DelegateCode(ignore = true) - public static Int32Array create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Int32Array(buffer.node);", null); - Int32Array node = JsDelegateFactory.createFrom(instance, Int32Array.class); - return node; - } - - @DelegateCode(ignore = true) - public static Int32Array create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Int32Array(buffer.node, byteOffset);", null); - Int32Array node = JsDelegateFactory.createFrom(instance, Int32Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Int32Array create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Int32Array(buffer.node, byteOffset, length);", null); - Int32Array node = JsDelegateFactory.createFrom(instance, Int32Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Int32Array create (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Int32Array(length);", null); - Int32Array node = JsDelegateFactory.createFrom(instance, Int32Array.class); - return node; - }; - int get_length (); @DelegateCode(eval = "this.node[$1]") diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java index b286a271..04ffcbaf 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,49 +17,12 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; /** @author xpenatan */ public interface Int8Array extends ArrayBufferView { final int BYTES_PER_ELEMENT = 1; - @DelegateCode(ignore = true) - public static Int8Array create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Int8Array(buffer.node);", null); - Int8Array node = JsDelegateFactory.createFrom(instance, Int8Array.class); - return node; - } - - @DelegateCode(ignore = true) - public static Int8Array create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Int8Array(buffer.node, byteOffset);", null); - Int8Array node = JsDelegateFactory.createFrom(instance, Int8Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Int8Array create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Int8Array(buffer.node, byteOffset, length);", null); - Int8Array node = JsDelegateFactory.createFrom(instance, Int8Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Int8Array create (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Int8Array(length);", null); - Int8Array node = JsDelegateFactory.createFrom(instance, Int8Array.class); - return node; - }; - int get_length (); @DelegateCode(eval = "this.node[$1]") diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java index 35b41bdf..7e196c75 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -25,41 +25,6 @@ public interface Uint16Array extends ArrayBufferView { final int BYTES_PER_ELEMENT = 2; - @DelegateCode(ignore = true) - public static Uint16Array create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Uint16Array(buffer.node);", null); - Uint16Array node = JsDelegateFactory.createFrom(instance, Uint16Array.class); - return node; - } - - @DelegateCode(ignore = true) - public static Uint16Array create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Uint16Array(buffer.node, byteOffset);", null); - Uint16Array node = JsDelegateFactory.createFrom(instance, Uint16Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Uint16Array create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Uint16Array(buffer.node, byteOffset, length);", null); - Uint16Array node = JsDelegateFactory.createFrom(instance, Uint16Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Uint16Array create (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Uint16Array(length);", null); - Uint16Array node = JsDelegateFactory.createFrom(instance, Uint16Array.class); - return node; - }; - int get_length (); @DelegateCode(eval = "this.node[$1]") diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java index 3d7dd938..f10695be 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -25,41 +25,6 @@ public interface Uint32Array extends ArrayBufferView { final int BYTES_PER_ELEMENT = 4; - @DelegateCode(ignore = true) - public static Uint32Array create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Uint32Array(buffer.node);", null); - Uint32Array node = JsDelegateFactory.createFrom(instance, Uint32Array.class); - return node; - } - - @DelegateCode(ignore = true) - public static Uint32Array create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Uint32Array(buffer.node, byteOffset);", null); - Uint32Array node = JsDelegateFactory.createFrom(instance, Uint32Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Uint32Array create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Uint32Array(buffer.node, byteOffset, length);", null); - Uint32Array node = JsDelegateFactory.createFrom(instance, Uint32Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Uint32Array create (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Uint32Array(length);", null); - Uint32Array node = JsDelegateFactory.createFrom(instance, Uint32Array.class); - return node; - }; - int get_length (); @DelegateCode(eval = "this.node[$1]") diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java index 61215951..001429aa 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -25,41 +25,6 @@ public interface Uint8Array extends ArrayBufferView { final int BYTES_PER_ELEMENT = 1; - @DelegateCode(ignore = true) - public static Uint8Array create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Uint8Array(buffer.node);", null); - Uint8Array node = JsDelegateFactory.createFrom(instance, Uint8Array.class); - return node; - } - - @DelegateCode(ignore = true) - public static Uint8Array create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Uint8Array(buffer.node, byteOffset);", null); - Uint8Array node = JsDelegateFactory.createFrom(instance, Uint8Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Uint8Array create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Uint8Array(buffer.node, byteOffset, length);", null); - Uint8Array node = JsDelegateFactory.createFrom(instance, Uint8Array.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Uint8Array create (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Uint8Array(length);", null); - Uint8Array node = JsDelegateFactory.createFrom(instance, Uint8Array.class); - return node; - }; - int get_length (); @DelegateCode(eval = "this.node[$1]") diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8ClampedArray.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8ClampedArray.java index b8de5852..224ba203 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8ClampedArray.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8ClampedArray.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,53 +16,16 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ -public interface Uint8ClampedArray extends Uint8Array { - - @DelegateCode(ignore = true) - public static Uint8ClampedArray createClamped (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new Uint8ClampedArray(buffer.node);", null); - Uint8ClampedArray node = JsDelegateFactory.createFrom(instance, Uint8ClampedArray.class); - return node; - } - - @DelegateCode(ignore = true) - public static Uint8ClampedArray createClamped (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new Uint8ClampedArray(buffer.node, byteOffset);", null); - Uint8ClampedArray node = JsDelegateFactory.createFrom(instance, Uint8ClampedArray.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Uint8ClampedArray createClamped (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Uint8ClampedArray(buffer.node, byteOffset, length);", null); - Uint8ClampedArray node = JsDelegateFactory.createFrom(instance, Uint8ClampedArray.class); - return node; - }; - - @DelegateCode(ignore = true) - public static Uint8ClampedArray createClamped (int length) { - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new Uint8ClampedArray(length);", null); - Uint8ClampedArray node = JsDelegateFactory.createFrom(instance, Uint8ClampedArray.class); - return node; - }; +public interface Uint8ClampedArray extends Uint8Array +{ - public static Uint8ClampedArray createClamped (short[] array) { + public static Uint8ClampedArray createClamped(short[] array) + { return null; } - Uint8ClampedArray subarray (int begin); + Uint8ClampedArray subarray(int begin); - Uint8ClampedArray subarray (int begin, int end); + Uint8ClampedArray subarray(int begin, int end); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/NativeImpl.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/NativeImpl.java deleted file mode 100644 index 9d30d294..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/NativeImpl.java +++ /dev/null @@ -1,325 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays.utils; - -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; -import com.badlogic.gdx.backends.dragome.js.typedarrays.DataView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float64Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8ClampedArray; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays.Impl; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - -public class NativeImpl extends Impl { - - @Override - public ArrayBuffer createArrayBuffer (int length) { - return ArrayBuffer.create(length); - } - - @Override - public DataView createDataView (ArrayBuffer buffer) { - return DataView.create(buffer); - } - - @Override - public DataView createDataView (ArrayBuffer buffer, int byteOffset) { - return DataView.create(buffer, byteOffset); - } - - @Override - public DataView createDataView (ArrayBuffer buffer, int byteOffset, int byteLength) { - return DataView.create(buffer, byteOffset, byteLength); - } - - @Override - public Float32Array createFloat32Array (ArrayBuffer buffer) { - return Float32Array.create(buffer); - } - - @Override - public Float32Array createFloat32Array (ArrayBuffer buffer, int byteOffset) { - return Float32Array.create(buffer, byteOffset); - } - - @Override - public Float32Array createFloat32Array (ArrayBuffer buffer, int byteOffset, int length) { - return Float32Array.create(buffer, byteOffset, length); - } - - @Override - public Float32Array createFloat32Array (float[] array) { - ScriptHelper.put("array", array, this); - Object eval = ScriptHelper.eval("new Float32Array(array)", this); - return JsDelegateFactory.createFrom(eval, Float32Array.class); - } - - @Override - public Float32Array createFloat32Array (int length) { - return Float32Array.create(length); - } - - @Override - public Float64Array createFloat64Array (ArrayBuffer buffer) { - return Float64Array.create(buffer); - } - - @Override - public Float64Array createFloat64Array (ArrayBuffer buffer, int byteOffset) { - return Float64Array.create(buffer, byteOffset); - } - - @Override - public Float64Array createFloat64Array (ArrayBuffer buffer, int byteOffset, int length) { - return Float64Array.create(buffer, byteOffset, length); - } - - @Override - public Float64Array createFloat64Array (double[] array) { - ScriptHelper.put("array", array, this); - Object eval = ScriptHelper.eval("new Float64Array(array)", this); - return JsDelegateFactory.createFrom(eval, Float64Array.class); - } - - @Override - public Float64Array createFloat64Array (int length) { - return Float64Array.create(length); - } - - @Override - public Int16Array createInt16Array (ArrayBuffer buffer) { - return Int16Array.create(buffer); - } - - @Override - public Int16Array createInt16Array (ArrayBuffer buffer, int byteOffset) { - return Int16Array.create(buffer, byteOffset); - } - - @Override - public Int16Array createInt16Array (ArrayBuffer buffer, int byteOffset, int length) { - return Int16Array.create(buffer, byteOffset, length); - } - - @Override - public Int16Array createInt16Array (int length) { - return Int16Array.create(length); - } - - @Override - public Int16Array createInt16Array (short[] array) { - ScriptHelper.put("array", array, this); - Object eval = ScriptHelper.eval("new Int16Array(array)", this); - return JsDelegateFactory.createFrom(eval, Int16Array.class); - } - - @Override - public Int32Array createInt32Array (ArrayBuffer buffer) { - return Int32Array.create(buffer); - } - - @Override - public Int32Array createInt32Array (ArrayBuffer buffer, int byteOffset) { - return Int32Array.create(buffer, byteOffset); - } - - @Override - public Int32Array createInt32Array (ArrayBuffer buffer, int byteOffset, int length) { - return Int32Array.create(buffer, byteOffset, length); - } - - @Override - public Int32Array createInt32Array (int length) { - return Int32Array.create(length); - } - - @Override - public Int32Array createInt32Array (int[] array) { - ScriptHelper.put("array", array, this); - Object eval = ScriptHelper.eval("new Int32Array(array)", this); - return JsDelegateFactory.createFrom(eval, Int32Array.class); - } - - @Override - public Int8Array createInt8Array (ArrayBuffer buffer) { - return Int8Array.create(buffer); - } - - @Override - public Int8Array createInt8Array (ArrayBuffer buffer, int byteOffset) { - return Int8Array.create(buffer, byteOffset); - } - - @Override - public Int8Array createInt8Array (ArrayBuffer buffer, int byteOffset, int length) { - return Int8Array.create(buffer, byteOffset, length); - } - - @Override - public Int8Array createInt8Array (byte[] array) { - ScriptHelper.put("array", array, this); - Object eval = ScriptHelper.eval("new Int8Array(array)", this); - return JsDelegateFactory.createFrom(eval, Int8Array.class); - } - - @Override - public Int8Array createInt8Array (int length) { - return Int8Array.create(length); - } - - @Override - public Uint16Array createUint16Array (ArrayBuffer buffer) { - return Uint16Array.create(buffer); - } - - @Override - public Uint16Array createUint16Array (ArrayBuffer buffer, int byteOffset) { - return Uint16Array.create(buffer, byteOffset); - } - - @Override - public Uint16Array createUint16Array (ArrayBuffer buffer, int byteOffset, int length) { - return Uint16Array.create(buffer, byteOffset, length); - } - - @Override - public Uint16Array createUint16Array (int length) { - return Uint16Array.create(length); - } - - @Override - public Uint16Array createUint16Array (int[] array) { - ScriptHelper.put("array", array, this); - Object eval = ScriptHelper.eval("new Uint16Array(array)", this); - return JsDelegateFactory.createFrom(eval, Uint16Array.class); - } - - @Override - public Uint32Array createUint32Array (ArrayBuffer buffer) { - return Uint32Array.create(buffer); - } - - @Override - public Uint32Array createUint32Array (ArrayBuffer buffer, int byteOffset) { - return Uint32Array.create(buffer, byteOffset); - } - - @Override - public Uint32Array createUint32Array (ArrayBuffer buffer, int byteOffset, int length) { - return Uint32Array.create(buffer, byteOffset, length); - } - - @Override - public Uint32Array createUint32Array (double[] array) { - ScriptHelper.put("array", array, this); - Object eval = ScriptHelper.eval("new Uint32Array(array)", this); - return JsDelegateFactory.createFrom(eval, Uint32Array.class); - } - - @Override - public Uint32Array createUint32Array (int length) { - return Uint32Array.create(length); - } - - @Override - public Uint32Array createUint32Array (long[] array) { - int len = array.length; - double[] temp = new double[len]; - for (int i = 0; i < len; ++i) { - temp[i] = array[i]; - } - ScriptHelper.put("array", temp, this); - Object eval = ScriptHelper.eval("new Uint32Array(array)", this); - return JsDelegateFactory.createFrom(eval, Uint32Array.class); - } - - @Override - public Uint8Array createUint8Array (ArrayBuffer buffer) { - return Uint8Array.create(buffer); - } - - @Override - public Uint8Array createUint8Array (ArrayBuffer buffer, int byteOffset) { - return Uint8Array.create(buffer, byteOffset); - } - - @Override - public Uint8Array createUint8Array (ArrayBuffer buffer, int byteOffset, int length) { - return Uint8Array.create(buffer, byteOffset, length); - } - - @Override - public Uint8Array createUint8Array (int length) { - return Uint8Array.create(length); - } - - @Override - public Uint8Array createUint8Array (short[] array) { - ScriptHelper.put("array", array, this); - Object eval = ScriptHelper.eval("new Uint8Array(array)", this); - return JsDelegateFactory.createFrom(eval, Uint8Array.class); - } - - @Override - public Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer) { - return Uint8ClampedArray.createClamped(buffer); - } - - @Override - public Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer, int byteOffset) { - return Uint8ClampedArray.createClamped(buffer, byteOffset); - } - - @Override - public Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer, int byteOffset, int length) { - return Uint8ClampedArray.createClamped(buffer, byteOffset, length); - } - - @Override - public Uint8ClampedArray createUint8ClampedArray (int length) { - return Uint8ClampedArray.createClamped(length); - } - - @Override - public Uint8ClampedArray createUint8ClampedArray (short[] array) { - return Uint8ClampedArray.createClamped(array); - } - - protected boolean checkDataViewSupport () - { - return ScriptHelper.evalBoolean("!!(window.DataView)", this); - } - - - protected boolean checkUint8ClampedArraySupport () - { - return ScriptHelper.evalBoolean("!!(window.Uint8ClampedArray)", this); - } - - @Override - protected boolean runtimeSupportCheck () - { - return ScriptHelper.evalBoolean("!!(window.ArrayBuffer)", this); - } -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArrays.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArrays.java index 39cfacba..d68a412c 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArrays.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArrays.java @@ -1,673 +1,24 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - package com.badlogic.gdx.backends.dragome.js.typedarrays.utils; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; import com.badlogic.gdx.backends.dragome.js.typedarrays.DataView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float64Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8ClampedArray; - -public class TypedArrays { - - /** Base class of implementations for creating various typed array structures. - *

- * *** NOT A PUBLIC API *** */ - public abstract static class Impl { - /** Get the number of elements in a number of bytes, throwing an exception if it isn't an integral number. - * - * @param byteLength - * @param elemLength length of each element in bytes - * @return count of elements - * @throws IllegalArgumentException if {@code byteLength} isn't an integral multiple of {@code elemLength} */ - protected static int getElementCount (int byteLength, int elemLength) { - int count = byteLength / elemLength; - if (count * elemLength != byteLength) { - throw new IllegalArgumentException(); - } - return count; - } - - public abstract ArrayBuffer createArrayBuffer (int length); +public class TypedArrays +{ + public abstract static class Impl + { + public abstract ArrayBuffer createArrayBuffer(int length); - public DataView createDataView (ArrayBuffer buffer) { + public DataView createDataView(ArrayBuffer buffer) + { return createDataView(buffer, 0, buffer.get_byteLength()); } - public DataView createDataView (ArrayBuffer buffer, int offset) { + public DataView createDataView(ArrayBuffer buffer, int offset) + { return createDataView(buffer, offset, buffer.get_byteLength() - offset); } - public abstract DataView createDataView (ArrayBuffer buffer, int byteOffset, int byteLength); - - public Float32Array createFloat32Array (ArrayBuffer buffer) { - return createFloat32Array(buffer, 0, getElementCount(buffer.get_byteLength(), Float32Array.BYTES_PER_ELEMENT)); - } - - public Float32Array createFloat32Array (ArrayBuffer buffer, int byteOffset) { - return createFloat32Array(buffer, byteOffset, - getElementCount(buffer.get_byteLength() - byteOffset, Float32Array.BYTES_PER_ELEMENT)); - } - - public abstract Float32Array createFloat32Array (ArrayBuffer buffer, int byteOffset, int length); - - public Float32Array createFloat32Array (float[] array) { - Float32Array result = createFloat32Array(array.length); - result.set(array, 0); - return result; - } - - public Float32Array createFloat32Array (int length) { - return createFloat32Array(createArrayBuffer(length * Float32Array.BYTES_PER_ELEMENT)); - } - - public Float64Array createFloat64Array (ArrayBuffer buffer) { - return createFloat64Array(buffer, 0, getElementCount(buffer.get_byteLength(), Float64Array.BYTES_PER_ELEMENT)); - } - - public Float64Array createFloat64Array (ArrayBuffer buffer, int byteOffset) { - return createFloat64Array(buffer, byteOffset, - getElementCount(buffer.get_byteLength() - byteOffset, Float64Array.BYTES_PER_ELEMENT)); - } - - public abstract Float64Array createFloat64Array (ArrayBuffer buffer, int byteOffset, int length); - - public Float64Array createFloat64Array (double[] array) { - Float64Array result = createFloat64Array(array.length); - result.set(array, 0); - return result; - } - - public Float64Array createFloat64Array (int length) { - return createFloat64Array(createArrayBuffer(length * Float64Array.BYTES_PER_ELEMENT)); - } - - public Int16Array createInt16Array (ArrayBuffer buffer) { - return createInt16Array(buffer, 0, getElementCount(buffer.get_byteLength(), Int16Array.BYTES_PER_ELEMENT)); - } - - public Int16Array createInt16Array (ArrayBuffer buffer, int byteOffset) { - return createInt16Array(buffer, byteOffset, - getElementCount(buffer.get_byteLength() - byteOffset, Int16Array.BYTES_PER_ELEMENT)); - } - - public abstract Int16Array createInt16Array (ArrayBuffer buffer, int byteOffset, int length); - - public Int16Array createInt16Array (int length) { - return createInt16Array(createArrayBuffer(length * Int16Array.BYTES_PER_ELEMENT)); - } - - public Int16Array createInt16Array (short[] array) { - Int16Array result = createInt16Array(array.length); - result.set(array, 0); - return result; - } - - public Int32Array createInt32Array (ArrayBuffer buffer) { - return createInt32Array(buffer, 0, getElementCount(buffer.get_byteLength(), Int32Array.BYTES_PER_ELEMENT)); - } - - public Int32Array createInt32Array (ArrayBuffer buffer, int byteOffset) { - return createInt32Array(buffer, byteOffset, - getElementCount(buffer.get_byteLength() - byteOffset, Int32Array.BYTES_PER_ELEMENT)); - } - - public abstract Int32Array createInt32Array (ArrayBuffer buffer, int byteOffset, int length); - - public Int32Array createInt32Array (int length) { - return createInt32Array(createArrayBuffer(length * Int32Array.BYTES_PER_ELEMENT)); - } - - public Int32Array createInt32Array (int[] array) { - Int32Array result = createInt32Array(array.length); - result.set(array, 0); - return result; - } - - public Int8Array createInt8Array (ArrayBuffer buffer) { - return createInt8Array(buffer, 0, buffer.get_byteLength()); - } - - public Int8Array createInt8Array (ArrayBuffer buffer, int byteOffset) { - return createInt8Array(buffer, byteOffset, buffer.get_byteLength() - byteOffset); - } - - public abstract Int8Array createInt8Array (ArrayBuffer buffer, int byteOffset, int length); - - public Int8Array createInt8Array (byte[] array) { - Int8Array result = createInt8Array(array.length); - result.set(array, 0); - return result; - } - - public Int8Array createInt8Array (int length) { - return createInt8Array(createArrayBuffer(length)); - } - - public Uint16Array createUint16Array (ArrayBuffer buffer) { - return createUint16Array(buffer, 0, getElementCount(buffer.get_byteLength(), Uint16Array.BYTES_PER_ELEMENT)); - } - - public Uint16Array createUint16Array (ArrayBuffer buffer, int byteOffset) { - return createUint16Array(buffer, byteOffset, - getElementCount(buffer.get_byteLength() - byteOffset, Uint16Array.BYTES_PER_ELEMENT)); - } - - public abstract Uint16Array createUint16Array (ArrayBuffer buffer, int byteOffset, int length); - - public Uint16Array createUint16Array (int length) { - return createUint16Array(createArrayBuffer(length * Uint16Array.BYTES_PER_ELEMENT)); - } - - public Uint16Array createUint16Array (int[] array) { - Uint16Array result = createUint16Array(array.length); - result.set(array, 0); - return result; - } - - public Uint32Array createUint32Array (ArrayBuffer buffer) { - return createUint32Array(buffer, 0, getElementCount(buffer.get_byteLength(), Uint32Array.BYTES_PER_ELEMENT)); - } - - public Uint32Array createUint32Array (ArrayBuffer buffer, int byteOffset) { - return createUint32Array(buffer, byteOffset, - getElementCount(buffer.get_byteLength() - byteOffset, Uint32Array.BYTES_PER_ELEMENT)); - } - - public abstract Uint32Array createUint32Array (ArrayBuffer buffer, int byteOffset, int length); - - public Uint32Array createUint32Array (double[] array) { - Uint32Array result = createUint32Array(array.length); - result.set(array, 0); - return result; - } - - public Uint32Array createUint32Array (int length) { - return createUint32Array(createArrayBuffer(length * Uint32Array.BYTES_PER_ELEMENT)); - } - - public Uint32Array createUint32Array (long[] array) { - Uint32Array result = createUint32Array(array.length); - result.set(array, 0); - return result; - } - - public Uint8Array createUint8Array (ArrayBuffer buffer) { - return createUint8Array(buffer, 0, buffer.get_byteLength()); - } - - public Uint8Array createUint8Array (ArrayBuffer buffer, int byteOffset) { - return createUint8Array(buffer, byteOffset, buffer.get_byteLength() - byteOffset); - } - - public abstract Uint8Array createUint8Array (ArrayBuffer buffer, int byteOffset, int length); - - public Uint8Array createUint8Array (int length) { - return createUint8Array(createArrayBuffer(length)); - } - - public Uint8Array createUint8Array (short[] array) { - Uint8Array result = createUint8Array(array.length); - result.set(array, 0); - return result; - } - - public Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer) { - return createUint8ClampedArray(buffer, 0, buffer.get_byteLength()); - } - - public Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer, int byteOffset) { - return createUint8ClampedArray(buffer, byteOffset, buffer.get_byteLength() - byteOffset); - } - - public abstract Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer, int byteOffset, int length); - - public Uint8ClampedArray createUint8ClampedArray (int length) { - return createUint8ClampedArray(createArrayBuffer(length)); - } - - public Uint8ClampedArray createUint8ClampedArray (short[] array) { - Uint8ClampedArray result = createUint8ClampedArray(array.length); - result.set(array, 0); - return result; - } - - /** Check if the current environment might possibly support typed arrays. - *

- * The default implementation always returns true, and this is intended to be a static check based on deffered-bound - * parameters. - * - * @return true if the current environment might possibly support typed arrays */ - protected boolean mightBeSupported () { - return true; - } - - /** Check if the current environment actually does support typed arrays (including emulation). There is no partial support, - * so if true is returned, there must be acceptable implementations for all of the {@code createXXX} methods. - * - * @return true if the current environment actually does support typed arrays */ - protected boolean runtimeSupportCheck () { - return false; - } - } - - /** This class exists to keep clinit calls from littering callsites when compiled to JS. */ - private static class Instance { - protected static final Impl impl = TypedArraysFactory.createImpl(); - } - - /** Create a new {@link ArrayBuffer} of {@code length} bytes. - * - * @param length length of buffer in bytes - * @return an {@link ArrayBuffer} instance */ - public static ArrayBuffer createArrayBuffer (int length) { - return Instance.impl.createArrayBuffer(length); - } - - /** Create a new {@link DataView} instance on an {@link ArrayBuffer}. - * - * @param buffer {@link ArrayBuffer} - * @return {@link DataView} instance */ - public static DataView createDataView (ArrayBuffer buffer) { - return Instance.impl.createDataView(buffer); - } - - /** Create a new {@link DataView} instance on an {@link ArrayBuffer}, starting at an offset of {@code byteOffset}. - * - * @param buffer {@link ArrayBuffer} - * @param byteOffset offset into buffer - * @return {@link DataView} instance */ - public static DataView createDataView (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createDataView(buffer, byteOffset); - } - - /** Create a new {@link DataView} instance on an {@link ArrayBuffer}, starting at an offset of {@code byteOffset} and - * continuing for {@code length} bytes. - * - * @param buffer {@link ArrayBuffer} - * @param byteOffset offset into buffer - * @param byteLength length of view in bytes - * @return {@link DataView} instance */ - public static DataView createDataView (ArrayBuffer buffer, int byteOffset, int byteLength) { - return Instance.impl.createDataView(buffer, byteOffset, byteLength); - } - - /** Create a {@link Float32Array} instance on {@code buffer}, starting at starting at the beginning of the buffer and - * continuing to the end (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Float32Array} instance */ - public static Float32Array createFloat32Array (ArrayBuffer buffer) { - return Instance.impl.createFloat32Array(buffer); - } - - /** Create a {@link Float32Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing to the - * end of the buffer (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Float32Array} instance */ - public static Float32Array createFloat32Array (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createFloat32Array(buffer, byteOffset); - } - - /** Create a {@link Float32Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing for - * {@code length} elements. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Float32Array} instance */ - public static Float32Array createFloat32Array (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createFloat32Array(buffer, byteOffset, length); - } - - /** Create a {@link Float32Array} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - * - * @param length size of array - * @return a {@link Float32Array} instance */ - public static Float32Array createFloat32Array (int length) { - return Instance.impl.createFloat32Array(length); - } - - /** Create a {@link Float64Array} instance on {@code buffer}, starting at starting at the beginning of the buffer and - * continuing to the end (which must be an integral number of elements). - *

- * Note that Safari does not currently support Float64 Arrays! - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Float64Array} instance */ - public static Float64Array createFloat64Array (ArrayBuffer buffer) { - return Instance.impl.createFloat64Array(buffer); - } - - /** Create a {@link Float64Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing to the - * end of the buffer (which must be an integral number of elements). - *

- * Note that Safari does not currently support Float64 Arrays! - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Float64Array} instance */ - public static Float64Array createFloat64Array (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createFloat64Array(buffer, byteOffset); - } - - /** Create a {@link Float64Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing for - * {@code length} elements. - *

- * Note that Safari does not currently support Float64 Arrays! - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Float64Array} instance */ - public static Float64Array createFloat64Array (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createFloat64Array(buffer, byteOffset, length); - } - - /** Create a {@link Float64Array} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - *

- * Note that Safari does not currently support Float64 Arrays! - * - * @param length size of array - * @return a {@link Float64Array} instance */ - public static Float64Array createFloat64Array (int length) { - return Instance.impl.createFloat64Array(length); - } - - /** Create a {@link Int16Array} instance on {@code buffer}, starting at starting at the beginning of the buffer and continuing - * to the end (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Int16Array} instance */ - public static Int16Array createInt16Array (ArrayBuffer buffer) { - return Instance.impl.createInt16Array(buffer); - } - - /** Create a {@link Int16Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing to the - * end of the buffer (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Int16Array} instance */ - public static Int16Array createInt16Array (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createInt16Array(buffer, byteOffset); - } - - /** Create a {@link Int16Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing for - * {@code length} elements. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Int16Array} instance */ - public static Int16Array createInt16Array (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createInt16Array(buffer, byteOffset, length); - } - - /** Create a {@link Int16Array} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - * - * @param length size of array - * @return a {@link Int16Array} instance */ - public static Int16Array createInt16Array (int length) { - return Instance.impl.createInt16Array(length); - } - - /** Create a {@link Int32Array} instance on {@code buffer}, starting at starting at the beginning of the buffer and continuing - * to the end (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Int32Array} instance */ - public static Int32Array createInt32Array (ArrayBuffer buffer) { - return Instance.impl.createInt32Array(buffer); - } - - /** Create a {@link Int32Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing to the - * end of the buffer (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Int32Array} instance */ - public static Int32Array createInt32Array (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createInt32Array(buffer, byteOffset); - } - - /** Create a {@link Int32Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing for - * {@code length} elements. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Int32Array} instance */ - public static Int32Array createInt32Array (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createInt32Array(buffer, byteOffset, length); - } - - /** Create a {@link Int32Array} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - * - * @param length size of array - * @return a {@link Int32Array} instance */ - public static Int32Array createInt32Array (int length) { - return Instance.impl.createInt32Array(length); - } - - /** Create a {@link Int8Array} instance on {@code buffer}, starting at starting at the beginning of the buffer and continuing - * to the end. - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Int8Array} instance */ - public static Int8Array createInt8Array (ArrayBuffer buffer) { - return Instance.impl.createInt8Array(buffer); - } - - /** Create a {@link Int8Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing to the - * end of the buffer (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Int8Array} instance */ - public static Int8Array createInt8Array (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createInt8Array(buffer, byteOffset); - } - - /** Create a {@link Int8Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing for - * {@code length} elements. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Int8Array} instance */ - public static Int8Array createInt8Array (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createInt8Array(buffer, byteOffset, length); - } - - /** Create a {@link Int8Array} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - * - * @param length size of array - * @return a {@link Int8Array} instance */ - public static Int8Array createInt8Array (int length) { - return Instance.impl.createInt8Array(length); - } - - /** Create a {@link Uint16Array} instance on {@code buffer}, starting at starting at the beginning of the buffer and continuing - * to the end (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Uint16Array} instance */ - public static Uint16Array createUint16Array (ArrayBuffer buffer) { - return Instance.impl.createUint16Array(buffer); - } - - /** Create a {@link Uint16Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing to the - * end of the buffer (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Uint16Array} instance */ - public static Uint16Array createUint16Array (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createUint16Array(buffer, byteOffset); - } - - /** Create a {@link Uint16Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing for - * {@code length} elements. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Uint16Array} instance */ - public static Uint16Array createUint16Array (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createUint16Array(buffer, byteOffset, length); - } - - /** Create a {@link Uint16Array} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - * - * @param length size of array - * @return a {@link Uint16Array} instance */ - public static Uint16Array createUint16Array (int length) { - return Instance.impl.createUint16Array(length); - } - - /** Create a {@link Uint32Array} instance on {@code buffer}, starting at starting at the beginning of the buffer and continuing - * to the end (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Uint32Array} instance */ - public static Uint32Array createUint32Array (ArrayBuffer buffer) { - return Instance.impl.createUint32Array(buffer); - } - - /** Create a {@link Uint32Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing to the - * end of the buffer (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Uint32Array} instance */ - public static Uint32Array createUint32Array (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createUint32Array(buffer, byteOffset); - } - - /** Create a {@link Uint32Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing for - * {@code length} elements. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Uint32Array} instance */ - public static Uint32Array createUint32Array (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createUint32Array(buffer, byteOffset, length); - } - - /** Create a {@link Uint32Array} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - * - * @param length size of array - * @return a {@link Uint32Array} instance */ - public static Uint32Array createUint32Array (int length) { - return Instance.impl.createUint32Array(length); - } - - /** Create a {@link Uint8Array} instance on {@code buffer}, starting at starting at the beginning of the buffer and continuing - * to the end (which must be an integral number of elements). - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Uint8Array} instance */ - public static Uint8Array createUint8Array (ArrayBuffer buffer) { - return Instance.impl.createUint8Array(buffer); - } - - /** Create a {@link Uint8Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing to the - * end of the buffer. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Uint8Array} instance */ - public static Uint8Array createUint8Array (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createUint8Array(buffer, byteOffset); - } - - /** Create a {@link Uint8Array} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing for - * {@code length} elements. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Uint8Array} instance */ - public static Uint8Array createUint8Array (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createUint8Array(buffer, byteOffset, length); - } - - /** Create a {@link Uint8Array} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - * - * @param length size of array - * @return a {@link Uint8Array} instance */ - public static Uint8Array createUint8Array (int length) { - return Instance.impl.createUint8Array(length); - } - - /** Create a {@link Uint8ClampedArray} instance on {@code buffer}, starting at starting at the beginning of the buffer and - * continuing to the end. - * - * @param buffer underlying {@link ArrayBuffer} - * @return an {@link Uint8ClampedArray} instance */ - public static Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer) { - return Instance.impl.createUint8ClampedArray(buffer, 0, buffer.get_byteLength()); - } - - /** Create a {@link Uint8ClampedArray} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing - * to the end of the buffer. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @return an {@link Uint8ClampedArray} instance */ - public static Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer, int byteOffset) { - return Instance.impl.createUint8ClampedArray(buffer, byteOffset); - } - - /** Create a {@link Uint8ClampedArray} instance on {@code buffer}, starting at {@code byteOffset} into the buffer, continuing - * for {@code length} elements. - * - * @param buffer underlying {@link ArrayBuffer} - * @param byteOffset byte offset from the start of {@code buffer} - * @param length number of elements in the resulting array - * @return an {@link Uint8ClampedArray} instance */ - public static Uint8ClampedArray createUint8ClampedArray (ArrayBuffer buffer, int byteOffset, int length) { - return Instance.impl.createUint8ClampedArray(buffer, byteOffset, length); - } - - /** Create a {@link Uint8ClampedArray} instance of {@code length} elements, backed by a new {@link ArrayBuffer}. - * - * @param length size of array - * @return a {@link Uint8ClampedArray} instance */ - public static Uint8ClampedArray createUint8ClampedArray (int length) { - return Instance.impl.createUint8ClampedArray(length); - } - - /** Check if the current environment supports typed arrays. Behavior of the various {@code createXXX} methods is undefined if - * this method returns {@code false}, but will typically throw some exception. - * - * @return true if typed arrays are support. */ - public static boolean isSupported () { - return Instance.impl.mightBeSupported() && Instance.impl.runtimeSupportCheck(); + public abstract DataView createDataView(ArrayBuffer buffer, int byteOffset, int byteLength); } } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArraysFactory.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArraysFactory.java deleted file mode 100644 index cdb01fe4..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArraysFactory.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays.utils; - -public class TypedArraysFactory { - static TypedArrays.Impl createImpl() { - return new NativeImpl(); - } -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java index 92b91169..7b9b07c1 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -21,6 +21,8 @@ import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ReadyStateChangeHandler; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ResponseType; +import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; +import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; import com.badlogic.gdx.backends.dragome.preloader.AssetFilter.AssetType; @@ -119,7 +121,8 @@ public void onReadyStateChange (XMLHttpRequest xhr) { if (xhr.getStatus() != 200) { listener.onFailure(); } else { - Int8Array data = TypedArrays.createInt8Array(xhr.getResponseArrayBuffer()); + + Int8Array data= FerTypedArraysFactory.create(Int8Array.class, xhr.getResponseArrayBuffer()); listener.onSuccess(new Blob(data)); } } diff --git a/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/GearsLauncher.java b/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/GearsLauncher.java index cfbf65ce..90304191 100644 --- a/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/GearsLauncher.java +++ b/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/GearsLauncher.java @@ -10,7 +10,6 @@ @PageAlias(alias= "Gears") public class GearsLauncher extends DragomeApplication { - @Override public ApplicationListener createApplicationListener() { return new GearsDemo(); diff --git a/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/examples/GearsDemo.java b/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/examples/GearsDemo.java index 2176d905..37b5e22c 100644 --- a/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/examples/GearsDemo.java +++ b/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/examples/GearsDemo.java @@ -64,56 +64,56 @@ public class GearsDemo implements ApplicationListener { long time; int fps; @Override - public void create () { - + public void create () { + String path = null; DragomeApplication app = (DragomeApplication)Gdx.app; Preloader preloader = app.getPreloader(); path = "com/badlogic/gdx/graphics/g3d/shaders/default.fragment.glsl"; preloader.loadAsset(path, AssetType.Text, null, new AssetLoaderListener() { - + @Override public void onSuccess(Object result) { loaded++; } - + @Override public void onProgress(double amount) { } - + @Override public void onFailure() { } }); - + path = "com/badlogic/gdx/graphics/g3d/shaders/default.vertex.glsl"; preloader.loadAsset(path, AssetType.Text, null, new AssetLoaderListener() { - + @Override public void onSuccess(Object result) { loaded++; } - + @Override public void onProgress(double amount) { } - + @Override public void onFailure() { } }); path = "com/badlogic/gdx/utils/arial-15.fnt"; preloader.loadAsset(path, AssetType.Text, null, new AssetLoaderListener() { - + @Override public void onSuccess(Object result) { loaded++; } - + @Override public void onProgress(double amount) { } - + @Override public void onFailure() { } @@ -124,23 +124,23 @@ public void onFailure() { public void onSuccess(Object result) { loaded++; } - + @Override public void onProgress(double amount) { } - + @Override public void onFailure() { } }); - + // loaded = 2; - + environment = new Environment(); environment.set(new ColorAttribute(ColorAttribute.AmbientLight, .1f, .1f, .1f, 1f)); // environment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, 0f, -0.5f, -0.5f)); - + sl = new PointLight().setPosition(-5, 10, -6).setColor(1, 1,1, 1) .setIntensity(150); @@ -149,11 +149,11 @@ public void onFailure() { // // sl3 = new PointLight().setPosition(0, 9, 6).setColor(0.3f, 0.3f, 0.8f, 1) // .setIntensity(20); - + environment.add(sl); // environment.add(sl2); // environment.add(sl3); - + cam = new PerspectiveCamera(67, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); cam.position.set(-10, 3, 10f); @@ -163,7 +163,7 @@ public void onFailure() { cam.update(); time = TimeUtils.millis(); - + viewport = new ScreenViewport(); } @@ -176,52 +176,52 @@ public void render () { start = true; DefaultShaderProvider defaultShaderProvider = new DefaultShaderProvider(); modelBatch = new ModelBatch(defaultShaderProvider); - + ModelBuilder modelBuilder = new ModelBuilder(); model1 = gear(modelBuilder, 1.0f, 4.0f, 1.0f, 20, 0.7f, Color.RED); gear1 = new ModelInstance(model1); - + model2 = gear(modelBuilder, 0.5f, 2.0f, 2.0f, 10, 0.7f, Color.GREEN); gear2 = new ModelInstance(model2); - + model3 = gear(modelBuilder, 1.3f, 2.0f, 1.5f, 10, 0.7f, Color.BLUE); gear3 = new ModelInstance(model3); - + font = new BitmapFont(); - + batch = new SpriteBatch(); - + lightModel = modelBuilder.createSphere(1, 1, 1, 10, 10, new Material(ColorAttribute.createDiffuse(1, 1, 1, 1)), Usage.Position); lightModel.nodes.get(0).parts.get(0).setRenderable(pLight = new Renderable()); } - + Gdx.gl.glClearColor(0, 0, 0, 1); Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT | GL20.GL_DEPTH_BUFFER_BIT); - + cam.update(); if(modelBatch != null) { angle += 1.0f; - + gear1.transform.setToTranslation(-3.0f, -2.0f, 0.0f); gear2.transform.setToTranslation(3.1f, -2.0f, 0.0f); gear3.transform.setToTranslation(-3.1f, 4.2f, 0.0f); gear1.transform.rotate(Vector3.Z, angle); gear2.transform.rotate(Vector3.Z, -2.0f * angle - 9.0f); gear3.transform.rotate(Vector3.Z, -2.0f * angle - 25.0f); - + final float delta = Gdx.graphics.getDeltaTime(); - + sl.position.sub(transformedCenter); sl.position.rotate(Vector3.X, delta * 50f); sl.position.rotate(Vector3.Y, delta * 13f); sl.position.rotate(Vector3.Z, delta * 3f); sl.position.add(transformedCenter.set(center).mul(transform)); - - - + + + modelBatch.begin(cam); modelBatch.render(gear1, environment); modelBatch.render(gear2, environment); @@ -229,8 +229,8 @@ public void render () { pLight.worldTransform.setTranslation(sl.position); modelBatch.render(pLight); modelBatch.end(); - - + + float timeSec = TimeUtils.millis() - time; if(timeSec > 1000) @@ -270,7 +270,7 @@ public void resize (int width, int height) { public void pause () { } - + static void gear_angle(int i, int teeth, float [] ar) { float angle = i * 2.0f * MathUtils.PI / teeth; float da = 2.0f * MathUtils.PI / teeth / 4.0f; @@ -279,24 +279,24 @@ static void gear_angle(int i, int teeth, float [] ar) { ar[2] = angle + 2.0f * da; ar[3] = angle + 3.0f * da; } - + private static Model gear(ModelBuilder builder, float inner_radius, float outer_radius, float width, int teeth, float tooth_depth, Color color) { // Ported from https://github.com/jeffboody/gears2/blob/master/project/jni/gear.c by xpenatan int i; float r0, r1, r2, dz; float angle, da; float u, v, len; - + float [] ar = new float[4]; VertexInfo vertTmp1 = new VertexInfo(); - + r0 = inner_radius; r1 = outer_radius - tooth_depth / 2.0f; r2 = outer_radius + tooth_depth / 2.0f; - + dz = 0.5f * width; - + builder.begin(); // draw front face // GL_TRIANGLE_STRIP @@ -312,7 +312,7 @@ private static Model gear(ModelBuilder builder, float inner_radius, float outer_ } part.index(part.vertex(vertTmp1.setPos(r0 * (float)Math.cos(0.0f), r0 * (float)Math.sin(0.0f), dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(0.0f), r1 * (float)Math.sin(0.0f), dz))); - + // draw front sides of teeth // GL_TRIANGLES part = builder.part("gear", GL20.GL_TRIANGLES, Usage.Position | Usage.Normal, new Material(ColorAttribute.createDiffuse(color))); @@ -322,18 +322,18 @@ private static Model gear(ModelBuilder builder, float inner_radius, float outer_ part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[0]), r1 * (float)Math.sin(ar[0]), dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[1]), r2 * (float)Math.sin(ar[1]), dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[2]), r2 * (float)Math.sin(ar[2]), dz))); - + part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[0]), r1 * (float)Math.sin(ar[0]), dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[2]), r2 * (float)Math.sin(ar[2]), dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[3]), r1 * (float)Math.sin(ar[3]), dz))); } - + // draw back face // GL_TRIANGLE_STRIP part = builder.part("gear", GL20.GL_TRIANGLE_STRIP, Usage.Position | Usage.Normal, new Material(ColorAttribute.createDiffuse(color))); for(i = 0; i < teeth; i++) { gear_angle(i, teeth, ar); - + part.index(part.vertex(vertTmp1.setPos(r0 * (float)Math.cos(ar[0]), r0 * (float)Math.sin(ar[0]), -dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[0]), r1 * (float)Math.sin(ar[0]), -dz))); part.index(part.vertex(vertTmp1.setPos(r0 * (float)Math.cos(ar[3]), r0 * (float)Math.sin(ar[3]), -dz))); @@ -341,7 +341,7 @@ private static Model gear(ModelBuilder builder, float inner_radius, float outer_ } part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(0.0f), r1 * (float)Math.sin(0.0f), -dz))); part.index(part.vertex(vertTmp1.setPos(r0 * (float)Math.cos(0.0f), r0 * (float)Math.sin(0.0f), -dz))); - + // draw back sides of teeth // GL_TRIANGLES part = builder.part("gear", GL20.GL_TRIANGLES, Usage.Position | Usage.Normal, new Material(ColorAttribute.createDiffuse(color))); @@ -351,13 +351,13 @@ private static Model gear(ModelBuilder builder, float inner_radius, float outer_ part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[3]), r1 * (float)Math.sin(ar[3]), -dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[2]), r2 * (float)Math.sin(ar[2]), -dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[1]), r2 * (float)Math.sin(ar[1]), -dz))); - + part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[3]), r1 * (float)Math.sin(ar[3]), -dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[1]), r2 * (float)Math.sin(ar[1]), -dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[0]), r1 * (float)Math.sin(ar[0]), -dz))); - + } - + // draw outward faces of teeth // GL_TRIANGLE_STRIP // repeated vertices are necessary to achieve flat shading in ES2 @@ -371,25 +371,25 @@ private static Model gear(ModelBuilder builder, float inner_radius, float outer_ part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[0]), r1 * (float)Math.sin(ar[0]), dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[0]), r1 * (float)Math.sin(ar[0]), -dz))); } - + u = r2 * (float)Math.cos(ar[1]) - r1 * (float)Math.cos(ar[0]); v = r2 * (float)Math.sin(ar[1]) - r1 * (float)Math.sin(ar[0]); len = (float)Math.sqrt(u * u + v * v); u /= len; v /= len; - + vertTmp1.setNor(v, -u, 0.0f); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[0]), r1 * (float)Math.sin(ar[0]), dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[0]), r1 * (float)Math.sin(ar[0]), -dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[1]), r2 * (float)Math.sin(ar[1]), dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[1]), r2 * (float)Math.sin(ar[1]), -dz))); - + vertTmp1.setNor((float)Math.cos(ar[0]), (float)Math.sin(ar[0]), 0.0f); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[1]), r2 * (float)Math.sin(ar[1]), dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[1]), r2 * (float)Math.sin(ar[1]), -dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[2]), r2 * (float)Math.sin(ar[2]), dz))); part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[2]), r2 * (float)Math.sin(ar[2]), -dz))); - + u = r1 * (float)Math.cos(ar[3]) - r2 * (float)Math.cos(ar[2]); v = r1 * (float)Math.sin(ar[3]) - r2 * (float)Math.sin(ar[2]); @@ -398,7 +398,7 @@ private static Model gear(ModelBuilder builder, float inner_radius, float outer_ part.index(part.vertex(vertTmp1.setPos(r2 * (float)Math.cos(ar[2]), r2 * (float)Math.sin(ar[2]), -dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[3]), r1 * (float)Math.sin(ar[3]), dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[3]), r1 * (float)Math.sin(ar[3]), -dz))); - + vertTmp1.setNor((float)Math.cos(ar[0]), (float)Math.sin(ar[0]), 0.0f); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[3]), r1 * (float)Math.sin(ar[3]), dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(ar[3]), r1 * (float)Math.sin(ar[3]), -dz))); @@ -406,9 +406,9 @@ private static Model gear(ModelBuilder builder, float inner_radius, float outer_ vertTmp1.hasNormal = false; part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(0.0f), r1 * (float)Math.sin(0.0f), dz))); part.index(part.vertex(vertTmp1.setPos(r1 * (float)Math.cos(0.0f), r1 * (float)Math.sin(0.0f), -dz))); - - - + + + // draw inside radius cylinder // GL_TRIANGLE_STRIP part = builder.part("gear", GL20.GL_TRIANGLE_STRIP, Usage.Position | Usage.Normal, new Material(ColorAttribute.createDiffuse(color))); @@ -422,7 +422,7 @@ private static Model gear(ModelBuilder builder, float inner_radius, float outer_ vertTmp1.setNor(-(float)Math.cos(0.0f), -(float)Math.sin(0.0f), 0.0f); part.index(part.vertex(vertTmp1.setPos(r0 * (float)Math.cos(0.0f), r0 * (float)Math.sin(0.0f), -dz))); part.index(part.vertex(vertTmp1.setPos(r0 * (float)Math.cos(0.0f), r0 * (float)Math.sin(0.0f), dz))); - + return builder.end(); } } From 8acf2542ddb79e0b5f2ca4ca5af3c96ebf2aaf3b Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Fri, 18 Mar 2016 00:41:27 -0300 Subject: [PATCH 02/10] refactoring typedarrays step 1 --- backends/gdx-backend-dragome/pom.xml | 144 +++++---- .../dragome/js/typedarrays/TypedArray.java | 22 ++ .../js/typedarrays/utils/TypedArrays.java | 24 -- .../dragome/preloader/AssetDownloader.java | 2 - tests/gdx-tests-dragome/pom.xml | 294 +++++++++--------- 5 files changed, 244 insertions(+), 242 deletions(-) create mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArrays.java diff --git a/backends/gdx-backend-dragome/pom.xml b/backends/gdx-backend-dragome/pom.xml index 1703fb62..cd7547e5 100644 --- a/backends/gdx-backend-dragome/pom.xml +++ b/backends/gdx-backend-dragome/pom.xml @@ -1,74 +1,82 @@ - - 4.0.0 - gdx-backend-dragome - gdx-backend-dragome - 0.0.1-SNAPSHOT - - - - JBOSS_NEXUS - http://repository.jboss.org/nexus/content/groups/public - - - sonatype-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - dragome - dragome - https://raw.github.com/dragome/dragome/master/maven - - + + 4.0.0 + gdx-backend-dragome + gdx-backend-dragome + 0.0.1-SNAPSHOT - - - + + + JBOSS_NEXUS + http://repository.jboss.org/nexus/content/groups/public + + + sonatype-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + dragome + dragome + https://raw.github.com/dragome/dragome/master/maven + + - - org.codehaus.mojo - build-helper-maven-plugin - 1.8 - - - add-source - generate-sources - - add-source - - - - src - emu - - - - - - - maven-compiler-plugin - 3.3 - - 1.8 - 1.8 - - - - - - - com.dragome - dragome-sdk - 0.96-beta3-SNAPSHOT - pom - + + - - com.badlogicgames.gdx - gdx - 1.9.2 - + + org.codehaus.mojo + build-helper-maven-plugin + 1.8 + + + add-source + generate-sources + + add-source + + + + src + emu + + + + + - + + maven-compiler-plugin + 3.3 + + 1.8 + 1.8 + + + + + + + com.dragome + dragome-web + 0.96-beta3-SNAPSHOT + + + com.dragome + dragome-bytecode-js-compiler + 0.96-beta3-SNAPSHOT + + + com.dragome + dragome-js-jre + 0.96-beta3-SNAPSHOT + + + + com.badlogicgames.gdx + gdx + 1.9.2 + + + \ No newline at end of file diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java new file mode 100644 index 00000000..832488e9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java @@ -0,0 +1,22 @@ +package com.badlogic.gdx.backends.dragome.js.typedarrays; + +import com.dragome.commons.DelegateCode; + +public interface TypedArray +{ + int get_length(); + + @DelegateCode(eval= "this.node[$1]") + ItemType get(int index); + + @DelegateCode(eval= "this.node[$1] = $2") + void set(int index, ItemType value); + + void set(ArrayType array, int offset); + + void set(ItemType[] array, int offset); + + ArrayType subarray(int begin); + + ArrayType subarray(int begin, int end); +} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArrays.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArrays.java deleted file mode 100644 index d68a412c..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/utils/TypedArrays.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.badlogic.gdx.backends.dragome.js.typedarrays.utils; - -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; -import com.badlogic.gdx.backends.dragome.js.typedarrays.DataView; - -public class TypedArrays -{ - public abstract static class Impl - { - public abstract ArrayBuffer createArrayBuffer(int length); - - public DataView createDataView(ArrayBuffer buffer) - { - return createDataView(buffer, 0, buffer.get_byteLength()); - } - - public DataView createDataView(ArrayBuffer buffer, int offset) - { - return createDataView(buffer, offset, buffer.get_byteLength() - offset); - } - - public abstract DataView createDataView(ArrayBuffer buffer, int byteOffset, int byteLength); - } -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java index 7b9b07c1..937bb8bb 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java @@ -22,9 +22,7 @@ import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ReadyStateChangeHandler; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ResponseType; import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.utils.TypedArrays; import com.badlogic.gdx.backends.dragome.preloader.AssetFilter.AssetType; import com.badlogic.gdx.utils.GdxRuntimeException; import com.dragome.commons.compiler.annotations.MethodAlias; diff --git a/tests/gdx-tests-dragome/pom.xml b/tests/gdx-tests-dragome/pom.xml index f4045adb..1f6494fa 100644 --- a/tests/gdx-tests-dragome/pom.xml +++ b/tests/gdx-tests-dragome/pom.xml @@ -1,162 +1,160 @@ - - 4.0.0 - gdx-tests-dragome - gdx-tests-dragome - 0.0.1-SNAPSHOT + + 4.0.0 + gdx-tests-dragome + gdx-tests-dragome + 0.0.1-SNAPSHOT - - - JBOSS_NEXUS - http://repository.jboss.org/nexus/content/groups/public - - - sonatype-snapshots - https://oss.sonatype.org/content/repositories/snapshots - - - dragome - dragome - https://raw.github.com/dragome/dragome/master/maven - - + + + JBOSS_NEXUS + http://repository.jboss.org/nexus/content/groups/public + + + sonatype-snapshots + https://oss.sonatype.org/content/repositories/snapshots + + + dragome + dragome + https://raw.github.com/dragome/dragome/master/maven + + - - - dragome - dragome - https://raw.github.com/dragome/dragome/master/maven - - true - - - true - - - + + + dragome + dragome + https://raw.github.com/dragome/dragome/master/maven + + true + + + true + + + - - - org.hibernate - hibernate-entitymanager - 4.3.5.Final - - - org.hsqldb - hsqldb - 2.2.8 - - - com.dragome - dragome-sdk - 0.96-beta3-SNAPSHOT - pom - - - com.badlogicgames.gdx - gdx - 1.9.2 - - - gdx-backend-dragome - gdx-backend-dragome - 0.0.1-SNAPSHOT - - + + + com.dragome + dragome-web + 0.96-beta3-SNAPSHOT + + + com.dragome + dragome-bytecode-js-compiler + 0.96-beta3-SNAPSHOT + + + com.dragome + dragome-js-jre + 0.96-beta3-SNAPSHOT + + + com.badlogicgames.gdx + gdx + 1.9.2 + + + gdx-backend-dragome + gdx-backend-dragome + 0.0.1-SNAPSHOT + + - - gdx-tests-dragome - ${basedir}/webapp/WEB-INF/classes - - - maven-compiler-plugin - 3.1 - - 1.8 - 1.8 - - + + gdx-tests-dragome + ${basedir}/webapp/WEB-INF/classes + + + maven-compiler-plugin + 3.1 + + 1.8 + 1.8 + + - - org.eclipse.jetty - jetty-maven-plugin - 9.1.3.v20140225 - - - ${basedir}/../../backends/gdx-backend-dragome/resources/webdefault.xml - - - /examples - ${basedir}/../../backends/gdx-backend-dragome/target/classes - - - ${basedir}/webapp/WEB-INF/classes - ${basedir}/../../backends/gdx-backend-dragome/target/classes - + + org.eclipse.jetty + jetty-maven-plugin + 9.1.3.v20140225 + + + ${basedir}/../../backends/gdx-backend-dragome/resources/webdefault.xml + + + /examples + ${basedir}/../../backends/gdx-backend-dragome/target/classes + + + ${basedir}/webapp/WEB-INF/classes + ${basedir}/../../backends/gdx-backend-dragome/target/classes + - ${basedir}/webapp/WEB-INF/classes - ${basedir}/../../backends/gdx-backend-dragome/target/classes + ${basedir}/webapp/WEB-INF/classes + ${basedir}/../../backends/gdx-backend-dragome/target/classes - ${basedir}/webapp - - - 4016 - 7000000 - - - + ${basedir}/webapp + + + 4016 + 7000000 + + + - - - org.ow2.asm - asm - 5.0.2 - - - org.ow2.asm - asm-commons - 5.0.2 - - + + + org.ow2.asm + asm + 5.0.2 + + + org.ow2.asm + asm-commons + 5.0.2 + + - + - - com.dragome - dragome-maven-plugin - 0.96-beta3-SNAPSHOT - - - prepare-package - - compileclient - - - - - ${project.build.directory}/${project.build.finalName} - true - false - com.badlogic.gdx.tests.dragome.GearsLauncher - true - true - - - - gdx-backend-dragome - gdx-backend-dragome - 0.0.1-SNAPSHOT - - - gdx-tests-dragome - gdx-tests-dragome - 0.0.1-SNAPSHOT - - - + + com.dragome + dragome-maven-plugin + 0.96-beta3-SNAPSHOT + + + prepare-package + + compileclient + + + + + ${project.build.directory}/${project.build.finalName} + true + false + com.badlogic.gdx.tests.dragome.GearsLauncher + true + true + + + + gdx-backend-dragome + gdx-backend-dragome + 0.0.1-SNAPSHOT + + + gdx-tests-dragome + gdx-tests-dragome + 0.0.1-SNAPSHOT + + + - - + + \ No newline at end of file From 3a14b3932d8a382ea57b9337a6a0a1c7f11584ef Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Mon, 21 Mar 2016 13:49:09 -0300 Subject: [PATCH 03/10] refactoring typedarrays and webgl interfaces: removing js code --- .../emu/java/io/Numbers.java | 8 +- .../emu/java/nio/DirectByteBuffer.java | 7 +- .../java/nio/DirectReadOnlyByteBuffer.java | 6 +- .../nio/DirectReadOnlyFloatBufferAdapter.java | 4 +- .../nio/DirectReadOnlyIntBufferAdapter.java | 4 +- .../nio/DirectReadOnlyShortBufferAdapter.java | 12 +- .../java/nio/DirectReadWriteByteBuffer.java | 8 +- .../DirectReadWriteFloatBufferAdapter.java | 8 +- .../nio/DirectReadWriteIntBufferAdapter.java | 4 +- .../DirectReadWriteShortBufferAdapter.java | 128 +++++----- .../dragome/DragomeConfiguration.java | 232 +++++++++--------- .../gdx/backends/dragome/DragomeGL20.java | 43 ++-- .../gdx/backends/dragome/DragomeGraphics.java | 13 +- .../backends/dragome/TypedArraysFactory.java | 29 +++ .../backends/dragome/js/storage/Storage.java | 11 + .../js/typedarrays/ArrayBufferView.java | 18 +- .../dragome/js/typedarrays/DataView.java | 101 +------- .../js/typedarrays/FerTypedArraysFactory.java | 135 ---------- .../dragome/js/typedarrays/Float32Array.java | 26 +- .../dragome/js/typedarrays/Float64Array.java | 27 +- .../dragome/js/typedarrays/Int16Array.java | 30 +-- .../dragome/js/typedarrays/Int32Array.java | 26 +- .../dragome/js/typedarrays/Int8Array.java | 31 +-- .../dragome/js/typedarrays/TypedArray.java | 17 +- .../dragome/js/typedarrays/Uint16Array.java | 29 +-- .../dragome/js/typedarrays/Uint32Array.java | 41 +--- .../dragome/js/typedarrays/Uint8Array.java | 30 +-- .../dragome/js/webgl/WebGLActiveInfo.java | 6 +- .../js/webgl/WebGLContextAttributes.java | 24 +- .../dragome/js/webgl/WebGLFactory.java | 15 ++ .../js/webgl/WebGLShaderPrecisionFormat.java | 6 +- .../dragome/preloader/AssetDownloader.java | 4 +- .../gdx/backends/dragome/preloader/Blob.java | 4 +- 33 files changed, 390 insertions(+), 697 deletions(-) create mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/FerTypedArraysFactory.java create mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFactory.java diff --git a/backends/gdx-backend-dragome/emu/java/io/Numbers.java b/backends/gdx-backend-dragome/emu/java/io/Numbers.java index cf187381..6e78863c 100644 --- a/backends/gdx-backend-dragome/emu/java/io/Numbers.java +++ b/backends/gdx-backend-dragome/emu/java/io/Numbers.java @@ -16,7 +16,7 @@ package java.io; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; @@ -32,9 +32,9 @@ public static final int floatToIntBits(float f) return wia.get(0); } - static Int8Array wba= FerTypedArraysFactory.create(Int8Array.class, 4); - static Int32Array wia= FerTypedArraysFactory.create(Int32Array.class, wba.get_buffer(), 0, 1); - static Float32Array wfa= FerTypedArraysFactory.create(Float32Array.class, wba.get_buffer(), 0, 1); + static Int8Array wba= TypedArraysFactory.createInstanceOf(Int8Array.class, 4); + static Int32Array wia= TypedArraysFactory.createInstanceOf(Int32Array.class, wba.getBuffer(), 0, 1); + static Float32Array wfa= TypedArraysFactory.createInstanceOf(Float32Array.class, wba.getBuffer(), 0, 1); public static final float intBitsToFloat(int i) { diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java index 8289134f..ad838fa4 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java @@ -19,9 +19,10 @@ import java.io.Numbers; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; +import com.badlogic.gdx.backends.dragome.js.storage.Storage; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; import com.badlogic.gdx.backends.dragome.utils.Endianness; @@ -39,7 +40,7 @@ abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBuffer DirectByteBuffer(int capacity) { - this(FerTypedArraysFactory.createArrayBuffer(capacity), capacity, 0); + this(Storage.createArrayBuffer(capacity), capacity, 0); } DirectByteBuffer(ArrayBuffer buf) @@ -50,7 +51,7 @@ abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBuffer DirectByteBuffer(ArrayBuffer buffer, int capacity, int offset) { super(capacity); - byteArray= FerTypedArraysFactory.create(Int8Array.class, buffer, offset, capacity); + byteArray= TypedArraysFactory.createInstanceOf(Int8Array.class, buffer, offset, capacity); } public ArrayBufferView getTypedArray() diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java index 156b9225..3c0b6df8 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java @@ -29,8 +29,8 @@ final class DirectReadOnlyByteBuffer extends DirectByteBuffer { static DirectReadOnlyByteBuffer copy (DirectByteBuffer other, int markOfOther) { - DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.get_buffer(), other.capacity(), - other.byteArray.get_byteOffset()); + DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.getBuffer(), other.capacity(), + other.byteArray.getByteOffset()); buf.limit = other.limit(); buf.position = other.position(); buf.mark = markOfOther; @@ -139,7 +139,7 @@ public ByteBuffer put (ByteBuffer buf) { } public ByteBuffer slice () { - DirectReadOnlyByteBuffer slice = new DirectReadOnlyByteBuffer(byteArray.get_buffer(), remaining(), byteArray.get_byteOffset() + DirectReadOnlyByteBuffer slice = new DirectReadOnlyByteBuffer(byteArray.getBuffer(), remaining(), byteArray.getByteOffset() + position); slice.order = order; return slice; diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java index e080f1a5..a381b191 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java @@ -16,8 +16,8 @@ package java.nio; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; /** This class wraps a byte buffer to be a float buffer. @@ -44,7 +44,7 @@ static FloatBuffer wrap (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.floatArray = FerTypedArraysFactory.create(Float32Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.floatArray = TypedArraysFactory.createInstanceOf(Float32Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); } @Override diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java index ef6cedcd..688ebe9b 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java @@ -16,8 +16,8 @@ package java.nio; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; /** This class wraps a byte buffer to be a int buffer. @@ -44,7 +44,7 @@ static IntBuffer wrap (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.intArray = FerTypedArraysFactory.create(Int32Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.intArray = TypedArraysFactory.createInstanceOf(Int32Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); } @Override diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java index 2a8aa4ab..c6d8b0e4 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java @@ -4,9 +4,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,8 +16,8 @@ package java.nio; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; /** This class wraps a byte buffer to be a short buffer. @@ -43,7 +43,7 @@ static ShortBuffer wrap (DirectByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 1)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.shortArray = FerTypedArraysFactory.create(Int16Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.shortArray = TypedArraysFactory.createInstanceOf(Int16Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); } @Override @@ -74,7 +74,7 @@ public short get () { // if (position == limit) { // throw new BufferUnderflowException(); // } - return (short)shortArray.get(position++); + return (short) shortArray.get(position++); } @Override @@ -82,7 +82,7 @@ public short get (int index) { // if (index < 0 || index >= limit) { // throw new IndexOutOfBoundsException(); // } - return (short)shortArray.get(index); + return (short) shortArray.get(index); } @Override diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java index b20639b6..abcedeba 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java @@ -30,8 +30,8 @@ public final class DirectReadWriteByteBuffer extends DirectByteBuffer { static DirectReadWriteByteBuffer copy (DirectByteBuffer other, int markOfOther) { - DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.get_buffer(), other.capacity(), - other.byteArray.get_byteOffset()); + DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.getBuffer(), other.capacity(), + other.byteArray.getByteOffset()); buf.limit = other.limit(); buf.position = other.position(); buf.mark = markOfOther; @@ -213,8 +213,8 @@ public ByteBuffer putShort (short value) { } public ByteBuffer slice () { - DirectReadWriteByteBuffer slice = new DirectReadWriteByteBuffer(byteArray.get_buffer(), remaining(), - byteArray.get_byteOffset() + position); + DirectReadWriteByteBuffer slice = new DirectReadWriteByteBuffer(byteArray.getBuffer(), remaining(), + byteArray.getByteOffset() + position); slice.order = order; return slice; } diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java index c153db52..7b8b0e1d 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java @@ -4,9 +4,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,8 +16,8 @@ package java.nio; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; /** This class wraps a byte buffer to be a float buffer. @@ -44,7 +44,7 @@ static FloatBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.floatArray = FerTypedArraysFactory.create(Float32Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.floatArray = TypedArraysFactory.createInstanceOf(Float32Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); } // TODO(haustein) This will be slow diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java index af8a2155..15b7c619 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java @@ -16,8 +16,8 @@ package java.nio; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; /** This class wraps a byte buffer to be a int buffer. @@ -43,7 +43,7 @@ static IntBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { super((byteBuffer.capacity() >> 2)); this.byteBuffer = byteBuffer; this.byteBuffer.clear(); - this.intArray = FerTypedArraysFactory.create(Int32Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.intArray = TypedArraysFactory.createInstanceOf(Int32Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); } // TODO(haustein) This will be slow diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java index 2a3036ae..12c476ce 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java @@ -4,9 +4,9 @@ * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,8 +16,8 @@ package java.nio; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; /** This class wraps a byte buffer to be a short buffer. @@ -30,133 +30,151 @@ * and limit. * *

*/ -final class DirectReadWriteShortBufferAdapter extends ShortBuffer implements HasArrayBufferView { -// implements DirectBuffer { +final class DirectReadWriteShortBufferAdapter extends ShortBuffer implements HasArrayBufferView +{ + // implements DirectBuffer { - static ShortBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { - return new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer)byteBuffer.slice()); + static ShortBuffer wrap(DirectReadWriteByteBuffer byteBuffer) + { + return new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer) byteBuffer.slice()); } private final DirectReadWriteByteBuffer byteBuffer; private final Int16Array shortArray; - DirectReadWriteShortBufferAdapter (DirectReadWriteByteBuffer byteBuffer) { + DirectReadWriteShortBufferAdapter(DirectReadWriteByteBuffer byteBuffer) + { super((byteBuffer.capacity() >> 1)); - this.byteBuffer = byteBuffer; + this.byteBuffer= byteBuffer; this.byteBuffer.clear(); - this.shortArray = FerTypedArraysFactory.create(Int16Array.class,byteBuffer.byteArray.get_buffer(), byteBuffer.byteArray.get_byteOffset(), capacity); + this.shortArray= TypedArraysFactory.createInstanceOf(Int16Array.class, byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); } // TODO(haustein) This will be slow @Override - public ShortBuffer asReadOnlyBuffer () { - DirectReadOnlyShortBufferAdapter buf = new DirectReadOnlyShortBufferAdapter(byteBuffer); - buf.limit = limit; - buf.position = position; - buf.mark = mark; + public ShortBuffer asReadOnlyBuffer() + { + DirectReadOnlyShortBufferAdapter buf= new DirectReadOnlyShortBufferAdapter(byteBuffer); + buf.limit= limit; + buf.position= position; + buf.mark= mark; return buf; } @Override - public ShortBuffer compact () { + public ShortBuffer compact() + { byteBuffer.limit(limit << 1); byteBuffer.position(position << 1); byteBuffer.compact(); byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; + position= limit - position; + limit= capacity; + mark= UNSET_MARK; return this; } @Override - public ShortBuffer duplicate () { - DirectReadWriteShortBufferAdapter buf = new DirectReadWriteShortBufferAdapter( - (DirectReadWriteByteBuffer)byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; + public ShortBuffer duplicate() + { + DirectReadWriteShortBufferAdapter buf= new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer) byteBuffer.duplicate()); + buf.limit= limit; + buf.position= position; + buf.mark= mark; return buf; } @Override - public short get () { -// if (position == limit) { -// throw new BufferUnderflowException(); -// } - return (short)shortArray.get(position++); + public short get() + { + // if (position == limit) { + // throw new BufferUnderflowException(); + // } + return (short) shortArray.get(position++); } @Override - public short get (int index) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - return (short)shortArray.get(index); + public short get(int index) + { + // if (index < 0 || index >= limit) { + // throw new IndexOutOfBoundsException(); + // } + return (short) shortArray.get(index); } @Override - public boolean isDirect () { + public boolean isDirect() + { return true; } @Override - public boolean isReadOnly () { + public boolean isReadOnly() + { return false; } @Override - public ByteOrder order () { + public ByteOrder order() + { return byteBuffer.order(); } @Override - protected short[] protectedArray () { + protected short[] protectedArray() + { throw new UnsupportedOperationException(); } @Override - protected int protectedArrayOffset () { + protected int protectedArrayOffset() + { throw new UnsupportedOperationException(); } @Override - protected boolean protectedHasArray () { + protected boolean protectedHasArray() + { return false; } @Override - public ShortBuffer put (short c) { -// if (position == limit) { -// throw new BufferOverflowException(); -// } - shortArray.set(position++, c); + public ShortBuffer put(short c) + { + // if (position == limit) { + // throw new BufferOverflowException(); + // } + shortArray.set(position++, (int) c); return this; } @Override - public ShortBuffer put (int index, short c) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - shortArray.set(index, c); + public ShortBuffer put(int index, short c) + { + // if (index < 0 || index >= limit) { + // throw new IndexOutOfBoundsException(); + // } + shortArray.set(index, (int) c); return this; } @Override - public ShortBuffer slice () { + public ShortBuffer slice() + { byteBuffer.limit(limit << 1); byteBuffer.position(position << 1); - ShortBuffer result = new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer)byteBuffer.slice()); + ShortBuffer result= new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer) byteBuffer.slice()); byteBuffer.clear(); return result; } - public ArrayBufferView getTypedArray () { + public ArrayBufferView getTypedArray() + { return shortArray; } - public int getElementSize () { + public int getElementSize() + { return 2; } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java index 00aa7a23..fe0a0699 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,12 +17,11 @@ package com.badlogic.gdx.backends.dragome; import java.io.File; -import java.io.IOException; +import java.lang.reflect.Method; import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import org.apache.commons.io.FileUtils; import org.w3c.dom.Attr; import org.w3c.dom.Document; import org.w3c.dom.Element; @@ -40,6 +39,7 @@ import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; +import com.badlogic.gdx.backends.dragome.js.typedarrays.TypedArray; import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint16Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8Array; @@ -57,6 +57,8 @@ import com.badlogic.gdx.backends.dragome.js.webgl.WebGLUniformLocation; import com.dragome.commons.ChainedInstrumentationDragomeConfigurator; import com.dragome.commons.DragomeConfiguratorImplementor; +import com.dragome.commons.compiler.ClasspathFile; +import com.dragome.commons.compiler.InMemoryClasspathFile; import com.dragome.commons.compiler.annotations.CompilerType; import com.dragome.web.config.NodeSubTypeFactory; import com.dragome.web.enhancers.jsdelegate.DefaultDelegateStrategy; @@ -68,48 +70,50 @@ import com.dragome.web.html.dom.html5canvas.interfaces.HTMLCanvasElement; import com.dragome.web.html.dom.html5canvas.interfaces.ImageElement; -import javassist.CtMethod; -import javassist.NotFoundException; - /** @author xpenatan */ -@DragomeConfiguratorImplementor(priority = 10) -public class DragomeConfiguration extends ChainedInstrumentationDragomeConfigurator { +@DragomeConfiguratorImplementor(priority= 10) +public class DragomeConfiguration extends ChainedInstrumentationDragomeConfigurator +{ HashSet paths; String projName; String projPath; - List result; + List extraClasspathFiles; private JsDelegateGenerator jsDelegateGenerator; - boolean cache = false; - - public DragomeConfiguration () { + boolean cache= false; + + public DragomeConfiguration() + { -// System.setProperty("dragome-compile-mode", CompilerMode.Production.toString()); -// System.setProperty("dragome-compile-mode", CompilerMode.Debug.toString()); + // System.setProperty("dragome-compile-mode", CompilerMode.Production.toString()); + // System.setProperty("dragome-compile-mode", CompilerMode.Debug.toString()); - result = new ArrayList(); - projPath = System.getProperty("user.dir"); - File file = new File(projPath); - projName = file.getName(); - paths = new HashSet(); - setClasspathFilter(new DefaultClasspathFilter() { - public boolean accept (File pathname) { - boolean accept = super.accept(pathname); - String absolutePath = pathname.getAbsolutePath(); + extraClasspathFiles= new ArrayList(); + projPath= System.getProperty("user.dir"); + File file= new File(projPath); + projName= file.getName(); + paths= new HashSet(); + setClasspathFilter(new DefaultClasspathFilter() + { + public boolean accept(File pathname) + { + boolean accept= super.accept(pathname); + String absolutePath= pathname.getAbsolutePath(); - if(absolutePath.contains("utils\\Json")) + if (absolutePath.contains("utils\\Json")) return false; - String className = pathname.getName().replace(".class", ""); - if (paths.contains(className)) return false; + String className= pathname.getName().replace(".class", ""); + if (paths.contains(className)) + return false; - if (absolutePath.contains("gdx-backend-dragome")) { + if (absolutePath.contains("gdx-backend-dragome")) + { paths.add(className); } - - + System.out.println("ClassPathFilter: " + accept + " - " + absolutePath); - + return accept; } @@ -117,79 +121,58 @@ public boolean accept (File pathname) { } - public void add (Class clazz) { - byte[] bytecode = jsDelegateGenerator.generate(clazz); - addClassBytecode(bytecode, JsDelegateGenerator.createDelegateClassName(clazz.getName())); + public void add(Class clazz) + { + byte[] bytecode= jsDelegateGenerator.generate(clazz); + String classname= JsDelegateGenerator.createDelegateClassName(clazz.getName()); + addClassBytecode(bytecode, classname); + extraClasspathFiles.add(new InMemoryClasspathFile(classname, bytecode)); } - private void createJsDelegateGenerator (String classpath) { - - if(cache == false) { - File file2 = new File(projPath + "\\target\\dragome.cache"); - if (file2.exists()) - file2.delete(); - } - File file1 = new File(projPath + "\\target\\jsdelegate"); - try { - - if (file1.exists()) - FileUtils.deleteDirectory(file1); - } catch (IOException e) { - e.printStackTrace(); - } - - jsDelegateGenerator = new JsDelegateGenerator(file1, classpath.replace(";", ":"), - new DefaultDelegateStrategy() { - @Override - public String createMethodCall (CtMethod method, StringBuffer code, String params) throws NotFoundException { - if (params == null) params = ""; - String longName = method.getLongName(); - String name = method.getName(); - -// System.out.println("Interfaces: " + longName); - - if (longName.contains(".js.")) { - - String codeStr = null; - - if(name.startsWith("set_") && method.getParameterTypes().length == 1) { - String variableName = name.replace("set_", ""); - codeStr = "this.node." + variableName + "=" + params; - } - else if(method.getName().startsWith("get_") && method.getParameterTypes().length == 0) { - String variableName = name.replace("get_", ""); - codeStr = "this.node." + variableName; - } - else - codeStr = "this.node." + name + "(" + params + ")"; - return codeStr; - } else { - return super.createMethodCall(method, code, params); - } - } - - public String getSubTypeExtractorFor(Class interface1, String methodName) + private void createJsDelegateGenerator(String classpath) + { + jsDelegateGenerator= new JsDelegateGenerator(classpath.replace(";", ":"), new DefaultDelegateStrategy() + { + public String createMethodCall(Method method, String params) + { + if (params == null) + params= ""; + + String name= method.getName(); + Class[] superclass= method.getDeclaringClass().getInterfaces(); + if (superclass.length > 0 && superclass[0].equals(TypedArray.class)) { - if (methodName.equals("item") || methodName.equals("cloneNode")) - return "temp.nodeType"; - - return null; + if (name.equals("set") && method.getParameterTypes().length == 2 && method.getParameterTypes()[0].equals(int.class)) + return "this.node[$1] = $2"; + else if ((name.equals("get") || name.equals("getAsDouble")) && method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(int.class)) + return "this.node[$1]"; } - public Class getSubTypeFactoryClassFor(Class interface1, String methodName) - { - if (methodName.equals("item") || methodName.equals("cloneNode")) - return NodeSubTypeFactory.class; + return super.createMethodCall(method, params); + } - return null; - } - }); + public String getSubTypeExtractorFor(Class interface1, String methodName) + { + if (methodName.equals("item") || methodName.equals("cloneNode")) + return "temp.nodeType"; + + return null; + } - result.add(jsDelegateGenerator.getBaseDir()); + public Class getSubTypeFactoryClassFor(Class interface1, String methodName) + { + if (methodName.equals("item") || methodName.equals("cloneNode")) + return NodeSubTypeFactory.class; + + return null; + } + }); } - public List getExtraClasspath (String classpath) { - if (jsDelegateGenerator == null) createJsDelegateGenerator(classpath); + public List getExtraClasspath(String classpath) + { + if (jsDelegateGenerator == null) + createJsDelegateGenerator(classpath); add(Document.class); add(Element.class); @@ -219,8 +202,8 @@ public List getExtraClasspath (String classpath) { add(ArrayBuffer.class); add(ArrayBufferView.class); -// add(DataView.class); -// add(DataViewStream.class); + // add(DataView.class); + // add(DataViewStream.class); add(Float32Array.class); add(Float64Array.class); add(Int16Array.class); @@ -232,34 +215,51 @@ public List getExtraClasspath (String classpath) { add(Uint8ClampedArray.class); add(Storage.class); - return result; + add(TypedArraysFactory.class); + + return extraClasspathFiles; } @Override - public boolean filterClassPath (String aClassPathEntry) { - boolean flag = false; - if (aClassPathEntry.contains(projName)) flag = true; - else if (aClassPathEntry.contains("repository") && aClassPathEntry.contains("gdx") || aClassPathEntry.contains("gdx.jar") || aClassPathEntry.contains("gdx\\bin")) flag = true; - else if (aClassPathEntry.contains("repository\\gdx-backend-dragome") || aClassPathEntry.contains("gdx-backend-dragome\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-js-commons-") || aClassPathEntry.contains("dragome-js-commons\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-js-jre-") || aClassPathEntry.contains("dragome-js-jre\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-callback-evictor-") || aClassPathEntry.contains("dragome-callback-evictor\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-form-bindings-") || aClassPathEntry.contains("dragome-form-bindings\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-core-") || aClassPathEntry.contains("dragome-core\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-method-logger-") || aClassPathEntry.contains("dragome-method-logger\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-web-") || aClassPathEntry.contains("dragome-web\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-guia-web-") || aClassPathEntry.contains("dragome-guia-web\\bin")) flag = true; - else if (aClassPathEntry.contains("dragome-guia-") || aClassPathEntry.contains("dragome-guia\\bin")) flag = true; + public boolean filterClassPath(String aClassPathEntry) + { + boolean flag= false; + if (aClassPathEntry.contains(projName)) + flag= true; + else if (aClassPathEntry.contains("repository") && aClassPathEntry.contains("gdx") || aClassPathEntry.contains("gdx.jar") || aClassPathEntry.contains("gdx\\bin")) + flag= true; + else if (aClassPathEntry.contains("repository\\gdx-backend-dragome") || aClassPathEntry.contains("gdx-backend-dragome\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-js-commons-") || aClassPathEntry.contains("dragome-js-commons\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-js-jre-") || aClassPathEntry.contains("dragome-js-jre\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-callback-evictor-") || aClassPathEntry.contains("dragome-callback-evictor\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-form-bindings-") || aClassPathEntry.contains("dragome-form-bindings\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-core-") || aClassPathEntry.contains("dragome-core\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-method-logger-") || aClassPathEntry.contains("dragome-method-logger\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-web-") || aClassPathEntry.contains("dragome-web\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-guia-web-") || aClassPathEntry.contains("dragome-guia-web\\bin")) + flag= true; + else if (aClassPathEntry.contains("dragome-guia-") || aClassPathEntry.contains("dragome-guia\\bin")) + flag= true; System.out.println("flag: " + flag + " path: " + aClassPathEntry); return flag; } - public CompilerType getDefaultCompilerType () { + public CompilerType getDefaultCompilerType() + { return CompilerType.Standard; } @Override - public boolean isCheckingCast () { - return true; + public boolean isCheckingCast() + { + return false; } } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java index 746ce76f..5dfd600f 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java @@ -26,7 +26,6 @@ import java.util.Map; import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; @@ -73,27 +72,27 @@ public class DragomeGL20 implements GL20 { public DragomeGL20 (WebGLRenderingContext gl) { this.gl = gl; - floatBuffer= FerTypedArraysFactory.create(Float32Array.class, 2000 * 20); - intBuffer= FerTypedArraysFactory.create(Int32Array.class, 2000 * 6); - shortBuffer = FerTypedArraysFactory.create(Int16Array.class, 2000 * 6); + floatBuffer= TypedArraysFactory.createInstanceOf(Float32Array.class, 2000 * 20); + intBuffer= TypedArraysFactory.createInstanceOf(Int32Array.class, 2000 * 6); + shortBuffer = TypedArraysFactory.createInstanceOf(Int16Array.class, 2000 * 6); this.gl.pixelStorei(WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 0); } private void ensureCapacity (FloatBuffer buffer) { - if (buffer.remaining() > floatBuffer.get_length()) { - floatBuffer= FerTypedArraysFactory.create(Float32Array.class, buffer.remaining()); + if (buffer.remaining() > floatBuffer.getLength()) { + floatBuffer= TypedArraysFactory.createInstanceOf(Float32Array.class, buffer.remaining()); } } private void ensureCapacity (ShortBuffer buffer) { - if (buffer.remaining() > shortBuffer.get_length()) { - shortBuffer = FerTypedArraysFactory.create(Int16Array.class, buffer.remaining()); + if (buffer.remaining() > shortBuffer.getLength()) { + shortBuffer = TypedArraysFactory.createInstanceOf(Int16Array.class, buffer.remaining()); } } private void ensureCapacity (IntBuffer buffer) { - if (buffer.remaining() > intBuffer.get_length()) { - intBuffer = FerTypedArraysFactory.create(Int32Array.class, buffer.remaining()); + if (buffer.remaining() > intBuffer.getLength()) { + intBuffer = TypedArraysFactory.createInstanceOf(Int32Array.class, buffer.remaining()); } } @@ -108,7 +107,7 @@ public Float32Array copy (FloatBuffer buffer) { public Int16Array copy (ShortBuffer buffer) { ensureCapacity(buffer); for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) { - shortBuffer.set(j, buffer.get(i)); + shortBuffer.set(j, (int) buffer.get(i)); } return shortBuffer.subarray(0, buffer.remaining()); } @@ -417,7 +416,7 @@ public void glReadPixels (int x, int y, int width, int height, int format, int t // create new ArrayBufferView (4 bytes per pixel) int size = 4 * width * height; - Uint8Array buffer = FerTypedArraysFactory.create(Uint8Array.class, size); + Uint8Array buffer = TypedArraysFactory.createInstanceOf(Uint8Array.class, size); // read bytes to ArrayBufferView gl.readPixels(x, y, width, height, format, type, buffer); @@ -461,9 +460,9 @@ public void glTexImage2D (int target, int level, int internalformat, int width, ArrayBufferView webGLArray = arrayHolder.getTypedArray(); int remainingBytes = pixels.remaining() * 4; - int byteOffset = webGLArray.get_byteOffset() + pixels.position() * 4; + int byteOffset = webGLArray.getByteOffset() + pixels.position() * 4; - Uint8Array buffer = FerTypedArraysFactory.create(Uint8Array.class, webGLArray.get_buffer(), byteOffset, remainingBytes); + Uint8Array buffer = TypedArraysFactory.createInstanceOf(Uint8Array.class, webGLArray.getBuffer(), byteOffset, remainingBytes); gl.texImage2D(target, level, internalformat, width, height, border, format, type, buffer); } else { @@ -487,9 +486,9 @@ public void glTexSubImage2D (int target, int level, int xoffset, int yoffset, in ArrayBufferView webGLArray = arrayHolder.getTypedArray(); int remainingBytes = pixels.remaining() * 4; - int byteOffset = webGLArray.get_byteOffset() + pixels.position() * 4; + int byteOffset = webGLArray.getByteOffset() + pixels.position() * 4; - Uint8Array buffer = FerTypedArraysFactory.create(Uint8Array.class, webGLArray.get_buffer(), byteOffset, remainingBytes); + Uint8Array buffer = TypedArraysFactory.createInstanceOf(Uint8Array.class, webGLArray.getBuffer(), byteOffset, remainingBytes); gl.texSubImage2D(target, level, xoffset, yoffset, width, height, format, type, buffer); } else { @@ -746,17 +745,17 @@ public int glGenRenderbuffer () { @Override public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { WebGLActiveInfo activeAttrib = gl.getActiveAttrib(programs.get(program), index); - size.put(activeAttrib.get_size()); - ((IntBuffer)type).put(activeAttrib.get_type()); - return activeAttrib.get_name(); + size.put(activeAttrib.getSize()); + ((IntBuffer)type).put(activeAttrib.getType()); + return activeAttrib.getName(); } @Override public String glGetActiveUniform (int program, int index, IntBuffer size, Buffer type) { WebGLActiveInfo activeUniform = gl.getActiveUniform(programs.get(program), index); - size.put(activeUniform.get_size()); - ((IntBuffer)type).put(activeUniform.get_type()); - return activeUniform.get_name(); + size.put(activeUniform.getSize()); + ((IntBuffer)type).put(activeUniform.getType()); + return activeUniform.getName(); } @Override diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGraphics.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGraphics.java index 5a85627a..65bdd33e 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGraphics.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGraphics.java @@ -21,6 +21,7 @@ import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Graphics; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLContextAttributes; +import com.badlogic.gdx.backends.dragome.js.webgl.WebGLFactory; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLRenderingContext; import com.badlogic.gdx.graphics.Cursor; import com.badlogic.gdx.graphics.Cursor.SystemCursor; @@ -55,12 +56,12 @@ public DragomeGraphics (DragomeApplication app, DragomeApplicationConfiguration public boolean init () { ScriptHelper.put("canvas", canvas, this); - WebGLContextAttributes attributes = WebGLContextAttributes.create(); - attributes.set_antialias(config.antialiasing); - attributes.set_stencil(config.stencil); - attributes.set_alpha(config.alpha); - attributes.set_premultipliedAlpha(config.premultipliedAlpha); - attributes.set_preserveDrawingBuffer(config.preserveDrawingBuffer); + WebGLContextAttributes attributes = WebGLFactory.create(); + attributes.setAntialias(config.antialiasing); + attributes.setStencil(config.stencil); + attributes.setAlpha(config.alpha); + attributes.setPremultipliedAlpha(config.premultipliedAlpha); + attributes.setPreserveDrawingBuffer(config.preserveDrawingBuffer); ScriptHelper.evalNoResult("var names = [ 'experimental-webgl', 'webgl', 'moz-webgl', 'webkit-webgl', 'webkit-3d']", this); ScriptHelper.evalNoResult("var obj; for ( var i = 0; i < names.length; i++) { try {var ctx = canvas.node.getContext(names[i], attributes); if (ctx != null) { obj = ctx; } } catch (e) { } }", this); Object instance = ScriptHelper.eval("obj", this); diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java new file mode 100644 index 00000000..2beac290 --- /dev/null +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java @@ -0,0 +1,29 @@ +package com.badlogic.gdx.backends.dragome; + +import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; +import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import com.dragome.commons.javascript.ScriptHelper; + +public class TypedArraysFactory +{ + public native static T createInstanceOf(Class type, ArrayBuffer buffer); + public native static T createInstanceOf(Class type, ArrayBuffer buffer, int byteOffset); + public native static T createInstanceOf(Class type, ArrayBuffer buffer, int byteOffset, int length); + public native static T createInstanceOf(Class type, int length); + public native static T createInstanceOf(Class type, float[] array); + + public boolean checkDataViewSupport() + { + return ScriptHelper.evalBoolean("!!(window.DataView)", this); + } + + public boolean checkUint8ClampedArraySupport() + { + return ScriptHelper.evalBoolean("!!(window.Uint8ClampedArray)", this); + } + + public boolean runtimeSupportCheck() + { + return ScriptHelper.evalBoolean("!!(window.ArrayBuffer)", this); + } +} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java index 2f804fc7..2953c1f2 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java @@ -16,6 +16,8 @@ package com.badlogic.gdx.backends.dragome.js.storage; +import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; +import com.dragome.commons.DelegateCode; import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; @@ -53,4 +55,13 @@ public static boolean checkStorageSupport (String type) { void removeItem (String key); void clear (); + + @DelegateCode(ignore= true) + static ArrayBuffer createArrayBuffer(int length) + { + ScriptHelper.put("lenght", length, null); + Object instance= ScriptHelper.eval("new ArrayBuffer(length);", null); + ArrayBuffer node= JsDelegateFactory.createFrom(instance, ArrayBuffer.class); + return node; + } } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBufferView.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBufferView.java index b7bc9b1a..3d6ccbbf 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBufferView.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBufferView.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,11 +17,9 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; /** @author xpenatan */ -public interface ArrayBufferView { - - ArrayBuffer get_buffer (); - - int get_byteLength (); - - int get_byteOffset (); +public interface ArrayBufferView +{ + ArrayBuffer getBuffer(); + int getByteLength(); + int getByteOffset(); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/DataView.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/DataView.java index f48d3772..b1d9296e 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/DataView.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/DataView.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,98 +16,7 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ -public interface DataView extends ArrayBufferView { - - @DelegateCode(ignore = true) - public static DataView create (ArrayBuffer buffer) { - ScriptHelper.put("buffer", buffer, null); - Object instance = ScriptHelper.eval("new DataView(buffer.node);", null); - DataView node = JsDelegateFactory.createFrom(instance, DataView.class); - return node; - } - - @DelegateCode(ignore = true) - public static DataView create (ArrayBuffer buffer, int byteOffset) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - Object instance = ScriptHelper.eval("new DataView(buffer.node, byteOffset);", null); - DataView node = JsDelegateFactory.createFrom(instance, DataView.class); - return node; - }; - - @DelegateCode(ignore = true) - public static DataView create (ArrayBuffer buffer, int byteOffset, int length) { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - Object instance = ScriptHelper.eval("new DataView(buffer.node, byteOffset, length);", null); - DataView node = JsDelegateFactory.createFrom(instance, DataView.class); - return node; - }; - - float getFloat32 (int byteOffset); - - float getFloat32 (int byteOffset, boolean littleEndian); - - double getFloat64 (int byteOffset); - - double getFloat64 (int byteOffset, boolean littleEndian); - - byte getInt8 (int byteOffset); - - short getInt16 (int byteOffset); - - short getInt16 (int byteOffset, boolean littleEndian); - - int getInt32 (int byteOffset); - - int getInt32 (int byteOffset, boolean littleEndian); - - short getUint8 (int byteOffset); - - int getUint16 (int byteOffset); - - int getUint16 (int byteOffset, boolean littleEndian); - - long getUint32 (int byteOffset); - - long getUint32 (int byteOffset, boolean littleEndian); - - double getUint32AsDouble (int byteOffset); - - double getUint32AsDouble (int byteOffset, boolean littleEndian); - - void setFloat32 (int byteOffset, float value); - - void setFloat32 (int byteOffset, float value, boolean littleEndian); - - void setFloat64 (int byteOffset, double value); - - void setFloat64 (int byteOffset, double value, boolean littleEndian); - - void setInt8 (int byteOffset, int value); - - void setInt16 (int byteOffset, int value); - - void setInt16 (int byteOffset, int value, boolean littleEndian); - - void setInt32 (int byteOffset, int value); - - void setInt32 (int byteOffset, int value, boolean littleEndian); - - void setUint8 (int byteOffset, int i); - - void setUint16 (int byteOffset, int value); - - void setUint16 (int byteOffset, int value, boolean littleEndian); - - void setUint32 (int byteOffset, long value); - - void setUint32 (int byteOffset, long value, boolean littleEndian); - +public interface DataView extends ArrayBufferView +{ } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/FerTypedArraysFactory.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/FerTypedArraysFactory.java deleted file mode 100644 index ae2b1ff7..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/FerTypedArraysFactory.java +++ /dev/null @@ -1,135 +0,0 @@ -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - -public class FerTypedArraysFactory -{ - @DelegateCode(ignore= true) - public static T create(Class type, ArrayBuffer buffer) - { - ScriptHelper.put("buffer", buffer, null); - String script= "new " + type.getSimpleName() + "(buffer.node)"; - Object instance= ScriptHelper.eval(script, null); - T node= (T) JsDelegateFactory.createFrom(instance, type); - return node; - } - - @DelegateCode(ignore= true) - public static T create(Class type, ArrayBuffer buffer, int byteOffset) - { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - String script= "new " + type.getSimpleName() + "(buffer.node, byteOffset);"; - Object instance= ScriptHelper.eval(script, null); - T node= JsDelegateFactory.createFrom(instance, type); - return node; - }; - - @DelegateCode(ignore= true) - public static T create(Class type, ArrayBuffer buffer, int byteOffset, int length) - { - ScriptHelper.put("buffer", buffer, null); - ScriptHelper.put("byteOffset", byteOffset, null); - ScriptHelper.put("length", length, null); - String script= "new " + type.getSimpleName() + "(buffer.node, byteOffset, length);"; - Object instance= ScriptHelper.eval(script, null); - T node= JsDelegateFactory.createFrom(instance, type); - return node; - }; - - @DelegateCode(ignore= true) - public static T create(Class type, int length) - { - ScriptHelper.put("length", length, null); - String script= "new " + type.getSimpleName() + "(length);"; - Object instance= ScriptHelper.eval(script, null); - T node= JsDelegateFactory.createFrom(instance, type); - return node; - }; - - public T createFloat32Array(Class type, float[] array) - { - ScriptHelper.put("array", array, this); - String script= "new " + type.getSimpleName() + "(array)"; - Object eval= ScriptHelper.eval(script, this); - return (T) JsDelegateFactory.createFrom(eval, type); - } - - - public Float32Array createFloat32Array(ArrayBuffer buffer) - { - return create(Float32Array.class, buffer, 0, getElementCount(buffer.get_byteLength(), Float32Array.BYTES_PER_ELEMENT)); - } - - public Float32Array createFloat32Array(ArrayBuffer buffer, int byteOffset) - { - return create(Float32Array.class, buffer, byteOffset, getElementCount(buffer.get_byteLength() - byteOffset, Float32Array.BYTES_PER_ELEMENT)); - } - - public Float32Array createFloat32Array(float[] array) - { - Float32Array result= createFloat32Array(array.length); - result.set(array, 0); - return result; - } - - public Float32Array createFloat32Array(int length) - { - return createFloat32Array(createArrayBuffer(length * Float32Array.BYTES_PER_ELEMENT)); - } - - /** Get the number of elements in a number of bytes, throwing an exception if it isn't an integral number. - * - * @param byteLength - * @param elemLength length of each element in bytes - * @return count of elements - * @throws IllegalArgumentException if {@code byteLength} isn't an integral multiple of {@code elemLength} */ - protected static int getElementCount(int byteLength, int elemLength) - { - int count= byteLength / elemLength; - if (count * elemLength != byteLength) - { - throw new IllegalArgumentException(); - } - return count; - } - - @DelegateCode(ignore = true) - public static ArrayBuffer createArrayBuffer (int length) { - ScriptHelper.put("lenght", length, null); - Object instance = ScriptHelper.eval("new ArrayBuffer(length);", null); - ArrayBuffer node = JsDelegateFactory.createFrom(instance, ArrayBuffer.class); - return node; - } - - public Uint32Array createUint32Array(long[] array) - { - int len= array.length; - double[] temp= new double[len]; - for (int i= 0; i < len; ++i) - { - temp[i]= array[i]; - } - ScriptHelper.put("array", temp, this); - Object eval= ScriptHelper.eval("new Uint32Array(array)", this); - return JsDelegateFactory.createFrom(eval, Uint32Array.class); - } - - protected boolean checkDataViewSupport() - { - return ScriptHelper.evalBoolean("!!(window.DataView)", this); - } - - protected boolean checkUint8ClampedArraySupport() - { - return ScriptHelper.evalBoolean("!!(window.Uint8ClampedArray)", this); - } - - protected boolean runtimeSupportCheck() - { - return ScriptHelper.evalBoolean("!!(window.ArrayBuffer)", this); - } - -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java index 4a0d7105..3a83d927 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java @@ -16,26 +16,12 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; - /** @author xpenatan */ -public interface Float32Array extends ArrayBufferView { - - final int BYTES_PER_ELEMENT = 4; - - int get_length (); - - @DelegateCode(eval = "this.node[$1]") - float get (int index); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, float value); - - void set (Float32Array array, int offset); - - void set (float[] array, int offset); - - Float32Array subarray (int begin); +public interface Float32Array extends TypedArray +{ + final int BYTES_PER_ELEMENT= 4; - Float32Array subarray (int begin, int end); + float get(int index); + void set(int index, float value); + void set(float[] array, int offset); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java index 29099b94..1092d1c3 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java @@ -16,26 +16,11 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; - /** @author xpenatan */ -public interface Float64Array extends ArrayBufferView { - - final int BYTES_PER_ELEMENT = 8; - - int get_length (); - - @DelegateCode(eval = "this.node[$1]") - double get (int index); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, double value); - - void set (Float64Array array, int offset); - - void set (double[] array, int offset); - - Float64Array subarray (int begin); - - Float64Array subarray (int begin, int end); +public interface Float64Array extends TypedArray +{ + final int BYTES_PER_ELEMENT= 8; + double get(int index); + void set(int index, double value); + void set(double[] array, int offset); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java index 512fc4ab..f46b6e50 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java @@ -16,28 +16,12 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ -public interface Int16Array extends ArrayBufferView { - - final int BYTES_PER_ELEMENT = 2; - - int get_length (); - - @DelegateCode(eval = "this.node[$1]") - short get (int index); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, int value); - - void set (Int16Array array, int offset); - - void set (short[] array, int offset); - - void set (int[] array, int offset); - - Int16Array subarray (int begin, int end); +public interface Int16Array extends TypedArray +{ + final int BYTES_PER_ELEMENT= 2; + short get(int index); + void set(int index, int value); + void set(short[] array, int offset); + void set(int[] array, int offset); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java index ff78d772..42764bc0 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java @@ -16,26 +16,12 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ -public interface Int32Array extends ArrayBufferView { - - final int BYTES_PER_ELEMENT = 4; - - int get_length (); - - @DelegateCode(eval = "this.node[$1]") - int get (int index); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, int value); - - void set (Int32Array array, int offset); - - void set (int[] array, int offset); +public interface Int32Array extends TypedArray +{ + final int BYTES_PER_ELEMENT= 4; - Int32Array subarray (int begin, int end); + int get(int index); + void set(int index, int value); + void set(int[] array, int offset); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java index 04ffcbaf..979c9457 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java @@ -16,28 +16,13 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; - /** @author xpenatan */ -public interface Int8Array extends ArrayBufferView { - - final int BYTES_PER_ELEMENT = 1; - - int get_length (); - - @DelegateCode(eval = "this.node[$1]") - byte get (int index); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, int value); - - void set (Int8Array array, int offset); - - void set (byte[] array, int offset); - - void set (int[] array, int offset); - - Int8Array subarray (int begin); - - Int8Array subarray (int begin, int end); +public interface Int8Array extends TypedArray +{ + final int BYTES_PER_ELEMENT= 1; + + byte get(int index); + void set(int index, int value); + void set(byte[] array, int offset); + void set(int[] array, int offset); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java index 832488e9..b019f9ad 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java @@ -1,22 +1,9 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; - -public interface TypedArray +public interface TypedArray extends ArrayBufferView { - int get_length(); - - @DelegateCode(eval= "this.node[$1]") - ItemType get(int index); - - @DelegateCode(eval= "this.node[$1] = $2") - void set(int index, ItemType value); - + int getLength(); void set(ArrayType array, int offset); - - void set(ItemType[] array, int offset); - ArrayType subarray(int begin); - ArrayType subarray(int begin, int end); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java index 7e196c75..5a14fe45 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java @@ -16,28 +16,11 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ -public interface Uint16Array extends ArrayBufferView { - - final int BYTES_PER_ELEMENT = 2; - - int get_length (); - - @DelegateCode(eval = "this.node[$1]") - int get (int index); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, int value); - - void set (Uint16Array array, int offset); - - void set (int[] array, int offset); - - Uint16Array subarray (int begin); - - Uint16Array subarray (int begin, int end); +public interface Uint16Array extends TypedArray +{ + final int BYTES_PER_ELEMENT= 2; + int get(int index); + void set(int index, int value); + void set(int[] array, int offset); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java index f10695be..a1556db6 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java @@ -16,36 +16,15 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ -public interface Uint32Array extends ArrayBufferView { - - final int BYTES_PER_ELEMENT = 4; - - int get_length (); - - @DelegateCode(eval = "this.node[$1]") - long get (int index); - - @DelegateCode(eval = "this.node[$1]") - double getAsDouble (int index); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, long value); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, double value); - - void set (Uint32Array array, int offset); - - void set (long[] array, int offset); - - void set (double[] array, int offset); - - Uint32Array subarray (int begin); - - Uint32Array subarray (int begin, int end); +public interface Uint32Array extends TypedArray +{ + final int BYTES_PER_ELEMENT= 4; + + long get(int index); + double getAsDouble(int index); + void set(int index, long value); + void set(int index, double value); + void set(long[] array, int offset); + void set(double[] array, int offset); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java index 001429aa..bad1c65d 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java @@ -16,30 +16,14 @@ package com.badlogic.gdx.backends.dragome.js.typedarrays; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ -public interface Uint8Array extends ArrayBufferView { - - final int BYTES_PER_ELEMENT = 1; - - int get_length (); - - @DelegateCode(eval = "this.node[$1]") - short get (int index); - - @DelegateCode(eval = "this.node[$1] = $2") - void set (int index, int value); - - void set (Uint8Array array, int offset); - - void set (int[] array, int offset); - - void set (short[] array, int offset); +public interface Uint8Array extends TypedArray +{ - Uint8Array subarray (int begin); + final int BYTES_PER_ELEMENT= 1; - Uint8Array subarray (int begin, int end); + short get(int index); + void set(int index, int value); + void set(int[] array, int offset); + void set(short[] array, int offset); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLActiveInfo.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLActiveInfo.java index 9442144b..8b30f273 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLActiveInfo.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLActiveInfo.java @@ -18,9 +18,9 @@ /** @author xpenatan */ public interface WebGLActiveInfo { - public int get_size (); + public int getSize (); - public int get_type (); + public int getType (); - public String get_name (); + public String getName (); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLContextAttributes.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLContextAttributes.java index a6c2660e..ff87ecf7 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLContextAttributes.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLContextAttributes.java @@ -16,30 +16,18 @@ package com.badlogic.gdx.backends.dragome.js.webgl; -import com.dragome.commons.DelegateCode; -import com.dragome.commons.javascript.ScriptHelper; -import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; - /** @author xpenatan */ public interface WebGLContextAttributes { - @DelegateCode(ignore = true) - public static WebGLContextAttributes create() { - WebGLContextAttributes attr = null; - Object instance = ScriptHelper.eval("{premultipliedAlpha:false}", null); - attr = JsDelegateFactory.createFrom(instance, WebGLContextAttributes.class); - return attr; - } - - public void set_alpha (boolean alpha); + public void setAlpha (boolean alpha); - public void set_antialias (boolean antialias); + public void setAntialias (boolean antialias); - public void set_depth (boolean depth); + public void setDepth (boolean depth); - public void set_premultipliedAlpha (boolean premultipliedAlpha); + public void setPremultipliedAlpha (boolean premultipliedAlpha); - public void set_preserveDrawingBuffer (boolean preserveDrawingBuffer); + public void setPreserveDrawingBuffer (boolean preserveDrawingBuffer); - public void set_stencil (boolean stencil); + public void setStencil (boolean stencil); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFactory.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFactory.java new file mode 100644 index 00000000..ef378baa --- /dev/null +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFactory.java @@ -0,0 +1,15 @@ +package com.badlogic.gdx.backends.dragome.js.webgl; + +import com.dragome.commons.javascript.ScriptHelper; +import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; + +public class WebGLFactory +{ + public static WebGLContextAttributes create() + { + WebGLContextAttributes attr= null; + Object instance= ScriptHelper.eval("{premultipliedAlpha:false}", null); + attr= JsDelegateFactory.createFrom(instance, WebGLContextAttributes.class); + return attr; + } +} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShaderPrecisionFormat.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShaderPrecisionFormat.java index 11dbc94e..6597d591 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShaderPrecisionFormat.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShaderPrecisionFormat.java @@ -18,9 +18,9 @@ /** @author xpenatan */ public interface WebGLShaderPrecisionFormat { - public int get_rangeMin (); + public int getRangeMin (); - public int get_rangeMax (); + public int getRangeMax (); - public int get_precision (); + public int getPrecision (); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java index 937bb8bb..972e1790 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java @@ -18,10 +18,10 @@ import org.w3c.dom.events.Event; +import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ReadyStateChangeHandler; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ResponseType; -import com.badlogic.gdx.backends.dragome.js.typedarrays.FerTypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; import com.badlogic.gdx.backends.dragome.preloader.AssetFilter.AssetType; import com.badlogic.gdx.utils.GdxRuntimeException; @@ -120,7 +120,7 @@ public void onReadyStateChange (XMLHttpRequest xhr) { listener.onFailure(); } else { - Int8Array data= FerTypedArraysFactory.create(Int8Array.class, xhr.getResponseArrayBuffer()); + Int8Array data= TypedArraysFactory.createInstanceOf(Int8Array.class, xhr.getResponseArrayBuffer()); listener.onSuccess(new Blob(data)); } } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Blob.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Blob.java index 394aa161..65ae14c8 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Blob.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Blob.java @@ -30,7 +30,7 @@ public Blob (Int8Array data) { } public int length () { - return data.get_length(); + return data.getLength(); } public byte get (int i) { @@ -56,7 +56,7 @@ public int available () { } public String toBase64 () { - int length = data.get_length(); + int length = data.getLength(); String base64code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; StringBuilder encoded = new StringBuilder(length * 4 / 3 + 2); for (int i = 0; i < length; i += 3) { From 937b40fb6223f84f1e1aa3461513cb94b662b8c5 Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Mon, 21 Mar 2016 23:20:42 -0300 Subject: [PATCH 04/10] introducing w3c standards --- .../emu/java/io/HasArrayBufferView.java | 8 +- .../emu/java/io/Numbers.java | 7 +- .../emu/java/nio/DirectByteBuffer.java | 9 +- .../java/nio/DirectReadOnlyByteBuffer.java | 2 +- .../nio/DirectReadOnlyFloatBufferAdapter.java | 5 +- .../nio/DirectReadOnlyIntBufferAdapter.java | 5 +- .../nio/DirectReadOnlyShortBufferAdapter.java | 5 +- .../java/nio/DirectReadWriteByteBuffer.java | 2 +- .../DirectReadWriteFloatBufferAdapter.java | 5 +- .../nio/DirectReadWriteIntBufferAdapter.java | 5 +- .../DirectReadWriteShortBufferAdapter.java | 9 +- .../emu/java/nio/HasArrayBufferView.java | 2 +- .../dragome/DragomeConfiguration.java | 40 +- .../gdx/backends/dragome/DragomeGL20.java | 13 +- .../backends/dragome/TypedArraysFactory.java | 5 +- .../backends/dragome/js/XMLHttpRequest.java | 19 +- .../backends/dragome/js/storage/Storage.java | 3 +- .../dragome/js/typedarrays/ArrayBuffer.java | 23 - .../js/typedarrays/ArrayBufferView.java | 25 - .../dragome/js/typedarrays/DataView.java | 22 - .../dragome/js/typedarrays/Float32Array.java | 27 - .../dragome/js/typedarrays/Float64Array.java | 26 - .../dragome/js/typedarrays/Int16Array.java | 27 - .../dragome/js/typedarrays/Int32Array.java | 27 - .../dragome/js/typedarrays/Int8Array.java | 28 - .../js/typedarrays/SharedArrayBuffer.java | 21 - .../dragome/js/typedarrays/TypedArray.java | 9 - .../dragome/js/typedarrays/Uint16Array.java | 26 - .../dragome/js/typedarrays/Uint32Array.java | 30 -- .../dragome/js/typedarrays/Uint8Array.java | 29 -- .../js/typedarrays/Uint8ClampedArray.java | 31 -- .../js/webgl/WebGLRenderingContext.java | 19 +- .../dragome/preloader/AssetDownloader.java | 2 +- .../gdx/backends/dragome/preloader/Blob.java | 8 +- .../src/org/w3c/dom/AnonXMLHttpRequest.java | 8 + .../dom/AnonXMLHttpRequest_Constructor.java | 9 + .../src/org/w3c/dom/Attr.java | 14 + .../src/org/w3c/dom/BooleanArray.java | 12 + .../src/org/w3c/dom/ByteArray.java | 12 + .../src/org/w3c/dom/CaretPosition.java | 10 + .../src/org/w3c/dom/CharacterData.java | 16 + .../src/org/w3c/dom/Comment.java | 8 + .../src/org/w3c/dom/DOMElementMap.java | 12 + .../src/org/w3c/dom/DOMException.java | 39 ++ .../src/org/w3c/dom/DOMImplementation.java | 12 + .../src/org/w3c/dom/DOMSettableTokenList.java | 10 + .../src/org/w3c/dom/DOMStringList.java | 11 + .../src/org/w3c/dom/DOMStringMap.java | 12 + .../src/org/w3c/dom/DOMTokenList.java | 15 + .../src/org/w3c/dom/Document.java | 50 ++ .../src/org/w3c/dom/DocumentFragment.java | 11 + .../src/org/w3c/dom/DocumentType.java | 11 + .../src/org/w3c/dom/DoubleArray.java | 12 + .../src/org/w3c/dom/Element.java | 53 ++ .../src/org/w3c/dom/FloatArray.java | 12 + .../src/org/w3c/dom/FormData.java | 12 + .../src/org/w3c/dom/FormData_Constructor.java | 12 + .../src/org/w3c/dom/LongArray.java | 12 + .../src/org/w3c/dom/LongLongArray.java | 12 + .../src/org/w3c/dom/Node.java | 55 ++ .../src/org/w3c/dom/NodeList.java | 10 + .../src/org/w3c/dom/ObjectArray.java | 8 + .../src/org/w3c/dom/OctetArray.java | 12 + .../org/w3c/dom/ProcessingInstruction.java | 11 + .../src/org/w3c/dom/ShortArray.java | 12 + .../src/org/w3c/dom/Text.java | 11 + .../src/org/w3c/dom/UnsignedByteArray.java | 12 + .../src/org/w3c/dom/UnsignedLongArray.java | 12 + .../org/w3c/dom/UnsignedLongLongArray.java | 12 + .../src/org/w3c/dom/UnsignedShortArray.java | 12 + .../src/org/w3c/dom/XMLHttpRequest.java | 47 ++ .../w3c/dom/XMLHttpRequestEventTarget.java | 25 + .../src/org/w3c/dom/XMLHttpRequestUpload.java | 8 + .../w3c/dom/XMLHttpRequest_Constructor.java | 9 + .../src/org/w3c/dom/css/CSS2Properties.java | 252 +++++++++ .../src/org/w3c/dom/css/CSSCharsetRule.java | 12 + .../w3c/dom/css/CSSColorComponentValue.java | 16 + .../org/w3c/dom/css/CSSComponentValue.java | 11 + .../src/org/w3c/dom/css/CSSFontFaceRule.java | 9 + .../dom/css/CSSIdentifierComponentValue.java | 10 + .../src/org/w3c/dom/css/CSSImportRule.java | 14 + .../w3c/dom/css/CSSKeywordComponentValue.java | 10 + .../w3c/dom/css/CSSLengthComponentValue.java | 14 + .../src/org/w3c/dom/css/CSSMapValue.java | 9 + .../src/org/w3c/dom/css/CSSMediaRule.java | 16 + .../src/org/w3c/dom/css/CSSNamespaceRule.java | 10 + .../src/org/w3c/dom/css/CSSPageRule.java | 11 + .../dom/css/CSSPercentageComponentValue.java | 10 + .../org/w3c/dom/css/CSSPrimitiveValue.java | 45 ++ .../src/org/w3c/dom/css/CSSPropertyValue.java | 10 + .../org/w3c/dom/css/CSSPropertyValueList.java | 11 + .../src/org/w3c/dom/css/CSSRule.java | 19 + .../w3c/dom/css/CSSStringComponentValue.java | 10 + .../org/w3c/dom/css/CSSStyleDeclaration.java | 19 + .../w3c/dom/css/CSSStyleDeclarationValue.java | 8 + .../src/org/w3c/dom/css/CSSStyleRule.java | 11 + .../src/org/w3c/dom/css/CSSStyleSheet.java | 15 + .../org/w3c/dom/css/CSSURLComponentValue.java | 10 + .../src/org/w3c/dom/css/CSSUnknownRule.java | 8 + .../src/org/w3c/dom/css/CSSValue.java | 15 + .../src/org/w3c/dom/css/CSSValueList.java | 10 + .../src/org/w3c/dom/css/Counter.java | 11 + .../org/w3c/dom/css/DOMImplementationCSS.java | 11 + .../src/org/w3c/dom/css/DocumentCSS.java | 11 + .../w3c/dom/css/ElementCSSInlineStyle.java | 9 + .../src/org/w3c/dom/css/RGBColor.java | 11 + .../src/org/w3c/dom/css/Rect.java | 12 + .../org/w3c/dom/events/CompositionEvent.java | 13 + .../src/org/w3c/dom/events/CustomEvent.java | 9 + .../org/w3c/dom/events/CustomEventInit.java | 10 + .../dom/events/CustomEvent_Constructor.java | 10 + .../src/org/w3c/dom/events/Event.java | 24 + .../org/w3c/dom/events/EventException.java | 15 + .../src/org/w3c/dom/events/EventInit.java | 12 + .../src/org/w3c/dom/events/EventListener.java | 9 + .../src/org/w3c/dom/events/EventTarget.java | 13 + .../org/w3c/dom/events/Event_Constructor.java | 10 + .../src/org/w3c/dom/events/FocusEvent.java | 12 + .../src/org/w3c/dom/events/KeyboardEvent.java | 31 ++ .../src/org/w3c/dom/events/MouseEvent.java | 30 ++ .../src/org/w3c/dom/events/MutationEvent.java | 17 + .../org/w3c/dom/events/MutationNameEvent.java | 13 + .../src/org/w3c/dom/events/ProgressEvent.java | 13 + .../src/org/w3c/dom/events/TextEvent.java | 24 + .../src/org/w3c/dom/events/UIEvent.java | 13 + .../src/org/w3c/dom/events/WheelEvent.java | 18 + .../org/w3c/dom/eventsource/EventSource.java | 23 + .../eventsource/EventSource_Constructor.java | 9 + .../src/org/w3c/dom/file/Blob.java | 12 + .../src/org/w3c/dom/file/File.java | 10 + .../src/org/w3c/dom/file/FileCallback.java | 9 + .../src/org/w3c/dom/file/FileError.java | 14 + .../src/org/w3c/dom/file/FileException.java | 18 + .../src/org/w3c/dom/file/FileList.java | 10 + .../src/org/w3c/dom/file/FileReader.java | 35 ++ .../src/org/w3c/dom/file/FileReaderSync.java | 15 + .../dom/file/FileReaderSync_Constructor.java | 9 + .../w3c/dom/file/FileReader_Constructor.java | 9 + .../org/w3c/dom/html/ApplicationCache.java | 33 ++ .../src/org/w3c/dom/html/AudioTrack.java | 14 + .../src/org/w3c/dom/html/AudioTrackList.java | 13 + .../src/org/w3c/dom/html/BarProp.java | 10 + .../org/w3c/dom/html/BeforeUnloadEvent.java | 12 + .../src/org/w3c/dom/html/BlobCallback.java | 11 + .../src/org/w3c/dom/html/CanvasGradient.java | 9 + .../src/org/w3c/dom/html/CanvasPattern.java | 8 + .../org/w3c/dom/html/CanvasPixelArray.java | 11 + .../dom/html/CanvasRenderingContext2D.java | 92 ++++ .../src/org/w3c/dom/html/DataTransfer.java | 25 + .../org/w3c/dom/html/DataTransferItem.java | 14 + .../w3c/dom/html/DataTransferItemList.java | 16 + .../src/org/w3c/dom/html/DragEvent.java | 13 + .../src/org/w3c/dom/html/External.java | 10 + .../src/org/w3c/dom/html/Function.java | 9 + .../w3c/dom/html/FunctionStringCallback.java | 9 + .../org/w3c/dom/html/HTMLAllCollection.java | 10 + .../org/w3c/dom/html/HTMLAnchorElement.java | 52 ++ .../org/w3c/dom/html/HTMLAppletElement.java | 30 ++ .../src/org/w3c/dom/html/HTMLAreaElement.java | 48 ++ .../org/w3c/dom/html/HTMLAudioElement.java | 8 + .../html/HTMLAudioElement_Constructor.java | 10 + .../src/org/w3c/dom/html/HTMLBRElement.java | 11 + .../src/org/w3c/dom/html/HTMLBaseElement.java | 12 + .../org/w3c/dom/html/HTMLBaseFontElement.java | 14 + .../src/org/w3c/dom/html/HTMLBodyElement.java | 61 +++ .../org/w3c/dom/html/HTMLButtonElement.java | 37 ++ .../org/w3c/dom/html/HTMLCanvasElement.java | 19 + .../src/org/w3c/dom/html/HTMLCollection.java | 13 + .../org/w3c/dom/html/HTMLCommandElement.java | 20 + .../org/w3c/dom/html/HTMLDListElement.java | 11 + .../org/w3c/dom/html/HTMLDataListElement.java | 9 + .../org/w3c/dom/html/HTMLDetailsElement.java | 10 + .../w3c/dom/html/HTMLDirectoryElement.java | 10 + .../src/org/w3c/dom/html/HTMLDivElement.java | 11 + .../src/org/w3c/dom/html/HTMLDocument.java | 185 +++++++ .../src/org/w3c/dom/html/HTMLElement.java | 187 +++++++ .../org/w3c/dom/html/HTMLEmbedElement.java | 21 + .../org/w3c/dom/html/HTMLFieldSetElement.java | 20 + .../src/org/w3c/dom/html/HTMLFontElement.java | 14 + .../dom/html/HTMLFormControlsCollection.java | 9 + .../src/org/w3c/dom/html/HTMLFormElement.java | 33 ++ .../org/w3c/dom/html/HTMLFrameElement.java | 28 + .../org/w3c/dom/html/HTMLFrameSetElement.java | 52 ++ .../src/org/w3c/dom/html/HTMLHRElement.java | 19 + .../src/org/w3c/dom/html/HTMLHeadElement.java | 8 + .../org/w3c/dom/html/HTMLHeadingElement.java | 11 + .../src/org/w3c/dom/html/HTMLHtmlElement.java | 11 + .../org/w3c/dom/html/HTMLIFrameElement.java | 40 ++ .../org/w3c/dom/html/HTMLImageElement.java | 38 ++ .../html/HTMLImageElement_Constructor.java | 11 + .../org/w3c/dom/html/HTMLInputElement.java | 105 ++++ .../org/w3c/dom/html/HTMLKeygenElement.java | 28 + .../src/org/w3c/dom/html/HTMLLIElement.java | 13 + .../org/w3c/dom/html/HTMLLabelElement.java | 12 + .../org/w3c/dom/html/HTMLLegendElement.java | 12 + .../src/org/w3c/dom/html/HTMLLinkElement.java | 33 ++ .../src/org/w3c/dom/html/HTMLMapElement.java | 12 + .../org/w3c/dom/html/HTMLMarqueeElement.java | 38 ++ .../org/w3c/dom/html/HTMLMediaElement.java | 70 +++ .../src/org/w3c/dom/html/HTMLMenuElement.java | 15 + .../src/org/w3c/dom/html/HTMLMetaElement.java | 17 + .../org/w3c/dom/html/HTMLMeterElement.java | 23 + .../src/org/w3c/dom/html/HTMLModElement.java | 12 + .../org/w3c/dom/html/HTMLOListElement.java | 17 + .../org/w3c/dom/html/HTMLObjectElement.java | 53 ++ .../org/w3c/dom/html/HTMLOptGroupElement.java | 12 + .../org/w3c/dom/html/HTMLOptionElement.java | 22 + .../html/HTMLOptionElement_Constructor.java | 13 + .../w3c/dom/html/HTMLOptionsCollection.java | 17 + .../org/w3c/dom/html/HTMLOutputElement.java | 27 + .../w3c/dom/html/HTMLParagraphElement.java | 11 + .../org/w3c/dom/html/HTMLParamElement.java | 17 + .../src/org/w3c/dom/html/HTMLPreElement.java | 11 + .../org/w3c/dom/html/HTMLProgressElement.java | 16 + .../dom/html/HTMLPropertiesCollection.java | 12 + .../org/w3c/dom/html/HTMLQuoteElement.java | 10 + .../org/w3c/dom/html/HTMLScriptElement.java | 25 + .../org/w3c/dom/html/HTMLSelectElement.java | 44 ++ .../org/w3c/dom/html/HTMLSourceElement.java | 14 + .../src/org/w3c/dom/html/HTMLSpanElement.java | 8 + .../org/w3c/dom/html/HTMLStyleElement.java | 16 + .../w3c/dom/html/HTMLTableCaptionElement.java | 11 + .../w3c/dom/html/HTMLTableCellElement.java | 38 ++ .../org/w3c/dom/html/HTMLTableColElement.java | 21 + .../dom/html/HTMLTableDataCellElement.java | 8 + .../org/w3c/dom/html/HTMLTableElement.java | 45 ++ .../dom/html/HTMLTableHeaderCellElement.java | 10 + .../org/w3c/dom/html/HTMLTableRowElement.java | 25 + .../w3c/dom/html/HTMLTableSectionElement.java | 21 + .../org/w3c/dom/html/HTMLTextAreaElement.java | 54 ++ .../src/org/w3c/dom/html/HTMLTimeElement.java | 13 + .../org/w3c/dom/html/HTMLTitleElement.java | 10 + .../org/w3c/dom/html/HTMLTrackElement.java | 19 + .../org/w3c/dom/html/HTMLUListElement.java | 13 + .../org/w3c/dom/html/HTMLUnknownElement.java | 8 + .../org/w3c/dom/html/HTMLVideoElement.java | 16 + .../src/org/w3c/dom/html/HashChangeEvent.java | 13 + .../src/org/w3c/dom/html/History.java | 18 + .../src/org/w3c/dom/html/ImageData.java | 11 + .../org/w3c/dom/html/LocalMediaStream.java | 9 + .../src/org/w3c/dom/html/Location.java | 28 + .../src/org/w3c/dom/html/MediaController.java | 53 ++ .../dom/html/MediaController_Constructor.java | 9 + .../src/org/w3c/dom/html/MediaError.java | 13 + .../src/org/w3c/dom/html/MediaQueryList.java | 12 + .../w3c/dom/html/MediaQueryListListener.java | 9 + .../src/org/w3c/dom/html/MediaStream.java | 18 + .../org/w3c/dom/html/MediaStreamRecorder.java | 9 + .../w3c/dom/html/MediaStream_Constructor.java | 9 + .../src/org/w3c/dom/html/MessageChannel.java | 10 + .../dom/html/MessageChannel_Constructor.java | 9 + .../src/org/w3c/dom/html/MessageEvent.java | 17 + .../src/org/w3c/dom/html/MessagePort.java | 14 + .../org/w3c/dom/html/MutableTextTrack.java | 10 + .../src/org/w3c/dom/html/Navigator.java | 23 + .../w3c/dom/html/NavigatorUserMediaError.java | 10 + .../html/NavigatorUserMediaErrorCallback.java | 9 + .../NavigatorUserMediaSuccessCallback.java | 9 + .../org/w3c/dom/html/PageTransitionEvent.java | 12 + .../src/org/w3c/dom/html/PeerConnection.java | 32 ++ .../dom/html/PeerConnection_Constructor.java | 9 + .../src/org/w3c/dom/html/PopStateEvent.java | 12 + .../org/w3c/dom/html/PropertyNodeList.java | 11 + .../src/org/w3c/dom/html/RadioNodeList.java | 12 + .../src/org/w3c/dom/html/Screen.java | 14 + .../org/w3c/dom/html/SignalingCallback.java | 9 + .../src/org/w3c/dom/html/StreamEvent.java | 12 + .../src/org/w3c/dom/html/StreamTrack.java | 12 + .../src/org/w3c/dom/html/TextMetrics.java | 9 + .../src/org/w3c/dom/html/TextTrack.java | 29 ++ .../src/org/w3c/dom/html/TextTrackCue.java | 27 + .../org/w3c/dom/html/TextTrackCueList.java | 11 + .../dom/html/TextTrackCue_Constructor.java | 11 + .../src/org/w3c/dom/html/TimeRanges.java | 11 + .../src/org/w3c/dom/html/Transferable.java | 8 + .../src/org/w3c/dom/html/UndoManager.java | 15 + .../org/w3c/dom/html/UndoManagerEvent.java | 12 + .../src/org/w3c/dom/html/ValidityState.java | 17 + .../src/org/w3c/dom/html/VideoTrack.java | 14 + .../src/org/w3c/dom/html/VideoTrackList.java | 14 + .../src/org/w3c/dom/html/Window.java | 235 +++++++++ .../src/org/w3c/dom/html/WindowModal.java | 11 + .../src/org/w3c/dom/ranges/DocumentRange.java | 9 + .../src/org/w3c/dom/ranges/Range.java | 45 ++ .../org/w3c/dom/ranges/RangeException.java | 15 + .../org/w3c/dom/stylesheets/LinkStyle.java | 9 + .../org/w3c/dom/stylesheets/MediaList.java | 14 + .../org/w3c/dom/stylesheets/StyleSheet.java | 19 + .../w3c/dom/traversal/DocumentTraversal.java | 13 + .../src/org/w3c/dom/traversal/NodeFilter.java | 27 + .../org/w3c/dom/traversal/NodeIterator.java | 18 + .../src/org/w3c/dom/traversal/TreeWalker.java | 24 + .../org/w3c/dom/typedarray/ArrayBuffer.java | 9 + .../w3c/dom/typedarray/ArrayBufferView.java | 11 + .../typedarray/ArrayBuffer_Constructor.java | 9 + .../src/org/w3c/dom/typedarray/DataView.java | 36 ++ .../dom/typedarray/DataView_Constructor.java | 11 + .../org/w3c/dom/typedarray/Float32Array.java | 19 + .../typedarray/Float32Array_Constructor.java | 16 + .../org/w3c/dom/typedarray/Float64Array.java | 19 + .../typedarray/Float64Array_Constructor.java | 16 + .../org/w3c/dom/typedarray/Int16Array.java | 19 + .../typedarray/Int16Array_Constructor.java | 16 + .../org/w3c/dom/typedarray/Int32Array.java | 19 + .../typedarray/Int32Array_Constructor.java | 16 + .../src/org/w3c/dom/typedarray/Int8Array.java | 19 + .../dom/typedarray/Int8Array_Constructor.java | 16 + .../org/w3c/dom/typedarray/Uint16Array.java | 19 + .../typedarray/Uint16Array_Constructor.java | 16 + .../org/w3c/dom/typedarray/Uint32Array.java | 19 + .../typedarray/Uint32Array_Constructor.java | 16 + .../org/w3c/dom/typedarray/Uint8Array.java | 19 + .../typedarray/Uint8Array_Constructor.java | 16 + .../src/org/w3c/dom/views/ClientRect.java | 14 + .../src/org/w3c/dom/views/ClientRectList.java | 10 + .../org/w3c/dom/webgl/WebGLActiveInfo.java | 11 + .../src/org/w3c/dom/webgl/WebGLBuffer.java | 8 + .../w3c/dom/webgl/WebGLContextAttributes.java | 20 + .../org/w3c/dom/webgl/WebGLContextEvent.java | 12 + .../org/w3c/dom/webgl/WebGLFramebuffer.java | 8 + .../src/org/w3c/dom/webgl/WebGLObject.java | 8 + .../src/org/w3c/dom/webgl/WebGLProgram.java | 8 + .../org/w3c/dom/webgl/WebGLRenderbuffer.java | 8 + .../w3c/dom/webgl/WebGLRenderingContext.java | 478 ++++++++++++++++++ .../src/org/w3c/dom/webgl/WebGLShader.java | 8 + .../src/org/w3c/dom/webgl/WebGLTexture.java | 8 + .../w3c/dom/webgl/WebGLUniformLocation.java | 8 + 327 files changed, 6349 insertions(+), 435 deletions(-) delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBufferView.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/DataView.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/SharedArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8ClampedArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Attr.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/BooleanArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ByteArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/CaretPosition.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/CharacterData.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Comment.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMElementMap.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMException.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMImplementation.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMSettableTokenList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringMap.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMTokenList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Document.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DocumentFragment.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DocumentType.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DoubleArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Element.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/FloatArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/FormData.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/FormData_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/LongArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/LongLongArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Node.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/NodeList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ObjectArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/OctetArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ProcessingInstruction.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ShortArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Text.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedByteArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongLongArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedShortArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestEventTarget.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestUpload.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSS2Properties.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSCharsetRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSColorComponentValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSComponentValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSFontFaceRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSIdentifierComponentValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSImportRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSKeywordComponentValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSLengthComponentValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMapValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMediaRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSNamespaceRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPageRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPercentageComponentValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPrimitiveValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValueList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStringComponentValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclaration.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclarationValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleSheet.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSURLComponentValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSUnknownRule.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValueList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/Counter.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/DOMImplementationCSS.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/DocumentCSS.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/ElementCSSInlineStyle.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/RGBColor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/Rect.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/CompositionEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEventInit.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/Event.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/EventException.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/EventInit.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/EventListener.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/EventTarget.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/Event_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/FocusEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/KeyboardEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/MouseEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationNameEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/ProgressEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/TextEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/UIEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/WheelEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/Blob.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/File.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileCallback.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileError.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileException.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/ApplicationCache.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrack.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrackList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/BarProp.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/BeforeUnloadEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/BlobCallback.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasGradient.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPattern.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPixelArray.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasRenderingContext2D.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransfer.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItem.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItemList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/DragEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/External.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Function.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/FunctionStringCallback.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAllCollection.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAnchorElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAppletElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAreaElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBRElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseFontElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBodyElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLButtonElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCanvasElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCollection.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCommandElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDListElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDataListElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDetailsElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDirectoryElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDivElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDocument.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLEmbedElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFieldSetElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFontElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormControlsCollection.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameSetElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHRElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadingElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHtmlElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLIFrameElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLInputElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLKeygenElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLIElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLabelElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLegendElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLinkElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMapElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMarqueeElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMediaElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMenuElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMetaElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMeterElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLModElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOListElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLObjectElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptGroupElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionsCollection.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOutputElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParagraphElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParamElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPreElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLProgressElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPropertiesCollection.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLQuoteElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLScriptElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSelectElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSourceElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSpanElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLStyleElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCaptionElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCellElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableColElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableDataCellElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableHeaderCellElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableRowElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableSectionElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTextAreaElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTimeElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTitleElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTrackElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUListElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUnknownElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLVideoElement.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HashChangeEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/History.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/ImageData.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/LocalMediaStream.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Location.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaError.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryListListener.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStreamRecorder.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MessagePort.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MutableTextTrack.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Navigator.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaError.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaErrorCallback.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaSuccessCallback.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PageTransitionEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PopStateEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PropertyNodeList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/RadioNodeList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Screen.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/SignalingCallback.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamTrack.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextMetrics.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrack.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCueList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TimeRanges.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Transferable.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManager.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManagerEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/ValidityState.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrack.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrackList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Window.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/WindowModal.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ranges/DocumentRange.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ranges/Range.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ranges/RangeException.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/LinkStyle.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/MediaList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/StyleSheet.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/traversal/DocumentTraversal.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeFilter.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeIterator.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/traversal/TreeWalker.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBufferView.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array_Constructor.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRect.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRectList.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLActiveInfo.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLBuffer.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextAttributes.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextEvent.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLFramebuffer.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLObject.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLProgram.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderbuffer.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderingContext.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLShader.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLTexture.java create mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLUniformLocation.java diff --git a/backends/gdx-backend-dragome/emu/java/io/HasArrayBufferView.java b/backends/gdx-backend-dragome/emu/java/io/HasArrayBufferView.java index 86fdb911..fab8096c 100644 --- a/backends/gdx-backend-dragome/emu/java/io/HasArrayBufferView.java +++ b/backends/gdx-backend-dragome/emu/java/io/HasArrayBufferView.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2011 See AUTHORS file. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,7 +16,7 @@ package java.io; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import org.w3c.dom.typedarray.ArrayBufferView; public interface HasArrayBufferView { diff --git a/backends/gdx-backend-dragome/emu/java/io/Numbers.java b/backends/gdx-backend-dragome/emu/java/io/Numbers.java index 6e78863c..d9fa25f3 100644 --- a/backends/gdx-backend-dragome/emu/java/io/Numbers.java +++ b/backends/gdx-backend-dragome/emu/java/io/Numbers.java @@ -16,10 +16,11 @@ package java.io; +import org.w3c.dom.typedarray.Float32Array; +import org.w3c.dom.typedarray.Int32Array; +import org.w3c.dom.typedarray.Int8Array; + import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; public class Numbers { diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java index ad838fa4..15012fdd 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java @@ -19,11 +19,12 @@ import java.io.Numbers; +import org.w3c.dom.typedarray.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Int8Array; + import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.storage.Storage; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; import com.badlogic.gdx.backends.dragome.utils.Endianness; /** DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyHeapByteBuffer compose the implementation of direct byte buffers. @@ -45,7 +46,7 @@ abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBuffer DirectByteBuffer(ArrayBuffer buf) { - this(buf, buf.get_byteLength(), 0); + this(buf, buf.getByteLength(), 0); } DirectByteBuffer(ArrayBuffer buffer, int capacity, int offset) diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java index 3c0b6df8..9066d807 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java @@ -17,7 +17,7 @@ package java.nio; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBuffer; /** HeapByteBuffer, ReadWriteHeapByteBuffer and ReadOnlyHeapByteBuffer compose the implementation of array based byte buffers. *

diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java index a381b191..25720400 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java @@ -16,9 +16,10 @@ package java.nio; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Float32Array; + import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; /** This class wraps a byte buffer to be a float buffer. *

diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java index 688ebe9b..95c6f3a8 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java @@ -16,9 +16,10 @@ package java.nio; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Int32Array; + import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; /** This class wraps a byte buffer to be a int buffer. *

diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java index c6d8b0e4..ff5fad60 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java @@ -16,9 +16,10 @@ package java.nio; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Int16Array; + import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; /** This class wraps a byte buffer to be a short buffer. *

diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java index abcedeba..4003c758 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java @@ -18,7 +18,7 @@ import java.io.Numbers; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBuffer; /** DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyByteBuffer compose the implementation of direct byte buffers. *

diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java index 7b8b0e1d..06a39e13 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java @@ -16,9 +16,10 @@ package java.nio; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Float32Array; + import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; /** This class wraps a byte buffer to be a float buffer. *

diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java index 15b7c619..42425b3c 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java @@ -16,9 +16,10 @@ package java.nio; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Int32Array; + import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; /** This class wraps a byte buffer to be a int buffer. *

diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java index 12c476ce..632e390b 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java @@ -16,9 +16,10 @@ package java.nio; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Int16Array; + import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; /** This class wraps a byte buffer to be a short buffer. *

@@ -144,7 +145,7 @@ public ShortBuffer put(short c) // if (position == limit) { // throw new BufferOverflowException(); // } - shortArray.set(position++, (int) c); + shortArray.set(position++, c); return this; } @@ -154,7 +155,7 @@ public ShortBuffer put(int index, short c) // if (index < 0 || index >= limit) { // throw new IndexOutOfBoundsException(); // } - shortArray.set(index, (int) c); + shortArray.set(index, c); return this; } diff --git a/backends/gdx-backend-dragome/emu/java/nio/HasArrayBufferView.java b/backends/gdx-backend-dragome/emu/java/nio/HasArrayBufferView.java index a83d7e8d..dd5d81db 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/HasArrayBufferView.java +++ b/backends/gdx-backend-dragome/emu/java/nio/HasArrayBufferView.java @@ -16,7 +16,7 @@ package java.nio; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import org.w3c.dom.typedarray.ArrayBufferView; public interface HasArrayBufferView { diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java index fe0a0699..dbe25621 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java @@ -30,20 +30,18 @@ import org.w3c.dom.NodeList; import org.w3c.dom.Text; import org.w3c.dom.events.Event; +import org.w3c.dom.typedarray.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Float32Array; +import org.w3c.dom.typedarray.Float64Array; +import org.w3c.dom.typedarray.Int16Array; +import org.w3c.dom.typedarray.Int32Array; +import org.w3c.dom.typedarray.Int8Array; +import org.w3c.dom.typedarray.Uint16Array; +import org.w3c.dom.typedarray.Uint32Array; +import org.w3c.dom.typedarray.Uint8Array; import com.badlogic.gdx.backends.dragome.js.storage.Storage; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float64Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.TypedArray; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8ClampedArray; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLActiveInfo; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLBuffer; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLContextAttributes; @@ -95,24 +93,25 @@ public DragomeConfiguration() paths= new HashSet(); setClasspathFilter(new DefaultClasspathFilter() { - public boolean accept(File pathname) + public boolean accept(File pathname, File folder) { - boolean accept= super.accept(pathname); - String absolutePath= pathname.getAbsolutePath(); + boolean accept= super.accept(pathname, folder); - if (absolutePath.contains("utils\\Json")) + String relativePath= folder.toURI().relativize(pathname.toURI()).getPath(); + + if (relativePath.contains("utils\\Json")) return false; - String className= pathname.getName().replace(".class", ""); + String className= relativePath.replace(".class", ""); if (paths.contains(className)) return false; - if (absolutePath.contains("gdx-backend-dragome")) + if (relativePath.contains("gdx-backend-dragome")) { paths.add(className); } - System.out.println("ClassPathFilter: " + accept + " - " + absolutePath); + System.out.println("ClassPathFilter: " + accept + " - " + relativePath); return accept; } @@ -140,7 +139,7 @@ public String createMethodCall(Method method, String params) String name= method.getName(); Class[] superclass= method.getDeclaringClass().getInterfaces(); - if (superclass.length > 0 && superclass[0].equals(TypedArray.class)) + if (superclass.length > 0 && superclass[0].equals(ArrayBufferView.class)) { if (name.equals("set") && method.getParameterTypes().length == 2 && method.getParameterTypes()[0].equals(int.class)) return "this.node[$1] = $2"; @@ -212,7 +211,6 @@ public List getExtraClasspath(String classpath) add(Uint16Array.class); add(Uint32Array.class); add(Uint8Array.class); - add(Uint8ClampedArray.class); add(Storage.class); add(TypedArraysFactory.class); diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java index 5dfd600f..5372d436 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java @@ -25,11 +25,12 @@ import java.util.HashMap; import java.util.Map; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int16Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Uint8Array; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Float32Array; +import org.w3c.dom.typedarray.Int16Array; +import org.w3c.dom.typedarray.Int32Array; +import org.w3c.dom.typedarray.Uint8Array; + import com.badlogic.gdx.backends.dragome.js.webgl.WebGLActiveInfo; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLBuffer; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLFramebuffer; @@ -107,7 +108,7 @@ public Float32Array copy (FloatBuffer buffer) { public Int16Array copy (ShortBuffer buffer) { ensureCapacity(buffer); for (int i = buffer.position(), j = 0; i < buffer.limit(); i++, j++) { - shortBuffer.set(j, (int) buffer.get(i)); + shortBuffer.set(j, buffer.get(i)); } return shortBuffer.subarray(0, buffer.remaining()); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java index 2beac290..daf4b42c 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java @@ -1,7 +1,8 @@ package com.badlogic.gdx.backends.dragome; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; +import org.w3c.dom.typedarray.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBufferView; + import com.dragome.commons.javascript.ScriptHelper; public class TypedArraysFactory diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/XMLHttpRequest.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/XMLHttpRequest.java index 51e0167b..88abc3ae 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/XMLHttpRequest.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/XMLHttpRequest.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,7 +16,8 @@ package com.badlogic.gdx.backends.dragome.js; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBuffer; + import com.dragome.commons.compiler.annotations.MethodAlias; import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; @@ -72,7 +73,7 @@ public int getStatus () { *

* See http://www.w3.org/TR/XMLHttpRequest/#the- * responsetext-attribute. - * + * * @return the response text */ public String getResponseText () { ScriptHelper.put("instance", instance, this); @@ -96,7 +97,7 @@ public String getResponseHeader (String header) { *

* See http:// * www.w3.org/TR/XMLHttpRequest/#the-open-method. - * + * * @param httpMethod the HTTP method to use * @param url the URL to be opened */ public void open (String httpMethod, String url) { @@ -110,7 +111,7 @@ public void open (String httpMethod, String url) { *

* See http:// * www.w3.org/TR/XMLHttpRequest/#the-open-method. - * + * * @param httpMethod the HTTP method to use * @param url the URL to be opened * @param user user to use in the URL */ @@ -171,7 +172,7 @@ public final void send () { *

* See http:// * www.w3.org/TR/XMLHttpRequest/#the-send-method. - * + * * @param requestData the data to be sent with the request */ public void send (String requestData) { ScriptHelper.put("instance", instance, this); @@ -203,7 +204,7 @@ public String getResponseTypeString () { public interface ReadyStateChangeHandler { /** This is called whenever the state of the XMLHttpRequest changes. See {@link XMLHttpRequest#setOnReadyStateChange}. - * + * * @param xhr the object whose state has changed. */ @MethodAlias(local_alias = "onReadyStateChange") void onReadyStateChange (XMLHttpRequest xhr); diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java index 2953c1f2..16a8c931 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java @@ -16,7 +16,8 @@ package com.badlogic.gdx.backends.dragome.js.storage; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBuffer; + import com.dragome.commons.DelegateCode; import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBuffer.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBuffer.java deleted file mode 100644 index 94512e08..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBuffer.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface ArrayBuffer -{ - int get_byteLength(); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBufferView.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBufferView.java deleted file mode 100644 index 3d6ccbbf..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/ArrayBufferView.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface ArrayBufferView -{ - ArrayBuffer getBuffer(); - int getByteLength(); - int getByteOffset(); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/DataView.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/DataView.java deleted file mode 100644 index b1d9296e..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/DataView.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface DataView extends ArrayBufferView -{ -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java deleted file mode 100644 index 3a83d927..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float32Array.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Float32Array extends TypedArray -{ - final int BYTES_PER_ELEMENT= 4; - - float get(int index); - void set(int index, float value); - void set(float[] array, int offset); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java deleted file mode 100644 index 1092d1c3..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Float64Array.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Float64Array extends TypedArray -{ - final int BYTES_PER_ELEMENT= 8; - double get(int index); - void set(int index, double value); - void set(double[] array, int offset); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java deleted file mode 100644 index f46b6e50..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int16Array.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Int16Array extends TypedArray -{ - final int BYTES_PER_ELEMENT= 2; - short get(int index); - void set(int index, int value); - void set(short[] array, int offset); - void set(int[] array, int offset); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java deleted file mode 100644 index 42764bc0..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int32Array.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Int32Array extends TypedArray -{ - final int BYTES_PER_ELEMENT= 4; - - int get(int index); - void set(int index, int value); - void set(int[] array, int offset); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java deleted file mode 100644 index 979c9457..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Int8Array.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Int8Array extends TypedArray -{ - final int BYTES_PER_ELEMENT= 1; - - byte get(int index); - void set(int index, int value); - void set(byte[] array, int offset); - void set(int[] array, int offset); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/SharedArrayBuffer.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/SharedArrayBuffer.java deleted file mode 100644 index dc36bf36..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/SharedArrayBuffer.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface SharedArrayBuffer { -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java deleted file mode 100644 index b019f9ad..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/TypedArray.java +++ /dev/null @@ -1,9 +0,0 @@ -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -public interface TypedArray extends ArrayBufferView -{ - int getLength(); - void set(ArrayType array, int offset); - ArrayType subarray(int begin); - ArrayType subarray(int begin, int end); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java deleted file mode 100644 index 5a14fe45..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint16Array.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Uint16Array extends TypedArray -{ - final int BYTES_PER_ELEMENT= 2; - int get(int index); - void set(int index, int value); - void set(int[] array, int offset); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java deleted file mode 100644 index a1556db6..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint32Array.java +++ /dev/null @@ -1,30 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Uint32Array extends TypedArray -{ - final int BYTES_PER_ELEMENT= 4; - - long get(int index); - double getAsDouble(int index); - void set(int index, long value); - void set(int index, double value); - void set(long[] array, int offset); - void set(double[] array, int offset); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java deleted file mode 100644 index bad1c65d..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8Array.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Uint8Array extends TypedArray -{ - - final int BYTES_PER_ELEMENT= 1; - - short get(int index); - void set(int index, int value); - void set(int[] array, int offset); - void set(short[] array, int offset); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8ClampedArray.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8ClampedArray.java deleted file mode 100644 index 224ba203..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/typedarrays/Uint8ClampedArray.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.typedarrays; - -/** @author xpenatan */ -public interface Uint8ClampedArray extends Uint8Array -{ - - public static Uint8ClampedArray createClamped(short[] array) - { - return null; - } - - Uint8ClampedArray subarray(int begin); - - Uint8ClampedArray subarray(int begin, int end); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderingContext.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderingContext.java index 92f6295c..f6b774a3 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderingContext.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderingContext.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,12 +17,11 @@ package com.badlogic.gdx.backends.dragome.js.webgl; import org.w3c.dom.html.HTMLImageElement; +import org.w3c.dom.typedarray.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Float32Array; +import org.w3c.dom.typedarray.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBuffer; -import com.badlogic.gdx.backends.dragome.js.typedarrays.ArrayBufferView; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Float32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int32Array; -import com.badlogic.gdx.backends.dragome.js.typedarrays.SharedArrayBuffer; import com.dragome.web.html.dom.html5canvas.interfaces.HTMLCanvasElement; import com.dragome.web.html.dom.html5canvas.interfaces.ImageData; @@ -77,14 +76,10 @@ public interface WebGLRenderingContext { public void bufferData (int target, ArrayBuffer data, int usage); - public void bufferData (int target, SharedArrayBuffer data, int usage); - public void bufferSubData (int target, int offset, ArrayBufferView data); public void bufferSubData (int target, int offset, ArrayBuffer data); - public void bufferSubData (int target, int offset, SharedArrayBuffer data); - public int checkFramebufferStatus (int target); public void clear (int mask); diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java index 972e1790..e855abf3 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java @@ -17,12 +17,12 @@ package com.badlogic.gdx.backends.dragome.preloader; import org.w3c.dom.events.Event; +import org.w3c.dom.typedarray.Int8Array; import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ReadyStateChangeHandler; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ResponseType; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; import com.badlogic.gdx.backends.dragome.preloader.AssetFilter.AssetType; import com.badlogic.gdx.utils.GdxRuntimeException; import com.dragome.commons.compiler.annotations.MethodAlias; diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Blob.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Blob.java index 65ae14c8..88714388 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Blob.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Blob.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -19,7 +19,7 @@ import java.io.IOException; import java.io.InputStream; -import com.badlogic.gdx.backends.dragome.js.typedarrays.Int8Array; +import org.w3c.dom.typedarray.Int8Array; /** Adapted from gwt backend * @author xpenatan */ diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest.java b/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest.java new file mode 100644 index 00000000..7a1ec7a9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface AnonXMLHttpRequest extends XMLHttpRequest +{ + // AnonXMLHttpRequest +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest_Constructor.java new file mode 100644 index 00000000..a5de1f80 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface AnonXMLHttpRequest_Constructor +{ + // Constructor + public AnonXMLHttpRequest createInstance(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Attr.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Attr.java new file mode 100644 index 00000000..6b2191c4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/Attr.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface Attr +{ + // Attr + public String getNamespaceURI(); + public String getPrefix(); + public String getLocalName(); + public String getName(); + public String getValue(); + public void setValue(String value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/BooleanArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/BooleanArray.java new file mode 100644 index 00000000..7f428299 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/BooleanArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface BooleanArray +{ + // BooleanArray + public int getLength(); + public void setLength(int length); + public boolean getElement(int index); + public void setElement(int index, boolean value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ByteArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ByteArray.java new file mode 100644 index 00000000..7b98daeb --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/ByteArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface ByteArray +{ + // ByteArray + public int getLength(); + public void setLength(int length); + public byte getElement(int index); + public void setElement(int index, byte value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/CaretPosition.java b/backends/gdx-backend-dragome/src/org/w3c/dom/CaretPosition.java new file mode 100644 index 00000000..9de78e35 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/CaretPosition.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface CaretPosition +{ + // CaretPosition + public Node getOffsetNode(); + public int getOffset(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/CharacterData.java b/backends/gdx-backend-dragome/src/org/w3c/dom/CharacterData.java new file mode 100644 index 00000000..bd28ec09 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/CharacterData.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface CharacterData extends Node +{ + // CharacterData + public String getData(); + public void setData(String data); + public int getLength(); + public String substringData(int offset, int count); + public void appendData(String data); + public void insertData(int offset, String data); + public void deleteData(int offset, int count); + public void replaceData(int offset, int count, String data); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Comment.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Comment.java new file mode 100644 index 00000000..199c9fc7 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/Comment.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface Comment extends CharacterData +{ + // Comment +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMElementMap.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMElementMap.java new file mode 100644 index 00000000..2b0a1b70 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMElementMap.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DOMElementMap +{ + // DOMElementMap + public String getElement(String name); + public void setElement(String name, Element value); + public void createElement(String name, Element value); + public void deleteElement(String name); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMException.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMException.java new file mode 100644 index 00000000..53435705 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMException.java @@ -0,0 +1,39 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public class DOMException extends RuntimeException +{ + public DOMException(short code, String message) + { + super(message); + this.code = code; + } + public static final short INDEX_SIZE_ERR = 1; + public static final short DOMSTRING_SIZE_ERR = 2; + public static final short HIERARCHY_REQUEST_ERR = 3; + public static final short WRONG_DOCUMENT_ERR = 4; + public static final short INVALID_CHARACTER_ERR = 5; + public static final short NO_DATA_ALLOWED_ERR = 6; + public static final short NO_MODIFICATION_ALLOWED_ERR = 7; + public static final short NOT_FOUND_ERR = 8; + public static final short NOT_SUPPORTED_ERR = 9; + public static final short INUSE_ATTRIBUTE_ERR = 10; + public static final short INVALID_STATE_ERR = 11; + public static final short SYNTAX_ERR = 12; + public static final short INVALID_MODIFICATION_ERR = 13; + public static final short NAMESPACE_ERR = 14; + public static final short INVALID_ACCESS_ERR = 15; + public static final short VALIDATION_ERR = 16; + public static final short TYPE_MISMATCH_ERR = 17; + public static final short SECURITY_ERR = 18; + public static final short NETWORK_ERR = 19; + public static final short ABORT_ERR = 20; + public static final short URL_MISMATCH_ERR = 21; + public static final short QUOTA_EXCEEDED_ERR = 22; + public static final short TIMEOUT_ERR = 23; + public static final short INVALID_NODE_TYPE_ERR = 24; + public static final short DATA_CLONE_ERR = 25; + public short code; + public String name; +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMImplementation.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMImplementation.java new file mode 100644 index 00000000..42854e20 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMImplementation.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DOMImplementation +{ + // DOMImplementation + public boolean hasFeature(String feature, String version); + public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId); + public Document createDocument(String namespace, String qualifiedName, DocumentType doctype); + public Document createHTMLDocument(String title); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMSettableTokenList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMSettableTokenList.java new file mode 100644 index 00000000..aea6c403 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMSettableTokenList.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DOMSettableTokenList extends DOMTokenList +{ + // DOMSettableTokenList + public String getValue(); + public void setValue(String value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringList.java new file mode 100644 index 00000000..f9e32e9a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringList.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DOMStringList +{ + // DOMStringList + public int getLength(); + public String item(int index); + public boolean contains(String string); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringMap.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringMap.java new file mode 100644 index 00000000..670673c5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringMap.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DOMStringMap +{ + // DOMStringMap + public String getElement(String name); + public void setElement(String name, String value); + public void createElement(String name, String value); + public void deleteElement(String name); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMTokenList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMTokenList.java new file mode 100644 index 00000000..f4a78caa --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMTokenList.java @@ -0,0 +1,15 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DOMTokenList +{ + // DOMTokenList + public int getLength(); + public String item(int index); + public boolean contains(String token); + public void add(String token); + public void remove(String token); + public boolean toggle(String token); + public String toString(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Document.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Document.java new file mode 100644 index 00000000..62335078 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/Document.java @@ -0,0 +1,50 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +import org.w3c.dom.ObjectArray; +import org.w3c.dom.events.Event; +import org.w3c.dom.stylesheets.StyleSheet; + +public interface Document extends Node +{ + // Document + public DOMImplementation getImplementation(); + public String getDocumentURI(); + public void setDocumentURI(String documentURI); + public String getCompatMode(); + public String getCharset(); + public void setCharset(String charset); + public String getCharacterSet(); + public String getDefaultCharset(); + public String getContentType(); + public DocumentType getDoctype(); + public Element getDocumentElement(); + public NodeList getElementsByTagName(String qualifiedName); + public NodeList getElementsByTagNameNS(String namespace, String localName); + public NodeList getElementsByClassName(String classNames); + public Element getElementById(String elementId); + public Element createElement(String localName); + public Element createElementNS(String namespace, String qualifiedName); + public DocumentFragment createDocumentFragment(); + public Text createTextNode(String data); + public Comment createComment(String data); + public ProcessingInstruction createProcessingInstruction(String target, String data); + public Node importNode(Node node, boolean deep); + public Node adoptNode(Node node); + public Event createEvent(String eventInterfaceName); + // Document-1 + public ObjectArray getStyleSheets(); + public String getSelectedStyleSheetSet(); + public void setSelectedStyleSheetSet(String selectedStyleSheetSet); + public String getLastStyleSheetSet(); + public String getPreferredStyleSheetSet(); + public DOMStringList getStyleSheetSets(); + public void enableStyleSheetsForSet(String name); + // Document-2 + public Element elementFromPoint(float x, float y); + public CaretPosition caretPositionFromPoint(float x, float y); + // NodeSelector + public Element querySelector(String selectors); + public NodeList querySelectorAll(String selectors); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentFragment.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentFragment.java new file mode 100644 index 00000000..670916f5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentFragment.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DocumentFragment extends Node +{ + // DocumentFragment + // NodeSelector + public Element querySelector(String selectors); + public NodeList querySelectorAll(String selectors); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentType.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentType.java new file mode 100644 index 00000000..51241b25 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentType.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DocumentType extends Node +{ + // DocumentType + public String getName(); + public String getPublicId(); + public String getSystemId(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DoubleArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DoubleArray.java new file mode 100644 index 00000000..63b724fe --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/DoubleArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface DoubleArray +{ + // DoubleArray + public int getLength(); + public void setLength(int length); + public double getElement(int index); + public void setElement(int index, double value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Element.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Element.java new file mode 100644 index 00000000..76dfcbdd --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/Element.java @@ -0,0 +1,53 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +import org.w3c.dom.ObjectArray; +import org.w3c.dom.html.HTMLCollection; +import org.w3c.dom.views.ClientRect; +import org.w3c.dom.views.ClientRectList; + +public interface Element extends Node +{ + // Element + public String getNamespaceURI(); + public String getPrefix(); + public String getLocalName(); + public String getTagName(); + public ObjectArray getAttributes(); + public String getAttribute(String qualifiedName); + public String getAttributeNS(String namespace, String localName); + public void setAttribute(String qualifiedName, String value); + public void setAttributeNS(String namespace, String qualifiedName, String value); + public void removeAttribute(String qualifiedName); + public void removeAttributeNS(String namespace, String localName); + public boolean hasAttribute(String qualifiedName); + public boolean hasAttributeNS(String namespace, String localName); + public NodeList getElementsByTagName(String qualifiedName); + public NodeList getElementsByTagNameNS(String namespace, String localName); + public NodeList getElementsByClassName(String classNames); + public HTMLCollection getChildren(); + public Element getFirstElementChild(); + public Element getLastElementChild(); + public Element getPreviousElementSibling(); + public Element getNextElementSibling(); + public int getChildElementCount(); + // Element-3 + public ClientRectList getClientRects(); + public ClientRect getBoundingClientRect(); + public void scrollIntoView(); + public void scrollIntoView(boolean top); + public int getScrollTop(); + public void setScrollTop(int scrollTop); + public int getScrollLeft(); + public void setScrollLeft(int scrollLeft); + public int getScrollWidth(); + public int getScrollHeight(); + public int getClientTop(); + public int getClientLeft(); + public int getClientWidth(); + public int getClientHeight(); + // NodeSelector + public Element querySelector(String selectors); + public NodeList querySelectorAll(String selectors); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/FloatArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/FloatArray.java new file mode 100644 index 00000000..e04b2b66 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/FloatArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface FloatArray +{ + // FloatArray + public int getLength(); + public void setLength(int length); + public float getElement(int index); + public void setElement(int index, float value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/FormData.java b/backends/gdx-backend-dragome/src/org/w3c/dom/FormData.java new file mode 100644 index 00000000..3a2eec5e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/FormData.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +import org.w3c.dom.file.Blob; + +public interface FormData +{ + // FormData + public void append(String name, Blob value); + public void append(String name, String value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/FormData_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/FormData_Constructor.java new file mode 100644 index 00000000..29815090 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/FormData_Constructor.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +import org.w3c.dom.html.HTMLFormElement; + +public interface FormData_Constructor +{ + // Constructor + public FormData createInstance(); + public FormData createInstance(HTMLFormElement form); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/LongArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/LongArray.java new file mode 100644 index 00000000..9819f6f5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/LongArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface LongArray +{ + // LongArray + public int getLength(); + public void setLength(int length); + public int getElement(int index); + public void setElement(int index, int value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/LongLongArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/LongLongArray.java new file mode 100644 index 00000000..2a164807 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/LongLongArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface LongLongArray +{ + // LongLongArray + public int getLength(); + public void setLength(int length); + public long getElement(int index); + public void setElement(int index, long value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Node.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Node.java new file mode 100644 index 00000000..19b32a73 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/Node.java @@ -0,0 +1,55 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +import org.w3c.dom.events.EventTarget; + +public interface Node extends EventTarget +{ + // Node + public static final short ELEMENT_NODE = 1; + public static final short ATTRIBUTE_NODE = 2; + public static final short TEXT_NODE = 3; + public static final short CDATA_SECTION_NODE = 4; + public static final short ENTITY_REFERENCE_NODE = 5; + public static final short ENTITY_NODE = 6; + public static final short PROCESSING_INSTRUCTION_NODE = 7; + public static final short COMMENT_NODE = 8; + public static final short DOCUMENT_NODE = 9; + public static final short DOCUMENT_TYPE_NODE = 10; + public static final short DOCUMENT_FRAGMENT_NODE = 11; + public static final short NOTATION_NODE = 12; + public short getNodeType(); + public String getNodeName(); + public String getBaseURI(); + public Document getOwnerDocument(); + public Node getParentNode(); + public Element getParentElement(); + public boolean hasChildNodes(); + public NodeList getChildNodes(); + public Node getFirstChild(); + public Node getLastChild(); + public Node getPreviousSibling(); + public Node getNextSibling(); + public static final short DOCUMENT_POSITION_DISCONNECTED = 0x01; + public static final short DOCUMENT_POSITION_PRECEDING = 0x02; + public static final short DOCUMENT_POSITION_FOLLOWING = 0x04; + public static final short DOCUMENT_POSITION_CONTAINS = 0x08; + public static final short DOCUMENT_POSITION_CONTAINED_BY = 0x10; + public static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; + public short compareDocumentPosition(Node other); + public String getNodeValue(); + public void setNodeValue(String nodeValue); + public String getTextContent(); + public void setTextContent(String textContent); + public Node insertBefore(Node newChild, Node refChild); + public Node replaceChild(Node newChild, Node oldChild); + public Node removeChild(Node oldChild); + public Node appendChild(Node newChild); + public Node cloneNode(boolean deep); + public boolean isSameNode(Node node); + public boolean isEqualNode(Node node); + public String lookupPrefix(String namespace); + public String lookupNamespaceURI(String prefix); + public boolean isDefaultNamespace(String namespace); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/NodeList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/NodeList.java new file mode 100644 index 00000000..c850659e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/NodeList.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface NodeList +{ + // NodeList + public Node item(int index); + public int getLength(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ObjectArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ObjectArray.java new file mode 100644 index 00000000..31b69269 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/ObjectArray.java @@ -0,0 +1,8 @@ +package org.w3c.dom; + +public interface ObjectArray { + int getLength(); + void setLength(int length); + E getElement(int index); + void setElement(int index, E value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/OctetArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/OctetArray.java new file mode 100644 index 00000000..42d994f4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/OctetArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface OctetArray +{ + // OctetArray + public int getLength(); + public void setLength(int length); + public byte getElement(int index); + public void setElement(int index, byte value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ProcessingInstruction.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ProcessingInstruction.java new file mode 100644 index 00000000..9ed26ee4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/ProcessingInstruction.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface ProcessingInstruction extends Node +{ + // ProcessingInstruction + public String getTarget(); + public String getData(); + public void setData(String data); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ShortArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ShortArray.java new file mode 100644 index 00000000..c6b2ca97 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/ShortArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface ShortArray +{ + // ShortArray + public int getLength(); + public void setLength(int length); + public short getElement(int index); + public void setElement(int index, short value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Text.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Text.java new file mode 100644 index 00000000..07bb129b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/Text.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface Text extends CharacterData +{ + // Text + public Text splitText(int offset); + public String getWholeText(); + public Text replaceWholeText(String data); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedByteArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedByteArray.java new file mode 100644 index 00000000..2cfc3201 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedByteArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface UnsignedByteArray +{ + // UnsignedByteArray + public int getLength(); + public void setLength(int length); + public byte getElement(int index); + public void setElement(int index, byte value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongArray.java new file mode 100644 index 00000000..26a56388 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface UnsignedLongArray +{ + // UnsignedLongArray + public int getLength(); + public void setLength(int length); + public int getElement(int index); + public void setElement(int index, int value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongLongArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongLongArray.java new file mode 100644 index 00000000..4404fd78 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongLongArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface UnsignedLongLongArray +{ + // UnsignedLongLongArray + public int getLength(); + public void setLength(int length); + public long getElement(int index); + public void setElement(int index, long value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedShortArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedShortArray.java new file mode 100644 index 00000000..06d040c2 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedShortArray.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface UnsignedShortArray +{ + // UnsignedShortArray + public int getLength(); + public void setLength(int length); + public short getElement(int index); + public void setElement(int index, short value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest.java b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest.java new file mode 100644 index 00000000..628068f5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest.java @@ -0,0 +1,47 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +import org.w3c.dom.file.Blob; +import org.w3c.dom.html.Function; +import org.w3c.dom.typedarray.ArrayBuffer; + +public interface XMLHttpRequest extends XMLHttpRequestEventTarget +{ + // XMLHttpRequest + public Function getOnreadystatechange(); + public void setOnreadystatechange(Function onreadystatechange); + public static final short UNSENT = 0; + public static final short OPENED = 1; + public static final short HEADERS_RECEIVED = 2; + public static final short LOADING = 3; + public static final short DONE = 4; + public short getReadyState(); + public void open(String method, String url); + public void open(String method, String url, boolean async); + public void open(String method, String url, boolean async, String user); + public void open(String method, String url, boolean async, String user, String password); + public void setRequestHeader(String header, String value); + public int getTimeout(); + public void setTimeout(int timeout); + public boolean getWithCredentials(); + public void setWithCredentials(boolean withCredentials); + public XMLHttpRequestUpload getUpload(); + public void send(); + public void send(ArrayBuffer data); + public void send(Blob data); + public void send(Document data); + public void send(FormData data); + public void send(String data); + public void abort(); + public short getStatus(); + public String getStatusText(); + public String getResponseHeader(String header); + public String getAllResponseHeaders(); + public void overrideMimeType(String mime); + public String getResponseType(); + public void setResponseType(String responseType); + public Object getResponse(); + public String getResponseText(); + public Document getResponseXML(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestEventTarget.java b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestEventTarget.java new file mode 100644 index 00000000..dd2c27d4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestEventTarget.java @@ -0,0 +1,25 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.html.Function; + +public interface XMLHttpRequestEventTarget extends EventTarget +{ + // XMLHttpRequestEventTarget + public Function getOnloadstart(); + public void setOnloadstart(Function onloadstart); + public Function getOnprogress(); + public void setOnprogress(Function onprogress); + public Function getOnabort(); + public void setOnabort(Function onabort); + public Function getOnerror(); + public void setOnerror(Function onerror); + public Function getOnload(); + public void setOnload(Function onload); + public Function getOntimeout(); + public void setOntimeout(Function ontimeout); + public Function getOnloadend(); + public void setOnloadend(Function onloadend); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestUpload.java b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestUpload.java new file mode 100644 index 00000000..90798607 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestUpload.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget +{ + // XMLHttpRequestUpload +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest_Constructor.java new file mode 100644 index 00000000..5e83005d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom; + +public interface XMLHttpRequest_Constructor +{ + // Constructor + public XMLHttpRequest createInstance(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSS2Properties.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSS2Properties.java new file mode 100644 index 00000000..92516d79 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSS2Properties.java @@ -0,0 +1,252 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSS2Properties +{ + // CSS2Properties + public String getAzimuth(); + public void setAzimuth(String azimuth); + public String getBackground(); + public void setBackground(String background); + public String getBackgroundAttachment(); + public void setBackgroundAttachment(String backgroundAttachment); + public String getBackgroundColor(); + public void setBackgroundColor(String backgroundColor); + public String getBackgroundImage(); + public void setBackgroundImage(String backgroundImage); + public String getBackgroundPosition(); + public void setBackgroundPosition(String backgroundPosition); + public String getBackgroundRepeat(); + public void setBackgroundRepeat(String backgroundRepeat); + public String getBorder(); + public void setBorder(String border); + public String getBorderCollapse(); + public void setBorderCollapse(String borderCollapse); + public String getBorderColor(); + public void setBorderColor(String borderColor); + public String getBorderSpacing(); + public void setBorderSpacing(String borderSpacing); + public String getBorderStyle(); + public void setBorderStyle(String borderStyle); + public String getBorderTop(); + public void setBorderTop(String borderTop); + public String getBorderRight(); + public void setBorderRight(String borderRight); + public String getBorderBottom(); + public void setBorderBottom(String borderBottom); + public String getBorderLeft(); + public void setBorderLeft(String borderLeft); + public String getBorderTopColor(); + public void setBorderTopColor(String borderTopColor); + public String getBorderRightColor(); + public void setBorderRightColor(String borderRightColor); + public String getBorderBottomColor(); + public void setBorderBottomColor(String borderBottomColor); + public String getBorderLeftColor(); + public void setBorderLeftColor(String borderLeftColor); + public String getBorderTopStyle(); + public void setBorderTopStyle(String borderTopStyle); + public String getBorderRightStyle(); + public void setBorderRightStyle(String borderRightStyle); + public String getBorderBottomStyle(); + public void setBorderBottomStyle(String borderBottomStyle); + public String getBorderLeftStyle(); + public void setBorderLeftStyle(String borderLeftStyle); + public String getBorderTopWidth(); + public void setBorderTopWidth(String borderTopWidth); + public String getBorderRightWidth(); + public void setBorderRightWidth(String borderRightWidth); + public String getBorderBottomWidth(); + public void setBorderBottomWidth(String borderBottomWidth); + public String getBorderLeftWidth(); + public void setBorderLeftWidth(String borderLeftWidth); + public String getBorderWidth(); + public void setBorderWidth(String borderWidth); + public String getBottom(); + public void setBottom(String bottom); + public String getCaptionSide(); + public void setCaptionSide(String captionSide); + public String getClear(); + public void setClear(String clear); + public String getClip(); + public void setClip(String clip); + public String getColor(); + public void setColor(String color); + public String getContent(); + public void setContent(String content); + public String getCounterIncrement(); + public void setCounterIncrement(String counterIncrement); + public String getCounterReset(); + public void setCounterReset(String counterReset); + public String getCue(); + public void setCue(String cue); + public String getCueAfter(); + public void setCueAfter(String cueAfter); + public String getCueBefore(); + public void setCueBefore(String cueBefore); + public String getCursor(); + public void setCursor(String cursor); + public String getDirection(); + public void setDirection(String direction); + public String getDisplay(); + public void setDisplay(String display); + public String getElevation(); + public void setElevation(String elevation); + public String getEmptyCells(); + public void setEmptyCells(String emptyCells); + public String getCssFloat(); + public void setCssFloat(String cssFloat); + public String getFont(); + public void setFont(String font); + public String getFontFamily(); + public void setFontFamily(String fontFamily); + public String getFontSize(); + public void setFontSize(String fontSize); + public String getFontSizeAdjust(); + public void setFontSizeAdjust(String fontSizeAdjust); + public String getFontStretch(); + public void setFontStretch(String fontStretch); + public String getFontStyle(); + public void setFontStyle(String fontStyle); + public String getFontVariant(); + public void setFontVariant(String fontVariant); + public String getFontWeight(); + public void setFontWeight(String fontWeight); + public String getHeight(); + public void setHeight(String height); + public String getLeft(); + public void setLeft(String left); + public String getLetterSpacing(); + public void setLetterSpacing(String letterSpacing); + public String getLineHeight(); + public void setLineHeight(String lineHeight); + public String getListStyle(); + public void setListStyle(String listStyle); + public String getListStyleImage(); + public void setListStyleImage(String listStyleImage); + public String getListStylePosition(); + public void setListStylePosition(String listStylePosition); + public String getListStyleType(); + public void setListStyleType(String listStyleType); + public String getMargin(); + public void setMargin(String margin); + public String getMarginTop(); + public void setMarginTop(String marginTop); + public String getMarginRight(); + public void setMarginRight(String marginRight); + public String getMarginBottom(); + public void setMarginBottom(String marginBottom); + public String getMarginLeft(); + public void setMarginLeft(String marginLeft); + public String getMarkerOffset(); + public void setMarkerOffset(String markerOffset); + public String getMarks(); + public void setMarks(String marks); + public String getMaxHeight(); + public void setMaxHeight(String maxHeight); + public String getMaxWidth(); + public void setMaxWidth(String maxWidth); + public String getMinHeight(); + public void setMinHeight(String minHeight); + public String getMinWidth(); + public void setMinWidth(String minWidth); + public String getOrphans(); + public void setOrphans(String orphans); + public String getOutline(); + public void setOutline(String outline); + public String getOutlineColor(); + public void setOutlineColor(String outlineColor); + public String getOutlineStyle(); + public void setOutlineStyle(String outlineStyle); + public String getOutlineWidth(); + public void setOutlineWidth(String outlineWidth); + public String getOverflow(); + public void setOverflow(String overflow); + public String getPadding(); + public void setPadding(String padding); + public String getPaddingTop(); + public void setPaddingTop(String paddingTop); + public String getPaddingRight(); + public void setPaddingRight(String paddingRight); + public String getPaddingBottom(); + public void setPaddingBottom(String paddingBottom); + public String getPaddingLeft(); + public void setPaddingLeft(String paddingLeft); + public String getPage(); + public void setPage(String page); + public String getPageBreakAfter(); + public void setPageBreakAfter(String pageBreakAfter); + public String getPageBreakBefore(); + public void setPageBreakBefore(String pageBreakBefore); + public String getPageBreakInside(); + public void setPageBreakInside(String pageBreakInside); + public String getPause(); + public void setPause(String pause); + public String getPauseAfter(); + public void setPauseAfter(String pauseAfter); + public String getPauseBefore(); + public void setPauseBefore(String pauseBefore); + public String getPitch(); + public void setPitch(String pitch); + public String getPitchRange(); + public void setPitchRange(String pitchRange); + public String getPlayDuring(); + public void setPlayDuring(String playDuring); + public String getPosition(); + public void setPosition(String position); + public String getQuotes(); + public void setQuotes(String quotes); + public String getRichness(); + public void setRichness(String richness); + public String getRight(); + public void setRight(String right); + public String getSize(); + public void setSize(String size); + public String getSpeak(); + public void setSpeak(String speak); + public String getSpeakHeader(); + public void setSpeakHeader(String speakHeader); + public String getSpeakNumeral(); + public void setSpeakNumeral(String speakNumeral); + public String getSpeakPunctuation(); + public void setSpeakPunctuation(String speakPunctuation); + public String getSpeechRate(); + public void setSpeechRate(String speechRate); + public String getStress(); + public void setStress(String stress); + public String getTableLayout(); + public void setTableLayout(String tableLayout); + public String getTextAlign(); + public void setTextAlign(String textAlign); + public String getTextDecoration(); + public void setTextDecoration(String textDecoration); + public String getTextIndent(); + public void setTextIndent(String textIndent); + public String getTextShadow(); + public void setTextShadow(String textShadow); + public String getTextTransform(); + public void setTextTransform(String textTransform); + public String getTop(); + public void setTop(String top); + public String getUnicodeBidi(); + public void setUnicodeBidi(String unicodeBidi); + public String getVerticalAlign(); + public void setVerticalAlign(String verticalAlign); + public String getVisibility(); + public void setVisibility(String visibility); + public String getVoiceFamily(); + public void setVoiceFamily(String voiceFamily); + public String getVolume(); + public void setVolume(String volume); + public String getWhiteSpace(); + public void setWhiteSpace(String whiteSpace); + public String getWidows(); + public void setWidows(String widows); + public String getWidth(); + public void setWidth(String width); + public String getWordSpacing(); + public void setWordSpacing(String wordSpacing); + public String getZIndex(); + public void setZIndex(String zIndex); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSCharsetRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSCharsetRule.java new file mode 100644 index 00000000..0ef17777 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSCharsetRule.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +import org.w3c.dom.DOMException; + +public interface CSSCharsetRule extends CSSRule +{ + // CSSCharsetRule + public String getEncoding(); + public void setEncoding(String encoding) throws DOMException; +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSColorComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSColorComponentValue.java new file mode 100644 index 00000000..c8c7fb88 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSColorComponentValue.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSColorComponentValue +{ + // CSSColorComponentValue + public short getRed(); + public void setRed(short red); + public short getGreen(); + public void setGreen(short green); + public short getBlue(); + public void setBlue(short blue); + public float getAlpha(); + public void setAlpha(float alpha); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSComponentValue.java new file mode 100644 index 00000000..7ccc825b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSComponentValue.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSComponentValue +{ + // CSSComponentValue + public String getType(); + public Object getValue(); + public void setValue(Object value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSFontFaceRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSFontFaceRule.java new file mode 100644 index 00000000..23ffc52e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSFontFaceRule.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSFontFaceRule extends CSSRule +{ + // CSSFontFaceRule + public CSSStyleDeclaration getStyle(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSIdentifierComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSIdentifierComponentValue.java new file mode 100644 index 00000000..bae1f364 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSIdentifierComponentValue.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSIdentifierComponentValue +{ + // CSSIdentifierComponentValue + public String getIdentifier(); + public void setIdentifier(String identifier); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSImportRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSImportRule.java new file mode 100644 index 00000000..2795c46b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSImportRule.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +import org.w3c.dom.stylesheets.MediaList; + +public interface CSSImportRule extends CSSRule +{ + // CSSImportRule + public String getHref(); + public MediaList getMedia(); + public void setMedia(String media); + public CSSStyleSheet getStyleSheet(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSKeywordComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSKeywordComponentValue.java new file mode 100644 index 00000000..bd8cd45f --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSKeywordComponentValue.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSKeywordComponentValue +{ + // CSSKeywordComponentValue + public String getKeyword(); + public void setKeyword(String keyword); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSLengthComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSLengthComponentValue.java new file mode 100644 index 00000000..79c2054f --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSLengthComponentValue.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSLengthComponentValue +{ + // CSSLengthComponentValue + public float getEm(); + public void setEm(float em); + public float getEx(); + public void setEx(float ex); + public float getPx(); + public void setPx(float px); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMapValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMapValue.java new file mode 100644 index 00000000..733f56d6 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMapValue.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSMapValue +{ + // CSSMapValue + public CSSValue getElement(String name); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMediaRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMediaRule.java new file mode 100644 index 00000000..d7462ebd --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMediaRule.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +import org.w3c.dom.ObjectArray; +import org.w3c.dom.stylesheets.MediaList; + +public interface CSSMediaRule extends CSSRule +{ + // CSSMediaRule + public MediaList getMedia(); + public void setMedia(String media); + public ObjectArray getCssRules(); + public int insertRule(String rule, int index); + public void deleteRule(int index); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSNamespaceRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSNamespaceRule.java new file mode 100644 index 00000000..302380f3 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSNamespaceRule.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSNamespaceRule extends CSSRule +{ + // CSSNamespaceRule + public String getNamespaceURI(); + public String getPrefix(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPageRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPageRule.java new file mode 100644 index 00000000..32763033 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPageRule.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSPageRule extends CSSRule +{ + // CSSPageRule + public String getSelectorText(); + public void setSelectorText(String selectorText); + public CSSStyleDeclaration getStyle(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPercentageComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPercentageComponentValue.java new file mode 100644 index 00000000..2d146f30 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPercentageComponentValue.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSPercentageComponentValue +{ + // CSSPercentageComponentValue + public float getPercent(); + public void setPercent(float percent); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPrimitiveValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPrimitiveValue.java new file mode 100644 index 00000000..fe5d1b2c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPrimitiveValue.java @@ -0,0 +1,45 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +import org.w3c.dom.DOMException; + +public interface CSSPrimitiveValue extends CSSValue +{ + // CSSPrimitiveValue + public static final short CSS_UNKNOWN = 0; + public static final short CSS_NUMBER = 1; + public static final short CSS_PERCENTAGE = 2; + public static final short CSS_EMS = 3; + public static final short CSS_EXS = 4; + public static final short CSS_PX = 5; + public static final short CSS_CM = 6; + public static final short CSS_MM = 7; + public static final short CSS_IN = 8; + public static final short CSS_PT = 9; + public static final short CSS_PC = 10; + public static final short CSS_DEG = 11; + public static final short CSS_RAD = 12; + public static final short CSS_GRAD = 13; + public static final short CSS_MS = 14; + public static final short CSS_S = 15; + public static final short CSS_HZ = 16; + public static final short CSS_KHZ = 17; + public static final short CSS_DIMENSION = 18; + public static final short CSS_STRING = 19; + public static final short CSS_URI = 20; + public static final short CSS_IDENT = 21; + public static final short CSS_ATTR = 22; + public static final short CSS_COUNTER = 23; + public static final short CSS_RECT = 24; + public static final short CSS_RGBCOLOR = 25; + public static final short CSS_UNICODE_RANGE = 102; + public short getPrimitiveType(); + public void setFloatValue(short unitType, float floatValue) throws DOMException; + public float getFloatValue(short unitType) throws DOMException; + public void setStringValue(short stringType, String stringValue) throws DOMException; + public String getStringValue() throws DOMException; + public Counter getCounterValue() throws DOMException; + public Rect getRectValue() throws DOMException; + public RGBColor getRGBColorValue() throws DOMException; +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValue.java new file mode 100644 index 00000000..ae13175a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValue.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSPropertyValue +{ + // CSSPropertyValue + public String getCssText(); + public void setCssText(String cssText); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValueList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValueList.java new file mode 100644 index 00000000..601ec8f1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValueList.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +import org.w3c.dom.ObjectArray; + +public interface CSSPropertyValueList +{ + // CSSPropertyValueList + public ObjectArray getList(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSRule.java new file mode 100644 index 00000000..e82010ae --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSRule.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSRule +{ + // CSSRule + public static final short STYLE_RULE = 1; + public static final short IMPORT_RULE = 3; + public static final short MEDIA_RULE = 4; + public static final short FONT_FACE_RULE = 5; + public static final short PAGE_RULE = 6; + public static final short NAMESPACE_RULE = 10; + public short getType(); + public String getCssText(); + public void setCssText(String cssText); + public CSSRule getParentRule(); + public CSSStyleSheet getParentStyleSheet(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStringComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStringComponentValue.java new file mode 100644 index 00000000..dbf51d07 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStringComponentValue.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSStringComponentValue +{ + // CSSStringComponentValue + public String getString(); + public void setString(String string); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclaration.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclaration.java new file mode 100644 index 00000000..fc5d167a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclaration.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSStyleDeclaration +{ + // CSSStyleDeclaration + public String getCssText(); + public void setCssText(String cssText); + public int getLength(); + public String item(int index); + public String getPropertyValue(String property); + public String getPropertyPriority(String property); + public void setProperty(String property, String value); + public void setProperty(String property, String value, String priority); + public String removeProperty(String property); + public CSSStyleDeclarationValue getValues(); + public CSSRule getParentRule(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclarationValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclarationValue.java new file mode 100644 index 00000000..1d93f141 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclarationValue.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSStyleDeclarationValue +{ + // CSSStyleDeclarationValue +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleRule.java new file mode 100644 index 00000000..ad73bbc9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleRule.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSStyleRule extends CSSRule +{ + // CSSStyleRule + public String getSelectorText(); + public void setSelectorText(String selectorText); + public CSSStyleDeclaration getStyle(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleSheet.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleSheet.java new file mode 100644 index 00000000..9200ecd4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleSheet.java @@ -0,0 +1,15 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +import org.w3c.dom.ObjectArray; +import org.w3c.dom.stylesheets.StyleSheet; + +public interface CSSStyleSheet extends StyleSheet +{ + // CSSStyleSheet + public CSSRule getOwnerRule(); + public ObjectArray getCssRules(); + public int insertRule(String rule, int index); + public void deleteRule(int index); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSURLComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSURLComponentValue.java new file mode 100644 index 00000000..ff0d0016 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSURLComponentValue.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSURLComponentValue +{ + // CSSURLComponentValue + public String getUrl(); + public void setUrl(String url); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSUnknownRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSUnknownRule.java new file mode 100644 index 00000000..fddf46d9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSUnknownRule.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSUnknownRule extends CSSRule +{ + // CSSUnknownRule +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValue.java new file mode 100644 index 00000000..cb0b6ab1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValue.java @@ -0,0 +1,15 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSValue +{ + // CSSValue + public static final short CSS_INHERIT = 0; + public static final short CSS_PRIMITIVE_VALUE = 1; + public static final short CSS_VALUE_LIST = 2; + public static final short CSS_CUSTOM = 3; + public String getCssText(); + public void setCssText(String cssText); + public short getCssValueType(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValueList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValueList.java new file mode 100644 index 00000000..dbf27cbb --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValueList.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface CSSValueList extends CSSValue +{ + // CSSValueList + public int getLength(); + public CSSValue item(int index); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/Counter.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/Counter.java new file mode 100644 index 00000000..986207ba --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/Counter.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface Counter +{ + // Counter + public String getIdentifier(); + public String getListStyle(); + public String getSeparator(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/DOMImplementationCSS.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/DOMImplementationCSS.java new file mode 100644 index 00000000..c057b45a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/DOMImplementationCSS.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +import org.w3c.dom.DOMException; + +public interface DOMImplementationCSS +{ + // DOMImplementationCSS + public CSSStyleSheet createCSSStyleSheet(String title, String media) throws DOMException; +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/DocumentCSS.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/DocumentCSS.java new file mode 100644 index 00000000..711e2941 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/DocumentCSS.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +import org.w3c.dom.Element; + +public interface DocumentCSS +{ + // DocumentCSS + public CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/ElementCSSInlineStyle.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/ElementCSSInlineStyle.java new file mode 100644 index 00000000..cef742e4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/ElementCSSInlineStyle.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface ElementCSSInlineStyle +{ + // ElementCSSInlineStyle + public CSSStyleDeclaration getStyle(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/RGBColor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/RGBColor.java new file mode 100644 index 00000000..09f3dcaa --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/RGBColor.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface RGBColor +{ + // RGBColor + public CSSPrimitiveValue getRed(); + public CSSPrimitiveValue getGreen(); + public CSSPrimitiveValue getBlue(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/Rect.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/Rect.java new file mode 100644 index 00000000..c3a92949 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/css/Rect.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.css; + +public interface Rect +{ + // Rect + public CSSPrimitiveValue getTop(); + public CSSPrimitiveValue getRight(); + public CSSPrimitiveValue getBottom(); + public CSSPrimitiveValue getLeft(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CompositionEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CompositionEvent.java new file mode 100644 index 00000000..b75b8646 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CompositionEvent.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +import org.w3c.dom.html.Window; + +public interface CompositionEvent extends UIEvent +{ + // CompositionEvent + public String getData(); + public String getLocale(); + public void initCompositionEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, String dataArg, String localeArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent.java new file mode 100644 index 00000000..a8039c89 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface CustomEvent extends Event +{ + // CustomEvent + public Object getDetail(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEventInit.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEventInit.java new file mode 100644 index 00000000..d98a7b25 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEventInit.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface CustomEventInit extends EventInit +{ + // CustomEventInit + public Object getDetail(); + public void setDetail(Object detail); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent_Constructor.java new file mode 100644 index 00000000..31784be9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent_Constructor.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface CustomEvent_Constructor +{ + // Constructor + public CustomEvent createInstance(String type); + public CustomEvent createInstance(String type, CustomEventInit eventInitDict); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event.java new file mode 100644 index 00000000..560cfb6c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event.java @@ -0,0 +1,24 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface Event +{ + // Event + public String getType(); + public EventTarget getTarget(); + public EventTarget getCurrentTarget(); + public static final short CAPTURING_PHASE = 1; + public static final short AT_TARGET = 2; + public static final short BUBBLING_PHASE = 3; + public short getEventPhase(); + public void stopPropagation(); + public void stopImmediatePropagation(); + public boolean getBubbles(); + public boolean getCancelable(); + public void preventDefault(); + public boolean getDefaultPrevented(); + public boolean getIsTrusted(); + public long getTimeStamp(); + public void initEvent(String type, boolean bubbles, boolean cancelable); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventException.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventException.java new file mode 100644 index 00000000..0c411497 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventException.java @@ -0,0 +1,15 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public class EventException extends RuntimeException +{ + public EventException(short code, String message) + { + super(message); + this.code = code; + } + public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0; + public static final short DISPATCH_REQUEST_ERR = 1; + public short code; +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventInit.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventInit.java new file mode 100644 index 00000000..1a090a51 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventInit.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface EventInit +{ + // EventInit + public boolean getBubbles(); + public void setBubbles(boolean bubbles); + public boolean getCancelable(); + public void setCancelable(boolean cancelable); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventListener.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventListener.java new file mode 100644 index 00000000..23e64960 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventListener.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface EventListener +{ + // EventListener + public void handleEvent(Event event); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventTarget.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventTarget.java new file mode 100644 index 00000000..7a1ad9ac --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventTarget.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface EventTarget +{ + // EventTarget + public void addEventListener(String type, EventListener listener); + public void addEventListener(String type, EventListener listener, boolean capture); + public void removeEventListener(String type, EventListener listener); + public void removeEventListener(String type, EventListener listener, boolean capture); + public boolean dispatchEvent(Event event); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event_Constructor.java new file mode 100644 index 00000000..fb2f9276 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event_Constructor.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface Event_Constructor +{ + // Constructor + public Event createInstance(String type); + public Event createInstance(String type, EventInit eventInitDict); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/FocusEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/FocusEvent.java new file mode 100644 index 00000000..d3b1ff62 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/FocusEvent.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +import org.w3c.dom.html.Window; + +public interface FocusEvent extends UIEvent +{ + // FocusEvent + public EventTarget getRelatedTarget(); + public void initFocusEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, int detailArg, EventTarget relatedTargetArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/KeyboardEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/KeyboardEvent.java new file mode 100644 index 00000000..87d81c22 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/KeyboardEvent.java @@ -0,0 +1,31 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +import org.w3c.dom.html.Window; + +public interface KeyboardEvent extends UIEvent +{ + // KeyboardEvent + public static final int DOM_KEY_LOCATION_STANDARD = 0x00; + public static final int DOM_KEY_LOCATION_LEFT = 0x01; + public static final int DOM_KEY_LOCATION_RIGHT = 0x02; + public static final int DOM_KEY_LOCATION_NUMPAD = 0x03; + public static final int DOM_KEY_LOCATION_MOBILE = 0x04; + public static final int DOM_KEY_LOCATION_JOYSTICK = 0x05; + public String getChar(); + public String getKey(); + public int getLocation(); + public boolean getCtrlKey(); + public boolean getShiftKey(); + public boolean getAltKey(); + public boolean getMetaKey(); + public boolean getRepeat(); + public String getLocale(); + public boolean getModifierState(String keyArg); + public void initKeyboardEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, String charArg, String keyArg, int locationArg, String modifiersListArg, boolean repeat, String localeArg); + // KeyboardEvent-41 + public int getCharCode(); + public int getKeyCode(); + public int getWhich(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MouseEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MouseEvent.java new file mode 100644 index 00000000..31c2e79d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MouseEvent.java @@ -0,0 +1,30 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +import org.w3c.dom.html.Window; + +public interface MouseEvent extends UIEvent +{ + // MouseEvent + public int getScreenX(); + public int getScreenY(); + public int getClientX(); + public int getClientY(); + public boolean getCtrlKey(); + public boolean getShiftKey(); + public boolean getAltKey(); + public boolean getMetaKey(); + public short getButton(); + public short getButtons(); + public EventTarget getRelatedTarget(); + public void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg); + public boolean getModifierState(String keyArg); + // MouseEvent-40 + public int getPageX(); + public int getPageY(); + public int getX(); + public int getY(); + public int getOffsetX(); + public int getOffsetY(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationEvent.java new file mode 100644 index 00000000..28e2c4e8 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationEvent.java @@ -0,0 +1,17 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface MutationEvent extends Event +{ + // MutationEvent + public static final short MODIFICATION = 1; + public static final short ADDITION = 2; + public static final short REMOVAL = 3; + public Object getRelatedNode(); + public String getPrevValue(); + public String getNewValue(); + public String getAttrName(); + public short getAttrChange(); + public void initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationNameEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationNameEvent.java new file mode 100644 index 00000000..98dc2e60 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationNameEvent.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +import org.w3c.dom.Node; + +public interface MutationNameEvent extends MutationEvent +{ + // MutationNameEvent + public String getPrevNamespaceURI(); + public String getPrevNodeName(); + public void initMutationNameEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevNamespaceURIArg, String prevNodeNameArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/ProgressEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/ProgressEvent.java new file mode 100644 index 00000000..db09dd6a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/ProgressEvent.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +public interface ProgressEvent extends Event +{ + // ProgressEvent + public boolean getLengthComputable(); + public int getLoaded(); + public int getTotal(); + public void initProgressEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, boolean lengthComputableArg, int loadedArg, int totalArg); + public void initProgressEventNS(String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, boolean lengthComputableArg, int loadedArg, int totalArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/TextEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/TextEvent.java new file mode 100644 index 00000000..5b7ffe5a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/TextEvent.java @@ -0,0 +1,24 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +import org.w3c.dom.html.Window; + +public interface TextEvent extends UIEvent +{ + // TextEvent + public static final int DOM_INPUT_METHOD_UNKNOWN = 0x00; + public static final int DOM_INPUT_METHOD_KEYBOARD = 0x01; + public static final int DOM_INPUT_METHOD_PASTE = 0x02; + public static final int DOM_INPUT_METHOD_DROP = 0x03; + public static final int DOM_INPUT_METHOD_IME = 0x04; + public static final int DOM_INPUT_METHOD_OPTION = 0x05; + public static final int DOM_INPUT_METHOD_HANDWRITING = 0x06; + public static final int DOM_INPUT_METHOD_VOICE = 0x07; + public static final int DOM_INPUT_METHOD_MULTIMODAL = 0x08; + public static final int DOM_INPUT_METHOD_SCRIPT = 0x09; + public String getData(); + public int getInputMethod(); + public String getLocale(); + public void initTextEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, String dataArg, int inputMethod, String localeArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/UIEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/UIEvent.java new file mode 100644 index 00000000..cb2bb7a5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/UIEvent.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +import org.w3c.dom.html.Window; + +public interface UIEvent extends Event +{ + // UIEvent + public Window getView(); + public int getDetail(); + public void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, int detailArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/WheelEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/WheelEvent.java new file mode 100644 index 00000000..b7e102ed --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/events/WheelEvent.java @@ -0,0 +1,18 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.events; + +import org.w3c.dom.html.Window; + +public interface WheelEvent extends MouseEvent +{ + // WheelEvent + public static final int DOM_DELTA_PIXEL = 0x00; + public static final int DOM_DELTA_LINE = 0x01; + public static final int DOM_DELTA_PAGE = 0x02; + public float getDeltaX(); + public float getDeltaY(); + public float getDeltaZ(); + public int getDeltaMode(); + public void initWheelEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, short buttonArg, EventTarget relatedTargetArg, String modifiersListArg, float deltaXArg, float deltaYArg, float deltaZArg, int deltaMode); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource.java b/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource.java new file mode 100644 index 00000000..3e3829dc --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource.java @@ -0,0 +1,23 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.eventsource; + +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.html.Function; + +public interface EventSource extends EventTarget +{ + // EventSource + public String getUrl(); + public static final short CONNECTING = 0; + public static final short OPEN = 1; + public static final short CLOSED = 2; + public short getReadyState(); + public Function getOnopen(); + public void setOnopen(Function onopen); + public Function getOnmessage(); + public void setOnmessage(Function onmessage); + public Function getOnerror(); + public void setOnerror(Function onerror); + public void close(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource_Constructor.java new file mode 100644 index 00000000..efc07e13 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.eventsource; + +public interface EventSource_Constructor +{ + // Constructor + public EventSource createInstance(String url); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/Blob.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/Blob.java new file mode 100644 index 00000000..2cc8d218 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/Blob.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +public interface Blob +{ + // Blob + public long getSize(); + public String getType(); + public Blob slice(long start, long length); + public Blob slice(long start, long length, String contentType); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/File.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/File.java new file mode 100644 index 00000000..ae3931cb --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/File.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +public interface File extends Blob +{ + // File + public String getName(); + public long getLastModifiedDate(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileCallback.java new file mode 100644 index 00000000..60545ad8 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileCallback.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +public interface FileCallback +{ + // FileCallback + public void handleEvent(File file); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileError.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileError.java new file mode 100644 index 00000000..a38305be --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileError.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +public interface FileError +{ + // FileError + public static final short NOT_FOUND_ERR = 1; + public static final short SECURITY_ERR = 2; + public static final short ABORT_ERR = 3; + public static final short NOT_READABLE_ERR = 4; + public static final short ENCODING_ERR = 5; + public short getCode(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileException.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileException.java new file mode 100644 index 00000000..844fe5b0 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileException.java @@ -0,0 +1,18 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +public class FileException extends RuntimeException +{ + public FileException(short code, String message) + { + super(message); + this.code = code; + } + public static final short NOT_FOUND_ERR = 1; + public static final short SECURITY_ERR = 2; + public static final short ABORT_ERR = 3; + public static final short NOT_READABLE_ERR = 4; + public static final short ENCODING_ERR = 5; + public short code; +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileList.java new file mode 100644 index 00000000..f4933b61 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileList.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +public interface FileList +{ + // FileList + public File item(int index); + public int getLength(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader.java new file mode 100644 index 00000000..04a5be3a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader.java @@ -0,0 +1,35 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.html.Function; + +public interface FileReader extends EventTarget +{ + // FileReader + public void readAsArrayBuffer(Blob blob); + public void readAsBinaryString(Blob blob); + public void readAsText(Blob blob); + public void readAsText(Blob blob, String encoding); + public void readAsDataURL(Blob blob); + public void abort(); + public static final short EMPTY = 0; + public static final short LOADING = 1; + public static final short DONE = 2; + public short getReadyState(); + public Object getResult(); + public FileError getError(); + public Function getOnloadstart(); + public void setOnloadstart(Function onloadstart); + public Function getOnprogress(); + public void setOnprogress(Function onprogress); + public Function getOnload(); + public void setOnload(Function onload); + public Function getOnabort(); + public void setOnabort(Function onabort); + public Function getOnerror(); + public void setOnerror(Function onerror); + public Function getOnloadend(); + public void setOnloadend(Function onloadend); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync.java new file mode 100644 index 00000000..1af65fd1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync.java @@ -0,0 +1,15 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +import org.w3c.dom.typedarray.ArrayBuffer; + +public interface FileReaderSync +{ + // FileReaderSync + public ArrayBuffer readAsArrayBuffer(Blob blob); + public String readAsBinaryString(Blob blob); + public String readAsText(Blob blob); + public String readAsText(Blob blob, String encoding); + public String readAsDataURL(Blob blob); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync_Constructor.java new file mode 100644 index 00000000..86444ea6 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +public interface FileReaderSync_Constructor +{ + // Constructor + public FileReaderSync createInstance(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader_Constructor.java new file mode 100644 index 00000000..04edb98a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.file; + +public interface FileReader_Constructor +{ + // Constructor + public FileReader createInstance(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ApplicationCache.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ApplicationCache.java new file mode 100644 index 00000000..5ecec595 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ApplicationCache.java @@ -0,0 +1,33 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface ApplicationCache +{ + // ApplicationCache + public static final short UNCACHED = 0; + public static final short IDLE = 1; + public static final short CHECKING = 2; + public static final short DOWNLOADING = 3; + public static final short UPDATEREADY = 4; + public static final short OBSOLETE = 5; + public short getStatus(); + public void update(); + public void swapCache(); + public Function getOnchecking(); + public void setOnchecking(Function onchecking); + public Function getOnerror(); + public void setOnerror(Function onerror); + public Function getOnnoupdate(); + public void setOnnoupdate(Function onnoupdate); + public Function getOndownloading(); + public void setOndownloading(Function ondownloading); + public Function getOnprogress(); + public void setOnprogress(Function onprogress); + public Function getOnupdateready(); + public void setOnupdateready(Function onupdateready); + public Function getOncached(); + public void setOncached(Function oncached); + public Function getOnobsolete(); + public void setOnobsolete(Function onobsolete); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrack.java new file mode 100644 index 00000000..0129fb35 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrack.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface AudioTrack +{ + // AudioTrack + public String getId(); + public String getKind(); + public String getLabel(); + public String getLanguage(); + public boolean getEnabled(); + public void setEnabled(boolean enabled); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrackList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrackList.java new file mode 100644 index 00000000..1d40d151 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrackList.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface AudioTrackList +{ + // AudioTrackList + public int getLength(); + public AudioTrack getElement(int index); + public AudioTrack getTrackById(String id); + public Function getOnchange(); + public void setOnchange(Function onchange); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BarProp.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BarProp.java new file mode 100644 index 00000000..2061ee3c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BarProp.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface BarProp +{ + // BarProp + public boolean getVisible(); + public void setVisible(boolean visible); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BeforeUnloadEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BeforeUnloadEvent.java new file mode 100644 index 00000000..bbeb54b3 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BeforeUnloadEvent.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.events.Event; + +public interface BeforeUnloadEvent extends Event +{ + // BeforeUnloadEvent + public String getReturnValue(); + public void setReturnValue(String returnValue); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BlobCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BlobCallback.java new file mode 100644 index 00000000..705c7f47 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BlobCallback.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.file.Blob; + +public interface BlobCallback +{ + // BlobCallback + public void handleEvent(Blob blob); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasGradient.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasGradient.java new file mode 100644 index 00000000..007a7fda --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasGradient.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface CanvasGradient +{ + // CanvasGradient + public void addColorStop(double offset, String color); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPattern.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPattern.java new file mode 100644 index 00000000..c08267c5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPattern.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface CanvasPattern +{ + // CanvasPattern +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPixelArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPixelArray.java new file mode 100644 index 00000000..0541e0f0 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPixelArray.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface CanvasPixelArray +{ + // CanvasPixelArray + public int getLength(); + public byte getElement(int index); + public void setElement(int index, byte value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasRenderingContext2D.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasRenderingContext2D.java new file mode 100644 index 00000000..56647861 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasRenderingContext2D.java @@ -0,0 +1,92 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.Element; + +public interface CanvasRenderingContext2D +{ + // CanvasRenderingContext2D + public HTMLCanvasElement getCanvas(); + public void save(); + public void restore(); + public void scale(double x, double y); + public void rotate(double angle); + public void translate(double x, double y); + public void transform(double a, double b, double c, double d, double e, double f); + public void setTransform(double a, double b, double c, double d, double e, double f); + public double getGlobalAlpha(); + public void setGlobalAlpha(double globalAlpha); + public String getGlobalCompositeOperation(); + public void setGlobalCompositeOperation(String globalCompositeOperation); + public Object getStrokeStyle(); + public void setStrokeStyle(Object strokeStyle); + public Object getFillStyle(); + public void setFillStyle(Object fillStyle); + public CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1); + public CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1); + public CanvasPattern createPattern(HTMLImageElement image, String repetition); + public CanvasPattern createPattern(HTMLCanvasElement image, String repetition); + public CanvasPattern createPattern(HTMLVideoElement image, String repetition); + public double getLineWidth(); + public void setLineWidth(double lineWidth); + public String getLineCap(); + public void setLineCap(String lineCap); + public String getLineJoin(); + public void setLineJoin(String lineJoin); + public double getMiterLimit(); + public void setMiterLimit(double miterLimit); + public double getShadowOffsetX(); + public void setShadowOffsetX(double shadowOffsetX); + public double getShadowOffsetY(); + public void setShadowOffsetY(double shadowOffsetY); + public double getShadowBlur(); + public void setShadowBlur(double shadowBlur); + public String getShadowColor(); + public void setShadowColor(String shadowColor); + public void clearRect(double x, double y, double w, double h); + public void fillRect(double x, double y, double w, double h); + public void strokeRect(double x, double y, double w, double h); + public void beginPath(); + public void closePath(); + public void moveTo(double x, double y); + public void lineTo(double x, double y); + public void quadraticCurveTo(double cpx, double cpy, double x, double y); + public void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); + public void arcTo(double x1, double y1, double x2, double y2, double radius); + public void rect(double x, double y, double w, double h); + public void arc(double x, double y, double radius, double startAngle, double endAngle); + public void arc(double x, double y, double radius, double startAngle, double endAngle, boolean anticlockwise); + public void fill(); + public void stroke(); + public void drawSystemFocusRing(Element element); + public boolean drawCustomFocusRing(Element element); + public void scrollPathIntoView(); + public void clip(); + public boolean isPointInPath(double x, double y); + public String getFont(); + public void setFont(String font); + public String getTextAlign(); + public void setTextAlign(String textAlign); + public String getTextBaseline(); + public void setTextBaseline(String textBaseline); + public void fillText(String text, double x, double y); + public void fillText(String text, double x, double y, double maxWidth); + public void strokeText(String text, double x, double y); + public void strokeText(String text, double x, double y, double maxWidth); + public TextMetrics measureText(String text); + public void drawImage(HTMLImageElement image, double dx, double dy); + public void drawImage(HTMLImageElement image, double dx, double dy, double dw, double dh); + public void drawImage(HTMLImageElement image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh); + public void drawImage(HTMLCanvasElement image, double dx, double dy); + public void drawImage(HTMLCanvasElement image, double dx, double dy, double dw, double dh); + public void drawImage(HTMLCanvasElement image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh); + public void drawImage(HTMLVideoElement image, double dx, double dy); + public void drawImage(HTMLVideoElement image, double dx, double dy, double dw, double dh); + public void drawImage(HTMLVideoElement image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh); + public ImageData createImageData(double sw, double sh); + public ImageData createImageData(ImageData imagedata); + public ImageData getImageData(double sx, double sy, double sw, double sh); + public void putImageData(ImageData imagedata, double dx, double dy); + public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransfer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransfer.java new file mode 100644 index 00000000..acd8930a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransfer.java @@ -0,0 +1,25 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMStringList; +import org.w3c.dom.Element; +import org.w3c.dom.file.FileList; + +public interface DataTransfer +{ + // DataTransfer + public String getDropEffect(); + public void setDropEffect(String dropEffect); + public String getEffectAllowed(); + public void setEffectAllowed(String effectAllowed); + public DataTransferItemList getItems(); + public void setDragImage(Element image, int x, int y); + public void addElement(Element element); + public DOMStringList getTypes(); + public String getData(String format); + public void setData(String format, String data); + public void clearData(); + public void clearData(String format); + public FileList getFiles(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItem.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItem.java new file mode 100644 index 00000000..935eb316 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItem.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.file.File; + +public interface DataTransferItem +{ + // DataTransferItem + public String getKind(); + public String getType(); + public void getAsString(FunctionStringCallback callback); + public File getAsFile(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItemList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItemList.java new file mode 100644 index 00000000..7ab0c1f6 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItemList.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.file.File; + +public interface DataTransferItemList +{ + // DataTransferItemList + public int getLength(); + public DataTransferItem getElement(int index); + public void deleteElement(int index); + public void clear(); + public DataTransferItem add(String data, String type); + public DataTransferItem add(File data); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DragEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DragEvent.java new file mode 100644 index 00000000..6bfb0b76 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DragEvent.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.events.EventTarget; +import org.w3c.dom.events.MouseEvent; + +public interface DragEvent extends MouseEvent +{ + // DragEvent + public DataTransfer getDataTransfer(); + public void initDragEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object dummyArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg, DataTransfer dataTransferArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/External.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/External.java new file mode 100644 index 00000000..d68c8e17 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/External.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface External +{ + // External + public void AddSearchProvider(String engineURL); + public int IsSearchProviderInstalled(String engineURL); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Function.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Function.java new file mode 100644 index 00000000..7a4173fe --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Function.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface Function +{ + // Function + public Object call(Object... arguments); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/FunctionStringCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/FunctionStringCallback.java new file mode 100644 index 00000000..f679e24d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/FunctionStringCallback.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface FunctionStringCallback +{ + // FunctionStringCallback + public void handleEvent(String data); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAllCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAllCollection.java new file mode 100644 index 00000000..0b47aeb7 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAllCollection.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLAllCollection extends HTMLCollection +{ + // HTMLAllCollection + public Object namedItem(String name); + public HTMLAllCollection tags(String tagName); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAnchorElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAnchorElement.java new file mode 100644 index 00000000..bf07d648 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAnchorElement.java @@ -0,0 +1,52 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMTokenList; + +public interface HTMLAnchorElement extends HTMLElement +{ + // HTMLAnchorElement + public String getHref(); + public void setHref(String href); + public String getTarget(); + public void setTarget(String target); + public String getPing(); + public void setPing(String ping); + public String getRel(); + public void setRel(String rel); + public DOMTokenList getRelList(); + public String getMedia(); + public void setMedia(String media); + public String getHreflang(); + public void setHreflang(String hreflang); + public String getType(); + public void setType(String type); + public String getText(); + public void setText(String text); + public String getProtocol(); + public void setProtocol(String protocol); + public String getHost(); + public void setHost(String host); + public String getHostname(); + public void setHostname(String hostname); + public String getPort(); + public void setPort(String port); + public String getPathname(); + public void setPathname(String pathname); + public String getSearch(); + public void setSearch(String search); + public String getHash(); + public void setHash(String hash); + // HTMLAnchorElement-7 + public String getCoords(); + public void setCoords(String coords); + public String getCharset(); + public void setCharset(String charset); + public String getName(); + public void setName(String name); + public String getRev(); + public void setRev(String rev); + public String getShape(); + public void setShape(String shape); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAppletElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAppletElement.java new file mode 100644 index 00000000..db516fc1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAppletElement.java @@ -0,0 +1,30 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLAppletElement extends HTMLElement +{ + // HTMLAppletElement + public String getAlign(); + public void setAlign(String align); + public String getAlt(); + public void setAlt(String alt); + public String getArchive(); + public void setArchive(String archive); + public String getCode(); + public void setCode(String code); + public String getCodeBase(); + public void setCodeBase(String codeBase); + public String getHeight(); + public void setHeight(String height); + public int getHspace(); + public void setHspace(int hspace); + public String getName(); + public void setName(String name); + public String getObject(); + public void setObject(String object); + public int getVspace(); + public void setVspace(int vspace); + public String getWidth(); + public void setWidth(String width); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAreaElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAreaElement.java new file mode 100644 index 00000000..9fa35011 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAreaElement.java @@ -0,0 +1,48 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMTokenList; + +public interface HTMLAreaElement extends HTMLElement +{ + // HTMLAreaElement + public String getAlt(); + public void setAlt(String alt); + public String getCoords(); + public void setCoords(String coords); + public String getShape(); + public void setShape(String shape); + public String getHref(); + public void setHref(String href); + public String getTarget(); + public void setTarget(String target); + public String getPing(); + public void setPing(String ping); + public String getRel(); + public void setRel(String rel); + public DOMTokenList getRelList(); + public String getMedia(); + public void setMedia(String media); + public String getHreflang(); + public void setHreflang(String hreflang); + public String getType(); + public void setType(String type); + public String getProtocol(); + public void setProtocol(String protocol); + public String getHost(); + public void setHost(String host); + public String getHostname(); + public void setHostname(String hostname); + public String getPort(); + public void setPort(String port); + public String getPathname(); + public void setPathname(String pathname); + public String getSearch(); + public void setSearch(String search); + public String getHash(); + public void setHash(String hash); + // HTMLAreaElement-8 + public boolean getNoHref(); + public void setNoHref(boolean noHref); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement.java new file mode 100644 index 00000000..dcb9f750 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLAudioElement extends HTMLMediaElement +{ + // HTMLAudioElement +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement_Constructor.java new file mode 100644 index 00000000..8f2fc22d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement_Constructor.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLAudioElement_Constructor +{ + // Constructor + public HTMLAudioElement createInstance(); + public HTMLAudioElement createInstance(String src); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBRElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBRElement.java new file mode 100644 index 00000000..7bf3fdf9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBRElement.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLBRElement extends HTMLElement +{ + // HTMLBRElement + // HTMLBRElement-10 + public String getClear(); + public void setClear(String clear); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseElement.java new file mode 100644 index 00000000..c7a98af5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseElement.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLBaseElement extends HTMLElement +{ + // HTMLBaseElement + public String getHref(); + public void setHref(String href); + public String getTarget(); + public void setTarget(String target); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseFontElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseFontElement.java new file mode 100644 index 00000000..0b8bf715 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseFontElement.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLBaseFontElement extends HTMLElement +{ + // HTMLBaseFontElement + public String getColor(); + public void setColor(String color); + public String getFace(); + public void setFace(String face); + public int getSize(); + public void setSize(int size); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBodyElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBodyElement.java new file mode 100644 index 00000000..18a7eecc --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBodyElement.java @@ -0,0 +1,61 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLBodyElement extends HTMLElement +{ + // HTMLBodyElement + public Function getOnafterprint(); + public void setOnafterprint(Function onafterprint); + public Function getOnbeforeprint(); + public void setOnbeforeprint(Function onbeforeprint); + public Function getOnbeforeunload(); + public void setOnbeforeunload(Function onbeforeunload); + public Function getOnblur(); + public void setOnblur(Function onblur); + public Function getOnerror(); + public void setOnerror(Function onerror); + public Function getOnfocus(); + public void setOnfocus(Function onfocus); + public Function getOnhashchange(); + public void setOnhashchange(Function onhashchange); + public Function getOnload(); + public void setOnload(Function onload); + public Function getOnmessage(); + public void setOnmessage(Function onmessage); + public Function getOnoffline(); + public void setOnoffline(Function onoffline); + public Function getOnonline(); + public void setOnonline(Function ononline); + public Function getOnpopstate(); + public void setOnpopstate(Function onpopstate); + public Function getOnpagehide(); + public void setOnpagehide(Function onpagehide); + public Function getOnpageshow(); + public void setOnpageshow(Function onpageshow); + public Function getOnredo(); + public void setOnredo(Function onredo); + public Function getOnresize(); + public void setOnresize(Function onresize); + public Function getOnscroll(); + public void setOnscroll(Function onscroll); + public Function getOnstorage(); + public void setOnstorage(Function onstorage); + public Function getOnundo(); + public void setOnundo(Function onundo); + public Function getOnunload(); + public void setOnunload(Function onunload); + // HTMLBodyElement-9 + public String getText(); + public void setText(String text); + public String getBgColor(); + public void setBgColor(String bgColor); + public String getBackground(); + public void setBackground(String background); + public String getLink(); + public void setLink(String link); + public String getVLink(); + public void setVLink(String vLink); + public String getALink(); + public void setALink(String aLink); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLButtonElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLButtonElement.java new file mode 100644 index 00000000..2826f2b3 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLButtonElement.java @@ -0,0 +1,37 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; + +public interface HTMLButtonElement extends HTMLElement +{ + // HTMLButtonElement + public boolean getAutofocus(); + public void setAutofocus(boolean autofocus); + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public HTMLFormElement getForm(); + public String getFormAction(); + public void setFormAction(String formAction); + public String getFormEnctype(); + public void setFormEnctype(String formEnctype); + public String getFormMethod(); + public void setFormMethod(String formMethod); + public String getFormNoValidate(); + public void setFormNoValidate(String formNoValidate); + public String getFormTarget(); + public void setFormTarget(String formTarget); + public String getName(); + public void setName(String name); + public String getType(); + public void setType(String type); + public String getValue(); + public void setValue(String value); + public boolean getWillValidate(); + public ValidityState getValidity(); + public String getValidationMessage(); + public boolean checkValidity(); + public void setCustomValidity(String error); + public NodeList getLabels(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCanvasElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCanvasElement.java new file mode 100644 index 00000000..3dde2cbe --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCanvasElement.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.file.FileCallback; + +public interface HTMLCanvasElement extends HTMLElement +{ + // HTMLCanvasElement + public int getWidth(); + public void setWidth(int width); + public int getHeight(); + public void setHeight(int height); + public String toDataURL(); + public String toDataURL(String type, Object... args); + public void toBlob(FileCallback callback); + public void toBlob(FileCallback callback, String type, Object... args); + public Object getContext(String contextId, Object... args); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCollection.java new file mode 100644 index 00000000..0ac6b1c1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCollection.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.Element; + +public interface HTMLCollection +{ + // HTMLCollection + public int getLength(); + public Element item(int index); + public Object namedItem(String name); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCommandElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCommandElement.java new file mode 100644 index 00000000..44c41975 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCommandElement.java @@ -0,0 +1,20 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLCommandElement extends HTMLElement +{ + // HTMLCommandElement + public String getType(); + public void setType(String type); + public String getLabel(); + public void setLabel(String label); + public String getIcon(); + public void setIcon(String icon); + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public boolean getChecked(); + public void setChecked(boolean checked); + public String getRadiogroup(); + public void setRadiogroup(String radiogroup); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDListElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDListElement.java new file mode 100644 index 00000000..de8547b1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDListElement.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLDListElement extends HTMLElement +{ + // HTMLDListElement + // HTMLDListElement-14 + public boolean getCompact(); + public void setCompact(boolean compact); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDataListElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDataListElement.java new file mode 100644 index 00000000..5936bd6c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDataListElement.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLDataListElement extends HTMLElement +{ + // HTMLDataListElement + public HTMLCollection getOptions(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDetailsElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDetailsElement.java new file mode 100644 index 00000000..81a0aa4e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDetailsElement.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLDetailsElement extends HTMLElement +{ + // HTMLDetailsElement + public boolean getOpen(); + public void setOpen(boolean open); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDirectoryElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDirectoryElement.java new file mode 100644 index 00000000..e519a358 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDirectoryElement.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLDirectoryElement extends HTMLElement +{ + // HTMLDirectoryElement + public boolean getCompact(); + public void setCompact(boolean compact); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDivElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDivElement.java new file mode 100644 index 00000000..ca2b5e0d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDivElement.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLDivElement extends HTMLElement +{ + // HTMLDivElement + // HTMLDivElement-13 + public String getAlign(); + public void setAlign(String align); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDocument.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDocument.java new file mode 100644 index 00000000..e35dd461 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDocument.java @@ -0,0 +1,185 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMElementMap; +import org.w3c.dom.Element; +import org.w3c.dom.NodeList; + +public interface HTMLDocument +{ + // HTMLDocument + public Location getLocation(); + public void setLocation(String location); + public String getURL(); + public String getDomain(); + public void setDomain(String domain); + public String getReferrer(); + public String getCookie(); + public void setCookie(String cookie); + public String getLastModified(); + public String getReadyState(); + public Object getElement(String name); + public String getTitle(); + public void setTitle(String title); + public String getDir(); + public void setDir(String dir); + public HTMLElement getBody(); + public void setBody(HTMLElement body); + public HTMLHeadElement getHead(); + public HTMLCollection getImages(); + public HTMLCollection getEmbeds(); + public HTMLCollection getPlugins(); + public HTMLCollection getLinks(); + public HTMLCollection getForms(); + public HTMLCollection getScripts(); + public NodeList getElementsByName(String elementName); + public DOMElementMap getCssElementMap(); + public String getInnerHTML(); + public void setInnerHTML(String innerHTML); + public HTMLDocument open(); + public HTMLDocument open(String type); + public HTMLDocument open(String type, String replace); + public Window open(String url, String name, String features); + public Window open(String url, String name, String features, boolean replace); + public void close(); + public void write(String... text); + public void writeln(String... text); + public Window getDefaultView(); + public Element getActiveElement(); + public boolean hasFocus(); + public String getDesignMode(); + public void setDesignMode(String designMode); + public boolean execCommand(String commandId); + public boolean execCommand(String commandId, boolean showUI); + public boolean execCommand(String commandId, boolean showUI, String value); + public boolean queryCommandEnabled(String commandId); + public boolean queryCommandIndeterm(String commandId); + public boolean queryCommandState(String commandId); + public boolean queryCommandSupported(String commandId); + public String queryCommandValue(String commandId); + public HTMLCollection getCommands(); + public Function getOnabort(); + public void setOnabort(Function onabort); + public Function getOnblur(); + public void setOnblur(Function onblur); + public Function getOncanplay(); + public void setOncanplay(Function oncanplay); + public Function getOncanplaythrough(); + public void setOncanplaythrough(Function oncanplaythrough); + public Function getOnchange(); + public void setOnchange(Function onchange); + public Function getOnclick(); + public void setOnclick(Function onclick); + public Function getOncontextmenu(); + public void setOncontextmenu(Function oncontextmenu); + public Function getOncuechange(); + public void setOncuechange(Function oncuechange); + public Function getOndblclick(); + public void setOndblclick(Function ondblclick); + public Function getOndrag(); + public void setOndrag(Function ondrag); + public Function getOndragend(); + public void setOndragend(Function ondragend); + public Function getOndragenter(); + public void setOndragenter(Function ondragenter); + public Function getOndragleave(); + public void setOndragleave(Function ondragleave); + public Function getOndragover(); + public void setOndragover(Function ondragover); + public Function getOndragstart(); + public void setOndragstart(Function ondragstart); + public Function getOndrop(); + public void setOndrop(Function ondrop); + public Function getOndurationchange(); + public void setOndurationchange(Function ondurationchange); + public Function getOnemptied(); + public void setOnemptied(Function onemptied); + public Function getOnended(); + public void setOnended(Function onended); + public Function getOnerror(); + public void setOnerror(Function onerror); + public Function getOnfocus(); + public void setOnfocus(Function onfocus); + public Function getOninput(); + public void setOninput(Function oninput); + public Function getOninvalid(); + public void setOninvalid(Function oninvalid); + public Function getOnkeydown(); + public void setOnkeydown(Function onkeydown); + public Function getOnkeypress(); + public void setOnkeypress(Function onkeypress); + public Function getOnkeyup(); + public void setOnkeyup(Function onkeyup); + public Function getOnload(); + public void setOnload(Function onload); + public Function getOnloadeddata(); + public void setOnloadeddata(Function onloadeddata); + public Function getOnloadedmetadata(); + public void setOnloadedmetadata(Function onloadedmetadata); + public Function getOnloadstart(); + public void setOnloadstart(Function onloadstart); + public Function getOnmousedown(); + public void setOnmousedown(Function onmousedown); + public Function getOnmousemove(); + public void setOnmousemove(Function onmousemove); + public Function getOnmouseout(); + public void setOnmouseout(Function onmouseout); + public Function getOnmouseover(); + public void setOnmouseover(Function onmouseover); + public Function getOnmouseup(); + public void setOnmouseup(Function onmouseup); + public Function getOnmousewheel(); + public void setOnmousewheel(Function onmousewheel); + public Function getOnpause(); + public void setOnpause(Function onpause); + public Function getOnplay(); + public void setOnplay(Function onplay); + public Function getOnplaying(); + public void setOnplaying(Function onplaying); + public Function getOnprogress(); + public void setOnprogress(Function onprogress); + public Function getOnratechange(); + public void setOnratechange(Function onratechange); + public Function getOnreadystatechange(); + public void setOnreadystatechange(Function onreadystatechange); + public Function getOnreset(); + public void setOnreset(Function onreset); + public Function getOnscroll(); + public void setOnscroll(Function onscroll); + public Function getOnseeked(); + public void setOnseeked(Function onseeked); + public Function getOnseeking(); + public void setOnseeking(Function onseeking); + public Function getOnselect(); + public void setOnselect(Function onselect); + public Function getOnshow(); + public void setOnshow(Function onshow); + public Function getOnstalled(); + public void setOnstalled(Function onstalled); + public Function getOnsubmit(); + public void setOnsubmit(Function onsubmit); + public Function getOnsuspend(); + public void setOnsuspend(Function onsuspend); + public Function getOntimeupdate(); + public void setOntimeupdate(Function ontimeupdate); + public Function getOnvolumechange(); + public void setOnvolumechange(Function onvolumechange); + public Function getOnwaiting(); + public void setOnwaiting(Function onwaiting); + // HTMLDocument-38 + public String getFgColor(); + public void setFgColor(String fgColor); + public String getBgColor(); + public void setBgColor(String bgColor); + public String getLinkColor(); + public void setLinkColor(String linkColor); + public String getVlinkColor(); + public void setVlinkColor(String vlinkColor); + public String getAlinkColor(); + public void setAlinkColor(String alinkColor); + public HTMLCollection getAnchors(); + public HTMLCollection getApplets(); + public void clear(); + public HTMLAllCollection getAll(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLElement.java new file mode 100644 index 00000000..21598047 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLElement.java @@ -0,0 +1,187 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMSettableTokenList; +import org.w3c.dom.DOMStringMap; +import org.w3c.dom.DOMTokenList; +import org.w3c.dom.Element; +import org.w3c.dom.NodeList; +import org.w3c.dom.css.CSSStyleDeclaration; + +public interface HTMLElement extends Element +{ + // HTMLElement + public NodeList getElementsByClassName(String classNames); + public String getInnerHTML(); + public void setInnerHTML(String innerHTML); + public String getOuterHTML(); + public void setOuterHTML(String outerHTML); + public void insertAdjacentHTML(String position, String text); + public String getId(); + public void setId(String id); + public String getTitle(); + public void setTitle(String title); + public String getLang(); + public void setLang(String lang); + public String getDir(); + public void setDir(String dir); + public String getClassName(); + public void setClassName(String className); + public DOMTokenList getClassList(); + public DOMStringMap getDataset(); + public boolean getItemScope(); + public void setItemScope(boolean itemScope); + public String getItemType(); + public void setItemType(String itemType); + public String getItemId(); + public void setItemId(String itemId); + public DOMSettableTokenList getItemRef(); + public void setItemRef(String itemRef); + public DOMSettableTokenList getItemProp(); + public void setItemProp(String itemProp); + public HTMLPropertiesCollection getProperties(); + public Object getItemValue(); + public void setItemValue(Object itemValue); + public boolean getHidden(); + public void setHidden(boolean hidden); + public void click(); + public int getTabIndex(); + public void setTabIndex(int tabIndex); + public void focus(); + public void blur(); + public String getAccessKey(); + public void setAccessKey(String accessKey); + public String getAccessKeyLabel(); + public boolean getDraggable(); + public void setDraggable(boolean draggable); + public DOMSettableTokenList getDropzone(); + public void setDropzone(String dropzone); + public String getContentEditable(); + public void setContentEditable(String contentEditable); + public boolean getIsContentEditable(); + public HTMLMenuElement getContextMenu(); + public void setContextMenu(HTMLMenuElement contextMenu); + public boolean getSpellcheck(); + public void setSpellcheck(boolean spellcheck); + public String getCommandType(); + public String getLabel(); + public String getIcon(); + public boolean getDisabled(); + public boolean getChecked(); + public CSSStyleDeclaration getStyle(); + public Function getOnabort(); + public void setOnabort(Function onabort); + public Function getOnblur(); + public void setOnblur(Function onblur); + public Function getOncanplay(); + public void setOncanplay(Function oncanplay); + public Function getOncanplaythrough(); + public void setOncanplaythrough(Function oncanplaythrough); + public Function getOnchange(); + public void setOnchange(Function onchange); + public Function getOnclick(); + public void setOnclick(Function onclick); + public Function getOncontextmenu(); + public void setOncontextmenu(Function oncontextmenu); + public Function getOncuechange(); + public void setOncuechange(Function oncuechange); + public Function getOndblclick(); + public void setOndblclick(Function ondblclick); + public Function getOndrag(); + public void setOndrag(Function ondrag); + public Function getOndragend(); + public void setOndragend(Function ondragend); + public Function getOndragenter(); + public void setOndragenter(Function ondragenter); + public Function getOndragleave(); + public void setOndragleave(Function ondragleave); + public Function getOndragover(); + public void setOndragover(Function ondragover); + public Function getOndragstart(); + public void setOndragstart(Function ondragstart); + public Function getOndrop(); + public void setOndrop(Function ondrop); + public Function getOndurationchange(); + public void setOndurationchange(Function ondurationchange); + public Function getOnemptied(); + public void setOnemptied(Function onemptied); + public Function getOnended(); + public void setOnended(Function onended); + public Function getOnerror(); + public void setOnerror(Function onerror); + public Function getOnfocus(); + public void setOnfocus(Function onfocus); + public Function getOninput(); + public void setOninput(Function oninput); + public Function getOninvalid(); + public void setOninvalid(Function oninvalid); + public Function getOnkeydown(); + public void setOnkeydown(Function onkeydown); + public Function getOnkeypress(); + public void setOnkeypress(Function onkeypress); + public Function getOnkeyup(); + public void setOnkeyup(Function onkeyup); + public Function getOnload(); + public void setOnload(Function onload); + public Function getOnloadeddata(); + public void setOnloadeddata(Function onloadeddata); + public Function getOnloadedmetadata(); + public void setOnloadedmetadata(Function onloadedmetadata); + public Function getOnloadstart(); + public void setOnloadstart(Function onloadstart); + public Function getOnmousedown(); + public void setOnmousedown(Function onmousedown); + public Function getOnmousemove(); + public void setOnmousemove(Function onmousemove); + public Function getOnmouseout(); + public void setOnmouseout(Function onmouseout); + public Function getOnmouseover(); + public void setOnmouseover(Function onmouseover); + public Function getOnmouseup(); + public void setOnmouseup(Function onmouseup); + public Function getOnmousewheel(); + public void setOnmousewheel(Function onmousewheel); + public Function getOnpause(); + public void setOnpause(Function onpause); + public Function getOnplay(); + public void setOnplay(Function onplay); + public Function getOnplaying(); + public void setOnplaying(Function onplaying); + public Function getOnprogress(); + public void setOnprogress(Function onprogress); + public Function getOnratechange(); + public void setOnratechange(Function onratechange); + public Function getOnreadystatechange(); + public void setOnreadystatechange(Function onreadystatechange); + public Function getOnreset(); + public void setOnreset(Function onreset); + public Function getOnscroll(); + public void setOnscroll(Function onscroll); + public Function getOnseeked(); + public void setOnseeked(Function onseeked); + public Function getOnseeking(); + public void setOnseeking(Function onseeking); + public Function getOnselect(); + public void setOnselect(Function onselect); + public Function getOnshow(); + public void setOnshow(Function onshow); + public Function getOnstalled(); + public void setOnstalled(Function onstalled); + public Function getOnsubmit(); + public void setOnsubmit(Function onsubmit); + public Function getOnsuspend(); + public void setOnsuspend(Function onsuspend); + public Function getOntimeupdate(); + public void setOntimeupdate(Function ontimeupdate); + public Function getOnvolumechange(); + public void setOnvolumechange(Function onvolumechange); + public Function getOnwaiting(); + public void setOnwaiting(Function onwaiting); + // HTMLElement-6 + public Element getOffsetParent(); + public int getOffsetTop(); + public int getOffsetLeft(); + public int getOffsetWidth(); + public int getOffsetHeight(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLEmbedElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLEmbedElement.java new file mode 100644 index 00000000..6065c86c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLEmbedElement.java @@ -0,0 +1,21 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLEmbedElement extends HTMLElement +{ + // HTMLEmbedElement + public String getSrc(); + public void setSrc(String src); + public String getType(); + public void setType(String type); + public String getWidth(); + public void setWidth(String width); + public String getHeight(); + public void setHeight(String height); + // HTMLEmbedElement-15 + public String getAlign(); + public void setAlign(String align); + public String getName(); + public void setName(String name); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFieldSetElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFieldSetElement.java new file mode 100644 index 00000000..600d281d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFieldSetElement.java @@ -0,0 +1,20 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLFieldSetElement extends HTMLElement +{ + // HTMLFieldSetElement + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public HTMLFormElement getForm(); + public String getName(); + public void setName(String name); + public String getType(); + public HTMLFormControlsCollection getElements(); + public boolean getWillValidate(); + public ValidityState getValidity(); + public String getValidationMessage(); + public boolean checkValidity(); + public void setCustomValidity(String error); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFontElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFontElement.java new file mode 100644 index 00000000..d3439da1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFontElement.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLFontElement extends HTMLElement +{ + // HTMLFontElement + public String getColor(); + public void setColor(String color); + public String getFace(); + public void setFace(String face); + public String getSize(); + public void setSize(String size); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormControlsCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormControlsCollection.java new file mode 100644 index 00000000..19cf1b95 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormControlsCollection.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLFormControlsCollection extends HTMLCollection +{ + // HTMLFormControlsCollection + public Object namedItem(String name); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormElement.java new file mode 100644 index 00000000..9d7ea4ea --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormElement.java @@ -0,0 +1,33 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLFormElement extends HTMLElement +{ + // HTMLFormElement + public String getAcceptCharset(); + public void setAcceptCharset(String acceptCharset); + public String getAction(); + public void setAction(String action); + public String getAutocomplete(); + public void setAutocomplete(String autocomplete); + public String getEnctype(); + public void setEnctype(String enctype); + public String getEncoding(); + public void setEncoding(String encoding); + public String getMethod(); + public void setMethod(String method); + public String getName(); + public void setName(String name); + public boolean getNoValidate(); + public void setNoValidate(boolean noValidate); + public String getTarget(); + public void setTarget(String target); + public HTMLFormControlsCollection getElements(); + public int getLength(); + public Object getElement(int index); + public Object getElement(String name); + public void submit(); + public void reset(); + public boolean checkValidity(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameElement.java new file mode 100644 index 00000000..15ec048d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameElement.java @@ -0,0 +1,28 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.Document; + +public interface HTMLFrameElement extends HTMLElement +{ + // HTMLFrameElement + public String getFrameBorder(); + public void setFrameBorder(String frameBorder); + public String getLongDesc(); + public void setLongDesc(String longDesc); + public String getMarginHeight(); + public void setMarginHeight(String marginHeight); + public String getMarginWidth(); + public void setMarginWidth(String marginWidth); + public String getName(); + public void setName(String name); + public boolean getNoResize(); + public void setNoResize(boolean noResize); + public String getScrolling(); + public void setScrolling(String scrolling); + public String getSrc(); + public void setSrc(String src); + public Document getContentDocument(); + public Window getContentWindow(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameSetElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameSetElement.java new file mode 100644 index 00000000..8989e00b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameSetElement.java @@ -0,0 +1,52 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLFrameSetElement extends HTMLElement +{ + // HTMLFrameSetElement + public String getCols(); + public void setCols(String cols); + public String getRows(); + public void setRows(String rows); + public Function getOnafterprint(); + public void setOnafterprint(Function onafterprint); + public Function getOnbeforeprint(); + public void setOnbeforeprint(Function onbeforeprint); + public Function getOnbeforeunload(); + public void setOnbeforeunload(Function onbeforeunload); + public Function getOnblur(); + public void setOnblur(Function onblur); + public Function getOnerror(); + public void setOnerror(Function onerror); + public Function getOnfocus(); + public void setOnfocus(Function onfocus); + public Function getOnhashchange(); + public void setOnhashchange(Function onhashchange); + public Function getOnload(); + public void setOnload(Function onload); + public Function getOnmessage(); + public void setOnmessage(Function onmessage); + public Function getOnoffline(); + public void setOnoffline(Function onoffline); + public Function getOnonline(); + public void setOnonline(Function ononline); + public Function getOnpagehide(); + public void setOnpagehide(Function onpagehide); + public Function getOnpageshow(); + public void setOnpageshow(Function onpageshow); + public Function getOnpopstate(); + public void setOnpopstate(Function onpopstate); + public Function getOnredo(); + public void setOnredo(Function onredo); + public Function getOnresize(); + public void setOnresize(Function onresize); + public Function getOnscroll(); + public void setOnscroll(Function onscroll); + public Function getOnstorage(); + public void setOnstorage(Function onstorage); + public Function getOnundo(); + public void setOnundo(Function onundo); + public Function getOnunload(); + public void setOnunload(Function onunload); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHRElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHRElement.java new file mode 100644 index 00000000..aefbab06 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHRElement.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLHRElement extends HTMLElement +{ + // HTMLHRElement + // HTMLHRElement-17 + public String getAlign(); + public void setAlign(String align); + public String getColor(); + public void setColor(String color); + public boolean getNoShade(); + public void setNoShade(boolean noShade); + public String getSize(); + public void setSize(String size); + public String getWidth(); + public void setWidth(String width); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadElement.java new file mode 100644 index 00000000..012b92e1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadElement.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLHeadElement extends HTMLElement +{ + // HTMLHeadElement +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadingElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadingElement.java new file mode 100644 index 00000000..0b10030c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadingElement.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLHeadingElement extends HTMLElement +{ + // HTMLHeadingElement + // HTMLHeadingElement-16 + public String getAlign(); + public void setAlign(String align); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHtmlElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHtmlElement.java new file mode 100644 index 00000000..e8e3c82e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHtmlElement.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLHtmlElement extends HTMLElement +{ + // HTMLHtmlElement + // HTMLHtmlElement-18 + public String getVersion(); + public void setVersion(String version); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLIFrameElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLIFrameElement.java new file mode 100644 index 00000000..d47e6d00 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLIFrameElement.java @@ -0,0 +1,40 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMSettableTokenList; +import org.w3c.dom.Document; + +public interface HTMLIFrameElement extends HTMLElement +{ + // HTMLIFrameElement + public String getSrc(); + public void setSrc(String src); + public String getSrcdoc(); + public void setSrcdoc(String srcdoc); + public String getName(); + public void setName(String name); + public DOMSettableTokenList getSandbox(); + public void setSandbox(String sandbox); + public boolean getSeamless(); + public void setSeamless(boolean seamless); + public String getWidth(); + public void setWidth(String width); + public String getHeight(); + public void setHeight(String height); + public Document getContentDocument(); + public Window getContentWindow(); + // HTMLIFrameElement-19 + public String getAlign(); + public void setAlign(String align); + public String getFrameBorder(); + public void setFrameBorder(String frameBorder); + public String getLongDesc(); + public void setLongDesc(String longDesc); + public String getMarginHeight(); + public void setMarginHeight(String marginHeight); + public String getMarginWidth(); + public void setMarginWidth(String marginWidth); + public String getScrolling(); + public void setScrolling(String scrolling); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement.java new file mode 100644 index 00000000..e4b6b2ee --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement.java @@ -0,0 +1,38 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLImageElement extends HTMLElement +{ + // HTMLImageElement + public String getAlt(); + public void setAlt(String alt); + public String getSrc(); + public void setSrc(String src); + public String getCrossOrigin(); + public void setCrossOrigin(String crossOrigin); + public String getUseMap(); + public void setUseMap(String useMap); + public boolean getIsMap(); + public void setIsMap(boolean isMap); + public int getWidth(); + public void setWidth(int width); + public int getHeight(); + public void setHeight(int height); + public int getNaturalWidth(); + public int getNaturalHeight(); + public boolean getComplete(); + // HTMLImageElement-20 + public String getName(); + public void setName(String name); + public String getAlign(); + public void setAlign(String align); + public String getBorder(); + public void setBorder(String border); + public int getHspace(); + public void setHspace(int hspace); + public String getLongDesc(); + public void setLongDesc(String longDesc); + public int getVspace(); + public void setVspace(int vspace); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement_Constructor.java new file mode 100644 index 00000000..43de48f3 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement_Constructor.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLImageElement_Constructor +{ + // Constructor + public HTMLImageElement createInstance(); + public HTMLImageElement createInstance(int width); + public HTMLImageElement createInstance(int width, int height); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLInputElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLInputElement.java new file mode 100644 index 00000000..9980d4a1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLInputElement.java @@ -0,0 +1,105 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; +import org.w3c.dom.file.FileList; + +public interface HTMLInputElement extends HTMLElement +{ + // HTMLInputElement + public String getAccept(); + public void setAccept(String accept); + public String getAlt(); + public void setAlt(String alt); + public String getAutocomplete(); + public void setAutocomplete(String autocomplete); + public boolean getAutofocus(); + public void setAutofocus(boolean autofocus); + public boolean getDefaultChecked(); + public void setDefaultChecked(boolean defaultChecked); + public boolean getChecked(); + public void setChecked(boolean checked); + public String getDirName(); + public void setDirName(String dirName); + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public HTMLFormElement getForm(); + public FileList getFiles(); + public String getFormAction(); + public void setFormAction(String formAction); + public String getFormEnctype(); + public void setFormEnctype(String formEnctype); + public String getFormMethod(); + public void setFormMethod(String formMethod); + public boolean getFormNoValidate(); + public void setFormNoValidate(boolean formNoValidate); + public String getFormTarget(); + public void setFormTarget(String formTarget); + public String getHeight(); + public void setHeight(String height); + public boolean getIndeterminate(); + public void setIndeterminate(boolean indeterminate); + public HTMLElement getList(); + public String getMax(); + public void setMax(String max); + public int getMaxLength(); + public void setMaxLength(int maxLength); + public String getMin(); + public void setMin(String min); + public boolean getMultiple(); + public void setMultiple(boolean multiple); + public String getName(); + public void setName(String name); + public String getPattern(); + public void setPattern(String pattern); + public String getPlaceholder(); + public void setPlaceholder(String placeholder); + public boolean getReadOnly(); + public void setReadOnly(boolean readOnly); + public boolean getRequired(); + public void setRequired(boolean required); + public int getSize(); + public void setSize(int size); + public String getSrc(); + public void setSrc(String src); + public String getStep(); + public void setStep(String step); + public String getType(); + public void setType(String type); + public String getDefaultValue(); + public void setDefaultValue(String defaultValue); + public String getValue(); + public void setValue(String value); + public long getValueAsDate(); + public void setValueAsDate(long valueAsDate); + public double getValueAsNumber(); + public void setValueAsNumber(double valueAsNumber); + public HTMLOptionElement getSelectedOption(); + public String getWidth(); + public void setWidth(String width); + public void stepUp(); + public void stepUp(int n); + public void stepDown(); + public void stepDown(int n); + public boolean getWillValidate(); + public ValidityState getValidity(); + public String getValidationMessage(); + public boolean checkValidity(); + public void setCustomValidity(String error); + public NodeList getLabels(); + public void select(); + public int getSelectionStart(); + public void setSelectionStart(int selectionStart); + public int getSelectionEnd(); + public void setSelectionEnd(int selectionEnd); + public String getSelectionDirection(); + public void setSelectionDirection(String selectionDirection); + public void setSelectionRange(int start, int end); + public void setSelectionRange(int start, int end, String direction); + // HTMLInputElement-21 + public String getAlign(); + public void setAlign(String align); + public String getUseMap(); + public void setUseMap(String useMap); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLKeygenElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLKeygenElement.java new file mode 100644 index 00000000..59b6fb60 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLKeygenElement.java @@ -0,0 +1,28 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; + +public interface HTMLKeygenElement extends HTMLElement +{ + // HTMLKeygenElement + public boolean getAutofocus(); + public void setAutofocus(boolean autofocus); + public String getChallenge(); + public void setChallenge(String challenge); + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public HTMLFormElement getForm(); + public String getKeytype(); + public void setKeytype(String keytype); + public String getName(); + public void setName(String name); + public String getType(); + public boolean getWillValidate(); + public ValidityState getValidity(); + public String getValidationMessage(); + public boolean checkValidity(); + public void setCustomValidity(String error); + public NodeList getLabels(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLIElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLIElement.java new file mode 100644 index 00000000..200c4f6a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLIElement.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLLIElement extends HTMLElement +{ + // HTMLLIElement + public int getValue(); + public void setValue(int value); + // HTMLLIElement-23 + public String getType(); + public void setType(String type); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLabelElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLabelElement.java new file mode 100644 index 00000000..973d6ca5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLabelElement.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLLabelElement extends HTMLElement +{ + // HTMLLabelElement + public HTMLFormElement getForm(); + public String getHtmlFor(); + public void setHtmlFor(String htmlFor); + public HTMLElement getControl(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLegendElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLegendElement.java new file mode 100644 index 00000000..5798cf4a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLegendElement.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLLegendElement extends HTMLElement +{ + // HTMLLegendElement + public HTMLFormElement getForm(); + // HTMLLegendElement-22 + public String getAlign(); + public void setAlign(String align); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLinkElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLinkElement.java new file mode 100644 index 00000000..0a37d2bd --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLinkElement.java @@ -0,0 +1,33 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMSettableTokenList; +import org.w3c.dom.DOMTokenList; + +public interface HTMLLinkElement extends HTMLElement +{ + // HTMLLinkElement + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public String getHref(); + public void setHref(String href); + public String getRel(); + public void setRel(String rel); + public DOMTokenList getRelList(); + public String getMedia(); + public void setMedia(String media); + public String getHreflang(); + public void setHreflang(String hreflang); + public String getType(); + public void setType(String type); + public DOMSettableTokenList getSizes(); + public void setSizes(String sizes); + // HTMLLinkElement-24 + public String getCharset(); + public void setCharset(String charset); + public String getRev(); + public void setRev(String rev); + public String getTarget(); + public void setTarget(String target); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMapElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMapElement.java new file mode 100644 index 00000000..ad6b4fce --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMapElement.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLMapElement extends HTMLElement +{ + // HTMLMapElement + public String getName(); + public void setName(String name); + public HTMLCollection getAreas(); + public HTMLCollection getImages(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMarqueeElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMarqueeElement.java new file mode 100644 index 00000000..8fd81a3c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMarqueeElement.java @@ -0,0 +1,38 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLMarqueeElement extends HTMLElement +{ + // HTMLMarqueeElement + public String getBehavior(); + public void setBehavior(String behavior); + public String getBgColor(); + public void setBgColor(String bgColor); + public String getDirection(); + public void setDirection(String direction); + public String getHeight(); + public void setHeight(String height); + public int getHspace(); + public void setHspace(int hspace); + public int getLoop(); + public void setLoop(int loop); + public int getScrollAmount(); + public void setScrollAmount(int scrollAmount); + public int getScrollDelay(); + public void setScrollDelay(int scrollDelay); + public boolean getTrueSpeed(); + public void setTrueSpeed(boolean trueSpeed); + public int getVspace(); + public void setVspace(int vspace); + public String getWidth(); + public void setWidth(String width); + public Function getOnbounce(); + public void setOnbounce(Function onbounce); + public Function getOnfinish(); + public void setOnfinish(Function onfinish); + public Function getOnstart(); + public void setOnstart(Function onstart); + public void start(); + public void stop(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMediaElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMediaElement.java new file mode 100644 index 00000000..e2d9a522 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMediaElement.java @@ -0,0 +1,70 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.ObjectArray; + +public interface HTMLMediaElement extends HTMLElement +{ + // HTMLMediaElement + public MediaError getError(); + public String getSrc(); + public void setSrc(String src); + public String getCurrentSrc(); + public String getCrossOrigin(); + public void setCrossOrigin(String crossOrigin); + public static final short NETWORK_EMPTY = 0; + public static final short NETWORK_IDLE = 1; + public static final short NETWORK_LOADING = 2; + public static final short NETWORK_NO_SOURCE = 3; + public short getNetworkState(); + public String getPreload(); + public void setPreload(String preload); + public TimeRanges getBuffered(); + public void load(); + public String canPlayType(String type); + public static final short HAVE_NOTHING = 0; + public static final short HAVE_METADATA = 1; + public static final short HAVE_CURRENT_DATA = 2; + public static final short HAVE_FUTURE_DATA = 3; + public static final short HAVE_ENOUGH_DATA = 4; + public short getReadyState(); + public boolean getSeeking(); + public double getCurrentTime(); + public void setCurrentTime(double currentTime); + public double getInitialTime(); + public double getDuration(); + public long getStartOffsetTime(); + public boolean getPaused(); + public double getDefaultPlaybackRate(); + public void setDefaultPlaybackRate(double defaultPlaybackRate); + public double getPlaybackRate(); + public void setPlaybackRate(double playbackRate); + public TimeRanges getPlayed(); + public TimeRanges getSeekable(); + public boolean getEnded(); + public boolean getAutoplay(); + public void setAutoplay(boolean autoplay); + public boolean getLoop(); + public void setLoop(boolean loop); + public void play(); + public void pause(); + public String getMediaGroup(); + public void setMediaGroup(String mediaGroup); + public MediaController getController(); + public void setController(MediaController controller); + public boolean getControls(); + public void setControls(boolean controls); + public double getVolume(); + public void setVolume(double volume); + public boolean getMuted(); + public void setMuted(boolean muted); + public boolean getDefaultMuted(); + public void setDefaultMuted(boolean defaultMuted); + public AudioTrackList getAudioTracks(); + public VideoTrackList getVideoTracks(); + public ObjectArray getTextTracks(); + public MutableTextTrack addTextTrack(String kind); + public MutableTextTrack addTextTrack(String kind, String label); + public MutableTextTrack addTextTrack(String kind, String label, String language); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMenuElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMenuElement.java new file mode 100644 index 00000000..9e3ab532 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMenuElement.java @@ -0,0 +1,15 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLMenuElement extends HTMLElement +{ + // HTMLMenuElement + public String getType(); + public void setType(String type); + public String getLabel(); + public void setLabel(String label); + // HTMLMenuElement-25 + public boolean getCompact(); + public void setCompact(boolean compact); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMetaElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMetaElement.java new file mode 100644 index 00000000..a07ac017 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMetaElement.java @@ -0,0 +1,17 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLMetaElement extends HTMLElement +{ + // HTMLMetaElement + public String getName(); + public void setName(String name); + public String getHttpEquiv(); + public void setHttpEquiv(String httpEquiv); + public String getContent(); + public void setContent(String content); + // HTMLMetaElement-26 + public String getScheme(); + public void setScheme(String scheme); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMeterElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMeterElement.java new file mode 100644 index 00000000..fc917196 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMeterElement.java @@ -0,0 +1,23 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; + +public interface HTMLMeterElement extends HTMLElement +{ + // HTMLMeterElement + public double getValue(); + public void setValue(double value); + public double getMin(); + public void setMin(double min); + public double getMax(); + public void setMax(double max); + public double getLow(); + public void setLow(double low); + public double getHigh(); + public void setHigh(double high); + public double getOptimum(); + public void setOptimum(double optimum); + public NodeList getLabels(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLModElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLModElement.java new file mode 100644 index 00000000..be54a337 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLModElement.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLModElement extends HTMLElement +{ + // HTMLModElement + public String getCite(); + public void setCite(String cite); + public String getDateTime(); + public void setDateTime(String dateTime); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOListElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOListElement.java new file mode 100644 index 00000000..db5eea0a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOListElement.java @@ -0,0 +1,17 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLOListElement extends HTMLElement +{ + // HTMLOListElement + public boolean getReversed(); + public void setReversed(boolean reversed); + public int getStart(); + public void setStart(int start); + public String getType(); + public void setType(String type); + // HTMLOListElement-28 + public boolean getCompact(); + public void setCompact(boolean compact); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLObjectElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLObjectElement.java new file mode 100644 index 00000000..4de28384 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLObjectElement.java @@ -0,0 +1,53 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.Document; + +public interface HTMLObjectElement extends HTMLElement +{ + // HTMLObjectElement + public String getData(); + public void setData(String data); + public String getType(); + public void setType(String type); + public boolean getTypeMustMatch(); + public void setTypeMustMatch(boolean typeMustMatch); + public String getName(); + public void setName(String name); + public String getUseMap(); + public void setUseMap(String useMap); + public HTMLFormElement getForm(); + public String getWidth(); + public void setWidth(String width); + public String getHeight(); + public void setHeight(String height); + public Document getContentDocument(); + public Window getContentWindow(); + public boolean getWillValidate(); + public ValidityState getValidity(); + public String getValidationMessage(); + public boolean checkValidity(); + public void setCustomValidity(String error); + // HTMLObjectElement-27 + public String getAlign(); + public void setAlign(String align); + public String getArchive(); + public void setArchive(String archive); + public String getBorder(); + public void setBorder(String border); + public String getCode(); + public void setCode(String code); + public String getCodeBase(); + public void setCodeBase(String codeBase); + public String getCodeType(); + public void setCodeType(String codeType); + public boolean getDeclare(); + public void setDeclare(boolean declare); + public int getHspace(); + public void setHspace(int hspace); + public String getStandby(); + public void setStandby(String standby); + public int getVspace(); + public void setVspace(int vspace); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptGroupElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptGroupElement.java new file mode 100644 index 00000000..432ba7b2 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptGroupElement.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLOptGroupElement extends HTMLElement +{ + // HTMLOptGroupElement + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public String getLabel(); + public void setLabel(String label); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement.java new file mode 100644 index 00000000..2449a485 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement.java @@ -0,0 +1,22 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLOptionElement extends HTMLElement +{ + // HTMLOptionElement + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public HTMLFormElement getForm(); + public String getLabel(); + public void setLabel(String label); + public boolean getDefaultSelected(); + public void setDefaultSelected(boolean defaultSelected); + public boolean getSelected(); + public void setSelected(boolean selected); + public String getValue(); + public void setValue(String value); + public String getText(); + public void setText(String text); + public int getIndex(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement_Constructor.java new file mode 100644 index 00000000..d8f851b0 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement_Constructor.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLOptionElement_Constructor +{ + // Constructor + public HTMLOptionElement createInstance(); + public HTMLOptionElement createInstance(String text); + public HTMLOptionElement createInstance(String text, String value); + public HTMLOptionElement createInstance(String text, String value, boolean defaultSelected); + public HTMLOptionElement createInstance(String text, String value, boolean defaultSelected, boolean selected); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionsCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionsCollection.java new file mode 100644 index 00000000..6b7eb6fc --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionsCollection.java @@ -0,0 +1,17 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLOptionsCollection extends HTMLCollection +{ + // HTMLOptionsCollection + public int getLength(); + public void setLength(int length); + public Object namedItem(String name); + public void add(HTMLElement element); + public void add(HTMLElement element, HTMLElement before); + public void add(HTMLElement element, int before); + public void remove(int index); + public int getSelectedIndex(); + public void setSelectedIndex(int selectedIndex); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOutputElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOutputElement.java new file mode 100644 index 00000000..ec3ed7c5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOutputElement.java @@ -0,0 +1,27 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMSettableTokenList; +import org.w3c.dom.NodeList; + +public interface HTMLOutputElement extends HTMLElement +{ + // HTMLOutputElement + public DOMSettableTokenList getHtmlFor(); + public void setHtmlFor(String htmlFor); + public HTMLFormElement getForm(); + public String getName(); + public void setName(String name); + public String getType(); + public String getDefaultValue(); + public void setDefaultValue(String defaultValue); + public String getValue(); + public void setValue(String value); + public boolean getWillValidate(); + public ValidityState getValidity(); + public String getValidationMessage(); + public boolean checkValidity(); + public void setCustomValidity(String error); + public NodeList getLabels(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParagraphElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParagraphElement.java new file mode 100644 index 00000000..5b28a513 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParagraphElement.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLParagraphElement extends HTMLElement +{ + // HTMLParagraphElement + // HTMLParagraphElement-29 + public String getAlign(); + public void setAlign(String align); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParamElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParamElement.java new file mode 100644 index 00000000..6d799b24 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParamElement.java @@ -0,0 +1,17 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLParamElement extends HTMLElement +{ + // HTMLParamElement + public String getName(); + public void setName(String name); + public String getValue(); + public void setValue(String value); + // HTMLParamElement-30 + public String getType(); + public void setType(String type); + public String getValueType(); + public void setValueType(String valueType); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPreElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPreElement.java new file mode 100644 index 00000000..0f83da95 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPreElement.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLPreElement extends HTMLElement +{ + // HTMLPreElement + // HTMLPreElement-31 + public int getWidth(); + public void setWidth(int width); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLProgressElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLProgressElement.java new file mode 100644 index 00000000..bd198290 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLProgressElement.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; + +public interface HTMLProgressElement extends HTMLElement +{ + // HTMLProgressElement + public double getValue(); + public void setValue(double value); + public double getMax(); + public void setMax(double max); + public double getPosition(); + public NodeList getLabels(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPropertiesCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPropertiesCollection.java new file mode 100644 index 00000000..c6e57480 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPropertiesCollection.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMStringList; + +public interface HTMLPropertiesCollection extends HTMLCollection +{ + // HTMLPropertiesCollection + public PropertyNodeList namedItem(String name); + public DOMStringList getNames(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLQuoteElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLQuoteElement.java new file mode 100644 index 00000000..e7204a3a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLQuoteElement.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLQuoteElement extends HTMLElement +{ + // HTMLQuoteElement + public String getCite(); + public void setCite(String cite); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLScriptElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLScriptElement.java new file mode 100644 index 00000000..4a60bc89 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLScriptElement.java @@ -0,0 +1,25 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLScriptElement extends HTMLElement +{ + // HTMLScriptElement + public String getSrc(); + public void setSrc(String src); + public boolean getAsync(); + public void setAsync(boolean async); + public boolean getDefer(); + public void setDefer(boolean defer); + public String getType(); + public void setType(String type); + public String getCharset(); + public void setCharset(String charset); + public String getText(); + public void setText(String text); + // HTMLScriptElement-32 + public String getEvent(); + public void setEvent(String event); + public String getHtmlFor(); + public void setHtmlFor(String htmlFor); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSelectElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSelectElement.java new file mode 100644 index 00000000..ef325101 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSelectElement.java @@ -0,0 +1,44 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; + +public interface HTMLSelectElement extends HTMLElement +{ + // HTMLSelectElement + public boolean getAutofocus(); + public void setAutofocus(boolean autofocus); + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public HTMLFormElement getForm(); + public boolean getMultiple(); + public void setMultiple(boolean multiple); + public String getName(); + public void setName(String name); + public boolean getRequired(); + public void setRequired(boolean required); + public int getSize(); + public void setSize(int size); + public String getType(); + public HTMLOptionsCollection getOptions(); + public int getLength(); + public void setLength(int length); + public Object item(int index); + public Object namedItem(String name); + public void add(HTMLElement element); + public void add(HTMLElement element, HTMLElement before); + public void add(HTMLElement element, int before); + public void remove(int index); + public HTMLCollection getSelectedOptions(); + public int getSelectedIndex(); + public void setSelectedIndex(int selectedIndex); + public String getValue(); + public void setValue(String value); + public boolean getWillValidate(); + public ValidityState getValidity(); + public String getValidationMessage(); + public boolean checkValidity(); + public void setCustomValidity(String error); + public NodeList getLabels(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSourceElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSourceElement.java new file mode 100644 index 00000000..b0ea2e43 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSourceElement.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLSourceElement extends HTMLElement +{ + // HTMLSourceElement + public String getSrc(); + public void setSrc(String src); + public String getType(); + public void setType(String type); + public String getMedia(); + public void setMedia(String media); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSpanElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSpanElement.java new file mode 100644 index 00000000..c499af0f --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSpanElement.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLSpanElement extends HTMLElement +{ + // HTMLSpanElement +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLStyleElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLStyleElement.java new file mode 100644 index 00000000..e1ce6d2e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLStyleElement.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLStyleElement extends HTMLElement +{ + // HTMLStyleElement + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public String getMedia(); + public void setMedia(String media); + public String getType(); + public void setType(String type); + public boolean getScoped(); + public void setScoped(boolean scoped); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCaptionElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCaptionElement.java new file mode 100644 index 00000000..08d77fc9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCaptionElement.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTableCaptionElement extends HTMLElement +{ + // HTMLTableCaptionElement + // HTMLTableCaptionElement-11 + public String getAlign(); + public void setAlign(String align); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCellElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCellElement.java new file mode 100644 index 00000000..b3a87ab4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCellElement.java @@ -0,0 +1,38 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DOMSettableTokenList; + +public interface HTMLTableCellElement extends HTMLElement +{ + // HTMLTableCellElement + public int getColSpan(); + public void setColSpan(int colSpan); + public int getRowSpan(); + public void setRowSpan(int rowSpan); + public DOMSettableTokenList getHeaders(); + public void setHeaders(String headers); + public int getCellIndex(); + // HTMLTableCellElement-35 + public String getAbbr(); + public void setAbbr(String abbr); + public String getAlign(); + public void setAlign(String align); + public String getAxis(); + public void setAxis(String axis); + public String getBgColor(); + public void setBgColor(String bgColor); + public String getCh(); + public void setCh(String ch); + public String getChOff(); + public void setChOff(String chOff); + public String getHeight(); + public void setHeight(String height); + public boolean getNoWrap(); + public void setNoWrap(boolean noWrap); + public String getVAlign(); + public void setVAlign(String vAlign); + public String getWidth(); + public void setWidth(String width); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableColElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableColElement.java new file mode 100644 index 00000000..fba3facb --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableColElement.java @@ -0,0 +1,21 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTableColElement extends HTMLElement +{ + // HTMLTableColElement + public int getSpan(); + public void setSpan(int span); + // HTMLTableColElement-12 + public String getAlign(); + public void setAlign(String align); + public String getCh(); + public void setCh(String ch); + public String getChOff(); + public void setChOff(String chOff); + public String getVAlign(); + public void setVAlign(String vAlign); + public String getWidth(); + public void setWidth(String width); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableDataCellElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableDataCellElement.java new file mode 100644 index 00000000..6ad72349 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableDataCellElement.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTableDataCellElement extends HTMLTableCellElement +{ + // HTMLTableDataCellElement +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableElement.java new file mode 100644 index 00000000..b4001e4c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableElement.java @@ -0,0 +1,45 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTableElement extends HTMLElement +{ + // HTMLTableElement + public HTMLTableCaptionElement getCaption(); + public void setCaption(HTMLTableCaptionElement caption); + public HTMLElement createCaption(); + public void deleteCaption(); + public HTMLTableSectionElement getTHead(); + public void setTHead(HTMLTableSectionElement tHead); + public HTMLElement createTHead(); + public void deleteTHead(); + public HTMLTableSectionElement getTFoot(); + public void setTFoot(HTMLTableSectionElement tFoot); + public HTMLElement createTFoot(); + public void deleteTFoot(); + public HTMLCollection getTBodies(); + public HTMLElement createTBody(); + public HTMLCollection getRows(); + public HTMLElement insertRow(); + public HTMLElement insertRow(int index); + public void deleteRow(int index); + public String getBorder(); + public void setBorder(String border); + // HTMLTableElement-33 + public String getAlign(); + public void setAlign(String align); + public String getBgColor(); + public void setBgColor(String bgColor); + public String getCellPadding(); + public void setCellPadding(String cellPadding); + public String getCellSpacing(); + public void setCellSpacing(String cellSpacing); + public String getFrame(); + public void setFrame(String frame); + public String getRules(); + public void setRules(String rules); + public String getSummary(); + public void setSummary(String summary); + public String getWidth(); + public void setWidth(String width); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableHeaderCellElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableHeaderCellElement.java new file mode 100644 index 00000000..efaca759 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableHeaderCellElement.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTableHeaderCellElement extends HTMLTableCellElement +{ + // HTMLTableHeaderCellElement + public String getScope(); + public void setScope(String scope); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableRowElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableRowElement.java new file mode 100644 index 00000000..38b8493e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableRowElement.java @@ -0,0 +1,25 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTableRowElement extends HTMLElement +{ + // HTMLTableRowElement + public int getRowIndex(); + public int getSectionRowIndex(); + public HTMLCollection getCells(); + public HTMLElement insertCell(); + public HTMLElement insertCell(int index); + public void deleteCell(int index); + // HTMLTableRowElement-36 + public String getAlign(); + public void setAlign(String align); + public String getBgColor(); + public void setBgColor(String bgColor); + public String getCh(); + public void setCh(String ch); + public String getChOff(); + public void setChOff(String chOff); + public String getVAlign(); + public void setVAlign(String vAlign); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableSectionElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableSectionElement.java new file mode 100644 index 00000000..97643ed4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableSectionElement.java @@ -0,0 +1,21 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTableSectionElement extends HTMLElement +{ + // HTMLTableSectionElement + public HTMLCollection getRows(); + public HTMLElement insertRow(); + public HTMLElement insertRow(int index); + public void deleteRow(int index); + // HTMLTableSectionElement-34 + public String getAlign(); + public void setAlign(String align); + public String getCh(); + public void setCh(String ch); + public String getChOff(); + public void setChOff(String chOff); + public String getVAlign(); + public void setVAlign(String vAlign); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTextAreaElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTextAreaElement.java new file mode 100644 index 00000000..2fac57dd --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTextAreaElement.java @@ -0,0 +1,54 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; + +public interface HTMLTextAreaElement extends HTMLElement +{ + // HTMLTextAreaElement + public boolean getAutofocus(); + public void setAutofocus(boolean autofocus); + public int getCols(); + public void setCols(int cols); + public String getDirName(); + public void setDirName(String dirName); + public boolean getDisabled(); + public void setDisabled(boolean disabled); + public HTMLFormElement getForm(); + public int getMaxLength(); + public void setMaxLength(int maxLength); + public String getName(); + public void setName(String name); + public String getPlaceholder(); + public void setPlaceholder(String placeholder); + public boolean getReadOnly(); + public void setReadOnly(boolean readOnly); + public boolean getRequired(); + public void setRequired(boolean required); + public int getRows(); + public void setRows(int rows); + public String getWrap(); + public void setWrap(String wrap); + public String getType(); + public String getDefaultValue(); + public void setDefaultValue(String defaultValue); + public String getValue(); + public void setValue(String value); + public int getTextLength(); + public boolean getWillValidate(); + public ValidityState getValidity(); + public String getValidationMessage(); + public boolean checkValidity(); + public void setCustomValidity(String error); + public NodeList getLabels(); + public void select(); + public int getSelectionStart(); + public void setSelectionStart(int selectionStart); + public int getSelectionEnd(); + public void setSelectionEnd(int selectionEnd); + public String getSelectionDirection(); + public void setSelectionDirection(String selectionDirection); + public void setSelectionRange(int start, int end); + public void setSelectionRange(int start, int end, String direction); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTimeElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTimeElement.java new file mode 100644 index 00000000..8270755d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTimeElement.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTimeElement extends HTMLElement +{ + // HTMLTimeElement + public String getDateTime(); + public void setDateTime(String dateTime); + public boolean getPubDate(); + public void setPubDate(boolean pubDate); + public long getValueAsDate(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTitleElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTitleElement.java new file mode 100644 index 00000000..f8b6f68b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTitleElement.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTitleElement extends HTMLElement +{ + // HTMLTitleElement + public String getText(); + public void setText(String text); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTrackElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTrackElement.java new file mode 100644 index 00000000..25dadd33 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTrackElement.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLTrackElement extends HTMLElement +{ + // HTMLTrackElement + public String getKind(); + public void setKind(String kind); + public String getSrc(); + public void setSrc(String src); + public String getSrclang(); + public void setSrclang(String srclang); + public String getLabel(); + public void setLabel(String label); + public boolean getDefault(); + public void setDefault(boolean _default); + public TextTrack getTrack(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUListElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUListElement.java new file mode 100644 index 00000000..6081a144 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUListElement.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLUListElement extends HTMLElement +{ + // HTMLUListElement + // HTMLUListElement-37 + public boolean getCompact(); + public void setCompact(boolean compact); + public String getType(); + public void setType(String type); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUnknownElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUnknownElement.java new file mode 100644 index 00000000..6a41cf12 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUnknownElement.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLUnknownElement extends HTMLElement +{ + // HTMLUnknownElement +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLVideoElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLVideoElement.java new file mode 100644 index 00000000..669f86eb --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLVideoElement.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface HTMLVideoElement extends HTMLMediaElement +{ + // HTMLVideoElement + public int getWidth(); + public void setWidth(int width); + public int getHeight(); + public void setHeight(int height); + public int getVideoWidth(); + public int getVideoHeight(); + public String getPoster(); + public void setPoster(String poster); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HashChangeEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HashChangeEvent.java new file mode 100644 index 00000000..8992fd06 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HashChangeEvent.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.events.Event; + +public interface HashChangeEvent extends Event +{ + // HashChangeEvent + public String getOldURL(); + public String getNewURL(); + public void initHashChangeEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String oldURLArg, String newURLArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/History.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/History.java new file mode 100644 index 00000000..9f1f97d8 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/History.java @@ -0,0 +1,18 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface History +{ + // History + public int getLength(); + public Object getState(); + public void go(); + public void go(int delta); + public void back(); + public void forward(); + public void pushState(Object data, String title); + public void pushState(Object data, String title, String url); + public void replaceState(Object data, String title); + public void replaceState(Object data, String title, String url); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ImageData.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ImageData.java new file mode 100644 index 00000000..c72f6eff --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ImageData.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface ImageData +{ + // ImageData + public int getWidth(); + public int getHeight(); + public CanvasPixelArray getData(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/LocalMediaStream.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/LocalMediaStream.java new file mode 100644 index 00000000..a065a151 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/LocalMediaStream.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface LocalMediaStream extends MediaStream +{ + // LocalMediaStream + public void stop(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Location.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Location.java new file mode 100644 index 00000000..85e2244f --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Location.java @@ -0,0 +1,28 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface Location +{ + // Location + public String getHref(); + public void setHref(String href); + public void assign(String url); + public void replace(String url); + public void reload(); + public String getProtocol(); + public void setProtocol(String protocol); + public String getHost(); + public void setHost(String host); + public String getHostname(); + public void setHostname(String hostname); + public String getPort(); + public void setPort(String port); + public String getPathname(); + public void setPathname(String pathname); + public String getSearch(); + public void setSearch(String search); + public String getHash(); + public void setHash(String hash); + public String resolveURL(String url); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController.java new file mode 100644 index 00000000..e1708a18 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController.java @@ -0,0 +1,53 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MediaController +{ + // MediaController + public TimeRanges getBuffered(); + public TimeRanges getSeekable(); + public double getDuration(); + public double getCurrentTime(); + public void setCurrentTime(double currentTime); + public boolean getPaused(); + public TimeRanges getPlayed(); + public void play(); + public void pause(); + public double getDefaultPlaybackRate(); + public void setDefaultPlaybackRate(double defaultPlaybackRate); + public double getPlaybackRate(); + public void setPlaybackRate(double playbackRate); + public double getVolume(); + public void setVolume(double volume); + public boolean getMuted(); + public void setMuted(boolean muted); + public Function getOnemptied(); + public void setOnemptied(Function onemptied); + public Function getOnloadedmetadata(); + public void setOnloadedmetadata(Function onloadedmetadata); + public Function getOnloadeddata(); + public void setOnloadeddata(Function onloadeddata); + public Function getOncanplay(); + public void setOncanplay(Function oncanplay); + public Function getOncanplaythrough(); + public void setOncanplaythrough(Function oncanplaythrough); + public Function getOnplaying(); + public void setOnplaying(Function onplaying); + public Function getOnended(); + public void setOnended(Function onended); + public Function getOnwaiting(); + public void setOnwaiting(Function onwaiting); + public Function getOndurationchange(); + public void setOndurationchange(Function ondurationchange); + public Function getOntimeupdate(); + public void setOntimeupdate(Function ontimeupdate); + public Function getOnplay(); + public void setOnplay(Function onplay); + public Function getOnpause(); + public void setOnpause(Function onpause); + public Function getOnratechange(); + public void setOnratechange(Function onratechange); + public Function getOnvolumechange(); + public void setOnvolumechange(Function onvolumechange); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController_Constructor.java new file mode 100644 index 00000000..5be5c098 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MediaController_Constructor +{ + // Constructor + public MediaController createInstance(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaError.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaError.java new file mode 100644 index 00000000..a8c2e132 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaError.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MediaError +{ + // MediaError + public static final short MEDIA_ERR_ABORTED = 1; + public static final short MEDIA_ERR_NETWORK = 2; + public static final short MEDIA_ERR_DECODE = 3; + public static final short MEDIA_ERR_SRC_NOT_SUPPORTED = 4; + public short getCode(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryList.java new file mode 100644 index 00000000..94ff81b9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryList.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MediaQueryList +{ + // MediaQueryList + public String getMedia(); + public boolean getMatches(); + public void addListener(MediaQueryListListener listener); + public void removeListener(MediaQueryListListener listener); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryListListener.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryListListener.java new file mode 100644 index 00000000..6b930cf4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryListListener.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MediaQueryListListener +{ + // MediaQueryListListener + public void handleChange(MediaQueryList mql); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream.java new file mode 100644 index 00000000..6e1b242e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream.java @@ -0,0 +1,18 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.ObjectArray; + +public interface MediaStream +{ + // MediaStream + public String getLabel(); + public ObjectArray getTracks(); + public MediaStreamRecorder record(); + public static final short LIVE = 1; + public static final short ENDED = 2; + public short getReadyState(); + public Function getOnended(); + public void setOnended(Function onended); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStreamRecorder.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStreamRecorder.java new file mode 100644 index 00000000..4b457386 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStreamRecorder.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MediaStreamRecorder +{ + // MediaStreamRecorder + public void getRecordedData(BlobCallback callback); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream_Constructor.java new file mode 100644 index 00000000..946216c7 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MediaStream_Constructor +{ + // Constructor + public MediaStream createInstance(MediaStream parentStream); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel.java new file mode 100644 index 00000000..6c77772d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MessageChannel +{ + // MessageChannel + public MessagePort getPort1(); + public MessagePort getPort2(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel_Constructor.java new file mode 100644 index 00000000..77440f10 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MessageChannel_Constructor +{ + // Constructor + public MessageChannel createInstance(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageEvent.java new file mode 100644 index 00000000..60a01525 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageEvent.java @@ -0,0 +1,17 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.ObjectArray; +import org.w3c.dom.events.Event; + +public interface MessageEvent extends Event +{ + // MessageEvent + public Object getData(); + public String getOrigin(); + public String getLastEventId(); + public Window getSource(); + public ObjectArray getPorts(); + public void initMessageEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, MessagePort[] portsArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessagePort.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessagePort.java new file mode 100644 index 00000000..ec6141e0 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessagePort.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MessagePort +{ + // MessagePort + public void postMessage(Object message); + public void postMessage(Object message, Transferable[] transfer); + public void start(); + public void close(); + public Function getOnmessage(); + public void setOnmessage(Function onmessage); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MutableTextTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MutableTextTrack.java new file mode 100644 index 00000000..eecd4d40 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MutableTextTrack.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface MutableTextTrack extends TextTrack +{ + // MutableTextTrack + public void addCue(TextTrackCue cue); + public void removeCue(TextTrackCue cue); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Navigator.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Navigator.java new file mode 100644 index 00000000..42796a97 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Navigator.java @@ -0,0 +1,23 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface Navigator +{ + // Navigator + // NavigatorID + public String getAppName(); + public String getAppVersion(); + public String getPlatform(); + public String getUserAgent(); + // NavigatorOnLine + public boolean getOnLine(); + // NavigatorContentUtils + public void registerProtocolHandler(String scheme, String url, String title); + public void registerContentHandler(String mimeType, String url, String title); + // NavigatorStorageUtils + public void yieldForStorageUpdates(); + // NavigatorUserMedia + public void getUserMedia(String options, NavigatorUserMediaSuccessCallback successCallback); + public void getUserMedia(String options, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaError.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaError.java new file mode 100644 index 00000000..cec4c6ad --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaError.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface NavigatorUserMediaError +{ + // NavigatorUserMediaError + public static final short PERMISSION_DENIED = 1; + public short getCode(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaErrorCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaErrorCallback.java new file mode 100644 index 00000000..6008406b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaErrorCallback.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface NavigatorUserMediaErrorCallback +{ + // NavigatorUserMediaErrorCallback + public void handleEvent(NavigatorUserMediaError error); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaSuccessCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaSuccessCallback.java new file mode 100644 index 00000000..3086b104 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaSuccessCallback.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface NavigatorUserMediaSuccessCallback +{ + // NavigatorUserMediaSuccessCallback + public void handleEvent(LocalMediaStream stream); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PageTransitionEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PageTransitionEvent.java new file mode 100644 index 00000000..83806e52 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PageTransitionEvent.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.events.Event; + +public interface PageTransitionEvent extends Event +{ + // PageTransitionEvent + public boolean getPersisted(); + public void initPageTransitionEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, boolean persistedArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection.java new file mode 100644 index 00000000..9b5c6c07 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection.java @@ -0,0 +1,32 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.ObjectArray; + +public interface PeerConnection +{ + // PeerConnection + public void signalingMessage(String message); + public static final short NEW = 0; + public static final short NEGOTIATING = 1; + public static final short ACTIVE = 2; + public static final short CLOSED = 3; + public short getReadyState(); + public void send(String text); + public void addStream(MediaStream stream); + public void removeStream(MediaStream stream); + public ObjectArray getLocalStreams(); + public ObjectArray getRemoteStreams(); + public void close(); + public Function getOnconnecting(); + public void setOnconnecting(Function onconnecting); + public Function getOnopen(); + public void setOnopen(Function onopen); + public Function getOnmessage(); + public void setOnmessage(Function onmessage); + public Function getOnaddstream(); + public void setOnaddstream(Function onaddstream); + public Function getOnremovestream(); + public void setOnremovestream(Function onremovestream); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection_Constructor.java new file mode 100644 index 00000000..327ce51e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface PeerConnection_Constructor +{ + // Constructor + public PeerConnection createInstance(String configuration, SignalingCallback signalingCallback); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PopStateEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PopStateEvent.java new file mode 100644 index 00000000..c6e700f1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PopStateEvent.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.events.Event; + +public interface PopStateEvent extends Event +{ + // PopStateEvent + public Object getState(); + public void initPopStateEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object stateArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PropertyNodeList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PropertyNodeList.java new file mode 100644 index 00000000..bbdf5570 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PropertyNodeList.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; + +public interface PropertyNodeList extends NodeList +{ + // PropertyNodeList + public Object[] getValues(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/RadioNodeList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/RadioNodeList.java new file mode 100644 index 00000000..eabe9697 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/RadioNodeList.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.NodeList; + +public interface RadioNodeList extends NodeList +{ + // RadioNodeList + public String getValue(); + public void setValue(String value); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Screen.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Screen.java new file mode 100644 index 00000000..a6b79b7d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Screen.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface Screen +{ + // Screen + public int getAvailWidth(); + public int getAvailHeight(); + public int getWidth(); + public int getHeight(); + public int getColorDepth(); + public int getPixelDepth(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/SignalingCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/SignalingCallback.java new file mode 100644 index 00000000..3d0e2b08 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/SignalingCallback.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface SignalingCallback +{ + // SignalingCallback + public void handleEvent(String message, PeerConnection source); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamEvent.java new file mode 100644 index 00000000..ca8031b2 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamEvent.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.events.Event; + +public interface StreamEvent extends Event +{ + // StreamEvent + public MediaStream getStream(); + public void initStreamEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, MediaStream streamArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamTrack.java new file mode 100644 index 00000000..ba82595e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamTrack.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface StreamTrack +{ + // StreamTrack + public String getKind(); + public String getLabel(); + public boolean getEnabled(); + public void setEnabled(boolean enabled); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextMetrics.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextMetrics.java new file mode 100644 index 00000000..a55b3036 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextMetrics.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface TextMetrics +{ + // TextMetrics + public double getWidth(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrack.java new file mode 100644 index 00000000..fb2bc798 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrack.java @@ -0,0 +1,29 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface TextTrack +{ + // TextTrack + public String getKind(); + public String getLabel(); + public String getLanguage(); + public static final short NONE = 0; + public static final short LOADING = 1; + public static final short LOADED = 2; + public static final short ERROR = 3; + public short getReadyState(); + public Function getOnload(); + public void setOnload(Function onload); + public Function getOnerror(); + public void setOnerror(Function onerror); + public static final short OFF = 0; + public static final short HIDDEN = 1; + public static final short SHOWING = 2; + public short getMode(); + public void setMode(short mode); + public TextTrackCueList getCues(); + public TextTrackCueList getActiveCues(); + public Function getOncuechange(); + public void setOncuechange(Function oncuechange); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue.java new file mode 100644 index 00000000..91897a7a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue.java @@ -0,0 +1,27 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.DocumentFragment; + +public interface TextTrackCue +{ + // TextTrackCue + public TextTrack getTrack(); + public String getId(); + public double getStartTime(); + public double getEndTime(); + public boolean getPauseOnExit(); + public String getDirection(); + public boolean getSnapToLines(); + public int getLinePosition(); + public int getTextPosition(); + public int getSize(); + public String getAlignment(); + public String getCueAsSource(); + public DocumentFragment getCueAsHTML(); + public Function getOnenter(); + public void setOnenter(Function onenter); + public Function getOnexit(); + public void setOnexit(Function onexit); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCueList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCueList.java new file mode 100644 index 00000000..32f4dda1 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCueList.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface TextTrackCueList +{ + // TextTrackCueList + public int getLength(); + public TextTrackCue getElement(int index); + public TextTrackCue getCueById(String id); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue_Constructor.java new file mode 100644 index 00000000..b0f0be95 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue_Constructor.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface TextTrackCue_Constructor +{ + // Constructor + public TextTrackCue createInstance(String id, double startTime, double endTime, String text); + public TextTrackCue createInstance(String id, double startTime, double endTime, String text, String settings); + public TextTrackCue createInstance(String id, double startTime, double endTime, String text, String settings, boolean pauseOnExit); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TimeRanges.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TimeRanges.java new file mode 100644 index 00000000..743cdbd8 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TimeRanges.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface TimeRanges +{ + // TimeRanges + public int getLength(); + public double start(int index); + public double end(int index); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Transferable.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Transferable.java new file mode 100644 index 00000000..d2686a64 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Transferable.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface Transferable +{ + // Transferable +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManager.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManager.java new file mode 100644 index 00000000..41988dbd --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManager.java @@ -0,0 +1,15 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface UndoManager +{ + // UndoManager + public int getLength(); + public Object item(int index); + public int getPosition(); + public int add(Object data, String title); + public void remove(int index); + public void clearUndo(); + public void clearRedo(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManagerEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManagerEvent.java new file mode 100644 index 00000000..171337f5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManagerEvent.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.events.Event; + +public interface UndoManagerEvent extends Event +{ + // UndoManagerEvent + public Object getData(); + public void initUndoManagerEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object dataArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ValidityState.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ValidityState.java new file mode 100644 index 00000000..349c7b17 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ValidityState.java @@ -0,0 +1,17 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface ValidityState +{ + // ValidityState + public boolean getValueMissing(); + public boolean getTypeMismatch(); + public boolean getPatternMismatch(); + public boolean getTooLong(); + public boolean getRangeUnderflow(); + public boolean getRangeOverflow(); + public boolean getStepMismatch(); + public boolean getCustomError(); + public boolean getValid(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrack.java new file mode 100644 index 00000000..5720ae48 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrack.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface VideoTrack +{ + // VideoTrack + public String getId(); + public String getKind(); + public String getLabel(); + public String getLanguage(); + public boolean getSelected(); + public void setSelected(boolean selected); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrackList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrackList.java new file mode 100644 index 00000000..9488102d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrackList.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface VideoTrackList +{ + // VideoTrackList + public int getLength(); + public VideoTrack getElement(int index); + public VideoTrack getTrackById(String id); + public int getSelectedIndex(); + public Function getOnchange(); + public void setOnchange(Function onchange); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Window.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Window.java new file mode 100644 index 00000000..6ea2c133 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Window.java @@ -0,0 +1,235 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +import org.w3c.dom.Document; +import org.w3c.dom.Element; +import org.w3c.dom.css.CSSStyleDeclaration; + +public interface Window +{ + // Window + public Window getWindow(); + public Window getSelf(); + public Document getDocument(); + public String getName(); + public void setName(String name); + public Location getLocation(); + public void setLocation(String location); + public History getHistory(); + public UndoManager getUndoManager(); + public Object getLocationbar(); + public void setLocationbar(Object locationbar); + public Object getMenubar(); + public void setMenubar(Object menubar); + public Object getPersonalbar(); + public void setPersonalbar(Object personalbar); + public Object getScrollbars(); + public void setScrollbars(Object scrollbars); + public Object getStatusbar(); + public void setStatusbar(Object statusbar); + public Object getToolbar(); + public void setToolbar(Object toolbar); + public String getStatus(); + public void setStatus(String status); + public void close(); + public void stop(); + public void focus(); + public void blur(); + public Object getFrames(); + public void setFrames(Object frames); + public Object getLength(); + public void setLength(Object length); + public Window getTop(); + public Window getOpener(); + public void setOpener(Window opener); + public Window getParent(); + public Element getFrameElement(); + public Window open(); + public Window open(String url); + public Window open(String url, String target); + public Window open(String url, String target, String features); + public Window open(String url, String target, String features, boolean replace); + public Window getElement(int index); + public Object getElement(String name); + public void setElement(String name, Object value); + public Navigator getNavigator(); + public External getExternal(); + public ApplicationCache getApplicationCache(); + public void alert(String message); + public boolean confirm(String message); + public String prompt(String message); + public String prompt(String message, String _default); + public void print(); + public Object showModalDialog(String url); + public Object showModalDialog(String url, Object argument); + public void postMessage(Object message, String targetOrigin); + public void postMessage(Object message, String targetOrigin, Transferable[] transfer); + public Function getOnabort(); + public void setOnabort(Function onabort); + public Function getOnafterprint(); + public void setOnafterprint(Function onafterprint); + public Function getOnbeforeprint(); + public void setOnbeforeprint(Function onbeforeprint); + public Function getOnbeforeunload(); + public void setOnbeforeunload(Function onbeforeunload); + public Function getOnblur(); + public void setOnblur(Function onblur); + public Function getOncanplay(); + public void setOncanplay(Function oncanplay); + public Function getOncanplaythrough(); + public void setOncanplaythrough(Function oncanplaythrough); + public Function getOnchange(); + public void setOnchange(Function onchange); + public Function getOnclick(); + public void setOnclick(Function onclick); + public Function getOncontextmenu(); + public void setOncontextmenu(Function oncontextmenu); + public Function getOncuechange(); + public void setOncuechange(Function oncuechange); + public Function getOndblclick(); + public void setOndblclick(Function ondblclick); + public Function getOndrag(); + public void setOndrag(Function ondrag); + public Function getOndragend(); + public void setOndragend(Function ondragend); + public Function getOndragenter(); + public void setOndragenter(Function ondragenter); + public Function getOndragleave(); + public void setOndragleave(Function ondragleave); + public Function getOndragover(); + public void setOndragover(Function ondragover); + public Function getOndragstart(); + public void setOndragstart(Function ondragstart); + public Function getOndrop(); + public void setOndrop(Function ondrop); + public Function getOndurationchange(); + public void setOndurationchange(Function ondurationchange); + public Function getOnemptied(); + public void setOnemptied(Function onemptied); + public Function getOnended(); + public void setOnended(Function onended); + public Function getOnerror(); + public void setOnerror(Function onerror); + public Function getOnfocus(); + public void setOnfocus(Function onfocus); + public Function getOnhashchange(); + public void setOnhashchange(Function onhashchange); + public Function getOninput(); + public void setOninput(Function oninput); + public Function getOninvalid(); + public void setOninvalid(Function oninvalid); + public Function getOnkeydown(); + public void setOnkeydown(Function onkeydown); + public Function getOnkeypress(); + public void setOnkeypress(Function onkeypress); + public Function getOnkeyup(); + public void setOnkeyup(Function onkeyup); + public Function getOnload(); + public void setOnload(Function onload); + public Function getOnloadeddata(); + public void setOnloadeddata(Function onloadeddata); + public Function getOnloadedmetadata(); + public void setOnloadedmetadata(Function onloadedmetadata); + public Function getOnloadstart(); + public void setOnloadstart(Function onloadstart); + public Function getOnmessage(); + public void setOnmessage(Function onmessage); + public Function getOnmousedown(); + public void setOnmousedown(Function onmousedown); + public Function getOnmousemove(); + public void setOnmousemove(Function onmousemove); + public Function getOnmouseout(); + public void setOnmouseout(Function onmouseout); + public Function getOnmouseover(); + public void setOnmouseover(Function onmouseover); + public Function getOnmouseup(); + public void setOnmouseup(Function onmouseup); + public Function getOnmousewheel(); + public void setOnmousewheel(Function onmousewheel); + public Function getOnoffline(); + public void setOnoffline(Function onoffline); + public Function getOnonline(); + public void setOnonline(Function ononline); + public Function getOnpause(); + public void setOnpause(Function onpause); + public Function getOnplay(); + public void setOnplay(Function onplay); + public Function getOnplaying(); + public void setOnplaying(Function onplaying); + public Function getOnpagehide(); + public void setOnpagehide(Function onpagehide); + public Function getOnpageshow(); + public void setOnpageshow(Function onpageshow); + public Function getOnpopstate(); + public void setOnpopstate(Function onpopstate); + public Function getOnprogress(); + public void setOnprogress(Function onprogress); + public Function getOnratechange(); + public void setOnratechange(Function onratechange); + public Function getOnreadystatechange(); + public void setOnreadystatechange(Function onreadystatechange); + public Function getOnredo(); + public void setOnredo(Function onredo); + public Function getOnreset(); + public void setOnreset(Function onreset); + public Function getOnresize(); + public void setOnresize(Function onresize); + public Function getOnscroll(); + public void setOnscroll(Function onscroll); + public Function getOnseeked(); + public void setOnseeked(Function onseeked); + public Function getOnseeking(); + public void setOnseeking(Function onseeking); + public Function getOnselect(); + public void setOnselect(Function onselect); + public Function getOnshow(); + public void setOnshow(Function onshow); + public Function getOnstalled(); + public void setOnstalled(Function onstalled); + public Function getOnstorage(); + public void setOnstorage(Function onstorage); + public Function getOnsubmit(); + public void setOnsubmit(Function onsubmit); + public Function getOnsuspend(); + public void setOnsuspend(Function onsuspend); + public Function getOntimeupdate(); + public void setOntimeupdate(Function ontimeupdate); + public Function getOnundo(); + public void setOnundo(Function onundo); + public Function getOnunload(); + public void setOnunload(Function onunload); + public Function getOnvolumechange(); + public void setOnvolumechange(Function onvolumechange); + public Function getOnwaiting(); + public void setOnwaiting(Function onwaiting); + // Window-4 + public CSSStyleDeclaration getComputedStyle(Element elt); + public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt); + // Window-5 + public MediaQueryList matchMedia(String media_query_list); + public Screen getScreen(); + public int getInnerWidth(); + public int getInnerHeight(); + public int getScrollX(); + public int getPageXOffset(); + public int getScrollY(); + public int getPageYOffset(); + public void scroll(int x, int y); + public void scrollTo(int x, int y); + public void scrollBy(int x, int y); + public int getScreenX(); + public int getScreenY(); + public int getOuterWidth(); + public int getOuterHeight(); + // WindowBase64 + public String btoa(String btoa); + public String atob(String atob); + // WindowTimers + public int setTimeout(Object handler); + public int setTimeout(Object handler, Object timeout, Object... args); + public void clearTimeout(int handle); + public int setInterval(Object handler); + public int setInterval(Object handler, Object timeout, Object... args); + public void clearInterval(int handle); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/WindowModal.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/WindowModal.java new file mode 100644 index 00000000..e4be20a5 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/html/WindowModal.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.html; + +public interface WindowModal +{ + // WindowModal + public Object getDialogArguments(); + public String getReturnValue(); + public void setReturnValue(String returnValue); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/DocumentRange.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/DocumentRange.java new file mode 100644 index 00000000..eb66b062 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/DocumentRange.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.ranges; + +public interface DocumentRange +{ + // DocumentRange + public Range createRange(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/Range.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/Range.java new file mode 100644 index 00000000..a52d05c6 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/Range.java @@ -0,0 +1,45 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.ranges; + +import org.w3c.dom.DOMException; +import org.w3c.dom.DocumentFragment; +import org.w3c.dom.Node; +import org.w3c.dom.views.ClientRect; +import org.w3c.dom.views.ClientRectList; + +public interface Range +{ + // Range + public Node getStartContainer() throws DOMException; + public int getStartOffset() throws DOMException; + public Node getEndContainer() throws DOMException; + public int getEndOffset() throws DOMException; + public boolean getCollapsed() throws DOMException; + public Node getCommonAncestorContainer() throws DOMException; + public void setStart(Node refNode, int offset) throws RangeException, DOMException; + public void setEnd(Node refNode, int offset) throws RangeException, DOMException; + public void setStartBefore(Node refNode) throws RangeException, DOMException; + public void setStartAfter(Node refNode) throws RangeException, DOMException; + public void setEndBefore(Node refNode) throws RangeException, DOMException; + public void setEndAfter(Node refNode) throws RangeException, DOMException; + public void collapse(boolean toStart) throws DOMException; + public void selectNode(Node refNode) throws RangeException, DOMException; + public void selectNodeContents(Node refNode) throws RangeException, DOMException; + public static final short START_TO_START = 0; + public static final short START_TO_END = 1; + public static final short END_TO_END = 2; + public static final short END_TO_START = 3; + public short compareBoundaryPoints(short how, Range sourceRange) throws DOMException; + public void deleteContents() throws DOMException; + public DocumentFragment extractContents() throws DOMException; + public DocumentFragment cloneContents() throws DOMException; + public void insertNode(Node newNode) throws DOMException, RangeException; + public void surroundContents(Node newParent) throws DOMException, RangeException; + public Range cloneRange() throws DOMException; + public String toString() throws DOMException; + public void detach() throws DOMException; + // Range-39 + public ClientRectList getClientRects(); + public ClientRect getBoundingClientRect(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/RangeException.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/RangeException.java new file mode 100644 index 00000000..4c5e3c57 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/RangeException.java @@ -0,0 +1,15 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.ranges; + +public class RangeException extends RuntimeException +{ + public RangeException(short code, String message) + { + super(message); + this.code = code; + } + public static final short BAD_BOUNDARYPOINTS_ERR = 1; + public static final short INVALID_NODE_TYPE_ERR = 2; + public short code; +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/LinkStyle.java b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/LinkStyle.java new file mode 100644 index 00000000..e4fc8e7d --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/LinkStyle.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.stylesheets; + +public interface LinkStyle +{ + // LinkStyle + public StyleSheet getSheet(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/MediaList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/MediaList.java new file mode 100644 index 00000000..ced2fbcb --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/MediaList.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.stylesheets; + +public interface MediaList +{ + // MediaList + public String getMediaText(); + public void setMediaText(String mediaText); + public int getLength(); + public String item(int index); + public void appendMedium(String medium); + public void deleteMedium(String medium); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/StyleSheet.java b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/StyleSheet.java new file mode 100644 index 00000000..f9fac08c --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/StyleSheet.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.stylesheets; + +import org.w3c.dom.Node; + +public interface StyleSheet +{ + // StyleSheet + public String getType(); + public String getHref(); + public Node getOwnerNode(); + public StyleSheet getParentStyleSheet(); + public String getTitle(); + public MediaList getMedia(); + public void setMedia(String media); + public boolean getDisabled(); + public void setDisabled(boolean disabled); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/DocumentTraversal.java b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/DocumentTraversal.java new file mode 100644 index 00000000..c1522366 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/DocumentTraversal.java @@ -0,0 +1,13 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.traversal; + +import org.w3c.dom.DOMException; +import org.w3c.dom.Node; + +public interface DocumentTraversal +{ + // DocumentTraversal + public NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) throws DOMException; + public TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) throws DOMException; +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeFilter.java b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeFilter.java new file mode 100644 index 00000000..35d2c658 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeFilter.java @@ -0,0 +1,27 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.traversal; + +import org.w3c.dom.Node; + +public interface NodeFilter +{ + // NodeFilter + public static final short FILTER_ACCEPT = 1; + public static final short FILTER_REJECT = 2; + public static final short FILTER_SKIP = 3; + public static final int SHOW_ALL = 0xFFFFFFFF; + public static final int SHOW_ELEMENT = 0x00000001; + public static final int SHOW_ATTRIBUTE = 0x00000002; + public static final int SHOW_TEXT = 0x00000004; + public static final int SHOW_CDATA_SECTION = 0x00000008; + public static final int SHOW_ENTITY_REFERENCE = 0x00000010; + public static final int SHOW_ENTITY = 0x00000020; + public static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040; + public static final int SHOW_COMMENT = 0x00000080; + public static final int SHOW_DOCUMENT = 0x00000100; + public static final int SHOW_DOCUMENT_TYPE = 0x00000200; + public static final int SHOW_DOCUMENT_FRAGMENT = 0x00000400; + public static final int SHOW_NOTATION = 0x00000800; + public short acceptNode(Node n); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeIterator.java b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeIterator.java new file mode 100644 index 00000000..b0ae85f2 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeIterator.java @@ -0,0 +1,18 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.traversal; + +import org.w3c.dom.DOMException; +import org.w3c.dom.Node; + +public interface NodeIterator +{ + // NodeIterator + public Node getRoot(); + public int getWhatToShow(); + public NodeFilter getFilter(); + public boolean getExpandEntityReferences(); + public Node nextNode() throws DOMException; + public Node previousNode() throws DOMException; + public void detach(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/TreeWalker.java b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/TreeWalker.java new file mode 100644 index 00000000..ab9ab234 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/TreeWalker.java @@ -0,0 +1,24 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.traversal; + +import org.w3c.dom.DOMException; +import org.w3c.dom.Node; + +public interface TreeWalker +{ + // TreeWalker + public Node getRoot(); + public int getWhatToShow(); + public NodeFilter getFilter(); + public boolean getExpandEntityReferences(); + public Node getCurrentNode(); + public void setCurrentNode(Node currentNode) throws DOMException; + public Node parentNode(); + public Node firstChild(); + public Node lastChild(); + public Node previousSibling(); + public Node nextSibling(); + public Node previousNode(); + public Node nextNode(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer.java new file mode 100644 index 00000000..24456149 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +public interface ArrayBuffer +{ + // ArrayBuffer + public int getByteLength(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBufferView.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBufferView.java new file mode 100644 index 00000000..39d17a2b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBufferView.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +public interface ArrayBufferView +{ + // ArrayBufferView + public ArrayBuffer getBuffer(); + public int getByteOffset(); + public int getByteLength(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer_Constructor.java new file mode 100644 index 00000000..1c7495ae --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer_Constructor.java @@ -0,0 +1,9 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +public interface ArrayBuffer_Constructor +{ + // Constructor + public ArrayBuffer createInstance(int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView.java new file mode 100644 index 00000000..42515277 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView.java @@ -0,0 +1,36 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +public interface DataView extends ArrayBufferView +{ + // DataView + public byte getInt8(int byteOffset); + public byte getUint8(int byteOffset); + public short getInt16(int byteOffset); + public short getInt16(int byteOffset, boolean littleEndian); + public short getUint16(int byteOffset); + public short getUint16(int byteOffset, boolean littleEndian); + public int getInt32(int byteOffset); + public int getInt32(int byteOffset, boolean littleEndian); + public int getUint32(int byteOffset); + public int getUint32(int byteOffset, boolean littleEndian); + public float getFloat32(int byteOffset); + public float getFloat32(int byteOffset, boolean littleEndian); + public double getFloat64(int byteOffset); + public double getFloat64(int byteOffset, boolean littleEndian); + public void setInt8(int byteOffset, byte value); + public void setUint8(int byteOffset, byte value); + public void setInt16(int byteOffset, short value); + public void setInt16(int byteOffset, short value, boolean littleEndian); + public void setUint16(int byteOffset, short value); + public void setUint16(int byteOffset, short value, boolean littleEndian); + public void setInt32(int byteOffset, int value); + public void setInt32(int byteOffset, int value, boolean littleEndian); + public void setUint32(int byteOffset, int value); + public void setUint32(int byteOffset, int value, boolean littleEndian); + public void setFloat32(int byteOffset, float value); + public void setFloat32(int byteOffset, float value, boolean littleEndian); + public void setFloat64(int byteOffset, double value); + public void setFloat64(int byteOffset, double value, boolean littleEndian); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView_Constructor.java new file mode 100644 index 00000000..d1191a55 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView_Constructor.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +public interface DataView_Constructor +{ + // Constructor + public DataView createInstance(ArrayBuffer buffer); + public DataView createInstance(ArrayBuffer buffer, int byteOffset); + public DataView createInstance(ArrayBuffer buffer, int byteOffset, int byteLength); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array.java new file mode 100644 index 00000000..234a4132 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.FloatArray; + +public interface Float32Array extends ArrayBufferView +{ + // Float32Array + public static final int BYTES_PER_ELEMENT = 4; + public int getLength(); + public float get(int index); + public void set(int index, float value); + public void set(Float32Array array); + public void set(Float32Array array, int offset); + public void set(FloatArray array); + public void set(FloatArray array, int offset); + public Float32Array subarray(int start, int end); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array_Constructor.java new file mode 100644 index 00000000..e052903a --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array_Constructor.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.FloatArray; + +public interface Float32Array_Constructor +{ + // Constructor + public Float32Array createInstance(int length); + public Float32Array createInstance(ArrayBufferView array); + public Float32Array createInstance(FloatArray array); + public Float32Array createInstance(ArrayBuffer buffer); + public Float32Array createInstance(ArrayBuffer buffer, int byteOffset); + public Float32Array createInstance(ArrayBuffer buffer, int byteOffset, int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array.java new file mode 100644 index 00000000..64a6069b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.DoubleArray; + +public interface Float64Array extends ArrayBufferView +{ + // Float64Array + public static final int BYTES_PER_ELEMENT = 8; + public int getLength(); + public double get(int index); + public void set(int index, double value); + public void set(Float64Array array); + public void set(Float64Array array, int offset); + public void set(DoubleArray array); + public void set(DoubleArray array, int offset); + public Float64Array subarray(int start, int end); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array_Constructor.java new file mode 100644 index 00000000..24140502 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array_Constructor.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.DoubleArray; + +public interface Float64Array_Constructor +{ + // Constructor + public Float64Array createInstance(int length); + public Float64Array createInstance(ArrayBufferView array); + public Float64Array createInstance(DoubleArray array); + public Float64Array createInstance(ArrayBuffer buffer); + public Float64Array createInstance(ArrayBuffer buffer, int byteOffset); + public Float64Array createInstance(ArrayBuffer buffer, int byteOffset, int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array.java new file mode 100644 index 00000000..f4717b15 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.ShortArray; + +public interface Int16Array extends ArrayBufferView +{ + // Int16Array + public static final int BYTES_PER_ELEMENT = 2; + public int getLength(); + public short get(int index); + public void set(int index, short value); + public void set(Int16Array array); + public void set(Int16Array array, int offset); + public void set(ShortArray array); + public void set(ShortArray array, int offset); + public Int16Array subarray(int start, int end); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array_Constructor.java new file mode 100644 index 00000000..d7b56e1b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array_Constructor.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.ShortArray; + +public interface Int16Array_Constructor +{ + // Constructor + public Int16Array createInstance(int length); + public Int16Array createInstance(ArrayBufferView array); + public Int16Array createInstance(ShortArray array); + public Int16Array createInstance(ArrayBuffer buffer); + public Int16Array createInstance(ArrayBuffer buffer, int byteOffset); + public Int16Array createInstance(ArrayBuffer buffer, int byteOffset, int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array.java new file mode 100644 index 00000000..50c2fa87 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.LongArray; + +public interface Int32Array extends ArrayBufferView +{ + // Int32Array + public static final int BYTES_PER_ELEMENT = 4; + public int getLength(); + public int get(int index); + public void set(int index, int value); + public void set(Int32Array array); + public void set(Int32Array array, int offset); + public void set(LongArray array); + public void set(LongArray array, int offset); + public Int32Array subarray(int start, int end); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array_Constructor.java new file mode 100644 index 00000000..4a220daa --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array_Constructor.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.LongArray; + +public interface Int32Array_Constructor +{ + // Constructor + public Int32Array createInstance(int length); + public Int32Array createInstance(ArrayBufferView array); + public Int32Array createInstance(LongArray array); + public Int32Array createInstance(ArrayBuffer buffer); + public Int32Array createInstance(ArrayBuffer buffer, int byteOffset); + public Int32Array createInstance(ArrayBuffer buffer, int byteOffset, int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array.java new file mode 100644 index 00000000..e2096a69 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.ByteArray; + +public interface Int8Array extends ArrayBufferView +{ + // Int8Array + public static final int BYTES_PER_ELEMENT = 1; + public int getLength(); + public byte get(int index); + public void set(int index, byte value); + public void set(Int8Array array); + public void set(Int8Array array, int offset); + public void set(ByteArray array); + public void set(ByteArray array, int offset); + public Int8Array subarray(int start, int end); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array_Constructor.java new file mode 100644 index 00000000..42a7ede8 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array_Constructor.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.ByteArray; + +public interface Int8Array_Constructor +{ + // Constructor + public Int8Array createInstance(int length); + public Int8Array createInstance(ArrayBufferView array); + public Int8Array createInstance(ByteArray array); + public Int8Array createInstance(ArrayBuffer buffer); + public Int8Array createInstance(ArrayBuffer buffer, int byteOffset); + public Int8Array createInstance(ArrayBuffer buffer, int byteOffset, int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array.java new file mode 100644 index 00000000..032433ca --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.UnsignedShortArray; + +public interface Uint16Array extends ArrayBufferView +{ + // Uint16Array + public static final int BYTES_PER_ELEMENT = 2; + public int getLength(); + public short get(int index); + public void set(int index, short value); + public void set(Uint16Array array); + public void set(Uint16Array array, int offset); + public void set(UnsignedShortArray array); + public void set(UnsignedShortArray array, int offset); + public Uint16Array subarray(int start, int end); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array_Constructor.java new file mode 100644 index 00000000..c7dc85ac --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array_Constructor.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.UnsignedShortArray; + +public interface Uint16Array_Constructor +{ + // Constructor + public Uint16Array createInstance(int length); + public Uint16Array createInstance(ArrayBufferView array); + public Uint16Array createInstance(UnsignedShortArray array); + public Uint16Array createInstance(ArrayBuffer buffer); + public Uint16Array createInstance(ArrayBuffer buffer, int byteOffset); + public Uint16Array createInstance(ArrayBuffer buffer, int byteOffset, int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array.java new file mode 100644 index 00000000..4a8fa1fd --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.UnsignedLongArray; + +public interface Uint32Array extends ArrayBufferView +{ + // Uint32Array + public static final int BYTES_PER_ELEMENT = 4; + public int getLength(); + public int get(int index); + public void set(int index, int value); + public void set(Uint32Array array); + public void set(Uint32Array array, int offset); + public void set(UnsignedLongArray array); + public void set(UnsignedLongArray array, int offset); + public Uint32Array subarray(int start, int end); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array_Constructor.java new file mode 100644 index 00000000..ffd95d92 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array_Constructor.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.UnsignedLongArray; + +public interface Uint32Array_Constructor +{ + // Constructor + public Uint32Array createInstance(int length); + public Uint32Array createInstance(ArrayBufferView array); + public Uint32Array createInstance(UnsignedLongArray array); + public Uint32Array createInstance(ArrayBuffer buffer); + public Uint32Array createInstance(ArrayBuffer buffer, int byteOffset); + public Uint32Array createInstance(ArrayBuffer buffer, int byteOffset, int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array.java new file mode 100644 index 00000000..29d06a41 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array.java @@ -0,0 +1,19 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.OctetArray; + +public interface Uint8Array extends ArrayBufferView +{ + // Uint8Array + public static final int BYTES_PER_ELEMENT = 1; + public int getLength(); + public byte get(int index); + public void set(int index, byte value); + public void set(Uint8Array array); + public void set(Uint8Array array, int offset); + public void set(OctetArray array); + public void set(OctetArray array, int offset); + public Uint8Array subarray(int start, int end); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array_Constructor.java new file mode 100644 index 00000000..393c0cd9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array_Constructor.java @@ -0,0 +1,16 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.typedarray; + +import org.w3c.dom.OctetArray; + +public interface Uint8Array_Constructor +{ + // Constructor + public Uint8Array createInstance(int length); + public Uint8Array createInstance(ArrayBufferView array); + public Uint8Array createInstance(OctetArray array); + public Uint8Array createInstance(ArrayBuffer buffer); + public Uint8Array createInstance(ArrayBuffer buffer, int byteOffset); + public Uint8Array createInstance(ArrayBuffer buffer, int byteOffset, int length); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRect.java b/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRect.java new file mode 100644 index 00000000..a53390c7 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRect.java @@ -0,0 +1,14 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.views; + +public interface ClientRect +{ + // ClientRect + public float getTop(); + public float getRight(); + public float getBottom(); + public float getLeft(); + public float getWidth(); + public float getHeight(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRectList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRectList.java new file mode 100644 index 00000000..0cf0b3e7 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRectList.java @@ -0,0 +1,10 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.views; + +public interface ClientRectList +{ + // ClientRectList + public int getLength(); + public ClientRect item(int index); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLActiveInfo.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLActiveInfo.java new file mode 100644 index 00000000..894db548 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLActiveInfo.java @@ -0,0 +1,11 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLActiveInfo +{ + // WebGLActiveInfo + public int getSize(); + public int getType(); + public String getName(); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLBuffer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLBuffer.java new file mode 100644 index 00000000..7b152db3 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLBuffer.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLBuffer extends WebGLObject +{ + // WebGLBuffer +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextAttributes.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextAttributes.java new file mode 100644 index 00000000..c7975aa6 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextAttributes.java @@ -0,0 +1,20 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLContextAttributes +{ + // WebGLContextAttributes + public boolean getAlpha(); + public void setAlpha(boolean alpha); + public boolean getDepth(); + public void setDepth(boolean depth); + public boolean getStencil(); + public void setStencil(boolean stencil); + public boolean getAntialias(); + public void setAntialias(boolean antialias); + public boolean getPremultipliedAlpha(); + public void setPremultipliedAlpha(boolean premultipliedAlpha); + public boolean getPreserveDrawingBuffer(); + public void setPreserveDrawingBuffer(boolean preserveDrawingBuffer); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextEvent.java new file mode 100644 index 00000000..49d387cc --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextEvent.java @@ -0,0 +1,12 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +import org.w3c.dom.events.Event; + +public interface WebGLContextEvent extends Event +{ + // WebGLContextEvent + public String getStatusMessage(); + public void initWebGLContextEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String statusMessageArg); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLFramebuffer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLFramebuffer.java new file mode 100644 index 00000000..5be4c336 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLFramebuffer.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLFramebuffer extends WebGLObject +{ + // WebGLFramebuffer +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLObject.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLObject.java new file mode 100644 index 00000000..c9f8b64e --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLObject.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLObject +{ + // WebGLObject +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLProgram.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLProgram.java new file mode 100644 index 00000000..024667a9 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLProgram.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLProgram extends WebGLObject +{ + // WebGLProgram +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderbuffer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderbuffer.java new file mode 100644 index 00000000..a8c9c794 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderbuffer.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLRenderbuffer extends WebGLObject +{ + // WebGLRenderbuffer +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderingContext.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderingContext.java new file mode 100644 index 00000000..64d4180b --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderingContext.java @@ -0,0 +1,478 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +import org.w3c.dom.FloatArray; +import org.w3c.dom.LongArray; +import org.w3c.dom.ObjectArray; +import org.w3c.dom.html.HTMLCanvasElement; +import org.w3c.dom.html.HTMLImageElement; +import org.w3c.dom.html.HTMLVideoElement; +import org.w3c.dom.html.ImageData; +import org.w3c.dom.typedarray.ArrayBuffer; +import org.w3c.dom.typedarray.ArrayBufferView; +import org.w3c.dom.typedarray.Float32Array; +import org.w3c.dom.typedarray.Int32Array; + +public interface WebGLRenderingContext +{ + // WebGLRenderingContext + public static final int DEPTH_BUFFER_BIT = 0x00000100; + public static final int STENCIL_BUFFER_BIT = 0x00000400; + public static final int COLOR_BUFFER_BIT = 0x00004000; + public static final int POINTS = 0x0000; + public static final int LINES = 0x0001; + public static final int LINE_LOOP = 0x0002; + public static final int LINE_STRIP = 0x0003; + public static final int TRIANGLES = 0x0004; + public static final int TRIANGLE_STRIP = 0x0005; + public static final int TRIANGLE_FAN = 0x0006; + public static final int ZERO = 0; + public static final int ONE = 1; + public static final int SRC_COLOR = 0x0300; + public static final int ONE_MINUS_SRC_COLOR = 0x0301; + public static final int SRC_ALPHA = 0x0302; + public static final int ONE_MINUS_SRC_ALPHA = 0x0303; + public static final int DST_ALPHA = 0x0304; + public static final int ONE_MINUS_DST_ALPHA = 0x0305; + public static final int DST_COLOR = 0x0306; + public static final int ONE_MINUS_DST_COLOR = 0x0307; + public static final int SRC_ALPHA_SATURATE = 0x0308; + public static final int FUNC_ADD = 0x8006; + public static final int BLEND_EQUATION = 0x8009; + public static final int BLEND_EQUATION_RGB = 0x8009; + public static final int BLEND_EQUATION_ALPHA = 0x883D; + public static final int FUNC_SUBTRACT = 0x800A; + public static final int FUNC_REVERSE_SUBTRACT = 0x800B; + public static final int BLEND_DST_RGB = 0x80C8; + public static final int BLEND_SRC_RGB = 0x80C9; + public static final int BLEND_DST_ALPHA = 0x80CA; + public static final int BLEND_SRC_ALPHA = 0x80CB; + public static final int CONSTANT_COLOR = 0x8001; + public static final int ONE_MINUS_CONSTANT_COLOR = 0x8002; + public static final int CONSTANT_ALPHA = 0x8003; + public static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004; + public static final int BLEND_COLOR = 0x8005; + public static final int ARRAY_BUFFER = 0x8892; + public static final int ELEMENT_ARRAY_BUFFER = 0x8893; + public static final int ARRAY_BUFFER_BINDING = 0x8894; + public static final int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; + public static final int STREAM_DRAW = 0x88E0; + public static final int STATIC_DRAW = 0x88E4; + public static final int DYNAMIC_DRAW = 0x88E8; + public static final int BUFFER_SIZE = 0x8764; + public static final int BUFFER_USAGE = 0x8765; + public static final int CURRENT_VERTEX_ATTRIB = 0x8626; + public static final int FRONT = 0x0404; + public static final int BACK = 0x0405; + public static final int FRONT_AND_BACK = 0x0408; + public static final int CULL_FACE = 0x0B44; + public static final int BLEND = 0x0BE2; + public static final int DITHER = 0x0BD0; + public static final int STENCIL_TEST = 0x0B90; + public static final int DEPTH_TEST = 0x0B71; + public static final int SCISSOR_TEST = 0x0C11; + public static final int POLYGON_OFFSET_FILL = 0x8037; + public static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; + public static final int SAMPLE_COVERAGE = 0x80A0; + public static final int NO_ERROR = 0; + public static final int INVALID_ENUM = 0x0500; + public static final int INVALID_VALUE = 0x0501; + public static final int INVALID_OPERATION = 0x0502; + public static final int OUT_OF_MEMORY = 0x0505; + public static final int CW = 0x0900; + public static final int CCW = 0x0901; + public static final int LINE_WIDTH = 0x0B21; + public static final int ALIASED_POINT_SIZE_RANGE = 0x846D; + public static final int ALIASED_LINE_WIDTH_RANGE = 0x846E; + public static final int CULL_FACE_MODE = 0x0B45; + public static final int FRONT_FACE = 0x0B46; + public static final int DEPTH_RANGE = 0x0B70; + public static final int DEPTH_WRITEMASK = 0x0B72; + public static final int DEPTH_CLEAR_VALUE = 0x0B73; + public static final int DEPTH_FUNC = 0x0B74; + public static final int STENCIL_CLEAR_VALUE = 0x0B91; + public static final int STENCIL_FUNC = 0x0B92; + public static final int STENCIL_FAIL = 0x0B94; + public static final int STENCIL_PASS_DEPTH_FAIL = 0x0B95; + public static final int STENCIL_PASS_DEPTH_PASS = 0x0B96; + public static final int STENCIL_REF = 0x0B97; + public static final int STENCIL_VALUE_MASK = 0x0B93; + public static final int STENCIL_WRITEMASK = 0x0B98; + public static final int STENCIL_BACK_FUNC = 0x8800; + public static final int STENCIL_BACK_FAIL = 0x8801; + public static final int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; + public static final int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; + public static final int STENCIL_BACK_REF = 0x8CA3; + public static final int STENCIL_BACK_VALUE_MASK = 0x8CA4; + public static final int STENCIL_BACK_WRITEMASK = 0x8CA5; + public static final int VIEWPORT = 0x0BA2; + public static final int SCISSOR_BOX = 0x0C10; + public static final int COLOR_CLEAR_VALUE = 0x0C22; + public static final int COLOR_WRITEMASK = 0x0C23; + public static final int UNPACK_ALIGNMENT = 0x0CF5; + public static final int PACK_ALIGNMENT = 0x0D05; + public static final int MAX_TEXTURE_SIZE = 0x0D33; + public static final int MAX_VIEWPORT_DIMS = 0x0D3A; + public static final int SUBPIXEL_BITS = 0x0D50; + public static final int RED_BITS = 0x0D52; + public static final int GREEN_BITS = 0x0D53; + public static final int BLUE_BITS = 0x0D54; + public static final int ALPHA_BITS = 0x0D55; + public static final int DEPTH_BITS = 0x0D56; + public static final int STENCIL_BITS = 0x0D57; + public static final int POLYGON_OFFSET_UNITS = 0x2A00; + public static final int POLYGON_OFFSET_FACTOR = 0x8038; + public static final int TEXTURE_BINDING_2D = 0x8069; + public static final int SAMPLE_BUFFERS = 0x80A8; + public static final int SAMPLES = 0x80A9; + public static final int SAMPLE_COVERAGE_VALUE = 0x80AA; + public static final int SAMPLE_COVERAGE_INVERT = 0x80AB; + public static final int NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; + public static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3; + public static final int DONT_CARE = 0x1100; + public static final int FASTEST = 0x1101; + public static final int NICEST = 0x1102; + public static final int GENERATE_MIPMAP_HINT = 0x8192; + public static final int BYTE = 0x1400; + public static final int UNSIGNED_BYTE = 0x1401; + public static final int SHORT = 0x1402; + public static final int UNSIGNED_SHORT = 0x1403; + public static final int INT = 0x1404; + public static final int UNSIGNED_INT = 0x1405; + public static final int FLOAT = 0x1406; + public static final int DEPTH_COMPONENT = 0x1902; + public static final int ALPHA = 0x1906; + public static final int RGB = 0x1907; + public static final int RGBA = 0x1908; + public static final int LUMINANCE = 0x1909; + public static final int LUMINANCE_ALPHA = 0x190A; + public static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033; + public static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034; + public static final int UNSIGNED_SHORT_5_6_5 = 0x8363; + public static final int FRAGMENT_SHADER = 0x8B30; + public static final int VERTEX_SHADER = 0x8B31; + public static final int MAX_VERTEX_ATTRIBS = 0x8869; + public static final int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; + public static final int MAX_VARYING_VECTORS = 0x8DFC; + public static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; + public static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; + public static final int MAX_TEXTURE_IMAGE_UNITS = 0x8872; + public static final int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; + public static final int SHADER_TYPE = 0x8B4F; + public static final int DELETE_STATUS = 0x8B80; + public static final int LINK_STATUS = 0x8B82; + public static final int VALIDATE_STATUS = 0x8B83; + public static final int ATTACHED_SHADERS = 0x8B85; + public static final int ACTIVE_UNIFORMS = 0x8B86; + public static final int ACTIVE_ATTRIBUTES = 0x8B89; + public static final int SHADING_LANGUAGE_VERSION = 0x8B8C; + public static final int CURRENT_PROGRAM = 0x8B8D; + public static final int NEVER = 0x0200; + public static final int LESS = 0x0201; + public static final int EQUAL = 0x0202; + public static final int LEQUAL = 0x0203; + public static final int GREATER = 0x0204; + public static final int NOTEQUAL = 0x0205; + public static final int GEQUAL = 0x0206; + public static final int ALWAYS = 0x0207; + public static final int KEEP = 0x1E00; + public static final int REPLACE = 0x1E01; + public static final int INCR = 0x1E02; + public static final int DECR = 0x1E03; + public static final int INVERT = 0x150A; + public static final int INCR_WRAP = 0x8507; + public static final int DECR_WRAP = 0x8508; + public static final int VENDOR = 0x1F00; + public static final int RENDERER = 0x1F01; + public static final int VERSION = 0x1F02; + public static final int NEAREST = 0x2600; + public static final int LINEAR = 0x2601; + public static final int NEAREST_MIPMAP_NEAREST = 0x2700; + public static final int LINEAR_MIPMAP_NEAREST = 0x2701; + public static final int NEAREST_MIPMAP_LINEAR = 0x2702; + public static final int LINEAR_MIPMAP_LINEAR = 0x2703; + public static final int TEXTURE_MAG_FILTER = 0x2800; + public static final int TEXTURE_MIN_FILTER = 0x2801; + public static final int TEXTURE_WRAP_S = 0x2802; + public static final int TEXTURE_WRAP_T = 0x2803; + public static final int TEXTURE_2D = 0x0DE1; + public static final int TEXTURE = 0x1702; + public static final int TEXTURE_CUBE_MAP = 0x8513; + public static final int TEXTURE_BINDING_CUBE_MAP = 0x8514; + public static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; + public static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; + public static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; + public static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; + public static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; + public static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; + public static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; + public static final int TEXTURE0 = 0x84C0; + public static final int TEXTURE1 = 0x84C1; + public static final int TEXTURE2 = 0x84C2; + public static final int TEXTURE3 = 0x84C3; + public static final int TEXTURE4 = 0x84C4; + public static final int TEXTURE5 = 0x84C5; + public static final int TEXTURE6 = 0x84C6; + public static final int TEXTURE7 = 0x84C7; + public static final int TEXTURE8 = 0x84C8; + public static final int TEXTURE9 = 0x84C9; + public static final int TEXTURE10 = 0x84CA; + public static final int TEXTURE11 = 0x84CB; + public static final int TEXTURE12 = 0x84CC; + public static final int TEXTURE13 = 0x84CD; + public static final int TEXTURE14 = 0x84CE; + public static final int TEXTURE15 = 0x84CF; + public static final int TEXTURE16 = 0x84D0; + public static final int TEXTURE17 = 0x84D1; + public static final int TEXTURE18 = 0x84D2; + public static final int TEXTURE19 = 0x84D3; + public static final int TEXTURE20 = 0x84D4; + public static final int TEXTURE21 = 0x84D5; + public static final int TEXTURE22 = 0x84D6; + public static final int TEXTURE23 = 0x84D7; + public static final int TEXTURE24 = 0x84D8; + public static final int TEXTURE25 = 0x84D9; + public static final int TEXTURE26 = 0x84DA; + public static final int TEXTURE27 = 0x84DB; + public static final int TEXTURE28 = 0x84DC; + public static final int TEXTURE29 = 0x84DD; + public static final int TEXTURE30 = 0x84DE; + public static final int TEXTURE31 = 0x84DF; + public static final int ACTIVE_TEXTURE = 0x84E0; + public static final int REPEAT = 0x2901; + public static final int CLAMP_TO_EDGE = 0x812F; + public static final int MIRRORED_REPEAT = 0x8370; + public static final int FLOAT_VEC2 = 0x8B50; + public static final int FLOAT_VEC3 = 0x8B51; + public static final int FLOAT_VEC4 = 0x8B52; + public static final int INT_VEC2 = 0x8B53; + public static final int INT_VEC3 = 0x8B54; + public static final int INT_VEC4 = 0x8B55; + public static final int BOOL = 0x8B56; + public static final int BOOL_VEC2 = 0x8B57; + public static final int BOOL_VEC3 = 0x8B58; + public static final int BOOL_VEC4 = 0x8B59; + public static final int FLOAT_MAT2 = 0x8B5A; + public static final int FLOAT_MAT3 = 0x8B5B; + public static final int FLOAT_MAT4 = 0x8B5C; + public static final int SAMPLER_2D = 0x8B5E; + public static final int SAMPLER_CUBE = 0x8B60; + public static final int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; + public static final int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; + public static final int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; + public static final int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; + public static final int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; + public static final int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; + public static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; + public static final int COMPILE_STATUS = 0x8B81; + public static final int LOW_FLOAT = 0x8DF0; + public static final int MEDIUM_FLOAT = 0x8DF1; + public static final int HIGH_FLOAT = 0x8DF2; + public static final int LOW_INT = 0x8DF3; + public static final int MEDIUM_INT = 0x8DF4; + public static final int HIGH_INT = 0x8DF5; + public static final int FRAMEBUFFER = 0x8D40; + public static final int RENDERBUFFER = 0x8D41; + public static final int RGBA4 = 0x8056; + public static final int RGB5_A1 = 0x8057; + public static final int RGB565 = 0x8D62; + public static final int DEPTH_COMPONENT16 = 0x81A5; + public static final int STENCIL_INDEX = 0x1901; + public static final int STENCIL_INDEX8 = 0x8D48; + public static final int DEPTH_STENCIL = 0x84F9; + public static final int RENDERBUFFER_WIDTH = 0x8D42; + public static final int RENDERBUFFER_HEIGHT = 0x8D43; + public static final int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; + public static final int RENDERBUFFER_RED_SIZE = 0x8D50; + public static final int RENDERBUFFER_GREEN_SIZE = 0x8D51; + public static final int RENDERBUFFER_BLUE_SIZE = 0x8D52; + public static final int RENDERBUFFER_ALPHA_SIZE = 0x8D53; + public static final int RENDERBUFFER_DEPTH_SIZE = 0x8D54; + public static final int RENDERBUFFER_STENCIL_SIZE = 0x8D55; + public static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; + public static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; + public static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; + public static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; + public static final int COLOR_ATTACHMENT0 = 0x8CE0; + public static final int DEPTH_ATTACHMENT = 0x8D00; + public static final int STENCIL_ATTACHMENT = 0x8D20; + public static final int DEPTH_STENCIL_ATTACHMENT = 0x821A; + public static final int NONE = 0; + public static final int FRAMEBUFFER_COMPLETE = 0x8CD5; + public static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; + public static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; + public static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; + public static final int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; + public static final int FRAMEBUFFER_BINDING = 0x8CA6; + public static final int RENDERBUFFER_BINDING = 0x8CA7; + public static final int MAX_RENDERBUFFER_SIZE = 0x84E8; + public static final int INVALID_FRAMEBUFFER_OPERATION = 0x0506; + public static final int UNPACK_FLIP_Y_WEBGL = 0x9240; + public static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; + public static final int CONTEXT_LOST_WEBGL = 0x9242; + public static final int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; + public static final int BROWSER_DEFAULT_WEBGL = 0x9244; + public HTMLCanvasElement getCanvas(); + public int getDrawingBufferWidth(); + public int getDrawingBufferHeight(); + public WebGLContextAttributes getContextAttributes(); + public boolean isContextLost(); + public ObjectArray getSupportedExtensions(); + public Object getExtension(String name); + public void activeTexture(int texture); + public void attachShader(WebGLProgram program, WebGLShader shader); + public void bindAttribLocation(WebGLProgram program, int index, String name); + public void bindBuffer(int target, WebGLBuffer buffer); + public void bindFramebuffer(int target, WebGLFramebuffer framebuffer); + public void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer); + public void bindTexture(int target, WebGLTexture texture); + public void blendColor(float red, float green, float blue, float alpha); + public void blendEquation(int mode); + public void blendEquationSeparate(int modeRGB, int modeAlpha); + public void blendFunc(int sfactor, int dfactor); + public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); + public void bufferData(int target, long size, int usage); + public void bufferData(int target, ArrayBufferView data, int usage); + public void bufferData(int target, ArrayBuffer data, int usage); + public void bufferSubData(int target, long offset, ArrayBufferView data); + public void bufferSubData(int target, long offset, ArrayBuffer data); + public int checkFramebufferStatus(int target); + public void clear(int mask); + public void clearColor(float red, float green, float blue, float alpha); + public void clearDepth(float depth); + public void clearStencil(int s); + public void colorMask(boolean red, boolean green, boolean blue, boolean alpha); + public void compileShader(WebGLShader shader); + public void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border); + public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height); + public WebGLBuffer createBuffer(); + public WebGLFramebuffer createFramebuffer(); + public WebGLProgram createProgram(); + public WebGLRenderbuffer createRenderbuffer(); + public WebGLShader createShader(int type); + public WebGLTexture createTexture(); + public void cullFace(int mode); + public void deleteBuffer(WebGLBuffer buffer); + public void deleteFramebuffer(WebGLFramebuffer framebuffer); + public void deleteProgram(WebGLProgram program); + public void deleteRenderbuffer(WebGLRenderbuffer renderbuffer); + public void deleteShader(WebGLShader shader); + public void deleteTexture(WebGLTexture texture); + public void depthFunc(int func); + public void depthMask(boolean flag); + public void depthRange(float zNear, float zFar); + public void detachShader(WebGLProgram program, WebGLShader shader); + public void disable(int cap); + public void disableVertexAttribArray(int index); + public void drawArrays(int mode, int first, int count); + public void drawElements(int mode, int count, int type, long offset); + public void enable(int cap); + public void enableVertexAttribArray(int index); + public void finish(); + public void flush(); + public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderbuffer renderbuffer); + public void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level); + public void frontFace(int mode); + public void generateMipmap(int target); + public WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index); + public WebGLActiveInfo getActiveUniform(WebGLProgram program, int index); + public ObjectArray getAttachedShaders(WebGLProgram program); + public int getAttribLocation(WebGLProgram program, String name); + public Object getParameter(int pname); + public Object getBufferParameter(int target, int pname); + public int getError(); + public Object getFramebufferAttachmentParameter(int target, int attachment, int pname); + public Object getProgramParameter(WebGLProgram program, int pname); + public String getProgramInfoLog(WebGLProgram program); + public Object getRenderbufferParameter(int target, int pname); + public Object getShaderParameter(WebGLShader shader, int pname); + public String getShaderInfoLog(WebGLShader shader); + public String getShaderSource(WebGLShader shader); + public Object getTexParameter(int target, int pname); + public Object getUniform(WebGLProgram program, WebGLUniformLocation location); + public WebGLUniformLocation getUniformLocation(WebGLProgram program, String name); + public Object getVertexAttrib(int index, int pname); + public long getVertexAttribOffset(int index, int pname); + public void hint(int target, int mode); + public boolean isBuffer(WebGLBuffer buffer); + public boolean isEnabled(int cap); + public boolean isFramebuffer(WebGLFramebuffer framebuffer); + public boolean isProgram(WebGLProgram program); + public boolean isRenderbuffer(WebGLRenderbuffer renderbuffer); + public boolean isShader(WebGLShader shader); + public boolean isTexture(WebGLTexture texture); + public void lineWidth(float width); + public void linkProgram(WebGLProgram program); + public void pixelStorei(int pname, int param); + public void polygonOffset(float factor, float units); + public void readPixels(int x, int y, int width, int height, int format, int type, ArrayBufferView pixels); + public void renderbufferStorage(int target, int internalformat, int width, int height); + public void sampleCoverage(float value, boolean invert); + public void scissor(int x, int y, int width, int height); + public void shaderSource(WebGLShader shader, String source); + public void stencilFunc(int func, int ref, int mask); + public void stencilFuncSeparate(int face, int func, int ref, int mask); + public void stencilMask(int mask); + public void stencilMaskSeparate(int face, int mask); + public void stencilOp(int fail, int zfail, int zpass); + public void stencilOpSeparate(int face, int fail, int zfail, int zpass); + public void texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ArrayBufferView pixels); + public void texImage2D(int target, int level, int internalformat, int format, int type, ImageData pixels); + public void texImage2D(int target, int level, int internalformat, int format, int type, HTMLImageElement image); + public void texImage2D(int target, int level, int internalformat, int format, int type, HTMLCanvasElement canvas); + public void texImage2D(int target, int level, int internalformat, int format, int type, HTMLVideoElement video); + public void texParameterf(int target, int pname, float param); + public void texParameteri(int target, int pname, int param); + public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ArrayBufferView pixels); + public void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, ImageData pixels); + public void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, HTMLImageElement image); + public void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, HTMLCanvasElement canvas); + public void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, HTMLVideoElement video); + public void uniform1f(WebGLUniformLocation location, float x); + public void uniform1fv(WebGLUniformLocation location, Float32Array v); + public void uniform1fv(WebGLUniformLocation location, FloatArray v); + public void uniform1i(WebGLUniformLocation location, int x); + public void uniform1iv(WebGLUniformLocation location, Int32Array v); + public void uniform1iv(WebGLUniformLocation location, LongArray v); + public void uniform2f(WebGLUniformLocation location, float x, float y); + public void uniform2fv(WebGLUniformLocation location, Float32Array v); + public void uniform2fv(WebGLUniformLocation location, FloatArray v); + public void uniform2i(WebGLUniformLocation location, int x, int y); + public void uniform2iv(WebGLUniformLocation location, Int32Array v); + public void uniform2iv(WebGLUniformLocation location, LongArray v); + public void uniform3f(WebGLUniformLocation location, float x, float y, float z); + public void uniform3fv(WebGLUniformLocation location, Float32Array v); + public void uniform3fv(WebGLUniformLocation location, FloatArray v); + public void uniform3i(WebGLUniformLocation location, int x, int y, int z); + public void uniform3iv(WebGLUniformLocation location, Int32Array v); + public void uniform3iv(WebGLUniformLocation location, LongArray v); + public void uniform4f(WebGLUniformLocation location, float x, float y, float z, float w); + public void uniform4fv(WebGLUniformLocation location, Float32Array v); + public void uniform4fv(WebGLUniformLocation location, FloatArray v); + public void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w); + public void uniform4iv(WebGLUniformLocation location, Int32Array v); + public void uniform4iv(WebGLUniformLocation location, LongArray v); + public void uniformMatrix2fv(WebGLUniformLocation location, boolean transpose, Float32Array value); + public void uniformMatrix2fv(WebGLUniformLocation location, boolean transpose, FloatArray value); + public void uniformMatrix3fv(WebGLUniformLocation location, boolean transpose, Float32Array value); + public void uniformMatrix3fv(WebGLUniformLocation location, boolean transpose, FloatArray value); + public void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, Float32Array value); + public void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, FloatArray value); + public void useProgram(WebGLProgram program); + public void validateProgram(WebGLProgram program); + public void vertexAttrib1f(int indx, float x); + public void vertexAttrib1fv(int indx, Float32Array values); + public void vertexAttrib1fv(int indx, FloatArray values); + public void vertexAttrib2f(int indx, float x, float y); + public void vertexAttrib2fv(int indx, Float32Array values); + public void vertexAttrib2fv(int indx, FloatArray values); + public void vertexAttrib3f(int indx, float x, float y, float z); + public void vertexAttrib3fv(int indx, Float32Array values); + public void vertexAttrib3fv(int indx, FloatArray values); + public void vertexAttrib4f(int indx, float x, float y, float z, float w); + public void vertexAttrib4fv(int indx, Float32Array values); + public void vertexAttrib4fv(int indx, FloatArray values); + public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, long offset); + public void viewport(int x, int y, int width, int height); +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLShader.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLShader.java new file mode 100644 index 00000000..e63e1682 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLShader.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLShader extends WebGLObject +{ + // WebGLShader +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLTexture.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLTexture.java new file mode 100644 index 00000000..0ac40ad4 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLTexture.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLTexture extends WebGLObject +{ + // WebGLTexture +} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLUniformLocation.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLUniformLocation.java new file mode 100644 index 00000000..74c78372 --- /dev/null +++ b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLUniformLocation.java @@ -0,0 +1,8 @@ +// Generated by esidl 0.4.0. + +package org.w3c.dom.webgl; + +public interface WebGLUniformLocation +{ + // WebGLUniformLocation +} From 640aaf8364a1b34add79bc9cc49ceb60377bfa18 Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Tue, 22 Mar 2016 02:23:08 -0300 Subject: [PATCH 05/10] deleting w3c interfaces --- .../interfaces/CanvasPixelArray.java | 5 - .../dom/html5canvas/interfaces/ImageData.java | 7 - .../html5canvas/interfaces/ImageElement.java | 10 - .../dragome/js/webgl/HTMLVideoElement.java | 21 - .../dragome/js/webgl/WebGLActiveInfo.java | 26 - .../dragome/js/webgl/WebGLBuffer.java | 21 - .../js/webgl/WebGLContextAttributes.java | 33 -- .../dragome/js/webgl/WebGLFramebuffer.java | 21 - .../dragome/js/webgl/WebGLObject.java | 21 - .../dragome/js/webgl/WebGLProgram.java | 21 - .../dragome/js/webgl/WebGLRenderbuffer.java | 24 - .../js/webgl/WebGLRenderingContext.java | 370 -------------- .../dragome/js/webgl/WebGLShader.java | 21 - .../js/webgl/WebGLShaderPrecisionFormat.java | 26 - .../dragome/js/webgl/WebGLTexture.java | 21 - .../js/webgl/WebGLUniformLocation.java | 21 - .../src/org/w3c/dom/AnonXMLHttpRequest.java | 8 - .../dom/AnonXMLHttpRequest_Constructor.java | 9 - .../src/org/w3c/dom/Attr.java | 14 - .../src/org/w3c/dom/BooleanArray.java | 12 - .../src/org/w3c/dom/ByteArray.java | 12 - .../src/org/w3c/dom/CaretPosition.java | 10 - .../src/org/w3c/dom/CharacterData.java | 16 - .../src/org/w3c/dom/Comment.java | 8 - .../src/org/w3c/dom/DOMElementMap.java | 12 - .../src/org/w3c/dom/DOMException.java | 39 -- .../src/org/w3c/dom/DOMImplementation.java | 12 - .../src/org/w3c/dom/DOMSettableTokenList.java | 10 - .../src/org/w3c/dom/DOMStringList.java | 11 - .../src/org/w3c/dom/DOMStringMap.java | 12 - .../src/org/w3c/dom/DOMTokenList.java | 15 - .../src/org/w3c/dom/Document.java | 50 -- .../src/org/w3c/dom/DocumentFragment.java | 11 - .../src/org/w3c/dom/DocumentType.java | 11 - .../src/org/w3c/dom/DoubleArray.java | 12 - .../src/org/w3c/dom/Element.java | 53 -- .../src/org/w3c/dom/FloatArray.java | 12 - .../src/org/w3c/dom/FormData.java | 12 - .../src/org/w3c/dom/FormData_Constructor.java | 12 - .../src/org/w3c/dom/LongArray.java | 12 - .../src/org/w3c/dom/LongLongArray.java | 12 - .../src/org/w3c/dom/Node.java | 55 -- .../src/org/w3c/dom/NodeList.java | 10 - .../src/org/w3c/dom/ObjectArray.java | 8 - .../src/org/w3c/dom/OctetArray.java | 12 - .../org/w3c/dom/ProcessingInstruction.java | 11 - .../src/org/w3c/dom/ShortArray.java | 12 - .../src/org/w3c/dom/Text.java | 11 - .../src/org/w3c/dom/UnsignedByteArray.java | 12 - .../src/org/w3c/dom/UnsignedLongArray.java | 12 - .../org/w3c/dom/UnsignedLongLongArray.java | 12 - .../src/org/w3c/dom/UnsignedShortArray.java | 12 - .../src/org/w3c/dom/XMLHttpRequest.java | 47 -- .../w3c/dom/XMLHttpRequestEventTarget.java | 25 - .../src/org/w3c/dom/XMLHttpRequestUpload.java | 8 - .../w3c/dom/XMLHttpRequest_Constructor.java | 9 - .../src/org/w3c/dom/css/CSS2Properties.java | 252 --------- .../src/org/w3c/dom/css/CSSCharsetRule.java | 12 - .../w3c/dom/css/CSSColorComponentValue.java | 16 - .../org/w3c/dom/css/CSSComponentValue.java | 11 - .../src/org/w3c/dom/css/CSSFontFaceRule.java | 9 - .../dom/css/CSSIdentifierComponentValue.java | 10 - .../src/org/w3c/dom/css/CSSImportRule.java | 14 - .../w3c/dom/css/CSSKeywordComponentValue.java | 10 - .../w3c/dom/css/CSSLengthComponentValue.java | 14 - .../src/org/w3c/dom/css/CSSMapValue.java | 9 - .../src/org/w3c/dom/css/CSSMediaRule.java | 16 - .../src/org/w3c/dom/css/CSSNamespaceRule.java | 10 - .../src/org/w3c/dom/css/CSSPageRule.java | 11 - .../dom/css/CSSPercentageComponentValue.java | 10 - .../org/w3c/dom/css/CSSPrimitiveValue.java | 45 -- .../src/org/w3c/dom/css/CSSPropertyValue.java | 10 - .../org/w3c/dom/css/CSSPropertyValueList.java | 11 - .../src/org/w3c/dom/css/CSSRule.java | 19 - .../w3c/dom/css/CSSStringComponentValue.java | 10 - .../org/w3c/dom/css/CSSStyleDeclaration.java | 19 - .../w3c/dom/css/CSSStyleDeclarationValue.java | 8 - .../src/org/w3c/dom/css/CSSStyleRule.java | 11 - .../src/org/w3c/dom/css/CSSStyleSheet.java | 15 - .../org/w3c/dom/css/CSSURLComponentValue.java | 10 - .../src/org/w3c/dom/css/CSSUnknownRule.java | 8 - .../src/org/w3c/dom/css/CSSValue.java | 15 - .../src/org/w3c/dom/css/CSSValueList.java | 10 - .../src/org/w3c/dom/css/Counter.java | 11 - .../org/w3c/dom/css/DOMImplementationCSS.java | 11 - .../src/org/w3c/dom/css/DocumentCSS.java | 11 - .../w3c/dom/css/ElementCSSInlineStyle.java | 9 - .../src/org/w3c/dom/css/RGBColor.java | 11 - .../src/org/w3c/dom/css/Rect.java | 12 - .../org/w3c/dom/events/CompositionEvent.java | 13 - .../src/org/w3c/dom/events/CustomEvent.java | 9 - .../org/w3c/dom/events/CustomEventInit.java | 10 - .../dom/events/CustomEvent_Constructor.java | 10 - .../src/org/w3c/dom/events/Event.java | 24 - .../org/w3c/dom/events/EventException.java | 15 - .../src/org/w3c/dom/events/EventInit.java | 12 - .../src/org/w3c/dom/events/EventListener.java | 9 - .../src/org/w3c/dom/events/EventTarget.java | 13 - .../org/w3c/dom/events/Event_Constructor.java | 10 - .../src/org/w3c/dom/events/FocusEvent.java | 12 - .../src/org/w3c/dom/events/KeyboardEvent.java | 31 -- .../src/org/w3c/dom/events/MouseEvent.java | 30 -- .../src/org/w3c/dom/events/MutationEvent.java | 17 - .../org/w3c/dom/events/MutationNameEvent.java | 13 - .../src/org/w3c/dom/events/ProgressEvent.java | 13 - .../src/org/w3c/dom/events/TextEvent.java | 24 - .../src/org/w3c/dom/events/UIEvent.java | 13 - .../src/org/w3c/dom/events/WheelEvent.java | 18 - .../org/w3c/dom/eventsource/EventSource.java | 23 - .../eventsource/EventSource_Constructor.java | 9 - .../src/org/w3c/dom/file/Blob.java | 12 - .../src/org/w3c/dom/file/File.java | 10 - .../src/org/w3c/dom/file/FileCallback.java | 9 - .../src/org/w3c/dom/file/FileError.java | 14 - .../src/org/w3c/dom/file/FileException.java | 18 - .../src/org/w3c/dom/file/FileList.java | 10 - .../src/org/w3c/dom/file/FileReader.java | 35 -- .../src/org/w3c/dom/file/FileReaderSync.java | 15 - .../dom/file/FileReaderSync_Constructor.java | 9 - .../w3c/dom/file/FileReader_Constructor.java | 9 - .../org/w3c/dom/html/ApplicationCache.java | 33 -- .../src/org/w3c/dom/html/AudioTrack.java | 14 - .../src/org/w3c/dom/html/AudioTrackList.java | 13 - .../src/org/w3c/dom/html/BarProp.java | 10 - .../org/w3c/dom/html/BeforeUnloadEvent.java | 12 - .../src/org/w3c/dom/html/BlobCallback.java | 11 - .../src/org/w3c/dom/html/CanvasGradient.java | 9 - .../src/org/w3c/dom/html/CanvasPattern.java | 8 - .../org/w3c/dom/html/CanvasPixelArray.java | 11 - .../dom/html/CanvasRenderingContext2D.java | 92 ---- .../src/org/w3c/dom/html/DataTransfer.java | 25 - .../org/w3c/dom/html/DataTransferItem.java | 14 - .../w3c/dom/html/DataTransferItemList.java | 16 - .../src/org/w3c/dom/html/DragEvent.java | 13 - .../src/org/w3c/dom/html/External.java | 10 - .../src/org/w3c/dom/html/Function.java | 9 - .../w3c/dom/html/FunctionStringCallback.java | 9 - .../org/w3c/dom/html/HTMLAllCollection.java | 10 - .../org/w3c/dom/html/HTMLAnchorElement.java | 52 -- .../org/w3c/dom/html/HTMLAppletElement.java | 30 -- .../src/org/w3c/dom/html/HTMLAreaElement.java | 48 -- .../org/w3c/dom/html/HTMLAudioElement.java | 8 - .../html/HTMLAudioElement_Constructor.java | 10 - .../src/org/w3c/dom/html/HTMLBRElement.java | 11 - .../src/org/w3c/dom/html/HTMLBaseElement.java | 12 - .../org/w3c/dom/html/HTMLBaseFontElement.java | 14 - .../src/org/w3c/dom/html/HTMLBodyElement.java | 61 --- .../org/w3c/dom/html/HTMLButtonElement.java | 37 -- .../org/w3c/dom/html/HTMLCanvasElement.java | 19 - .../src/org/w3c/dom/html/HTMLCollection.java | 13 - .../org/w3c/dom/html/HTMLCommandElement.java | 20 - .../org/w3c/dom/html/HTMLDListElement.java | 11 - .../org/w3c/dom/html/HTMLDataListElement.java | 9 - .../org/w3c/dom/html/HTMLDetailsElement.java | 10 - .../w3c/dom/html/HTMLDirectoryElement.java | 10 - .../src/org/w3c/dom/html/HTMLDivElement.java | 11 - .../src/org/w3c/dom/html/HTMLDocument.java | 185 ------- .../src/org/w3c/dom/html/HTMLElement.java | 187 ------- .../org/w3c/dom/html/HTMLEmbedElement.java | 21 - .../org/w3c/dom/html/HTMLFieldSetElement.java | 20 - .../src/org/w3c/dom/html/HTMLFontElement.java | 14 - .../dom/html/HTMLFormControlsCollection.java | 9 - .../src/org/w3c/dom/html/HTMLFormElement.java | 33 -- .../org/w3c/dom/html/HTMLFrameElement.java | 28 - .../org/w3c/dom/html/HTMLFrameSetElement.java | 52 -- .../src/org/w3c/dom/html/HTMLHRElement.java | 19 - .../src/org/w3c/dom/html/HTMLHeadElement.java | 8 - .../org/w3c/dom/html/HTMLHeadingElement.java | 11 - .../src/org/w3c/dom/html/HTMLHtmlElement.java | 11 - .../org/w3c/dom/html/HTMLIFrameElement.java | 40 -- .../org/w3c/dom/html/HTMLImageElement.java | 38 -- .../html/HTMLImageElement_Constructor.java | 11 - .../org/w3c/dom/html/HTMLInputElement.java | 105 ---- .../org/w3c/dom/html/HTMLKeygenElement.java | 28 - .../src/org/w3c/dom/html/HTMLLIElement.java | 13 - .../org/w3c/dom/html/HTMLLabelElement.java | 12 - .../org/w3c/dom/html/HTMLLegendElement.java | 12 - .../src/org/w3c/dom/html/HTMLLinkElement.java | 33 -- .../src/org/w3c/dom/html/HTMLMapElement.java | 12 - .../org/w3c/dom/html/HTMLMarqueeElement.java | 38 -- .../org/w3c/dom/html/HTMLMediaElement.java | 70 --- .../src/org/w3c/dom/html/HTMLMenuElement.java | 15 - .../src/org/w3c/dom/html/HTMLMetaElement.java | 17 - .../org/w3c/dom/html/HTMLMeterElement.java | 23 - .../src/org/w3c/dom/html/HTMLModElement.java | 12 - .../org/w3c/dom/html/HTMLOListElement.java | 17 - .../org/w3c/dom/html/HTMLObjectElement.java | 53 -- .../org/w3c/dom/html/HTMLOptGroupElement.java | 12 - .../org/w3c/dom/html/HTMLOptionElement.java | 22 - .../html/HTMLOptionElement_Constructor.java | 13 - .../w3c/dom/html/HTMLOptionsCollection.java | 17 - .../org/w3c/dom/html/HTMLOutputElement.java | 27 - .../w3c/dom/html/HTMLParagraphElement.java | 11 - .../org/w3c/dom/html/HTMLParamElement.java | 17 - .../src/org/w3c/dom/html/HTMLPreElement.java | 11 - .../org/w3c/dom/html/HTMLProgressElement.java | 16 - .../dom/html/HTMLPropertiesCollection.java | 12 - .../org/w3c/dom/html/HTMLQuoteElement.java | 10 - .../org/w3c/dom/html/HTMLScriptElement.java | 25 - .../org/w3c/dom/html/HTMLSelectElement.java | 44 -- .../org/w3c/dom/html/HTMLSourceElement.java | 14 - .../src/org/w3c/dom/html/HTMLSpanElement.java | 8 - .../org/w3c/dom/html/HTMLStyleElement.java | 16 - .../w3c/dom/html/HTMLTableCaptionElement.java | 11 - .../w3c/dom/html/HTMLTableCellElement.java | 38 -- .../org/w3c/dom/html/HTMLTableColElement.java | 21 - .../dom/html/HTMLTableDataCellElement.java | 8 - .../org/w3c/dom/html/HTMLTableElement.java | 45 -- .../dom/html/HTMLTableHeaderCellElement.java | 10 - .../org/w3c/dom/html/HTMLTableRowElement.java | 25 - .../w3c/dom/html/HTMLTableSectionElement.java | 21 - .../org/w3c/dom/html/HTMLTextAreaElement.java | 54 -- .../src/org/w3c/dom/html/HTMLTimeElement.java | 13 - .../org/w3c/dom/html/HTMLTitleElement.java | 10 - .../org/w3c/dom/html/HTMLTrackElement.java | 19 - .../org/w3c/dom/html/HTMLUListElement.java | 13 - .../org/w3c/dom/html/HTMLUnknownElement.java | 8 - .../org/w3c/dom/html/HTMLVideoElement.java | 16 - .../src/org/w3c/dom/html/HashChangeEvent.java | 13 - .../src/org/w3c/dom/html/History.java | 18 - .../src/org/w3c/dom/html/ImageData.java | 11 - .../org/w3c/dom/html/LocalMediaStream.java | 9 - .../src/org/w3c/dom/html/Location.java | 28 - .../src/org/w3c/dom/html/MediaController.java | 53 -- .../dom/html/MediaController_Constructor.java | 9 - .../src/org/w3c/dom/html/MediaError.java | 13 - .../src/org/w3c/dom/html/MediaQueryList.java | 12 - .../w3c/dom/html/MediaQueryListListener.java | 9 - .../src/org/w3c/dom/html/MediaStream.java | 18 - .../org/w3c/dom/html/MediaStreamRecorder.java | 9 - .../w3c/dom/html/MediaStream_Constructor.java | 9 - .../src/org/w3c/dom/html/MessageChannel.java | 10 - .../dom/html/MessageChannel_Constructor.java | 9 - .../src/org/w3c/dom/html/MessageEvent.java | 17 - .../src/org/w3c/dom/html/MessagePort.java | 14 - .../org/w3c/dom/html/MutableTextTrack.java | 10 - .../src/org/w3c/dom/html/Navigator.java | 23 - .../w3c/dom/html/NavigatorUserMediaError.java | 10 - .../html/NavigatorUserMediaErrorCallback.java | 9 - .../NavigatorUserMediaSuccessCallback.java | 9 - .../org/w3c/dom/html/PageTransitionEvent.java | 12 - .../src/org/w3c/dom/html/PeerConnection.java | 32 -- .../dom/html/PeerConnection_Constructor.java | 9 - .../src/org/w3c/dom/html/PopStateEvent.java | 12 - .../org/w3c/dom/html/PropertyNodeList.java | 11 - .../src/org/w3c/dom/html/RadioNodeList.java | 12 - .../src/org/w3c/dom/html/Screen.java | 14 - .../org/w3c/dom/html/SignalingCallback.java | 9 - .../src/org/w3c/dom/html/StreamEvent.java | 12 - .../src/org/w3c/dom/html/StreamTrack.java | 12 - .../src/org/w3c/dom/html/TextMetrics.java | 9 - .../src/org/w3c/dom/html/TextTrack.java | 29 -- .../src/org/w3c/dom/html/TextTrackCue.java | 27 - .../org/w3c/dom/html/TextTrackCueList.java | 11 - .../dom/html/TextTrackCue_Constructor.java | 11 - .../src/org/w3c/dom/html/TimeRanges.java | 11 - .../src/org/w3c/dom/html/Transferable.java | 8 - .../src/org/w3c/dom/html/UndoManager.java | 15 - .../org/w3c/dom/html/UndoManagerEvent.java | 12 - .../src/org/w3c/dom/html/ValidityState.java | 17 - .../src/org/w3c/dom/html/VideoTrack.java | 14 - .../src/org/w3c/dom/html/VideoTrackList.java | 14 - .../src/org/w3c/dom/html/Window.java | 235 --------- .../src/org/w3c/dom/html/WindowModal.java | 11 - .../src/org/w3c/dom/ranges/DocumentRange.java | 9 - .../src/org/w3c/dom/ranges/Range.java | 45 -- .../org/w3c/dom/ranges/RangeException.java | 15 - .../org/w3c/dom/stylesheets/LinkStyle.java | 9 - .../org/w3c/dom/stylesheets/MediaList.java | 14 - .../org/w3c/dom/stylesheets/StyleSheet.java | 19 - .../w3c/dom/traversal/DocumentTraversal.java | 13 - .../src/org/w3c/dom/traversal/NodeFilter.java | 27 - .../org/w3c/dom/traversal/NodeIterator.java | 18 - .../src/org/w3c/dom/traversal/TreeWalker.java | 24 - .../org/w3c/dom/typedarray/ArrayBuffer.java | 9 - .../w3c/dom/typedarray/ArrayBufferView.java | 11 - .../typedarray/ArrayBuffer_Constructor.java | 9 - .../src/org/w3c/dom/typedarray/DataView.java | 36 -- .../dom/typedarray/DataView_Constructor.java | 11 - .../org/w3c/dom/typedarray/Float32Array.java | 19 - .../typedarray/Float32Array_Constructor.java | 16 - .../org/w3c/dom/typedarray/Float64Array.java | 19 - .../typedarray/Float64Array_Constructor.java | 16 - .../org/w3c/dom/typedarray/Int16Array.java | 19 - .../typedarray/Int16Array_Constructor.java | 16 - .../org/w3c/dom/typedarray/Int32Array.java | 19 - .../typedarray/Int32Array_Constructor.java | 16 - .../src/org/w3c/dom/typedarray/Int8Array.java | 19 - .../dom/typedarray/Int8Array_Constructor.java | 16 - .../org/w3c/dom/typedarray/Uint16Array.java | 19 - .../typedarray/Uint16Array_Constructor.java | 16 - .../org/w3c/dom/typedarray/Uint32Array.java | 19 - .../typedarray/Uint32Array_Constructor.java | 16 - .../org/w3c/dom/typedarray/Uint8Array.java | 19 - .../typedarray/Uint8Array_Constructor.java | 16 - .../src/org/w3c/dom/views/ClientRect.java | 14 - .../src/org/w3c/dom/views/ClientRectList.java | 10 - .../org/w3c/dom/webgl/WebGLActiveInfo.java | 11 - .../src/org/w3c/dom/webgl/WebGLBuffer.java | 8 - .../w3c/dom/webgl/WebGLContextAttributes.java | 20 - .../org/w3c/dom/webgl/WebGLContextEvent.java | 12 - .../org/w3c/dom/webgl/WebGLFramebuffer.java | 8 - .../src/org/w3c/dom/webgl/WebGLObject.java | 8 - .../src/org/w3c/dom/webgl/WebGLProgram.java | 8 - .../org/w3c/dom/webgl/WebGLRenderbuffer.java | 8 - .../w3c/dom/webgl/WebGLRenderingContext.java | 478 ------------------ .../src/org/w3c/dom/webgl/WebGLShader.java | 8 - .../src/org/w3c/dom/webgl/WebGLTexture.java | 8 - .../w3c/dom/webgl/WebGLUniformLocation.java | 8 - 309 files changed, 6929 deletions(-) delete mode 100644 backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/CanvasPixelArray.java delete mode 100644 backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/ImageData.java delete mode 100644 backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/ImageElement.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/HTMLVideoElement.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLActiveInfo.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLBuffer.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLContextAttributes.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFramebuffer.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLObject.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLProgram.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderbuffer.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderingContext.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShader.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShaderPrecisionFormat.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLTexture.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLUniformLocation.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Attr.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/BooleanArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ByteArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/CaretPosition.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/CharacterData.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Comment.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMElementMap.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMException.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMImplementation.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMSettableTokenList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringMap.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DOMTokenList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Document.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DocumentFragment.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DocumentType.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/DoubleArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Element.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/FloatArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/FormData.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/FormData_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/LongArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/LongLongArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Node.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/NodeList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ObjectArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/OctetArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ProcessingInstruction.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ShortArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/Text.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedByteArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongLongArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedShortArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestEventTarget.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestUpload.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSS2Properties.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSCharsetRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSColorComponentValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSComponentValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSFontFaceRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSIdentifierComponentValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSImportRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSKeywordComponentValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSLengthComponentValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMapValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMediaRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSNamespaceRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPageRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPercentageComponentValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPrimitiveValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValueList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStringComponentValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclaration.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclarationValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleSheet.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSURLComponentValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSUnknownRule.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValueList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/Counter.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/DOMImplementationCSS.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/DocumentCSS.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/ElementCSSInlineStyle.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/RGBColor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/css/Rect.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/CompositionEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEventInit.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/Event.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/EventException.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/EventInit.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/EventListener.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/EventTarget.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/Event_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/FocusEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/KeyboardEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/MouseEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationNameEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/ProgressEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/TextEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/UIEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/events/WheelEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/Blob.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/File.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileCallback.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileError.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileException.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/ApplicationCache.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrack.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrackList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/BarProp.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/BeforeUnloadEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/BlobCallback.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasGradient.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPattern.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPixelArray.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasRenderingContext2D.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransfer.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItem.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItemList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/DragEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/External.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Function.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/FunctionStringCallback.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAllCollection.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAnchorElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAppletElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAreaElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBRElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseFontElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBodyElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLButtonElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCanvasElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCollection.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCommandElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDListElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDataListElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDetailsElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDirectoryElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDivElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDocument.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLEmbedElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFieldSetElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFontElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormControlsCollection.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameSetElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHRElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadingElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHtmlElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLIFrameElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLInputElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLKeygenElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLIElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLabelElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLegendElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLinkElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMapElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMarqueeElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMediaElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMenuElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMetaElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMeterElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLModElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOListElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLObjectElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptGroupElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionsCollection.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOutputElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParagraphElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParamElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPreElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLProgressElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPropertiesCollection.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLQuoteElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLScriptElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSelectElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSourceElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSpanElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLStyleElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCaptionElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCellElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableColElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableDataCellElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableHeaderCellElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableRowElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableSectionElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTextAreaElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTimeElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTitleElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTrackElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUListElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUnknownElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLVideoElement.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/HashChangeEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/History.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/ImageData.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/LocalMediaStream.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Location.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaError.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryListListener.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStreamRecorder.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MessagePort.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/MutableTextTrack.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Navigator.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaError.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaErrorCallback.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaSuccessCallback.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PageTransitionEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PopStateEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/PropertyNodeList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/RadioNodeList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Screen.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/SignalingCallback.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamTrack.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextMetrics.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrack.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCueList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/TimeRanges.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Transferable.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManager.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManagerEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/ValidityState.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrack.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrackList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/Window.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/html/WindowModal.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ranges/DocumentRange.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ranges/Range.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/ranges/RangeException.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/LinkStyle.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/MediaList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/StyleSheet.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/traversal/DocumentTraversal.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeFilter.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeIterator.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/traversal/TreeWalker.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBufferView.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array_Constructor.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRect.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRectList.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLActiveInfo.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLBuffer.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextAttributes.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextEvent.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLFramebuffer.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLObject.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLProgram.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderbuffer.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderingContext.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLShader.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLTexture.java delete mode 100644 backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLUniformLocation.java diff --git a/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/CanvasPixelArray.java b/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/CanvasPixelArray.java deleted file mode 100644 index 0d4086d5..00000000 --- a/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/CanvasPixelArray.java +++ /dev/null @@ -1,5 +0,0 @@ -package com.dragome.web.html.dom.html5canvas.interfaces; - -public interface CanvasPixelArray { - public int get(int var); -} diff --git a/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/ImageData.java b/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/ImageData.java deleted file mode 100644 index 72663b26..00000000 --- a/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/ImageData.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.dragome.web.html.dom.html5canvas.interfaces; - -public interface ImageData { - public int getWidth(); - public int getHeight(); - public CanvasPixelArray getData(); -} diff --git a/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/ImageElement.java b/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/ImageElement.java deleted file mode 100644 index b2d86e15..00000000 --- a/backends/gdx-backend-dragome/emu/com/dragome/web/html/dom/html5canvas/interfaces/ImageElement.java +++ /dev/null @@ -1,10 +0,0 @@ -package com.dragome.web.html.dom.html5canvas.interfaces; - -import com.dragome.web.html.dom.html5canvas.interfaces.CanvasImageSource; - -public interface ImageElement extends CanvasImageSource{ - - int getWidth(); - int getHeight(); - void setSrc(String src); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/HTMLVideoElement.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/HTMLVideoElement.java deleted file mode 100644 index f67ebb53..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/HTMLVideoElement.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface HTMLVideoElement { -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLActiveInfo.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLActiveInfo.java deleted file mode 100644 index 8b30f273..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLActiveInfo.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLActiveInfo { - public int getSize (); - - public int getType (); - - public String getName (); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLBuffer.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLBuffer.java deleted file mode 100644 index ae42c149..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLBuffer.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLBuffer extends WebGLObject { -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLContextAttributes.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLContextAttributes.java deleted file mode 100644 index ff87ecf7..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLContextAttributes.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLContextAttributes { - - public void setAlpha (boolean alpha); - - public void setAntialias (boolean antialias); - - public void setDepth (boolean depth); - - public void setPremultipliedAlpha (boolean premultipliedAlpha); - - public void setPreserveDrawingBuffer (boolean preserveDrawingBuffer); - - public void setStencil (boolean stencil); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFramebuffer.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFramebuffer.java deleted file mode 100644 index 5b674913..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFramebuffer.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLFramebuffer extends WebGLObject { -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLObject.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLObject.java deleted file mode 100644 index 0a1552c7..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLObject.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLObject { -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLProgram.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLProgram.java deleted file mode 100644 index 4cf815b3..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLProgram.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLProgram extends WebGLObject { -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderbuffer.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderbuffer.java deleted file mode 100644 index 67ed1feb..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderbuffer.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** - * @author xpenatan - */ -public interface WebGLRenderbuffer extends WebGLObject { - -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderingContext.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderingContext.java deleted file mode 100644 index f6b774a3..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLRenderingContext.java +++ /dev/null @@ -1,370 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -import org.w3c.dom.html.HTMLImageElement; -import org.w3c.dom.typedarray.ArrayBuffer; -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Float32Array; -import org.w3c.dom.typedarray.Int32Array; - -import com.dragome.web.html.dom.html5canvas.interfaces.HTMLCanvasElement; -import com.dragome.web.html.dom.html5canvas.interfaces.ImageData; - -/** From https://dxr.mozilla.org/mozilla-central/source/dom/webidl/WebGLRenderingContext.webidl
- * Match the same methods to use with javascript. - * - * @author xpenatan */ -public interface WebGLRenderingContext { - public static final int UNSIGNED_BYTE = 0x1401; - public static final int RGBA = 0x1908; - - /* WebGL-specific enums */ - public static final int UNPACK_FLIP_Y_WEBGL = 0x9240; - public static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; - public static final int CONTEXT_LOST_WEBGL = 0x9242; - - public WebGLContextAttributes getContextAttributes (); - - public boolean isContextLost (); - - public Object getSupportedExtensions (); - - public Object getExtension (String name); - - public void activeTexture (int texture); - - public void attachShader (WebGLProgram program, WebGLShader shader); - - public void bindAttribLocation (WebGLProgram program, int index, String name); - - public void bindBuffer (int target, WebGLBuffer buffer); - - public void bindFramebuffer (int target, WebGLFramebuffer framebuffer); - - public void bindRenderbuffer (int target, WebGLRenderbuffer renderbuffer); - - public void bindTexture (int target, WebGLTexture texture); - - public void blendColor (float red, float green, float blue, float alpha); - - public void blendEquation (int mode); - - public void blendEquationSeparate (int modeRGB, int modeAlpha); - - public void blendFunc (int sfactor, int dfactor); - - public void blendFuncSeparate (int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); - - public void bufferData (int target, int size, int usage); - - public void bufferData (int target, ArrayBufferView data, int usage); - - public void bufferData (int target, ArrayBuffer data, int usage); - - public void bufferSubData (int target, int offset, ArrayBufferView data); - - public void bufferSubData (int target, int offset, ArrayBuffer data); - - public int checkFramebufferStatus (int target); - - public void clear (int mask); - - public void clearColor (float red, float green, float blue, float alpha); - - public void clearDepth (float depth); - - public void clearStencil (int s); - - public void colorMask (boolean red, boolean green, boolean blue, boolean alpha); - - public void compileShader (WebGLShader shader); - - public void compressedTexImage2D (int target, int level, int internalformat, int width, int height, int border, - ArrayBufferView data); - - public void compressedTexSubImage2D (int target, int level, int xoffset, int yoffset, int width, int height, int format, - ArrayBufferView data); - - public void copyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border); - - public void copyTexSubImage2D (int target, int level, int xoffset, int yoffset, int x, int y, int width, int height); - - public WebGLBuffer createBuffer (); - - public WebGLFramebuffer createFramebuffer (); - - public WebGLProgram createProgram (); - - public WebGLRenderbuffer createRenderbuffer (); - - public WebGLShader createShader (int type); - - public WebGLTexture createTexture (); - - public void cullFace (int mode); - - public void deleteBuffer (WebGLBuffer buffer); - - public void deleteFramebuffer (WebGLFramebuffer framebuffer); - - public void deleteProgram (WebGLProgram program); - - public void deleteRenderbuffer (WebGLRenderbuffer renderbuffer); - - public void deleteShader (WebGLShader shader); - - public void deleteTexture (WebGLTexture texture); - - public void depthFunc (int func); - - public void depthMask (boolean flag); - - public void depthRange (float zNear, float zFar); - - public void detachShader (WebGLProgram program, WebGLShader shader); - - public void disable (int cap); - - public void disableVertexAttribArray (int index); - - public void drawArrays (int mode, int first, int count); - - public void drawElements (int mode, int count, int type, int offset); - - public void enable (int cap); - - public void enableVertexAttribArray (int index); - - public void finish (); - - public void flush (); - - public void framebufferRenderbuffer (int target, int attachment, int renderbuffertarget, WebGLRenderbuffer renderbuffer); - - public void framebufferTexture2D (int target, int attachment, int textarget, WebGLTexture texture, int level); - - public void frontFace (int mode); - - public void generateMipmap (int target); - - public WebGLActiveInfo getActiveAttrib (WebGLProgram program, int index); - - public WebGLActiveInfo getActiveUniform (WebGLProgram program, int index); - - public Object getAttachedShaders (WebGLProgram program); - - public int getAttribLocation (WebGLProgram program, String name); - - public Object getBufferParameter (int target, int pname); - - public Object getParameter (int pname); - - public int getError (); - - public Object getFramebufferAttachmentParameter (int target, int attachment, int pname); - - public Object getProgramParameter (WebGLProgram program, int pname); - - public String getProgramInfoLog (WebGLProgram program); - - public Object getRenderbufferParameter (int target, int pname); - - public Object getShaderParameter (WebGLShader shader, int pname); - - public WebGLShaderPrecisionFormat getShaderPrecisionFormat (int shadertype, int precisiontype); - - public String getShaderInfoLog (WebGLShader shader); - - public String getShaderSource (WebGLShader shader); - - public Object getTexParameter (int target, int pname); - - public Object getUniform (WebGLProgram program, WebGLUniformLocation location); - - public WebGLUniformLocation getUniformLocation (WebGLProgram program, String name); - - public Object getVertexAttrib (int index, int pname); - - public int getVertexAttribOffset (int index, int pname); - - public void hint (int target, int mode); - - public boolean isBuffer (WebGLBuffer buffer); - - public boolean isEnabled (int cap); - - public boolean isFramebuffer (WebGLFramebuffer framebuffer); - - public boolean isProgram (WebGLProgram program); - - public boolean isRenderbuffer (WebGLRenderbuffer renderbuffer); - - public boolean isShader (WebGLShader shader); - - public boolean isTexture (WebGLTexture texture); - - public void lineWidth (float width); - - public void linkProgram (WebGLProgram program); - - public void pixelStorei (int pname, int param); - - public void polygonOffset (float factor, float units); - - public void readPixels (int x, int y, int width, int height, int format, int type, ArrayBufferView pixels); - - public void renderbufferStorage (int target, int internalformat, int width, int height); - - public void sampleCoverage (float value, boolean invert); - - public void scissor (int x, int y, int width, int height); - - public void shaderSource (WebGLShader shader, String source); - - public void stencilFunc (int func, int ref, int mask); - - public void stencilFuncSeparate (int face, int func, int ref, int mask); - - public void stencilMask (int mask); - - public void stencilMaskSeparate (int face, int mask); - - public void stencilOp (int fail, int zfail, int zpass); - - public void stencilOpSeparate (int face, int fail, int zfail, int zpass); - - public void texImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, - ArrayBufferView pixels); - - public void texImage2D (int target, int level, int internalformat, int format, int type, ImageData pixels); - - public void texImage2D (int target, int level, int internalformat, int format, int type, HTMLImageElement image); - - public void texImage2D (int target, int level, int internalformat, int format, int type, HTMLCanvasElement canvas); - - public void texImage2D (int target, int level, int internalformat, int format, int type, HTMLVideoElement video); - - public void texParameterf (int target, int pname, float param); - - public void texParameteri (int target, int pname, int param); - - public void texSubImage2D (int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, - ArrayBufferView pixels); - - public void texSubImage2D (int target, int level, int xoffset, int yoffset, int format, int type, ImageData pixels); - - public void texSubImage2D (int target, int level, int xoffset, int yoffset, int format, int type, HTMLImageElement image); // May - // throw - // DOMException - - public void texSubImage2D (int target, int level, int xoffset, int yoffset, int format, int type, HTMLCanvasElement canvas); - - public void texSubImage2D (int target, int level, int xoffset, int yoffset, int format, int type, HTMLVideoElement video); - - public void uniform1f (WebGLUniformLocation location, float x); - - public void uniform1fv (WebGLUniformLocation location, Float32Array v); - - public void uniform1fv (WebGLUniformLocation location, Object v); - - public void uniform1i (WebGLUniformLocation location, int x); - - public void uniform1iv (WebGLUniformLocation location, Int32Array v); - - public void uniform1iv (WebGLUniformLocation location, Object v); - - public void uniform2f (WebGLUniformLocation location, float x, float y); - - public void uniform2fv (WebGLUniformLocation location, Float32Array v); - - public void uniform2fv (WebGLUniformLocation location, Object v); - - public void uniform2i (WebGLUniformLocation location, int x, int y); - - public void uniform2iv (WebGLUniformLocation location, Int32Array v); - - public void uniform2iv (WebGLUniformLocation location, Object v); - - public void uniform3f (WebGLUniformLocation location, float x, float y, float z); - - public void uniform3fv (WebGLUniformLocation location, Float32Array v); - - public void uniform3fv (WebGLUniformLocation location, Object v); - - public void uniform3i (WebGLUniformLocation location, int x, int y, int z); - - public void uniform3iv (WebGLUniformLocation location, Int32Array v); - - public void uniform3iv (WebGLUniformLocation location, Object v); - - public void uniform4f (WebGLUniformLocation location, float x, float y, float z, float w); - - public void uniform4fv (WebGLUniformLocation location, Float32Array v); - - public void uniform4fv (WebGLUniformLocation location, Object v); - - public void uniform4i (WebGLUniformLocation location, int x, int y, int z, int w); - - public void uniform4iv (WebGLUniformLocation location, Int32Array v); - - public void uniform4iv (WebGLUniformLocation location, Object v); - - public void uniformMatrix2fv (WebGLUniformLocation location, boolean transpose, Float32Array value); - - public void uniformMatrix2fv (WebGLUniformLocation location, boolean transpose, Object value); - - public void uniformMatrix3fv (WebGLUniformLocation location, boolean transpose, Float32Array value); - - public void uniformMatrix3fv (WebGLUniformLocation location, boolean transpose, Object value); - - public void uniformMatrix4fv (WebGLUniformLocation location, boolean transpose, Float32Array value); - - public void uniformMatrix4fv (WebGLUniformLocation location, boolean transpose, float[] value); - - public void useProgram (WebGLProgram program); - - public void validateProgram (WebGLProgram program); - - public void vertexAttrib1f (int indx, float x); - - public void vertexAttrib1fv (int indx, Float32Array values); - - public void vertexAttrib1fv (int indx, Object values); - - public void vertexAttrib2f (int indx, float x, float y); - - public void vertexAttrib2fv (int indx, Float32Array values); - - public void vertexAttrib2fv (int indx, Object values); - - public void vertexAttrib3f (int indx, float x, float y, float z); - - public void vertexAttrib3fv (int indx, Float32Array values); - - public void vertexAttrib3fv (int indx, Object values); - - public void vertexAttrib4f (int indx, float x, float y, float z, float w); - - public void vertexAttrib4fv (int indx, Float32Array values); - - public void vertexAttrib4fv (int indx, Object values); - - public void vertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, int offset); - - public void viewport (int x, int y, int width, int height); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShader.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShader.java deleted file mode 100644 index b05cf1f7..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShader.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLShader extends WebGLObject { -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShaderPrecisionFormat.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShaderPrecisionFormat.java deleted file mode 100644 index 6597d591..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLShaderPrecisionFormat.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLShaderPrecisionFormat { - public int getRangeMin (); - - public int getRangeMax (); - - public int getPrecision (); -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLTexture.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLTexture.java deleted file mode 100644 index 8664d2df..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLTexture.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLTexture extends WebGLObject { -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLUniformLocation.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLUniformLocation.java deleted file mode 100644 index a62a227a..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLUniformLocation.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.js.webgl; - -/** @author xpenatan */ -public interface WebGLUniformLocation extends WebGLObject { -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest.java b/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest.java deleted file mode 100644 index 7a1ec7a9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface AnonXMLHttpRequest extends XMLHttpRequest -{ - // AnonXMLHttpRequest -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest_Constructor.java deleted file mode 100644 index a5de1f80..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/AnonXMLHttpRequest_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface AnonXMLHttpRequest_Constructor -{ - // Constructor - public AnonXMLHttpRequest createInstance(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Attr.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Attr.java deleted file mode 100644 index 6b2191c4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/Attr.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface Attr -{ - // Attr - public String getNamespaceURI(); - public String getPrefix(); - public String getLocalName(); - public String getName(); - public String getValue(); - public void setValue(String value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/BooleanArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/BooleanArray.java deleted file mode 100644 index 7f428299..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/BooleanArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface BooleanArray -{ - // BooleanArray - public int getLength(); - public void setLength(int length); - public boolean getElement(int index); - public void setElement(int index, boolean value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ByteArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ByteArray.java deleted file mode 100644 index 7b98daeb..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/ByteArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface ByteArray -{ - // ByteArray - public int getLength(); - public void setLength(int length); - public byte getElement(int index); - public void setElement(int index, byte value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/CaretPosition.java b/backends/gdx-backend-dragome/src/org/w3c/dom/CaretPosition.java deleted file mode 100644 index 9de78e35..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/CaretPosition.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface CaretPosition -{ - // CaretPosition - public Node getOffsetNode(); - public int getOffset(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/CharacterData.java b/backends/gdx-backend-dragome/src/org/w3c/dom/CharacterData.java deleted file mode 100644 index bd28ec09..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/CharacterData.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface CharacterData extends Node -{ - // CharacterData - public String getData(); - public void setData(String data); - public int getLength(); - public String substringData(int offset, int count); - public void appendData(String data); - public void insertData(int offset, String data); - public void deleteData(int offset, int count); - public void replaceData(int offset, int count, String data); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Comment.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Comment.java deleted file mode 100644 index 199c9fc7..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/Comment.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface Comment extends CharacterData -{ - // Comment -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMElementMap.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMElementMap.java deleted file mode 100644 index 2b0a1b70..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMElementMap.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DOMElementMap -{ - // DOMElementMap - public String getElement(String name); - public void setElement(String name, Element value); - public void createElement(String name, Element value); - public void deleteElement(String name); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMException.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMException.java deleted file mode 100644 index 53435705..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMException.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public class DOMException extends RuntimeException -{ - public DOMException(short code, String message) - { - super(message); - this.code = code; - } - public static final short INDEX_SIZE_ERR = 1; - public static final short DOMSTRING_SIZE_ERR = 2; - public static final short HIERARCHY_REQUEST_ERR = 3; - public static final short WRONG_DOCUMENT_ERR = 4; - public static final short INVALID_CHARACTER_ERR = 5; - public static final short NO_DATA_ALLOWED_ERR = 6; - public static final short NO_MODIFICATION_ALLOWED_ERR = 7; - public static final short NOT_FOUND_ERR = 8; - public static final short NOT_SUPPORTED_ERR = 9; - public static final short INUSE_ATTRIBUTE_ERR = 10; - public static final short INVALID_STATE_ERR = 11; - public static final short SYNTAX_ERR = 12; - public static final short INVALID_MODIFICATION_ERR = 13; - public static final short NAMESPACE_ERR = 14; - public static final short INVALID_ACCESS_ERR = 15; - public static final short VALIDATION_ERR = 16; - public static final short TYPE_MISMATCH_ERR = 17; - public static final short SECURITY_ERR = 18; - public static final short NETWORK_ERR = 19; - public static final short ABORT_ERR = 20; - public static final short URL_MISMATCH_ERR = 21; - public static final short QUOTA_EXCEEDED_ERR = 22; - public static final short TIMEOUT_ERR = 23; - public static final short INVALID_NODE_TYPE_ERR = 24; - public static final short DATA_CLONE_ERR = 25; - public short code; - public String name; -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMImplementation.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMImplementation.java deleted file mode 100644 index 42854e20..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMImplementation.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DOMImplementation -{ - // DOMImplementation - public boolean hasFeature(String feature, String version); - public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId); - public Document createDocument(String namespace, String qualifiedName, DocumentType doctype); - public Document createHTMLDocument(String title); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMSettableTokenList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMSettableTokenList.java deleted file mode 100644 index aea6c403..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMSettableTokenList.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DOMSettableTokenList extends DOMTokenList -{ - // DOMSettableTokenList - public String getValue(); - public void setValue(String value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringList.java deleted file mode 100644 index f9e32e9a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringList.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DOMStringList -{ - // DOMStringList - public int getLength(); - public String item(int index); - public boolean contains(String string); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringMap.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringMap.java deleted file mode 100644 index 670673c5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMStringMap.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DOMStringMap -{ - // DOMStringMap - public String getElement(String name); - public void setElement(String name, String value); - public void createElement(String name, String value); - public void deleteElement(String name); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMTokenList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DOMTokenList.java deleted file mode 100644 index f4a78caa..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DOMTokenList.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DOMTokenList -{ - // DOMTokenList - public int getLength(); - public String item(int index); - public boolean contains(String token); - public void add(String token); - public void remove(String token); - public boolean toggle(String token); - public String toString(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Document.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Document.java deleted file mode 100644 index 62335078..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/Document.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -import org.w3c.dom.ObjectArray; -import org.w3c.dom.events.Event; -import org.w3c.dom.stylesheets.StyleSheet; - -public interface Document extends Node -{ - // Document - public DOMImplementation getImplementation(); - public String getDocumentURI(); - public void setDocumentURI(String documentURI); - public String getCompatMode(); - public String getCharset(); - public void setCharset(String charset); - public String getCharacterSet(); - public String getDefaultCharset(); - public String getContentType(); - public DocumentType getDoctype(); - public Element getDocumentElement(); - public NodeList getElementsByTagName(String qualifiedName); - public NodeList getElementsByTagNameNS(String namespace, String localName); - public NodeList getElementsByClassName(String classNames); - public Element getElementById(String elementId); - public Element createElement(String localName); - public Element createElementNS(String namespace, String qualifiedName); - public DocumentFragment createDocumentFragment(); - public Text createTextNode(String data); - public Comment createComment(String data); - public ProcessingInstruction createProcessingInstruction(String target, String data); - public Node importNode(Node node, boolean deep); - public Node adoptNode(Node node); - public Event createEvent(String eventInterfaceName); - // Document-1 - public ObjectArray getStyleSheets(); - public String getSelectedStyleSheetSet(); - public void setSelectedStyleSheetSet(String selectedStyleSheetSet); - public String getLastStyleSheetSet(); - public String getPreferredStyleSheetSet(); - public DOMStringList getStyleSheetSets(); - public void enableStyleSheetsForSet(String name); - // Document-2 - public Element elementFromPoint(float x, float y); - public CaretPosition caretPositionFromPoint(float x, float y); - // NodeSelector - public Element querySelector(String selectors); - public NodeList querySelectorAll(String selectors); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentFragment.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentFragment.java deleted file mode 100644 index 670916f5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentFragment.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DocumentFragment extends Node -{ - // DocumentFragment - // NodeSelector - public Element querySelector(String selectors); - public NodeList querySelectorAll(String selectors); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentType.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentType.java deleted file mode 100644 index 51241b25..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DocumentType.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DocumentType extends Node -{ - // DocumentType - public String getName(); - public String getPublicId(); - public String getSystemId(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/DoubleArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/DoubleArray.java deleted file mode 100644 index 63b724fe..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/DoubleArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface DoubleArray -{ - // DoubleArray - public int getLength(); - public void setLength(int length); - public double getElement(int index); - public void setElement(int index, double value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Element.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Element.java deleted file mode 100644 index 76dfcbdd..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/Element.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -import org.w3c.dom.ObjectArray; -import org.w3c.dom.html.HTMLCollection; -import org.w3c.dom.views.ClientRect; -import org.w3c.dom.views.ClientRectList; - -public interface Element extends Node -{ - // Element - public String getNamespaceURI(); - public String getPrefix(); - public String getLocalName(); - public String getTagName(); - public ObjectArray getAttributes(); - public String getAttribute(String qualifiedName); - public String getAttributeNS(String namespace, String localName); - public void setAttribute(String qualifiedName, String value); - public void setAttributeNS(String namespace, String qualifiedName, String value); - public void removeAttribute(String qualifiedName); - public void removeAttributeNS(String namespace, String localName); - public boolean hasAttribute(String qualifiedName); - public boolean hasAttributeNS(String namespace, String localName); - public NodeList getElementsByTagName(String qualifiedName); - public NodeList getElementsByTagNameNS(String namespace, String localName); - public NodeList getElementsByClassName(String classNames); - public HTMLCollection getChildren(); - public Element getFirstElementChild(); - public Element getLastElementChild(); - public Element getPreviousElementSibling(); - public Element getNextElementSibling(); - public int getChildElementCount(); - // Element-3 - public ClientRectList getClientRects(); - public ClientRect getBoundingClientRect(); - public void scrollIntoView(); - public void scrollIntoView(boolean top); - public int getScrollTop(); - public void setScrollTop(int scrollTop); - public int getScrollLeft(); - public void setScrollLeft(int scrollLeft); - public int getScrollWidth(); - public int getScrollHeight(); - public int getClientTop(); - public int getClientLeft(); - public int getClientWidth(); - public int getClientHeight(); - // NodeSelector - public Element querySelector(String selectors); - public NodeList querySelectorAll(String selectors); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/FloatArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/FloatArray.java deleted file mode 100644 index e04b2b66..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/FloatArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface FloatArray -{ - // FloatArray - public int getLength(); - public void setLength(int length); - public float getElement(int index); - public void setElement(int index, float value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/FormData.java b/backends/gdx-backend-dragome/src/org/w3c/dom/FormData.java deleted file mode 100644 index 3a2eec5e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/FormData.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -import org.w3c.dom.file.Blob; - -public interface FormData -{ - // FormData - public void append(String name, Blob value); - public void append(String name, String value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/FormData_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/FormData_Constructor.java deleted file mode 100644 index 29815090..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/FormData_Constructor.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -import org.w3c.dom.html.HTMLFormElement; - -public interface FormData_Constructor -{ - // Constructor - public FormData createInstance(); - public FormData createInstance(HTMLFormElement form); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/LongArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/LongArray.java deleted file mode 100644 index 9819f6f5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/LongArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface LongArray -{ - // LongArray - public int getLength(); - public void setLength(int length); - public int getElement(int index); - public void setElement(int index, int value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/LongLongArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/LongLongArray.java deleted file mode 100644 index 2a164807..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/LongLongArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface LongLongArray -{ - // LongLongArray - public int getLength(); - public void setLength(int length); - public long getElement(int index); - public void setElement(int index, long value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Node.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Node.java deleted file mode 100644 index 19b32a73..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/Node.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -import org.w3c.dom.events.EventTarget; - -public interface Node extends EventTarget -{ - // Node - public static final short ELEMENT_NODE = 1; - public static final short ATTRIBUTE_NODE = 2; - public static final short TEXT_NODE = 3; - public static final short CDATA_SECTION_NODE = 4; - public static final short ENTITY_REFERENCE_NODE = 5; - public static final short ENTITY_NODE = 6; - public static final short PROCESSING_INSTRUCTION_NODE = 7; - public static final short COMMENT_NODE = 8; - public static final short DOCUMENT_NODE = 9; - public static final short DOCUMENT_TYPE_NODE = 10; - public static final short DOCUMENT_FRAGMENT_NODE = 11; - public static final short NOTATION_NODE = 12; - public short getNodeType(); - public String getNodeName(); - public String getBaseURI(); - public Document getOwnerDocument(); - public Node getParentNode(); - public Element getParentElement(); - public boolean hasChildNodes(); - public NodeList getChildNodes(); - public Node getFirstChild(); - public Node getLastChild(); - public Node getPreviousSibling(); - public Node getNextSibling(); - public static final short DOCUMENT_POSITION_DISCONNECTED = 0x01; - public static final short DOCUMENT_POSITION_PRECEDING = 0x02; - public static final short DOCUMENT_POSITION_FOLLOWING = 0x04; - public static final short DOCUMENT_POSITION_CONTAINS = 0x08; - public static final short DOCUMENT_POSITION_CONTAINED_BY = 0x10; - public static final short DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20; - public short compareDocumentPosition(Node other); - public String getNodeValue(); - public void setNodeValue(String nodeValue); - public String getTextContent(); - public void setTextContent(String textContent); - public Node insertBefore(Node newChild, Node refChild); - public Node replaceChild(Node newChild, Node oldChild); - public Node removeChild(Node oldChild); - public Node appendChild(Node newChild); - public Node cloneNode(boolean deep); - public boolean isSameNode(Node node); - public boolean isEqualNode(Node node); - public String lookupPrefix(String namespace); - public String lookupNamespaceURI(String prefix); - public boolean isDefaultNamespace(String namespace); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/NodeList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/NodeList.java deleted file mode 100644 index c850659e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/NodeList.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface NodeList -{ - // NodeList - public Node item(int index); - public int getLength(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ObjectArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ObjectArray.java deleted file mode 100644 index 31b69269..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/ObjectArray.java +++ /dev/null @@ -1,8 +0,0 @@ -package org.w3c.dom; - -public interface ObjectArray { - int getLength(); - void setLength(int length); - E getElement(int index); - void setElement(int index, E value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/OctetArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/OctetArray.java deleted file mode 100644 index 42d994f4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/OctetArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface OctetArray -{ - // OctetArray - public int getLength(); - public void setLength(int length); - public byte getElement(int index); - public void setElement(int index, byte value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ProcessingInstruction.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ProcessingInstruction.java deleted file mode 100644 index 9ed26ee4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/ProcessingInstruction.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface ProcessingInstruction extends Node -{ - // ProcessingInstruction - public String getTarget(); - public String getData(); - public void setData(String data); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ShortArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ShortArray.java deleted file mode 100644 index c6b2ca97..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/ShortArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface ShortArray -{ - // ShortArray - public int getLength(); - public void setLength(int length); - public short getElement(int index); - public void setElement(int index, short value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/Text.java b/backends/gdx-backend-dragome/src/org/w3c/dom/Text.java deleted file mode 100644 index 07bb129b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/Text.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface Text extends CharacterData -{ - // Text - public Text splitText(int offset); - public String getWholeText(); - public Text replaceWholeText(String data); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedByteArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedByteArray.java deleted file mode 100644 index 2cfc3201..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedByteArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface UnsignedByteArray -{ - // UnsignedByteArray - public int getLength(); - public void setLength(int length); - public byte getElement(int index); - public void setElement(int index, byte value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongArray.java deleted file mode 100644 index 26a56388..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface UnsignedLongArray -{ - // UnsignedLongArray - public int getLength(); - public void setLength(int length); - public int getElement(int index); - public void setElement(int index, int value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongLongArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongLongArray.java deleted file mode 100644 index 4404fd78..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedLongLongArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface UnsignedLongLongArray -{ - // UnsignedLongLongArray - public int getLength(); - public void setLength(int length); - public long getElement(int index); - public void setElement(int index, long value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedShortArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedShortArray.java deleted file mode 100644 index 06d040c2..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/UnsignedShortArray.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface UnsignedShortArray -{ - // UnsignedShortArray - public int getLength(); - public void setLength(int length); - public short getElement(int index); - public void setElement(int index, short value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest.java b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest.java deleted file mode 100644 index 628068f5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest.java +++ /dev/null @@ -1,47 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -import org.w3c.dom.file.Blob; -import org.w3c.dom.html.Function; -import org.w3c.dom.typedarray.ArrayBuffer; - -public interface XMLHttpRequest extends XMLHttpRequestEventTarget -{ - // XMLHttpRequest - public Function getOnreadystatechange(); - public void setOnreadystatechange(Function onreadystatechange); - public static final short UNSENT = 0; - public static final short OPENED = 1; - public static final short HEADERS_RECEIVED = 2; - public static final short LOADING = 3; - public static final short DONE = 4; - public short getReadyState(); - public void open(String method, String url); - public void open(String method, String url, boolean async); - public void open(String method, String url, boolean async, String user); - public void open(String method, String url, boolean async, String user, String password); - public void setRequestHeader(String header, String value); - public int getTimeout(); - public void setTimeout(int timeout); - public boolean getWithCredentials(); - public void setWithCredentials(boolean withCredentials); - public XMLHttpRequestUpload getUpload(); - public void send(); - public void send(ArrayBuffer data); - public void send(Blob data); - public void send(Document data); - public void send(FormData data); - public void send(String data); - public void abort(); - public short getStatus(); - public String getStatusText(); - public String getResponseHeader(String header); - public String getAllResponseHeaders(); - public void overrideMimeType(String mime); - public String getResponseType(); - public void setResponseType(String responseType); - public Object getResponse(); - public String getResponseText(); - public Document getResponseXML(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestEventTarget.java b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestEventTarget.java deleted file mode 100644 index dd2c27d4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestEventTarget.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.html.Function; - -public interface XMLHttpRequestEventTarget extends EventTarget -{ - // XMLHttpRequestEventTarget - public Function getOnloadstart(); - public void setOnloadstart(Function onloadstart); - public Function getOnprogress(); - public void setOnprogress(Function onprogress); - public Function getOnabort(); - public void setOnabort(Function onabort); - public Function getOnerror(); - public void setOnerror(Function onerror); - public Function getOnload(); - public void setOnload(Function onload); - public Function getOntimeout(); - public void setOntimeout(Function ontimeout); - public Function getOnloadend(); - public void setOnloadend(Function onloadend); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestUpload.java b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestUpload.java deleted file mode 100644 index 90798607..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequestUpload.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface XMLHttpRequestUpload extends XMLHttpRequestEventTarget -{ - // XMLHttpRequestUpload -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest_Constructor.java deleted file mode 100644 index 5e83005d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/XMLHttpRequest_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom; - -public interface XMLHttpRequest_Constructor -{ - // Constructor - public XMLHttpRequest createInstance(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSS2Properties.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSS2Properties.java deleted file mode 100644 index 92516d79..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSS2Properties.java +++ /dev/null @@ -1,252 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSS2Properties -{ - // CSS2Properties - public String getAzimuth(); - public void setAzimuth(String azimuth); - public String getBackground(); - public void setBackground(String background); - public String getBackgroundAttachment(); - public void setBackgroundAttachment(String backgroundAttachment); - public String getBackgroundColor(); - public void setBackgroundColor(String backgroundColor); - public String getBackgroundImage(); - public void setBackgroundImage(String backgroundImage); - public String getBackgroundPosition(); - public void setBackgroundPosition(String backgroundPosition); - public String getBackgroundRepeat(); - public void setBackgroundRepeat(String backgroundRepeat); - public String getBorder(); - public void setBorder(String border); - public String getBorderCollapse(); - public void setBorderCollapse(String borderCollapse); - public String getBorderColor(); - public void setBorderColor(String borderColor); - public String getBorderSpacing(); - public void setBorderSpacing(String borderSpacing); - public String getBorderStyle(); - public void setBorderStyle(String borderStyle); - public String getBorderTop(); - public void setBorderTop(String borderTop); - public String getBorderRight(); - public void setBorderRight(String borderRight); - public String getBorderBottom(); - public void setBorderBottom(String borderBottom); - public String getBorderLeft(); - public void setBorderLeft(String borderLeft); - public String getBorderTopColor(); - public void setBorderTopColor(String borderTopColor); - public String getBorderRightColor(); - public void setBorderRightColor(String borderRightColor); - public String getBorderBottomColor(); - public void setBorderBottomColor(String borderBottomColor); - public String getBorderLeftColor(); - public void setBorderLeftColor(String borderLeftColor); - public String getBorderTopStyle(); - public void setBorderTopStyle(String borderTopStyle); - public String getBorderRightStyle(); - public void setBorderRightStyle(String borderRightStyle); - public String getBorderBottomStyle(); - public void setBorderBottomStyle(String borderBottomStyle); - public String getBorderLeftStyle(); - public void setBorderLeftStyle(String borderLeftStyle); - public String getBorderTopWidth(); - public void setBorderTopWidth(String borderTopWidth); - public String getBorderRightWidth(); - public void setBorderRightWidth(String borderRightWidth); - public String getBorderBottomWidth(); - public void setBorderBottomWidth(String borderBottomWidth); - public String getBorderLeftWidth(); - public void setBorderLeftWidth(String borderLeftWidth); - public String getBorderWidth(); - public void setBorderWidth(String borderWidth); - public String getBottom(); - public void setBottom(String bottom); - public String getCaptionSide(); - public void setCaptionSide(String captionSide); - public String getClear(); - public void setClear(String clear); - public String getClip(); - public void setClip(String clip); - public String getColor(); - public void setColor(String color); - public String getContent(); - public void setContent(String content); - public String getCounterIncrement(); - public void setCounterIncrement(String counterIncrement); - public String getCounterReset(); - public void setCounterReset(String counterReset); - public String getCue(); - public void setCue(String cue); - public String getCueAfter(); - public void setCueAfter(String cueAfter); - public String getCueBefore(); - public void setCueBefore(String cueBefore); - public String getCursor(); - public void setCursor(String cursor); - public String getDirection(); - public void setDirection(String direction); - public String getDisplay(); - public void setDisplay(String display); - public String getElevation(); - public void setElevation(String elevation); - public String getEmptyCells(); - public void setEmptyCells(String emptyCells); - public String getCssFloat(); - public void setCssFloat(String cssFloat); - public String getFont(); - public void setFont(String font); - public String getFontFamily(); - public void setFontFamily(String fontFamily); - public String getFontSize(); - public void setFontSize(String fontSize); - public String getFontSizeAdjust(); - public void setFontSizeAdjust(String fontSizeAdjust); - public String getFontStretch(); - public void setFontStretch(String fontStretch); - public String getFontStyle(); - public void setFontStyle(String fontStyle); - public String getFontVariant(); - public void setFontVariant(String fontVariant); - public String getFontWeight(); - public void setFontWeight(String fontWeight); - public String getHeight(); - public void setHeight(String height); - public String getLeft(); - public void setLeft(String left); - public String getLetterSpacing(); - public void setLetterSpacing(String letterSpacing); - public String getLineHeight(); - public void setLineHeight(String lineHeight); - public String getListStyle(); - public void setListStyle(String listStyle); - public String getListStyleImage(); - public void setListStyleImage(String listStyleImage); - public String getListStylePosition(); - public void setListStylePosition(String listStylePosition); - public String getListStyleType(); - public void setListStyleType(String listStyleType); - public String getMargin(); - public void setMargin(String margin); - public String getMarginTop(); - public void setMarginTop(String marginTop); - public String getMarginRight(); - public void setMarginRight(String marginRight); - public String getMarginBottom(); - public void setMarginBottom(String marginBottom); - public String getMarginLeft(); - public void setMarginLeft(String marginLeft); - public String getMarkerOffset(); - public void setMarkerOffset(String markerOffset); - public String getMarks(); - public void setMarks(String marks); - public String getMaxHeight(); - public void setMaxHeight(String maxHeight); - public String getMaxWidth(); - public void setMaxWidth(String maxWidth); - public String getMinHeight(); - public void setMinHeight(String minHeight); - public String getMinWidth(); - public void setMinWidth(String minWidth); - public String getOrphans(); - public void setOrphans(String orphans); - public String getOutline(); - public void setOutline(String outline); - public String getOutlineColor(); - public void setOutlineColor(String outlineColor); - public String getOutlineStyle(); - public void setOutlineStyle(String outlineStyle); - public String getOutlineWidth(); - public void setOutlineWidth(String outlineWidth); - public String getOverflow(); - public void setOverflow(String overflow); - public String getPadding(); - public void setPadding(String padding); - public String getPaddingTop(); - public void setPaddingTop(String paddingTop); - public String getPaddingRight(); - public void setPaddingRight(String paddingRight); - public String getPaddingBottom(); - public void setPaddingBottom(String paddingBottom); - public String getPaddingLeft(); - public void setPaddingLeft(String paddingLeft); - public String getPage(); - public void setPage(String page); - public String getPageBreakAfter(); - public void setPageBreakAfter(String pageBreakAfter); - public String getPageBreakBefore(); - public void setPageBreakBefore(String pageBreakBefore); - public String getPageBreakInside(); - public void setPageBreakInside(String pageBreakInside); - public String getPause(); - public void setPause(String pause); - public String getPauseAfter(); - public void setPauseAfter(String pauseAfter); - public String getPauseBefore(); - public void setPauseBefore(String pauseBefore); - public String getPitch(); - public void setPitch(String pitch); - public String getPitchRange(); - public void setPitchRange(String pitchRange); - public String getPlayDuring(); - public void setPlayDuring(String playDuring); - public String getPosition(); - public void setPosition(String position); - public String getQuotes(); - public void setQuotes(String quotes); - public String getRichness(); - public void setRichness(String richness); - public String getRight(); - public void setRight(String right); - public String getSize(); - public void setSize(String size); - public String getSpeak(); - public void setSpeak(String speak); - public String getSpeakHeader(); - public void setSpeakHeader(String speakHeader); - public String getSpeakNumeral(); - public void setSpeakNumeral(String speakNumeral); - public String getSpeakPunctuation(); - public void setSpeakPunctuation(String speakPunctuation); - public String getSpeechRate(); - public void setSpeechRate(String speechRate); - public String getStress(); - public void setStress(String stress); - public String getTableLayout(); - public void setTableLayout(String tableLayout); - public String getTextAlign(); - public void setTextAlign(String textAlign); - public String getTextDecoration(); - public void setTextDecoration(String textDecoration); - public String getTextIndent(); - public void setTextIndent(String textIndent); - public String getTextShadow(); - public void setTextShadow(String textShadow); - public String getTextTransform(); - public void setTextTransform(String textTransform); - public String getTop(); - public void setTop(String top); - public String getUnicodeBidi(); - public void setUnicodeBidi(String unicodeBidi); - public String getVerticalAlign(); - public void setVerticalAlign(String verticalAlign); - public String getVisibility(); - public void setVisibility(String visibility); - public String getVoiceFamily(); - public void setVoiceFamily(String voiceFamily); - public String getVolume(); - public void setVolume(String volume); - public String getWhiteSpace(); - public void setWhiteSpace(String whiteSpace); - public String getWidows(); - public void setWidows(String widows); - public String getWidth(); - public void setWidth(String width); - public String getWordSpacing(); - public void setWordSpacing(String wordSpacing); - public String getZIndex(); - public void setZIndex(String zIndex); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSCharsetRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSCharsetRule.java deleted file mode 100644 index 0ef17777..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSCharsetRule.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -public interface CSSCharsetRule extends CSSRule -{ - // CSSCharsetRule - public String getEncoding(); - public void setEncoding(String encoding) throws DOMException; -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSColorComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSColorComponentValue.java deleted file mode 100644 index c8c7fb88..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSColorComponentValue.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSColorComponentValue -{ - // CSSColorComponentValue - public short getRed(); - public void setRed(short red); - public short getGreen(); - public void setGreen(short green); - public short getBlue(); - public void setBlue(short blue); - public float getAlpha(); - public void setAlpha(float alpha); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSComponentValue.java deleted file mode 100644 index 7ccc825b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSComponentValue.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSComponentValue -{ - // CSSComponentValue - public String getType(); - public Object getValue(); - public void setValue(Object value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSFontFaceRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSFontFaceRule.java deleted file mode 100644 index 23ffc52e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSFontFaceRule.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSFontFaceRule extends CSSRule -{ - // CSSFontFaceRule - public CSSStyleDeclaration getStyle(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSIdentifierComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSIdentifierComponentValue.java deleted file mode 100644 index bae1f364..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSIdentifierComponentValue.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSIdentifierComponentValue -{ - // CSSIdentifierComponentValue - public String getIdentifier(); - public void setIdentifier(String identifier); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSImportRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSImportRule.java deleted file mode 100644 index 2795c46b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSImportRule.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -import org.w3c.dom.stylesheets.MediaList; - -public interface CSSImportRule extends CSSRule -{ - // CSSImportRule - public String getHref(); - public MediaList getMedia(); - public void setMedia(String media); - public CSSStyleSheet getStyleSheet(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSKeywordComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSKeywordComponentValue.java deleted file mode 100644 index bd8cd45f..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSKeywordComponentValue.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSKeywordComponentValue -{ - // CSSKeywordComponentValue - public String getKeyword(); - public void setKeyword(String keyword); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSLengthComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSLengthComponentValue.java deleted file mode 100644 index 79c2054f..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSLengthComponentValue.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSLengthComponentValue -{ - // CSSLengthComponentValue - public float getEm(); - public void setEm(float em); - public float getEx(); - public void setEx(float ex); - public float getPx(); - public void setPx(float px); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMapValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMapValue.java deleted file mode 100644 index 733f56d6..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMapValue.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSMapValue -{ - // CSSMapValue - public CSSValue getElement(String name); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMediaRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMediaRule.java deleted file mode 100644 index d7462ebd..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSMediaRule.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -import org.w3c.dom.ObjectArray; -import org.w3c.dom.stylesheets.MediaList; - -public interface CSSMediaRule extends CSSRule -{ - // CSSMediaRule - public MediaList getMedia(); - public void setMedia(String media); - public ObjectArray getCssRules(); - public int insertRule(String rule, int index); - public void deleteRule(int index); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSNamespaceRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSNamespaceRule.java deleted file mode 100644 index 302380f3..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSNamespaceRule.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSNamespaceRule extends CSSRule -{ - // CSSNamespaceRule - public String getNamespaceURI(); - public String getPrefix(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPageRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPageRule.java deleted file mode 100644 index 32763033..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPageRule.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSPageRule extends CSSRule -{ - // CSSPageRule - public String getSelectorText(); - public void setSelectorText(String selectorText); - public CSSStyleDeclaration getStyle(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPercentageComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPercentageComponentValue.java deleted file mode 100644 index 2d146f30..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPercentageComponentValue.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSPercentageComponentValue -{ - // CSSPercentageComponentValue - public float getPercent(); - public void setPercent(float percent); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPrimitiveValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPrimitiveValue.java deleted file mode 100644 index fe5d1b2c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPrimitiveValue.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -public interface CSSPrimitiveValue extends CSSValue -{ - // CSSPrimitiveValue - public static final short CSS_UNKNOWN = 0; - public static final short CSS_NUMBER = 1; - public static final short CSS_PERCENTAGE = 2; - public static final short CSS_EMS = 3; - public static final short CSS_EXS = 4; - public static final short CSS_PX = 5; - public static final short CSS_CM = 6; - public static final short CSS_MM = 7; - public static final short CSS_IN = 8; - public static final short CSS_PT = 9; - public static final short CSS_PC = 10; - public static final short CSS_DEG = 11; - public static final short CSS_RAD = 12; - public static final short CSS_GRAD = 13; - public static final short CSS_MS = 14; - public static final short CSS_S = 15; - public static final short CSS_HZ = 16; - public static final short CSS_KHZ = 17; - public static final short CSS_DIMENSION = 18; - public static final short CSS_STRING = 19; - public static final short CSS_URI = 20; - public static final short CSS_IDENT = 21; - public static final short CSS_ATTR = 22; - public static final short CSS_COUNTER = 23; - public static final short CSS_RECT = 24; - public static final short CSS_RGBCOLOR = 25; - public static final short CSS_UNICODE_RANGE = 102; - public short getPrimitiveType(); - public void setFloatValue(short unitType, float floatValue) throws DOMException; - public float getFloatValue(short unitType) throws DOMException; - public void setStringValue(short stringType, String stringValue) throws DOMException; - public String getStringValue() throws DOMException; - public Counter getCounterValue() throws DOMException; - public Rect getRectValue() throws DOMException; - public RGBColor getRGBColorValue() throws DOMException; -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValue.java deleted file mode 100644 index ae13175a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValue.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSPropertyValue -{ - // CSSPropertyValue - public String getCssText(); - public void setCssText(String cssText); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValueList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValueList.java deleted file mode 100644 index 601ec8f1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSPropertyValueList.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -import org.w3c.dom.ObjectArray; - -public interface CSSPropertyValueList -{ - // CSSPropertyValueList - public ObjectArray getList(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSRule.java deleted file mode 100644 index e82010ae..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSRule.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSRule -{ - // CSSRule - public static final short STYLE_RULE = 1; - public static final short IMPORT_RULE = 3; - public static final short MEDIA_RULE = 4; - public static final short FONT_FACE_RULE = 5; - public static final short PAGE_RULE = 6; - public static final short NAMESPACE_RULE = 10; - public short getType(); - public String getCssText(); - public void setCssText(String cssText); - public CSSRule getParentRule(); - public CSSStyleSheet getParentStyleSheet(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStringComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStringComponentValue.java deleted file mode 100644 index dbf51d07..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStringComponentValue.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSStringComponentValue -{ - // CSSStringComponentValue - public String getString(); - public void setString(String string); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclaration.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclaration.java deleted file mode 100644 index fc5d167a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclaration.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSStyleDeclaration -{ - // CSSStyleDeclaration - public String getCssText(); - public void setCssText(String cssText); - public int getLength(); - public String item(int index); - public String getPropertyValue(String property); - public String getPropertyPriority(String property); - public void setProperty(String property, String value); - public void setProperty(String property, String value, String priority); - public String removeProperty(String property); - public CSSStyleDeclarationValue getValues(); - public CSSRule getParentRule(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclarationValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclarationValue.java deleted file mode 100644 index 1d93f141..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleDeclarationValue.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSStyleDeclarationValue -{ - // CSSStyleDeclarationValue -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleRule.java deleted file mode 100644 index ad73bbc9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleRule.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSStyleRule extends CSSRule -{ - // CSSStyleRule - public String getSelectorText(); - public void setSelectorText(String selectorText); - public CSSStyleDeclaration getStyle(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleSheet.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleSheet.java deleted file mode 100644 index 9200ecd4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSStyleSheet.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -import org.w3c.dom.ObjectArray; -import org.w3c.dom.stylesheets.StyleSheet; - -public interface CSSStyleSheet extends StyleSheet -{ - // CSSStyleSheet - public CSSRule getOwnerRule(); - public ObjectArray getCssRules(); - public int insertRule(String rule, int index); - public void deleteRule(int index); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSURLComponentValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSURLComponentValue.java deleted file mode 100644 index ff0d0016..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSURLComponentValue.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSURLComponentValue -{ - // CSSURLComponentValue - public String getUrl(); - public void setUrl(String url); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSUnknownRule.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSUnknownRule.java deleted file mode 100644 index fddf46d9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSUnknownRule.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSUnknownRule extends CSSRule -{ - // CSSUnknownRule -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValue.java deleted file mode 100644 index cb0b6ab1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValue.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSValue -{ - // CSSValue - public static final short CSS_INHERIT = 0; - public static final short CSS_PRIMITIVE_VALUE = 1; - public static final short CSS_VALUE_LIST = 2; - public static final short CSS_CUSTOM = 3; - public String getCssText(); - public void setCssText(String cssText); - public short getCssValueType(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValueList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValueList.java deleted file mode 100644 index dbf27cbb..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/CSSValueList.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface CSSValueList extends CSSValue -{ - // CSSValueList - public int getLength(); - public CSSValue item(int index); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/Counter.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/Counter.java deleted file mode 100644 index 986207ba..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/Counter.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface Counter -{ - // Counter - public String getIdentifier(); - public String getListStyle(); - public String getSeparator(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/DOMImplementationCSS.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/DOMImplementationCSS.java deleted file mode 100644 index c057b45a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/DOMImplementationCSS.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -import org.w3c.dom.DOMException; - -public interface DOMImplementationCSS -{ - // DOMImplementationCSS - public CSSStyleSheet createCSSStyleSheet(String title, String media) throws DOMException; -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/DocumentCSS.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/DocumentCSS.java deleted file mode 100644 index 711e2941..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/DocumentCSS.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -import org.w3c.dom.Element; - -public interface DocumentCSS -{ - // DocumentCSS - public CSSStyleDeclaration getOverrideStyle(Element elt, String pseudoElt); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/ElementCSSInlineStyle.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/ElementCSSInlineStyle.java deleted file mode 100644 index cef742e4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/ElementCSSInlineStyle.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface ElementCSSInlineStyle -{ - // ElementCSSInlineStyle - public CSSStyleDeclaration getStyle(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/RGBColor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/RGBColor.java deleted file mode 100644 index 09f3dcaa..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/RGBColor.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface RGBColor -{ - // RGBColor - public CSSPrimitiveValue getRed(); - public CSSPrimitiveValue getGreen(); - public CSSPrimitiveValue getBlue(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/css/Rect.java b/backends/gdx-backend-dragome/src/org/w3c/dom/css/Rect.java deleted file mode 100644 index c3a92949..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/css/Rect.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.css; - -public interface Rect -{ - // Rect - public CSSPrimitiveValue getTop(); - public CSSPrimitiveValue getRight(); - public CSSPrimitiveValue getBottom(); - public CSSPrimitiveValue getLeft(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CompositionEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CompositionEvent.java deleted file mode 100644 index b75b8646..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CompositionEvent.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -import org.w3c.dom.html.Window; - -public interface CompositionEvent extends UIEvent -{ - // CompositionEvent - public String getData(); - public String getLocale(); - public void initCompositionEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, String dataArg, String localeArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent.java deleted file mode 100644 index a8039c89..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface CustomEvent extends Event -{ - // CustomEvent - public Object getDetail(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEventInit.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEventInit.java deleted file mode 100644 index d98a7b25..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEventInit.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface CustomEventInit extends EventInit -{ - // CustomEventInit - public Object getDetail(); - public void setDetail(Object detail); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent_Constructor.java deleted file mode 100644 index 31784be9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/CustomEvent_Constructor.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface CustomEvent_Constructor -{ - // Constructor - public CustomEvent createInstance(String type); - public CustomEvent createInstance(String type, CustomEventInit eventInitDict); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event.java deleted file mode 100644 index 560cfb6c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface Event -{ - // Event - public String getType(); - public EventTarget getTarget(); - public EventTarget getCurrentTarget(); - public static final short CAPTURING_PHASE = 1; - public static final short AT_TARGET = 2; - public static final short BUBBLING_PHASE = 3; - public short getEventPhase(); - public void stopPropagation(); - public void stopImmediatePropagation(); - public boolean getBubbles(); - public boolean getCancelable(); - public void preventDefault(); - public boolean getDefaultPrevented(); - public boolean getIsTrusted(); - public long getTimeStamp(); - public void initEvent(String type, boolean bubbles, boolean cancelable); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventException.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventException.java deleted file mode 100644 index 0c411497..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventException.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public class EventException extends RuntimeException -{ - public EventException(short code, String message) - { - super(message); - this.code = code; - } - public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0; - public static final short DISPATCH_REQUEST_ERR = 1; - public short code; -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventInit.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventInit.java deleted file mode 100644 index 1a090a51..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventInit.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface EventInit -{ - // EventInit - public boolean getBubbles(); - public void setBubbles(boolean bubbles); - public boolean getCancelable(); - public void setCancelable(boolean cancelable); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventListener.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventListener.java deleted file mode 100644 index 23e64960..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventListener.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface EventListener -{ - // EventListener - public void handleEvent(Event event); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventTarget.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventTarget.java deleted file mode 100644 index 7a1ad9ac..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/EventTarget.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface EventTarget -{ - // EventTarget - public void addEventListener(String type, EventListener listener); - public void addEventListener(String type, EventListener listener, boolean capture); - public void removeEventListener(String type, EventListener listener); - public void removeEventListener(String type, EventListener listener, boolean capture); - public boolean dispatchEvent(Event event); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event_Constructor.java deleted file mode 100644 index fb2f9276..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/Event_Constructor.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface Event_Constructor -{ - // Constructor - public Event createInstance(String type); - public Event createInstance(String type, EventInit eventInitDict); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/FocusEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/FocusEvent.java deleted file mode 100644 index d3b1ff62..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/FocusEvent.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -import org.w3c.dom.html.Window; - -public interface FocusEvent extends UIEvent -{ - // FocusEvent - public EventTarget getRelatedTarget(); - public void initFocusEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, int detailArg, EventTarget relatedTargetArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/KeyboardEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/KeyboardEvent.java deleted file mode 100644 index 87d81c22..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/KeyboardEvent.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -import org.w3c.dom.html.Window; - -public interface KeyboardEvent extends UIEvent -{ - // KeyboardEvent - public static final int DOM_KEY_LOCATION_STANDARD = 0x00; - public static final int DOM_KEY_LOCATION_LEFT = 0x01; - public static final int DOM_KEY_LOCATION_RIGHT = 0x02; - public static final int DOM_KEY_LOCATION_NUMPAD = 0x03; - public static final int DOM_KEY_LOCATION_MOBILE = 0x04; - public static final int DOM_KEY_LOCATION_JOYSTICK = 0x05; - public String getChar(); - public String getKey(); - public int getLocation(); - public boolean getCtrlKey(); - public boolean getShiftKey(); - public boolean getAltKey(); - public boolean getMetaKey(); - public boolean getRepeat(); - public String getLocale(); - public boolean getModifierState(String keyArg); - public void initKeyboardEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, String charArg, String keyArg, int locationArg, String modifiersListArg, boolean repeat, String localeArg); - // KeyboardEvent-41 - public int getCharCode(); - public int getKeyCode(); - public int getWhich(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MouseEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MouseEvent.java deleted file mode 100644 index 31c2e79d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MouseEvent.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -import org.w3c.dom.html.Window; - -public interface MouseEvent extends UIEvent -{ - // MouseEvent - public int getScreenX(); - public int getScreenY(); - public int getClientX(); - public int getClientY(); - public boolean getCtrlKey(); - public boolean getShiftKey(); - public boolean getAltKey(); - public boolean getMetaKey(); - public short getButton(); - public short getButtons(); - public EventTarget getRelatedTarget(); - public void initMouseEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg); - public boolean getModifierState(String keyArg); - // MouseEvent-40 - public int getPageX(); - public int getPageY(); - public int getX(); - public int getY(); - public int getOffsetX(); - public int getOffsetY(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationEvent.java deleted file mode 100644 index 28e2c4e8..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationEvent.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface MutationEvent extends Event -{ - // MutationEvent - public static final short MODIFICATION = 1; - public static final short ADDITION = 2; - public static final short REMOVAL = 3; - public Object getRelatedNode(); - public String getPrevValue(); - public String getNewValue(); - public String getAttrName(); - public short getAttrChange(); - public void initMutationEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object relatedNodeArg, String prevValueArg, String newValueArg, String attrNameArg, short attrChangeArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationNameEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationNameEvent.java deleted file mode 100644 index 98dc2e60..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/MutationNameEvent.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -import org.w3c.dom.Node; - -public interface MutationNameEvent extends MutationEvent -{ - // MutationNameEvent - public String getPrevNamespaceURI(); - public String getPrevNodeName(); - public void initMutationNameEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Node relatedNodeArg, String prevNamespaceURIArg, String prevNodeNameArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/ProgressEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/ProgressEvent.java deleted file mode 100644 index db09dd6a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/ProgressEvent.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -public interface ProgressEvent extends Event -{ - // ProgressEvent - public boolean getLengthComputable(); - public int getLoaded(); - public int getTotal(); - public void initProgressEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, boolean lengthComputableArg, int loadedArg, int totalArg); - public void initProgressEventNS(String namespaceURI, String typeArg, boolean canBubbleArg, boolean cancelableArg, boolean lengthComputableArg, int loadedArg, int totalArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/TextEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/TextEvent.java deleted file mode 100644 index 5b7ffe5a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/TextEvent.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -import org.w3c.dom.html.Window; - -public interface TextEvent extends UIEvent -{ - // TextEvent - public static final int DOM_INPUT_METHOD_UNKNOWN = 0x00; - public static final int DOM_INPUT_METHOD_KEYBOARD = 0x01; - public static final int DOM_INPUT_METHOD_PASTE = 0x02; - public static final int DOM_INPUT_METHOD_DROP = 0x03; - public static final int DOM_INPUT_METHOD_IME = 0x04; - public static final int DOM_INPUT_METHOD_OPTION = 0x05; - public static final int DOM_INPUT_METHOD_HANDWRITING = 0x06; - public static final int DOM_INPUT_METHOD_VOICE = 0x07; - public static final int DOM_INPUT_METHOD_MULTIMODAL = 0x08; - public static final int DOM_INPUT_METHOD_SCRIPT = 0x09; - public String getData(); - public int getInputMethod(); - public String getLocale(); - public void initTextEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, String dataArg, int inputMethod, String localeArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/UIEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/UIEvent.java deleted file mode 100644 index cb2bb7a5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/UIEvent.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -import org.w3c.dom.html.Window; - -public interface UIEvent extends Event -{ - // UIEvent - public Window getView(); - public int getDetail(); - public void initUIEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, int detailArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/events/WheelEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/events/WheelEvent.java deleted file mode 100644 index b7e102ed..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/events/WheelEvent.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.events; - -import org.w3c.dom.html.Window; - -public interface WheelEvent extends MouseEvent -{ - // WheelEvent - public static final int DOM_DELTA_PIXEL = 0x00; - public static final int DOM_DELTA_LINE = 0x01; - public static final int DOM_DELTA_PAGE = 0x02; - public float getDeltaX(); - public float getDeltaY(); - public float getDeltaZ(); - public int getDeltaMode(); - public void initWheelEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Window viewArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, short buttonArg, EventTarget relatedTargetArg, String modifiersListArg, float deltaXArg, float deltaYArg, float deltaZArg, int deltaMode); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource.java b/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource.java deleted file mode 100644 index 3e3829dc..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.eventsource; - -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.html.Function; - -public interface EventSource extends EventTarget -{ - // EventSource - public String getUrl(); - public static final short CONNECTING = 0; - public static final short OPEN = 1; - public static final short CLOSED = 2; - public short getReadyState(); - public Function getOnopen(); - public void setOnopen(Function onopen); - public Function getOnmessage(); - public void setOnmessage(Function onmessage); - public Function getOnerror(); - public void setOnerror(Function onerror); - public void close(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource_Constructor.java deleted file mode 100644 index efc07e13..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/eventsource/EventSource_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.eventsource; - -public interface EventSource_Constructor -{ - // Constructor - public EventSource createInstance(String url); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/Blob.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/Blob.java deleted file mode 100644 index 2cc8d218..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/Blob.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -public interface Blob -{ - // Blob - public long getSize(); - public String getType(); - public Blob slice(long start, long length); - public Blob slice(long start, long length, String contentType); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/File.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/File.java deleted file mode 100644 index ae3931cb..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/File.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -public interface File extends Blob -{ - // File - public String getName(); - public long getLastModifiedDate(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileCallback.java deleted file mode 100644 index 60545ad8..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileCallback.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -public interface FileCallback -{ - // FileCallback - public void handleEvent(File file); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileError.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileError.java deleted file mode 100644 index a38305be..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileError.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -public interface FileError -{ - // FileError - public static final short NOT_FOUND_ERR = 1; - public static final short SECURITY_ERR = 2; - public static final short ABORT_ERR = 3; - public static final short NOT_READABLE_ERR = 4; - public static final short ENCODING_ERR = 5; - public short getCode(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileException.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileException.java deleted file mode 100644 index 844fe5b0..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileException.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -public class FileException extends RuntimeException -{ - public FileException(short code, String message) - { - super(message); - this.code = code; - } - public static final short NOT_FOUND_ERR = 1; - public static final short SECURITY_ERR = 2; - public static final short ABORT_ERR = 3; - public static final short NOT_READABLE_ERR = 4; - public static final short ENCODING_ERR = 5; - public short code; -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileList.java deleted file mode 100644 index f4933b61..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileList.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -public interface FileList -{ - // FileList - public File item(int index); - public int getLength(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader.java deleted file mode 100644 index 04a5be3a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.html.Function; - -public interface FileReader extends EventTarget -{ - // FileReader - public void readAsArrayBuffer(Blob blob); - public void readAsBinaryString(Blob blob); - public void readAsText(Blob blob); - public void readAsText(Blob blob, String encoding); - public void readAsDataURL(Blob blob); - public void abort(); - public static final short EMPTY = 0; - public static final short LOADING = 1; - public static final short DONE = 2; - public short getReadyState(); - public Object getResult(); - public FileError getError(); - public Function getOnloadstart(); - public void setOnloadstart(Function onloadstart); - public Function getOnprogress(); - public void setOnprogress(Function onprogress); - public Function getOnload(); - public void setOnload(Function onload); - public Function getOnabort(); - public void setOnabort(Function onabort); - public Function getOnerror(); - public void setOnerror(Function onerror); - public Function getOnloadend(); - public void setOnloadend(Function onloadend); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync.java deleted file mode 100644 index 1af65fd1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -import org.w3c.dom.typedarray.ArrayBuffer; - -public interface FileReaderSync -{ - // FileReaderSync - public ArrayBuffer readAsArrayBuffer(Blob blob); - public String readAsBinaryString(Blob blob); - public String readAsText(Blob blob); - public String readAsText(Blob blob, String encoding); - public String readAsDataURL(Blob blob); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync_Constructor.java deleted file mode 100644 index 86444ea6..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReaderSync_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -public interface FileReaderSync_Constructor -{ - // Constructor - public FileReaderSync createInstance(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader_Constructor.java deleted file mode 100644 index 04edb98a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/file/FileReader_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.file; - -public interface FileReader_Constructor -{ - // Constructor - public FileReader createInstance(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ApplicationCache.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ApplicationCache.java deleted file mode 100644 index 5ecec595..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ApplicationCache.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface ApplicationCache -{ - // ApplicationCache - public static final short UNCACHED = 0; - public static final short IDLE = 1; - public static final short CHECKING = 2; - public static final short DOWNLOADING = 3; - public static final short UPDATEREADY = 4; - public static final short OBSOLETE = 5; - public short getStatus(); - public void update(); - public void swapCache(); - public Function getOnchecking(); - public void setOnchecking(Function onchecking); - public Function getOnerror(); - public void setOnerror(Function onerror); - public Function getOnnoupdate(); - public void setOnnoupdate(Function onnoupdate); - public Function getOndownloading(); - public void setOndownloading(Function ondownloading); - public Function getOnprogress(); - public void setOnprogress(Function onprogress); - public Function getOnupdateready(); - public void setOnupdateready(Function onupdateready); - public Function getOncached(); - public void setOncached(Function oncached); - public Function getOnobsolete(); - public void setOnobsolete(Function onobsolete); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrack.java deleted file mode 100644 index 0129fb35..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrack.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface AudioTrack -{ - // AudioTrack - public String getId(); - public String getKind(); - public String getLabel(); - public String getLanguage(); - public boolean getEnabled(); - public void setEnabled(boolean enabled); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrackList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrackList.java deleted file mode 100644 index 1d40d151..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/AudioTrackList.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface AudioTrackList -{ - // AudioTrackList - public int getLength(); - public AudioTrack getElement(int index); - public AudioTrack getTrackById(String id); - public Function getOnchange(); - public void setOnchange(Function onchange); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BarProp.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BarProp.java deleted file mode 100644 index 2061ee3c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BarProp.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface BarProp -{ - // BarProp - public boolean getVisible(); - public void setVisible(boolean visible); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BeforeUnloadEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BeforeUnloadEvent.java deleted file mode 100644 index bbeb54b3..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BeforeUnloadEvent.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.events.Event; - -public interface BeforeUnloadEvent extends Event -{ - // BeforeUnloadEvent - public String getReturnValue(); - public void setReturnValue(String returnValue); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BlobCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/BlobCallback.java deleted file mode 100644 index 705c7f47..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/BlobCallback.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.file.Blob; - -public interface BlobCallback -{ - // BlobCallback - public void handleEvent(Blob blob); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasGradient.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasGradient.java deleted file mode 100644 index 007a7fda..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasGradient.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface CanvasGradient -{ - // CanvasGradient - public void addColorStop(double offset, String color); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPattern.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPattern.java deleted file mode 100644 index c08267c5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPattern.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface CanvasPattern -{ - // CanvasPattern -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPixelArray.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPixelArray.java deleted file mode 100644 index 0541e0f0..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasPixelArray.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface CanvasPixelArray -{ - // CanvasPixelArray - public int getLength(); - public byte getElement(int index); - public void setElement(int index, byte value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasRenderingContext2D.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasRenderingContext2D.java deleted file mode 100644 index 56647861..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/CanvasRenderingContext2D.java +++ /dev/null @@ -1,92 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.Element; - -public interface CanvasRenderingContext2D -{ - // CanvasRenderingContext2D - public HTMLCanvasElement getCanvas(); - public void save(); - public void restore(); - public void scale(double x, double y); - public void rotate(double angle); - public void translate(double x, double y); - public void transform(double a, double b, double c, double d, double e, double f); - public void setTransform(double a, double b, double c, double d, double e, double f); - public double getGlobalAlpha(); - public void setGlobalAlpha(double globalAlpha); - public String getGlobalCompositeOperation(); - public void setGlobalCompositeOperation(String globalCompositeOperation); - public Object getStrokeStyle(); - public void setStrokeStyle(Object strokeStyle); - public Object getFillStyle(); - public void setFillStyle(Object fillStyle); - public CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1); - public CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1); - public CanvasPattern createPattern(HTMLImageElement image, String repetition); - public CanvasPattern createPattern(HTMLCanvasElement image, String repetition); - public CanvasPattern createPattern(HTMLVideoElement image, String repetition); - public double getLineWidth(); - public void setLineWidth(double lineWidth); - public String getLineCap(); - public void setLineCap(String lineCap); - public String getLineJoin(); - public void setLineJoin(String lineJoin); - public double getMiterLimit(); - public void setMiterLimit(double miterLimit); - public double getShadowOffsetX(); - public void setShadowOffsetX(double shadowOffsetX); - public double getShadowOffsetY(); - public void setShadowOffsetY(double shadowOffsetY); - public double getShadowBlur(); - public void setShadowBlur(double shadowBlur); - public String getShadowColor(); - public void setShadowColor(String shadowColor); - public void clearRect(double x, double y, double w, double h); - public void fillRect(double x, double y, double w, double h); - public void strokeRect(double x, double y, double w, double h); - public void beginPath(); - public void closePath(); - public void moveTo(double x, double y); - public void lineTo(double x, double y); - public void quadraticCurveTo(double cpx, double cpy, double x, double y); - public void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y); - public void arcTo(double x1, double y1, double x2, double y2, double radius); - public void rect(double x, double y, double w, double h); - public void arc(double x, double y, double radius, double startAngle, double endAngle); - public void arc(double x, double y, double radius, double startAngle, double endAngle, boolean anticlockwise); - public void fill(); - public void stroke(); - public void drawSystemFocusRing(Element element); - public boolean drawCustomFocusRing(Element element); - public void scrollPathIntoView(); - public void clip(); - public boolean isPointInPath(double x, double y); - public String getFont(); - public void setFont(String font); - public String getTextAlign(); - public void setTextAlign(String textAlign); - public String getTextBaseline(); - public void setTextBaseline(String textBaseline); - public void fillText(String text, double x, double y); - public void fillText(String text, double x, double y, double maxWidth); - public void strokeText(String text, double x, double y); - public void strokeText(String text, double x, double y, double maxWidth); - public TextMetrics measureText(String text); - public void drawImage(HTMLImageElement image, double dx, double dy); - public void drawImage(HTMLImageElement image, double dx, double dy, double dw, double dh); - public void drawImage(HTMLImageElement image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh); - public void drawImage(HTMLCanvasElement image, double dx, double dy); - public void drawImage(HTMLCanvasElement image, double dx, double dy, double dw, double dh); - public void drawImage(HTMLCanvasElement image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh); - public void drawImage(HTMLVideoElement image, double dx, double dy); - public void drawImage(HTMLVideoElement image, double dx, double dy, double dw, double dh); - public void drawImage(HTMLVideoElement image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh); - public ImageData createImageData(double sw, double sh); - public ImageData createImageData(ImageData imagedata); - public ImageData getImageData(double sx, double sy, double sw, double sh); - public void putImageData(ImageData imagedata, double dx, double dy); - public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransfer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransfer.java deleted file mode 100644 index acd8930a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransfer.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMStringList; -import org.w3c.dom.Element; -import org.w3c.dom.file.FileList; - -public interface DataTransfer -{ - // DataTransfer - public String getDropEffect(); - public void setDropEffect(String dropEffect); - public String getEffectAllowed(); - public void setEffectAllowed(String effectAllowed); - public DataTransferItemList getItems(); - public void setDragImage(Element image, int x, int y); - public void addElement(Element element); - public DOMStringList getTypes(); - public String getData(String format); - public void setData(String format, String data); - public void clearData(); - public void clearData(String format); - public FileList getFiles(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItem.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItem.java deleted file mode 100644 index 935eb316..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItem.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.file.File; - -public interface DataTransferItem -{ - // DataTransferItem - public String getKind(); - public String getType(); - public void getAsString(FunctionStringCallback callback); - public File getAsFile(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItemList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItemList.java deleted file mode 100644 index 7ab0c1f6..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DataTransferItemList.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.file.File; - -public interface DataTransferItemList -{ - // DataTransferItemList - public int getLength(); - public DataTransferItem getElement(int index); - public void deleteElement(int index); - public void clear(); - public DataTransferItem add(String data, String type); - public DataTransferItem add(File data); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DragEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/DragEvent.java deleted file mode 100644 index 6bfb0b76..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/DragEvent.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.events.EventTarget; -import org.w3c.dom.events.MouseEvent; - -public interface DragEvent extends MouseEvent -{ - // DragEvent - public DataTransfer getDataTransfer(); - public void initDragEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object dummyArg, int detailArg, int screenXArg, int screenYArg, int clientXArg, int clientYArg, boolean ctrlKeyArg, boolean altKeyArg, boolean shiftKeyArg, boolean metaKeyArg, short buttonArg, EventTarget relatedTargetArg, DataTransfer dataTransferArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/External.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/External.java deleted file mode 100644 index d68c8e17..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/External.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface External -{ - // External - public void AddSearchProvider(String engineURL); - public int IsSearchProviderInstalled(String engineURL); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Function.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Function.java deleted file mode 100644 index 7a4173fe..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Function.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface Function -{ - // Function - public Object call(Object... arguments); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/FunctionStringCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/FunctionStringCallback.java deleted file mode 100644 index f679e24d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/FunctionStringCallback.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface FunctionStringCallback -{ - // FunctionStringCallback - public void handleEvent(String data); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAllCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAllCollection.java deleted file mode 100644 index 0b47aeb7..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAllCollection.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLAllCollection extends HTMLCollection -{ - // HTMLAllCollection - public Object namedItem(String name); - public HTMLAllCollection tags(String tagName); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAnchorElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAnchorElement.java deleted file mode 100644 index bf07d648..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAnchorElement.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMTokenList; - -public interface HTMLAnchorElement extends HTMLElement -{ - // HTMLAnchorElement - public String getHref(); - public void setHref(String href); - public String getTarget(); - public void setTarget(String target); - public String getPing(); - public void setPing(String ping); - public String getRel(); - public void setRel(String rel); - public DOMTokenList getRelList(); - public String getMedia(); - public void setMedia(String media); - public String getHreflang(); - public void setHreflang(String hreflang); - public String getType(); - public void setType(String type); - public String getText(); - public void setText(String text); - public String getProtocol(); - public void setProtocol(String protocol); - public String getHost(); - public void setHost(String host); - public String getHostname(); - public void setHostname(String hostname); - public String getPort(); - public void setPort(String port); - public String getPathname(); - public void setPathname(String pathname); - public String getSearch(); - public void setSearch(String search); - public String getHash(); - public void setHash(String hash); - // HTMLAnchorElement-7 - public String getCoords(); - public void setCoords(String coords); - public String getCharset(); - public void setCharset(String charset); - public String getName(); - public void setName(String name); - public String getRev(); - public void setRev(String rev); - public String getShape(); - public void setShape(String shape); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAppletElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAppletElement.java deleted file mode 100644 index db516fc1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAppletElement.java +++ /dev/null @@ -1,30 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLAppletElement extends HTMLElement -{ - // HTMLAppletElement - public String getAlign(); - public void setAlign(String align); - public String getAlt(); - public void setAlt(String alt); - public String getArchive(); - public void setArchive(String archive); - public String getCode(); - public void setCode(String code); - public String getCodeBase(); - public void setCodeBase(String codeBase); - public String getHeight(); - public void setHeight(String height); - public int getHspace(); - public void setHspace(int hspace); - public String getName(); - public void setName(String name); - public String getObject(); - public void setObject(String object); - public int getVspace(); - public void setVspace(int vspace); - public String getWidth(); - public void setWidth(String width); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAreaElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAreaElement.java deleted file mode 100644 index 9fa35011..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAreaElement.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMTokenList; - -public interface HTMLAreaElement extends HTMLElement -{ - // HTMLAreaElement - public String getAlt(); - public void setAlt(String alt); - public String getCoords(); - public void setCoords(String coords); - public String getShape(); - public void setShape(String shape); - public String getHref(); - public void setHref(String href); - public String getTarget(); - public void setTarget(String target); - public String getPing(); - public void setPing(String ping); - public String getRel(); - public void setRel(String rel); - public DOMTokenList getRelList(); - public String getMedia(); - public void setMedia(String media); - public String getHreflang(); - public void setHreflang(String hreflang); - public String getType(); - public void setType(String type); - public String getProtocol(); - public void setProtocol(String protocol); - public String getHost(); - public void setHost(String host); - public String getHostname(); - public void setHostname(String hostname); - public String getPort(); - public void setPort(String port); - public String getPathname(); - public void setPathname(String pathname); - public String getSearch(); - public void setSearch(String search); - public String getHash(); - public void setHash(String hash); - // HTMLAreaElement-8 - public boolean getNoHref(); - public void setNoHref(boolean noHref); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement.java deleted file mode 100644 index dcb9f750..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLAudioElement extends HTMLMediaElement -{ - // HTMLAudioElement -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement_Constructor.java deleted file mode 100644 index 8f2fc22d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLAudioElement_Constructor.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLAudioElement_Constructor -{ - // Constructor - public HTMLAudioElement createInstance(); - public HTMLAudioElement createInstance(String src); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBRElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBRElement.java deleted file mode 100644 index 7bf3fdf9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBRElement.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLBRElement extends HTMLElement -{ - // HTMLBRElement - // HTMLBRElement-10 - public String getClear(); - public void setClear(String clear); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseElement.java deleted file mode 100644 index c7a98af5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseElement.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLBaseElement extends HTMLElement -{ - // HTMLBaseElement - public String getHref(); - public void setHref(String href); - public String getTarget(); - public void setTarget(String target); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseFontElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseFontElement.java deleted file mode 100644 index 0b8bf715..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBaseFontElement.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLBaseFontElement extends HTMLElement -{ - // HTMLBaseFontElement - public String getColor(); - public void setColor(String color); - public String getFace(); - public void setFace(String face); - public int getSize(); - public void setSize(int size); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBodyElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBodyElement.java deleted file mode 100644 index 18a7eecc..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLBodyElement.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLBodyElement extends HTMLElement -{ - // HTMLBodyElement - public Function getOnafterprint(); - public void setOnafterprint(Function onafterprint); - public Function getOnbeforeprint(); - public void setOnbeforeprint(Function onbeforeprint); - public Function getOnbeforeunload(); - public void setOnbeforeunload(Function onbeforeunload); - public Function getOnblur(); - public void setOnblur(Function onblur); - public Function getOnerror(); - public void setOnerror(Function onerror); - public Function getOnfocus(); - public void setOnfocus(Function onfocus); - public Function getOnhashchange(); - public void setOnhashchange(Function onhashchange); - public Function getOnload(); - public void setOnload(Function onload); - public Function getOnmessage(); - public void setOnmessage(Function onmessage); - public Function getOnoffline(); - public void setOnoffline(Function onoffline); - public Function getOnonline(); - public void setOnonline(Function ononline); - public Function getOnpopstate(); - public void setOnpopstate(Function onpopstate); - public Function getOnpagehide(); - public void setOnpagehide(Function onpagehide); - public Function getOnpageshow(); - public void setOnpageshow(Function onpageshow); - public Function getOnredo(); - public void setOnredo(Function onredo); - public Function getOnresize(); - public void setOnresize(Function onresize); - public Function getOnscroll(); - public void setOnscroll(Function onscroll); - public Function getOnstorage(); - public void setOnstorage(Function onstorage); - public Function getOnundo(); - public void setOnundo(Function onundo); - public Function getOnunload(); - public void setOnunload(Function onunload); - // HTMLBodyElement-9 - public String getText(); - public void setText(String text); - public String getBgColor(); - public void setBgColor(String bgColor); - public String getBackground(); - public void setBackground(String background); - public String getLink(); - public void setLink(String link); - public String getVLink(); - public void setVLink(String vLink); - public String getALink(); - public void setALink(String aLink); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLButtonElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLButtonElement.java deleted file mode 100644 index 2826f2b3..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLButtonElement.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; - -public interface HTMLButtonElement extends HTMLElement -{ - // HTMLButtonElement - public boolean getAutofocus(); - public void setAutofocus(boolean autofocus); - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public HTMLFormElement getForm(); - public String getFormAction(); - public void setFormAction(String formAction); - public String getFormEnctype(); - public void setFormEnctype(String formEnctype); - public String getFormMethod(); - public void setFormMethod(String formMethod); - public String getFormNoValidate(); - public void setFormNoValidate(String formNoValidate); - public String getFormTarget(); - public void setFormTarget(String formTarget); - public String getName(); - public void setName(String name); - public String getType(); - public void setType(String type); - public String getValue(); - public void setValue(String value); - public boolean getWillValidate(); - public ValidityState getValidity(); - public String getValidationMessage(); - public boolean checkValidity(); - public void setCustomValidity(String error); - public NodeList getLabels(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCanvasElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCanvasElement.java deleted file mode 100644 index 3dde2cbe..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCanvasElement.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.file.FileCallback; - -public interface HTMLCanvasElement extends HTMLElement -{ - // HTMLCanvasElement - public int getWidth(); - public void setWidth(int width); - public int getHeight(); - public void setHeight(int height); - public String toDataURL(); - public String toDataURL(String type, Object... args); - public void toBlob(FileCallback callback); - public void toBlob(FileCallback callback, String type, Object... args); - public Object getContext(String contextId, Object... args); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCollection.java deleted file mode 100644 index 0ac6b1c1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCollection.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.Element; - -public interface HTMLCollection -{ - // HTMLCollection - public int getLength(); - public Element item(int index); - public Object namedItem(String name); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCommandElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCommandElement.java deleted file mode 100644 index 44c41975..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLCommandElement.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLCommandElement extends HTMLElement -{ - // HTMLCommandElement - public String getType(); - public void setType(String type); - public String getLabel(); - public void setLabel(String label); - public String getIcon(); - public void setIcon(String icon); - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public boolean getChecked(); - public void setChecked(boolean checked); - public String getRadiogroup(); - public void setRadiogroup(String radiogroup); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDListElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDListElement.java deleted file mode 100644 index de8547b1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDListElement.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLDListElement extends HTMLElement -{ - // HTMLDListElement - // HTMLDListElement-14 - public boolean getCompact(); - public void setCompact(boolean compact); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDataListElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDataListElement.java deleted file mode 100644 index 5936bd6c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDataListElement.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLDataListElement extends HTMLElement -{ - // HTMLDataListElement - public HTMLCollection getOptions(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDetailsElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDetailsElement.java deleted file mode 100644 index 81a0aa4e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDetailsElement.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLDetailsElement extends HTMLElement -{ - // HTMLDetailsElement - public boolean getOpen(); - public void setOpen(boolean open); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDirectoryElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDirectoryElement.java deleted file mode 100644 index e519a358..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDirectoryElement.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLDirectoryElement extends HTMLElement -{ - // HTMLDirectoryElement - public boolean getCompact(); - public void setCompact(boolean compact); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDivElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDivElement.java deleted file mode 100644 index ca2b5e0d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDivElement.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLDivElement extends HTMLElement -{ - // HTMLDivElement - // HTMLDivElement-13 - public String getAlign(); - public void setAlign(String align); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDocument.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDocument.java deleted file mode 100644 index e35dd461..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLDocument.java +++ /dev/null @@ -1,185 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMElementMap; -import org.w3c.dom.Element; -import org.w3c.dom.NodeList; - -public interface HTMLDocument -{ - // HTMLDocument - public Location getLocation(); - public void setLocation(String location); - public String getURL(); - public String getDomain(); - public void setDomain(String domain); - public String getReferrer(); - public String getCookie(); - public void setCookie(String cookie); - public String getLastModified(); - public String getReadyState(); - public Object getElement(String name); - public String getTitle(); - public void setTitle(String title); - public String getDir(); - public void setDir(String dir); - public HTMLElement getBody(); - public void setBody(HTMLElement body); - public HTMLHeadElement getHead(); - public HTMLCollection getImages(); - public HTMLCollection getEmbeds(); - public HTMLCollection getPlugins(); - public HTMLCollection getLinks(); - public HTMLCollection getForms(); - public HTMLCollection getScripts(); - public NodeList getElementsByName(String elementName); - public DOMElementMap getCssElementMap(); - public String getInnerHTML(); - public void setInnerHTML(String innerHTML); - public HTMLDocument open(); - public HTMLDocument open(String type); - public HTMLDocument open(String type, String replace); - public Window open(String url, String name, String features); - public Window open(String url, String name, String features, boolean replace); - public void close(); - public void write(String... text); - public void writeln(String... text); - public Window getDefaultView(); - public Element getActiveElement(); - public boolean hasFocus(); - public String getDesignMode(); - public void setDesignMode(String designMode); - public boolean execCommand(String commandId); - public boolean execCommand(String commandId, boolean showUI); - public boolean execCommand(String commandId, boolean showUI, String value); - public boolean queryCommandEnabled(String commandId); - public boolean queryCommandIndeterm(String commandId); - public boolean queryCommandState(String commandId); - public boolean queryCommandSupported(String commandId); - public String queryCommandValue(String commandId); - public HTMLCollection getCommands(); - public Function getOnabort(); - public void setOnabort(Function onabort); - public Function getOnblur(); - public void setOnblur(Function onblur); - public Function getOncanplay(); - public void setOncanplay(Function oncanplay); - public Function getOncanplaythrough(); - public void setOncanplaythrough(Function oncanplaythrough); - public Function getOnchange(); - public void setOnchange(Function onchange); - public Function getOnclick(); - public void setOnclick(Function onclick); - public Function getOncontextmenu(); - public void setOncontextmenu(Function oncontextmenu); - public Function getOncuechange(); - public void setOncuechange(Function oncuechange); - public Function getOndblclick(); - public void setOndblclick(Function ondblclick); - public Function getOndrag(); - public void setOndrag(Function ondrag); - public Function getOndragend(); - public void setOndragend(Function ondragend); - public Function getOndragenter(); - public void setOndragenter(Function ondragenter); - public Function getOndragleave(); - public void setOndragleave(Function ondragleave); - public Function getOndragover(); - public void setOndragover(Function ondragover); - public Function getOndragstart(); - public void setOndragstart(Function ondragstart); - public Function getOndrop(); - public void setOndrop(Function ondrop); - public Function getOndurationchange(); - public void setOndurationchange(Function ondurationchange); - public Function getOnemptied(); - public void setOnemptied(Function onemptied); - public Function getOnended(); - public void setOnended(Function onended); - public Function getOnerror(); - public void setOnerror(Function onerror); - public Function getOnfocus(); - public void setOnfocus(Function onfocus); - public Function getOninput(); - public void setOninput(Function oninput); - public Function getOninvalid(); - public void setOninvalid(Function oninvalid); - public Function getOnkeydown(); - public void setOnkeydown(Function onkeydown); - public Function getOnkeypress(); - public void setOnkeypress(Function onkeypress); - public Function getOnkeyup(); - public void setOnkeyup(Function onkeyup); - public Function getOnload(); - public void setOnload(Function onload); - public Function getOnloadeddata(); - public void setOnloadeddata(Function onloadeddata); - public Function getOnloadedmetadata(); - public void setOnloadedmetadata(Function onloadedmetadata); - public Function getOnloadstart(); - public void setOnloadstart(Function onloadstart); - public Function getOnmousedown(); - public void setOnmousedown(Function onmousedown); - public Function getOnmousemove(); - public void setOnmousemove(Function onmousemove); - public Function getOnmouseout(); - public void setOnmouseout(Function onmouseout); - public Function getOnmouseover(); - public void setOnmouseover(Function onmouseover); - public Function getOnmouseup(); - public void setOnmouseup(Function onmouseup); - public Function getOnmousewheel(); - public void setOnmousewheel(Function onmousewheel); - public Function getOnpause(); - public void setOnpause(Function onpause); - public Function getOnplay(); - public void setOnplay(Function onplay); - public Function getOnplaying(); - public void setOnplaying(Function onplaying); - public Function getOnprogress(); - public void setOnprogress(Function onprogress); - public Function getOnratechange(); - public void setOnratechange(Function onratechange); - public Function getOnreadystatechange(); - public void setOnreadystatechange(Function onreadystatechange); - public Function getOnreset(); - public void setOnreset(Function onreset); - public Function getOnscroll(); - public void setOnscroll(Function onscroll); - public Function getOnseeked(); - public void setOnseeked(Function onseeked); - public Function getOnseeking(); - public void setOnseeking(Function onseeking); - public Function getOnselect(); - public void setOnselect(Function onselect); - public Function getOnshow(); - public void setOnshow(Function onshow); - public Function getOnstalled(); - public void setOnstalled(Function onstalled); - public Function getOnsubmit(); - public void setOnsubmit(Function onsubmit); - public Function getOnsuspend(); - public void setOnsuspend(Function onsuspend); - public Function getOntimeupdate(); - public void setOntimeupdate(Function ontimeupdate); - public Function getOnvolumechange(); - public void setOnvolumechange(Function onvolumechange); - public Function getOnwaiting(); - public void setOnwaiting(Function onwaiting); - // HTMLDocument-38 - public String getFgColor(); - public void setFgColor(String fgColor); - public String getBgColor(); - public void setBgColor(String bgColor); - public String getLinkColor(); - public void setLinkColor(String linkColor); - public String getVlinkColor(); - public void setVlinkColor(String vlinkColor); - public String getAlinkColor(); - public void setAlinkColor(String alinkColor); - public HTMLCollection getAnchors(); - public HTMLCollection getApplets(); - public void clear(); - public HTMLAllCollection getAll(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLElement.java deleted file mode 100644 index 21598047..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLElement.java +++ /dev/null @@ -1,187 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMSettableTokenList; -import org.w3c.dom.DOMStringMap; -import org.w3c.dom.DOMTokenList; -import org.w3c.dom.Element; -import org.w3c.dom.NodeList; -import org.w3c.dom.css.CSSStyleDeclaration; - -public interface HTMLElement extends Element -{ - // HTMLElement - public NodeList getElementsByClassName(String classNames); - public String getInnerHTML(); - public void setInnerHTML(String innerHTML); - public String getOuterHTML(); - public void setOuterHTML(String outerHTML); - public void insertAdjacentHTML(String position, String text); - public String getId(); - public void setId(String id); - public String getTitle(); - public void setTitle(String title); - public String getLang(); - public void setLang(String lang); - public String getDir(); - public void setDir(String dir); - public String getClassName(); - public void setClassName(String className); - public DOMTokenList getClassList(); - public DOMStringMap getDataset(); - public boolean getItemScope(); - public void setItemScope(boolean itemScope); - public String getItemType(); - public void setItemType(String itemType); - public String getItemId(); - public void setItemId(String itemId); - public DOMSettableTokenList getItemRef(); - public void setItemRef(String itemRef); - public DOMSettableTokenList getItemProp(); - public void setItemProp(String itemProp); - public HTMLPropertiesCollection getProperties(); - public Object getItemValue(); - public void setItemValue(Object itemValue); - public boolean getHidden(); - public void setHidden(boolean hidden); - public void click(); - public int getTabIndex(); - public void setTabIndex(int tabIndex); - public void focus(); - public void blur(); - public String getAccessKey(); - public void setAccessKey(String accessKey); - public String getAccessKeyLabel(); - public boolean getDraggable(); - public void setDraggable(boolean draggable); - public DOMSettableTokenList getDropzone(); - public void setDropzone(String dropzone); - public String getContentEditable(); - public void setContentEditable(String contentEditable); - public boolean getIsContentEditable(); - public HTMLMenuElement getContextMenu(); - public void setContextMenu(HTMLMenuElement contextMenu); - public boolean getSpellcheck(); - public void setSpellcheck(boolean spellcheck); - public String getCommandType(); - public String getLabel(); - public String getIcon(); - public boolean getDisabled(); - public boolean getChecked(); - public CSSStyleDeclaration getStyle(); - public Function getOnabort(); - public void setOnabort(Function onabort); - public Function getOnblur(); - public void setOnblur(Function onblur); - public Function getOncanplay(); - public void setOncanplay(Function oncanplay); - public Function getOncanplaythrough(); - public void setOncanplaythrough(Function oncanplaythrough); - public Function getOnchange(); - public void setOnchange(Function onchange); - public Function getOnclick(); - public void setOnclick(Function onclick); - public Function getOncontextmenu(); - public void setOncontextmenu(Function oncontextmenu); - public Function getOncuechange(); - public void setOncuechange(Function oncuechange); - public Function getOndblclick(); - public void setOndblclick(Function ondblclick); - public Function getOndrag(); - public void setOndrag(Function ondrag); - public Function getOndragend(); - public void setOndragend(Function ondragend); - public Function getOndragenter(); - public void setOndragenter(Function ondragenter); - public Function getOndragleave(); - public void setOndragleave(Function ondragleave); - public Function getOndragover(); - public void setOndragover(Function ondragover); - public Function getOndragstart(); - public void setOndragstart(Function ondragstart); - public Function getOndrop(); - public void setOndrop(Function ondrop); - public Function getOndurationchange(); - public void setOndurationchange(Function ondurationchange); - public Function getOnemptied(); - public void setOnemptied(Function onemptied); - public Function getOnended(); - public void setOnended(Function onended); - public Function getOnerror(); - public void setOnerror(Function onerror); - public Function getOnfocus(); - public void setOnfocus(Function onfocus); - public Function getOninput(); - public void setOninput(Function oninput); - public Function getOninvalid(); - public void setOninvalid(Function oninvalid); - public Function getOnkeydown(); - public void setOnkeydown(Function onkeydown); - public Function getOnkeypress(); - public void setOnkeypress(Function onkeypress); - public Function getOnkeyup(); - public void setOnkeyup(Function onkeyup); - public Function getOnload(); - public void setOnload(Function onload); - public Function getOnloadeddata(); - public void setOnloadeddata(Function onloadeddata); - public Function getOnloadedmetadata(); - public void setOnloadedmetadata(Function onloadedmetadata); - public Function getOnloadstart(); - public void setOnloadstart(Function onloadstart); - public Function getOnmousedown(); - public void setOnmousedown(Function onmousedown); - public Function getOnmousemove(); - public void setOnmousemove(Function onmousemove); - public Function getOnmouseout(); - public void setOnmouseout(Function onmouseout); - public Function getOnmouseover(); - public void setOnmouseover(Function onmouseover); - public Function getOnmouseup(); - public void setOnmouseup(Function onmouseup); - public Function getOnmousewheel(); - public void setOnmousewheel(Function onmousewheel); - public Function getOnpause(); - public void setOnpause(Function onpause); - public Function getOnplay(); - public void setOnplay(Function onplay); - public Function getOnplaying(); - public void setOnplaying(Function onplaying); - public Function getOnprogress(); - public void setOnprogress(Function onprogress); - public Function getOnratechange(); - public void setOnratechange(Function onratechange); - public Function getOnreadystatechange(); - public void setOnreadystatechange(Function onreadystatechange); - public Function getOnreset(); - public void setOnreset(Function onreset); - public Function getOnscroll(); - public void setOnscroll(Function onscroll); - public Function getOnseeked(); - public void setOnseeked(Function onseeked); - public Function getOnseeking(); - public void setOnseeking(Function onseeking); - public Function getOnselect(); - public void setOnselect(Function onselect); - public Function getOnshow(); - public void setOnshow(Function onshow); - public Function getOnstalled(); - public void setOnstalled(Function onstalled); - public Function getOnsubmit(); - public void setOnsubmit(Function onsubmit); - public Function getOnsuspend(); - public void setOnsuspend(Function onsuspend); - public Function getOntimeupdate(); - public void setOntimeupdate(Function ontimeupdate); - public Function getOnvolumechange(); - public void setOnvolumechange(Function onvolumechange); - public Function getOnwaiting(); - public void setOnwaiting(Function onwaiting); - // HTMLElement-6 - public Element getOffsetParent(); - public int getOffsetTop(); - public int getOffsetLeft(); - public int getOffsetWidth(); - public int getOffsetHeight(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLEmbedElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLEmbedElement.java deleted file mode 100644 index 6065c86c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLEmbedElement.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLEmbedElement extends HTMLElement -{ - // HTMLEmbedElement - public String getSrc(); - public void setSrc(String src); - public String getType(); - public void setType(String type); - public String getWidth(); - public void setWidth(String width); - public String getHeight(); - public void setHeight(String height); - // HTMLEmbedElement-15 - public String getAlign(); - public void setAlign(String align); - public String getName(); - public void setName(String name); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFieldSetElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFieldSetElement.java deleted file mode 100644 index 600d281d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFieldSetElement.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLFieldSetElement extends HTMLElement -{ - // HTMLFieldSetElement - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public HTMLFormElement getForm(); - public String getName(); - public void setName(String name); - public String getType(); - public HTMLFormControlsCollection getElements(); - public boolean getWillValidate(); - public ValidityState getValidity(); - public String getValidationMessage(); - public boolean checkValidity(); - public void setCustomValidity(String error); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFontElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFontElement.java deleted file mode 100644 index d3439da1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFontElement.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLFontElement extends HTMLElement -{ - // HTMLFontElement - public String getColor(); - public void setColor(String color); - public String getFace(); - public void setFace(String face); - public String getSize(); - public void setSize(String size); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormControlsCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormControlsCollection.java deleted file mode 100644 index 19cf1b95..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormControlsCollection.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLFormControlsCollection extends HTMLCollection -{ - // HTMLFormControlsCollection - public Object namedItem(String name); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormElement.java deleted file mode 100644 index 9d7ea4ea..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFormElement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLFormElement extends HTMLElement -{ - // HTMLFormElement - public String getAcceptCharset(); - public void setAcceptCharset(String acceptCharset); - public String getAction(); - public void setAction(String action); - public String getAutocomplete(); - public void setAutocomplete(String autocomplete); - public String getEnctype(); - public void setEnctype(String enctype); - public String getEncoding(); - public void setEncoding(String encoding); - public String getMethod(); - public void setMethod(String method); - public String getName(); - public void setName(String name); - public boolean getNoValidate(); - public void setNoValidate(boolean noValidate); - public String getTarget(); - public void setTarget(String target); - public HTMLFormControlsCollection getElements(); - public int getLength(); - public Object getElement(int index); - public Object getElement(String name); - public void submit(); - public void reset(); - public boolean checkValidity(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameElement.java deleted file mode 100644 index 15ec048d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameElement.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.Document; - -public interface HTMLFrameElement extends HTMLElement -{ - // HTMLFrameElement - public String getFrameBorder(); - public void setFrameBorder(String frameBorder); - public String getLongDesc(); - public void setLongDesc(String longDesc); - public String getMarginHeight(); - public void setMarginHeight(String marginHeight); - public String getMarginWidth(); - public void setMarginWidth(String marginWidth); - public String getName(); - public void setName(String name); - public boolean getNoResize(); - public void setNoResize(boolean noResize); - public String getScrolling(); - public void setScrolling(String scrolling); - public String getSrc(); - public void setSrc(String src); - public Document getContentDocument(); - public Window getContentWindow(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameSetElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameSetElement.java deleted file mode 100644 index 8989e00b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLFrameSetElement.java +++ /dev/null @@ -1,52 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLFrameSetElement extends HTMLElement -{ - // HTMLFrameSetElement - public String getCols(); - public void setCols(String cols); - public String getRows(); - public void setRows(String rows); - public Function getOnafterprint(); - public void setOnafterprint(Function onafterprint); - public Function getOnbeforeprint(); - public void setOnbeforeprint(Function onbeforeprint); - public Function getOnbeforeunload(); - public void setOnbeforeunload(Function onbeforeunload); - public Function getOnblur(); - public void setOnblur(Function onblur); - public Function getOnerror(); - public void setOnerror(Function onerror); - public Function getOnfocus(); - public void setOnfocus(Function onfocus); - public Function getOnhashchange(); - public void setOnhashchange(Function onhashchange); - public Function getOnload(); - public void setOnload(Function onload); - public Function getOnmessage(); - public void setOnmessage(Function onmessage); - public Function getOnoffline(); - public void setOnoffline(Function onoffline); - public Function getOnonline(); - public void setOnonline(Function ononline); - public Function getOnpagehide(); - public void setOnpagehide(Function onpagehide); - public Function getOnpageshow(); - public void setOnpageshow(Function onpageshow); - public Function getOnpopstate(); - public void setOnpopstate(Function onpopstate); - public Function getOnredo(); - public void setOnredo(Function onredo); - public Function getOnresize(); - public void setOnresize(Function onresize); - public Function getOnscroll(); - public void setOnscroll(Function onscroll); - public Function getOnstorage(); - public void setOnstorage(Function onstorage); - public Function getOnundo(); - public void setOnundo(Function onundo); - public Function getOnunload(); - public void setOnunload(Function onunload); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHRElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHRElement.java deleted file mode 100644 index aefbab06..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHRElement.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLHRElement extends HTMLElement -{ - // HTMLHRElement - // HTMLHRElement-17 - public String getAlign(); - public void setAlign(String align); - public String getColor(); - public void setColor(String color); - public boolean getNoShade(); - public void setNoShade(boolean noShade); - public String getSize(); - public void setSize(String size); - public String getWidth(); - public void setWidth(String width); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadElement.java deleted file mode 100644 index 012b92e1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadElement.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLHeadElement extends HTMLElement -{ - // HTMLHeadElement -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadingElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadingElement.java deleted file mode 100644 index 0b10030c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHeadingElement.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLHeadingElement extends HTMLElement -{ - // HTMLHeadingElement - // HTMLHeadingElement-16 - public String getAlign(); - public void setAlign(String align); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHtmlElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHtmlElement.java deleted file mode 100644 index e8e3c82e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLHtmlElement.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLHtmlElement extends HTMLElement -{ - // HTMLHtmlElement - // HTMLHtmlElement-18 - public String getVersion(); - public void setVersion(String version); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLIFrameElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLIFrameElement.java deleted file mode 100644 index d47e6d00..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLIFrameElement.java +++ /dev/null @@ -1,40 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMSettableTokenList; -import org.w3c.dom.Document; - -public interface HTMLIFrameElement extends HTMLElement -{ - // HTMLIFrameElement - public String getSrc(); - public void setSrc(String src); - public String getSrcdoc(); - public void setSrcdoc(String srcdoc); - public String getName(); - public void setName(String name); - public DOMSettableTokenList getSandbox(); - public void setSandbox(String sandbox); - public boolean getSeamless(); - public void setSeamless(boolean seamless); - public String getWidth(); - public void setWidth(String width); - public String getHeight(); - public void setHeight(String height); - public Document getContentDocument(); - public Window getContentWindow(); - // HTMLIFrameElement-19 - public String getAlign(); - public void setAlign(String align); - public String getFrameBorder(); - public void setFrameBorder(String frameBorder); - public String getLongDesc(); - public void setLongDesc(String longDesc); - public String getMarginHeight(); - public void setMarginHeight(String marginHeight); - public String getMarginWidth(); - public void setMarginWidth(String marginWidth); - public String getScrolling(); - public void setScrolling(String scrolling); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement.java deleted file mode 100644 index e4b6b2ee..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLImageElement extends HTMLElement -{ - // HTMLImageElement - public String getAlt(); - public void setAlt(String alt); - public String getSrc(); - public void setSrc(String src); - public String getCrossOrigin(); - public void setCrossOrigin(String crossOrigin); - public String getUseMap(); - public void setUseMap(String useMap); - public boolean getIsMap(); - public void setIsMap(boolean isMap); - public int getWidth(); - public void setWidth(int width); - public int getHeight(); - public void setHeight(int height); - public int getNaturalWidth(); - public int getNaturalHeight(); - public boolean getComplete(); - // HTMLImageElement-20 - public String getName(); - public void setName(String name); - public String getAlign(); - public void setAlign(String align); - public String getBorder(); - public void setBorder(String border); - public int getHspace(); - public void setHspace(int hspace); - public String getLongDesc(); - public void setLongDesc(String longDesc); - public int getVspace(); - public void setVspace(int vspace); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement_Constructor.java deleted file mode 100644 index 43de48f3..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLImageElement_Constructor.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLImageElement_Constructor -{ - // Constructor - public HTMLImageElement createInstance(); - public HTMLImageElement createInstance(int width); - public HTMLImageElement createInstance(int width, int height); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLInputElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLInputElement.java deleted file mode 100644 index 9980d4a1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLInputElement.java +++ /dev/null @@ -1,105 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; -import org.w3c.dom.file.FileList; - -public interface HTMLInputElement extends HTMLElement -{ - // HTMLInputElement - public String getAccept(); - public void setAccept(String accept); - public String getAlt(); - public void setAlt(String alt); - public String getAutocomplete(); - public void setAutocomplete(String autocomplete); - public boolean getAutofocus(); - public void setAutofocus(boolean autofocus); - public boolean getDefaultChecked(); - public void setDefaultChecked(boolean defaultChecked); - public boolean getChecked(); - public void setChecked(boolean checked); - public String getDirName(); - public void setDirName(String dirName); - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public HTMLFormElement getForm(); - public FileList getFiles(); - public String getFormAction(); - public void setFormAction(String formAction); - public String getFormEnctype(); - public void setFormEnctype(String formEnctype); - public String getFormMethod(); - public void setFormMethod(String formMethod); - public boolean getFormNoValidate(); - public void setFormNoValidate(boolean formNoValidate); - public String getFormTarget(); - public void setFormTarget(String formTarget); - public String getHeight(); - public void setHeight(String height); - public boolean getIndeterminate(); - public void setIndeterminate(boolean indeterminate); - public HTMLElement getList(); - public String getMax(); - public void setMax(String max); - public int getMaxLength(); - public void setMaxLength(int maxLength); - public String getMin(); - public void setMin(String min); - public boolean getMultiple(); - public void setMultiple(boolean multiple); - public String getName(); - public void setName(String name); - public String getPattern(); - public void setPattern(String pattern); - public String getPlaceholder(); - public void setPlaceholder(String placeholder); - public boolean getReadOnly(); - public void setReadOnly(boolean readOnly); - public boolean getRequired(); - public void setRequired(boolean required); - public int getSize(); - public void setSize(int size); - public String getSrc(); - public void setSrc(String src); - public String getStep(); - public void setStep(String step); - public String getType(); - public void setType(String type); - public String getDefaultValue(); - public void setDefaultValue(String defaultValue); - public String getValue(); - public void setValue(String value); - public long getValueAsDate(); - public void setValueAsDate(long valueAsDate); - public double getValueAsNumber(); - public void setValueAsNumber(double valueAsNumber); - public HTMLOptionElement getSelectedOption(); - public String getWidth(); - public void setWidth(String width); - public void stepUp(); - public void stepUp(int n); - public void stepDown(); - public void stepDown(int n); - public boolean getWillValidate(); - public ValidityState getValidity(); - public String getValidationMessage(); - public boolean checkValidity(); - public void setCustomValidity(String error); - public NodeList getLabels(); - public void select(); - public int getSelectionStart(); - public void setSelectionStart(int selectionStart); - public int getSelectionEnd(); - public void setSelectionEnd(int selectionEnd); - public String getSelectionDirection(); - public void setSelectionDirection(String selectionDirection); - public void setSelectionRange(int start, int end); - public void setSelectionRange(int start, int end, String direction); - // HTMLInputElement-21 - public String getAlign(); - public void setAlign(String align); - public String getUseMap(); - public void setUseMap(String useMap); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLKeygenElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLKeygenElement.java deleted file mode 100644 index 59b6fb60..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLKeygenElement.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; - -public interface HTMLKeygenElement extends HTMLElement -{ - // HTMLKeygenElement - public boolean getAutofocus(); - public void setAutofocus(boolean autofocus); - public String getChallenge(); - public void setChallenge(String challenge); - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public HTMLFormElement getForm(); - public String getKeytype(); - public void setKeytype(String keytype); - public String getName(); - public void setName(String name); - public String getType(); - public boolean getWillValidate(); - public ValidityState getValidity(); - public String getValidationMessage(); - public boolean checkValidity(); - public void setCustomValidity(String error); - public NodeList getLabels(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLIElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLIElement.java deleted file mode 100644 index 200c4f6a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLIElement.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLLIElement extends HTMLElement -{ - // HTMLLIElement - public int getValue(); - public void setValue(int value); - // HTMLLIElement-23 - public String getType(); - public void setType(String type); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLabelElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLabelElement.java deleted file mode 100644 index 973d6ca5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLabelElement.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLLabelElement extends HTMLElement -{ - // HTMLLabelElement - public HTMLFormElement getForm(); - public String getHtmlFor(); - public void setHtmlFor(String htmlFor); - public HTMLElement getControl(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLegendElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLegendElement.java deleted file mode 100644 index 5798cf4a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLegendElement.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLLegendElement extends HTMLElement -{ - // HTMLLegendElement - public HTMLFormElement getForm(); - // HTMLLegendElement-22 - public String getAlign(); - public void setAlign(String align); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLinkElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLinkElement.java deleted file mode 100644 index 0a37d2bd..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLLinkElement.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMSettableTokenList; -import org.w3c.dom.DOMTokenList; - -public interface HTMLLinkElement extends HTMLElement -{ - // HTMLLinkElement - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public String getHref(); - public void setHref(String href); - public String getRel(); - public void setRel(String rel); - public DOMTokenList getRelList(); - public String getMedia(); - public void setMedia(String media); - public String getHreflang(); - public void setHreflang(String hreflang); - public String getType(); - public void setType(String type); - public DOMSettableTokenList getSizes(); - public void setSizes(String sizes); - // HTMLLinkElement-24 - public String getCharset(); - public void setCharset(String charset); - public String getRev(); - public void setRev(String rev); - public String getTarget(); - public void setTarget(String target); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMapElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMapElement.java deleted file mode 100644 index ad6b4fce..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMapElement.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLMapElement extends HTMLElement -{ - // HTMLMapElement - public String getName(); - public void setName(String name); - public HTMLCollection getAreas(); - public HTMLCollection getImages(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMarqueeElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMarqueeElement.java deleted file mode 100644 index 8fd81a3c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMarqueeElement.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLMarqueeElement extends HTMLElement -{ - // HTMLMarqueeElement - public String getBehavior(); - public void setBehavior(String behavior); - public String getBgColor(); - public void setBgColor(String bgColor); - public String getDirection(); - public void setDirection(String direction); - public String getHeight(); - public void setHeight(String height); - public int getHspace(); - public void setHspace(int hspace); - public int getLoop(); - public void setLoop(int loop); - public int getScrollAmount(); - public void setScrollAmount(int scrollAmount); - public int getScrollDelay(); - public void setScrollDelay(int scrollDelay); - public boolean getTrueSpeed(); - public void setTrueSpeed(boolean trueSpeed); - public int getVspace(); - public void setVspace(int vspace); - public String getWidth(); - public void setWidth(String width); - public Function getOnbounce(); - public void setOnbounce(Function onbounce); - public Function getOnfinish(); - public void setOnfinish(Function onfinish); - public Function getOnstart(); - public void setOnstart(Function onstart); - public void start(); - public void stop(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMediaElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMediaElement.java deleted file mode 100644 index e2d9a522..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMediaElement.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.ObjectArray; - -public interface HTMLMediaElement extends HTMLElement -{ - // HTMLMediaElement - public MediaError getError(); - public String getSrc(); - public void setSrc(String src); - public String getCurrentSrc(); - public String getCrossOrigin(); - public void setCrossOrigin(String crossOrigin); - public static final short NETWORK_EMPTY = 0; - public static final short NETWORK_IDLE = 1; - public static final short NETWORK_LOADING = 2; - public static final short NETWORK_NO_SOURCE = 3; - public short getNetworkState(); - public String getPreload(); - public void setPreload(String preload); - public TimeRanges getBuffered(); - public void load(); - public String canPlayType(String type); - public static final short HAVE_NOTHING = 0; - public static final short HAVE_METADATA = 1; - public static final short HAVE_CURRENT_DATA = 2; - public static final short HAVE_FUTURE_DATA = 3; - public static final short HAVE_ENOUGH_DATA = 4; - public short getReadyState(); - public boolean getSeeking(); - public double getCurrentTime(); - public void setCurrentTime(double currentTime); - public double getInitialTime(); - public double getDuration(); - public long getStartOffsetTime(); - public boolean getPaused(); - public double getDefaultPlaybackRate(); - public void setDefaultPlaybackRate(double defaultPlaybackRate); - public double getPlaybackRate(); - public void setPlaybackRate(double playbackRate); - public TimeRanges getPlayed(); - public TimeRanges getSeekable(); - public boolean getEnded(); - public boolean getAutoplay(); - public void setAutoplay(boolean autoplay); - public boolean getLoop(); - public void setLoop(boolean loop); - public void play(); - public void pause(); - public String getMediaGroup(); - public void setMediaGroup(String mediaGroup); - public MediaController getController(); - public void setController(MediaController controller); - public boolean getControls(); - public void setControls(boolean controls); - public double getVolume(); - public void setVolume(double volume); - public boolean getMuted(); - public void setMuted(boolean muted); - public boolean getDefaultMuted(); - public void setDefaultMuted(boolean defaultMuted); - public AudioTrackList getAudioTracks(); - public VideoTrackList getVideoTracks(); - public ObjectArray getTextTracks(); - public MutableTextTrack addTextTrack(String kind); - public MutableTextTrack addTextTrack(String kind, String label); - public MutableTextTrack addTextTrack(String kind, String label, String language); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMenuElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMenuElement.java deleted file mode 100644 index 9e3ab532..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMenuElement.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLMenuElement extends HTMLElement -{ - // HTMLMenuElement - public String getType(); - public void setType(String type); - public String getLabel(); - public void setLabel(String label); - // HTMLMenuElement-25 - public boolean getCompact(); - public void setCompact(boolean compact); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMetaElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMetaElement.java deleted file mode 100644 index a07ac017..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMetaElement.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLMetaElement extends HTMLElement -{ - // HTMLMetaElement - public String getName(); - public void setName(String name); - public String getHttpEquiv(); - public void setHttpEquiv(String httpEquiv); - public String getContent(); - public void setContent(String content); - // HTMLMetaElement-26 - public String getScheme(); - public void setScheme(String scheme); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMeterElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMeterElement.java deleted file mode 100644 index fc917196..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLMeterElement.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; - -public interface HTMLMeterElement extends HTMLElement -{ - // HTMLMeterElement - public double getValue(); - public void setValue(double value); - public double getMin(); - public void setMin(double min); - public double getMax(); - public void setMax(double max); - public double getLow(); - public void setLow(double low); - public double getHigh(); - public void setHigh(double high); - public double getOptimum(); - public void setOptimum(double optimum); - public NodeList getLabels(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLModElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLModElement.java deleted file mode 100644 index be54a337..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLModElement.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLModElement extends HTMLElement -{ - // HTMLModElement - public String getCite(); - public void setCite(String cite); - public String getDateTime(); - public void setDateTime(String dateTime); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOListElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOListElement.java deleted file mode 100644 index db5eea0a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOListElement.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLOListElement extends HTMLElement -{ - // HTMLOListElement - public boolean getReversed(); - public void setReversed(boolean reversed); - public int getStart(); - public void setStart(int start); - public String getType(); - public void setType(String type); - // HTMLOListElement-28 - public boolean getCompact(); - public void setCompact(boolean compact); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLObjectElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLObjectElement.java deleted file mode 100644 index 4de28384..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLObjectElement.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.Document; - -public interface HTMLObjectElement extends HTMLElement -{ - // HTMLObjectElement - public String getData(); - public void setData(String data); - public String getType(); - public void setType(String type); - public boolean getTypeMustMatch(); - public void setTypeMustMatch(boolean typeMustMatch); - public String getName(); - public void setName(String name); - public String getUseMap(); - public void setUseMap(String useMap); - public HTMLFormElement getForm(); - public String getWidth(); - public void setWidth(String width); - public String getHeight(); - public void setHeight(String height); - public Document getContentDocument(); - public Window getContentWindow(); - public boolean getWillValidate(); - public ValidityState getValidity(); - public String getValidationMessage(); - public boolean checkValidity(); - public void setCustomValidity(String error); - // HTMLObjectElement-27 - public String getAlign(); - public void setAlign(String align); - public String getArchive(); - public void setArchive(String archive); - public String getBorder(); - public void setBorder(String border); - public String getCode(); - public void setCode(String code); - public String getCodeBase(); - public void setCodeBase(String codeBase); - public String getCodeType(); - public void setCodeType(String codeType); - public boolean getDeclare(); - public void setDeclare(boolean declare); - public int getHspace(); - public void setHspace(int hspace); - public String getStandby(); - public void setStandby(String standby); - public int getVspace(); - public void setVspace(int vspace); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptGroupElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptGroupElement.java deleted file mode 100644 index 432ba7b2..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptGroupElement.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLOptGroupElement extends HTMLElement -{ - // HTMLOptGroupElement - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public String getLabel(); - public void setLabel(String label); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement.java deleted file mode 100644 index 2449a485..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement.java +++ /dev/null @@ -1,22 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLOptionElement extends HTMLElement -{ - // HTMLOptionElement - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public HTMLFormElement getForm(); - public String getLabel(); - public void setLabel(String label); - public boolean getDefaultSelected(); - public void setDefaultSelected(boolean defaultSelected); - public boolean getSelected(); - public void setSelected(boolean selected); - public String getValue(); - public void setValue(String value); - public String getText(); - public void setText(String text); - public int getIndex(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement_Constructor.java deleted file mode 100644 index d8f851b0..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionElement_Constructor.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLOptionElement_Constructor -{ - // Constructor - public HTMLOptionElement createInstance(); - public HTMLOptionElement createInstance(String text); - public HTMLOptionElement createInstance(String text, String value); - public HTMLOptionElement createInstance(String text, String value, boolean defaultSelected); - public HTMLOptionElement createInstance(String text, String value, boolean defaultSelected, boolean selected); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionsCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionsCollection.java deleted file mode 100644 index 6b7eb6fc..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOptionsCollection.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLOptionsCollection extends HTMLCollection -{ - // HTMLOptionsCollection - public int getLength(); - public void setLength(int length); - public Object namedItem(String name); - public void add(HTMLElement element); - public void add(HTMLElement element, HTMLElement before); - public void add(HTMLElement element, int before); - public void remove(int index); - public int getSelectedIndex(); - public void setSelectedIndex(int selectedIndex); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOutputElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOutputElement.java deleted file mode 100644 index ec3ed7c5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLOutputElement.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMSettableTokenList; -import org.w3c.dom.NodeList; - -public interface HTMLOutputElement extends HTMLElement -{ - // HTMLOutputElement - public DOMSettableTokenList getHtmlFor(); - public void setHtmlFor(String htmlFor); - public HTMLFormElement getForm(); - public String getName(); - public void setName(String name); - public String getType(); - public String getDefaultValue(); - public void setDefaultValue(String defaultValue); - public String getValue(); - public void setValue(String value); - public boolean getWillValidate(); - public ValidityState getValidity(); - public String getValidationMessage(); - public boolean checkValidity(); - public void setCustomValidity(String error); - public NodeList getLabels(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParagraphElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParagraphElement.java deleted file mode 100644 index 5b28a513..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParagraphElement.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLParagraphElement extends HTMLElement -{ - // HTMLParagraphElement - // HTMLParagraphElement-29 - public String getAlign(); - public void setAlign(String align); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParamElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParamElement.java deleted file mode 100644 index 6d799b24..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLParamElement.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLParamElement extends HTMLElement -{ - // HTMLParamElement - public String getName(); - public void setName(String name); - public String getValue(); - public void setValue(String value); - // HTMLParamElement-30 - public String getType(); - public void setType(String type); - public String getValueType(); - public void setValueType(String valueType); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPreElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPreElement.java deleted file mode 100644 index 0f83da95..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPreElement.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLPreElement extends HTMLElement -{ - // HTMLPreElement - // HTMLPreElement-31 - public int getWidth(); - public void setWidth(int width); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLProgressElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLProgressElement.java deleted file mode 100644 index bd198290..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLProgressElement.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; - -public interface HTMLProgressElement extends HTMLElement -{ - // HTMLProgressElement - public double getValue(); - public void setValue(double value); - public double getMax(); - public void setMax(double max); - public double getPosition(); - public NodeList getLabels(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPropertiesCollection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPropertiesCollection.java deleted file mode 100644 index c6e57480..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLPropertiesCollection.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMStringList; - -public interface HTMLPropertiesCollection extends HTMLCollection -{ - // HTMLPropertiesCollection - public PropertyNodeList namedItem(String name); - public DOMStringList getNames(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLQuoteElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLQuoteElement.java deleted file mode 100644 index e7204a3a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLQuoteElement.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLQuoteElement extends HTMLElement -{ - // HTMLQuoteElement - public String getCite(); - public void setCite(String cite); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLScriptElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLScriptElement.java deleted file mode 100644 index 4a60bc89..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLScriptElement.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLScriptElement extends HTMLElement -{ - // HTMLScriptElement - public String getSrc(); - public void setSrc(String src); - public boolean getAsync(); - public void setAsync(boolean async); - public boolean getDefer(); - public void setDefer(boolean defer); - public String getType(); - public void setType(String type); - public String getCharset(); - public void setCharset(String charset); - public String getText(); - public void setText(String text); - // HTMLScriptElement-32 - public String getEvent(); - public void setEvent(String event); - public String getHtmlFor(); - public void setHtmlFor(String htmlFor); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSelectElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSelectElement.java deleted file mode 100644 index ef325101..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSelectElement.java +++ /dev/null @@ -1,44 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; - -public interface HTMLSelectElement extends HTMLElement -{ - // HTMLSelectElement - public boolean getAutofocus(); - public void setAutofocus(boolean autofocus); - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public HTMLFormElement getForm(); - public boolean getMultiple(); - public void setMultiple(boolean multiple); - public String getName(); - public void setName(String name); - public boolean getRequired(); - public void setRequired(boolean required); - public int getSize(); - public void setSize(int size); - public String getType(); - public HTMLOptionsCollection getOptions(); - public int getLength(); - public void setLength(int length); - public Object item(int index); - public Object namedItem(String name); - public void add(HTMLElement element); - public void add(HTMLElement element, HTMLElement before); - public void add(HTMLElement element, int before); - public void remove(int index); - public HTMLCollection getSelectedOptions(); - public int getSelectedIndex(); - public void setSelectedIndex(int selectedIndex); - public String getValue(); - public void setValue(String value); - public boolean getWillValidate(); - public ValidityState getValidity(); - public String getValidationMessage(); - public boolean checkValidity(); - public void setCustomValidity(String error); - public NodeList getLabels(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSourceElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSourceElement.java deleted file mode 100644 index b0ea2e43..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSourceElement.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLSourceElement extends HTMLElement -{ - // HTMLSourceElement - public String getSrc(); - public void setSrc(String src); - public String getType(); - public void setType(String type); - public String getMedia(); - public void setMedia(String media); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSpanElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSpanElement.java deleted file mode 100644 index c499af0f..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLSpanElement.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLSpanElement extends HTMLElement -{ - // HTMLSpanElement -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLStyleElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLStyleElement.java deleted file mode 100644 index e1ce6d2e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLStyleElement.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLStyleElement extends HTMLElement -{ - // HTMLStyleElement - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public String getMedia(); - public void setMedia(String media); - public String getType(); - public void setType(String type); - public boolean getScoped(); - public void setScoped(boolean scoped); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCaptionElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCaptionElement.java deleted file mode 100644 index 08d77fc9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCaptionElement.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTableCaptionElement extends HTMLElement -{ - // HTMLTableCaptionElement - // HTMLTableCaptionElement-11 - public String getAlign(); - public void setAlign(String align); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCellElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCellElement.java deleted file mode 100644 index b3a87ab4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableCellElement.java +++ /dev/null @@ -1,38 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DOMSettableTokenList; - -public interface HTMLTableCellElement extends HTMLElement -{ - // HTMLTableCellElement - public int getColSpan(); - public void setColSpan(int colSpan); - public int getRowSpan(); - public void setRowSpan(int rowSpan); - public DOMSettableTokenList getHeaders(); - public void setHeaders(String headers); - public int getCellIndex(); - // HTMLTableCellElement-35 - public String getAbbr(); - public void setAbbr(String abbr); - public String getAlign(); - public void setAlign(String align); - public String getAxis(); - public void setAxis(String axis); - public String getBgColor(); - public void setBgColor(String bgColor); - public String getCh(); - public void setCh(String ch); - public String getChOff(); - public void setChOff(String chOff); - public String getHeight(); - public void setHeight(String height); - public boolean getNoWrap(); - public void setNoWrap(boolean noWrap); - public String getVAlign(); - public void setVAlign(String vAlign); - public String getWidth(); - public void setWidth(String width); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableColElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableColElement.java deleted file mode 100644 index fba3facb..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableColElement.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTableColElement extends HTMLElement -{ - // HTMLTableColElement - public int getSpan(); - public void setSpan(int span); - // HTMLTableColElement-12 - public String getAlign(); - public void setAlign(String align); - public String getCh(); - public void setCh(String ch); - public String getChOff(); - public void setChOff(String chOff); - public String getVAlign(); - public void setVAlign(String vAlign); - public String getWidth(); - public void setWidth(String width); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableDataCellElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableDataCellElement.java deleted file mode 100644 index 6ad72349..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableDataCellElement.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTableDataCellElement extends HTMLTableCellElement -{ - // HTMLTableDataCellElement -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableElement.java deleted file mode 100644 index b4001e4c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableElement.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTableElement extends HTMLElement -{ - // HTMLTableElement - public HTMLTableCaptionElement getCaption(); - public void setCaption(HTMLTableCaptionElement caption); - public HTMLElement createCaption(); - public void deleteCaption(); - public HTMLTableSectionElement getTHead(); - public void setTHead(HTMLTableSectionElement tHead); - public HTMLElement createTHead(); - public void deleteTHead(); - public HTMLTableSectionElement getTFoot(); - public void setTFoot(HTMLTableSectionElement tFoot); - public HTMLElement createTFoot(); - public void deleteTFoot(); - public HTMLCollection getTBodies(); - public HTMLElement createTBody(); - public HTMLCollection getRows(); - public HTMLElement insertRow(); - public HTMLElement insertRow(int index); - public void deleteRow(int index); - public String getBorder(); - public void setBorder(String border); - // HTMLTableElement-33 - public String getAlign(); - public void setAlign(String align); - public String getBgColor(); - public void setBgColor(String bgColor); - public String getCellPadding(); - public void setCellPadding(String cellPadding); - public String getCellSpacing(); - public void setCellSpacing(String cellSpacing); - public String getFrame(); - public void setFrame(String frame); - public String getRules(); - public void setRules(String rules); - public String getSummary(); - public void setSummary(String summary); - public String getWidth(); - public void setWidth(String width); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableHeaderCellElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableHeaderCellElement.java deleted file mode 100644 index efaca759..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableHeaderCellElement.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTableHeaderCellElement extends HTMLTableCellElement -{ - // HTMLTableHeaderCellElement - public String getScope(); - public void setScope(String scope); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableRowElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableRowElement.java deleted file mode 100644 index 38b8493e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableRowElement.java +++ /dev/null @@ -1,25 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTableRowElement extends HTMLElement -{ - // HTMLTableRowElement - public int getRowIndex(); - public int getSectionRowIndex(); - public HTMLCollection getCells(); - public HTMLElement insertCell(); - public HTMLElement insertCell(int index); - public void deleteCell(int index); - // HTMLTableRowElement-36 - public String getAlign(); - public void setAlign(String align); - public String getBgColor(); - public void setBgColor(String bgColor); - public String getCh(); - public void setCh(String ch); - public String getChOff(); - public void setChOff(String chOff); - public String getVAlign(); - public void setVAlign(String vAlign); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableSectionElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableSectionElement.java deleted file mode 100644 index 97643ed4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTableSectionElement.java +++ /dev/null @@ -1,21 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTableSectionElement extends HTMLElement -{ - // HTMLTableSectionElement - public HTMLCollection getRows(); - public HTMLElement insertRow(); - public HTMLElement insertRow(int index); - public void deleteRow(int index); - // HTMLTableSectionElement-34 - public String getAlign(); - public void setAlign(String align); - public String getCh(); - public void setCh(String ch); - public String getChOff(); - public void setChOff(String chOff); - public String getVAlign(); - public void setVAlign(String vAlign); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTextAreaElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTextAreaElement.java deleted file mode 100644 index 2fac57dd..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTextAreaElement.java +++ /dev/null @@ -1,54 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; - -public interface HTMLTextAreaElement extends HTMLElement -{ - // HTMLTextAreaElement - public boolean getAutofocus(); - public void setAutofocus(boolean autofocus); - public int getCols(); - public void setCols(int cols); - public String getDirName(); - public void setDirName(String dirName); - public boolean getDisabled(); - public void setDisabled(boolean disabled); - public HTMLFormElement getForm(); - public int getMaxLength(); - public void setMaxLength(int maxLength); - public String getName(); - public void setName(String name); - public String getPlaceholder(); - public void setPlaceholder(String placeholder); - public boolean getReadOnly(); - public void setReadOnly(boolean readOnly); - public boolean getRequired(); - public void setRequired(boolean required); - public int getRows(); - public void setRows(int rows); - public String getWrap(); - public void setWrap(String wrap); - public String getType(); - public String getDefaultValue(); - public void setDefaultValue(String defaultValue); - public String getValue(); - public void setValue(String value); - public int getTextLength(); - public boolean getWillValidate(); - public ValidityState getValidity(); - public String getValidationMessage(); - public boolean checkValidity(); - public void setCustomValidity(String error); - public NodeList getLabels(); - public void select(); - public int getSelectionStart(); - public void setSelectionStart(int selectionStart); - public int getSelectionEnd(); - public void setSelectionEnd(int selectionEnd); - public String getSelectionDirection(); - public void setSelectionDirection(String selectionDirection); - public void setSelectionRange(int start, int end); - public void setSelectionRange(int start, int end, String direction); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTimeElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTimeElement.java deleted file mode 100644 index 8270755d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTimeElement.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTimeElement extends HTMLElement -{ - // HTMLTimeElement - public String getDateTime(); - public void setDateTime(String dateTime); - public boolean getPubDate(); - public void setPubDate(boolean pubDate); - public long getValueAsDate(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTitleElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTitleElement.java deleted file mode 100644 index f8b6f68b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTitleElement.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTitleElement extends HTMLElement -{ - // HTMLTitleElement - public String getText(); - public void setText(String text); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTrackElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTrackElement.java deleted file mode 100644 index 25dadd33..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLTrackElement.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLTrackElement extends HTMLElement -{ - // HTMLTrackElement - public String getKind(); - public void setKind(String kind); - public String getSrc(); - public void setSrc(String src); - public String getSrclang(); - public void setSrclang(String srclang); - public String getLabel(); - public void setLabel(String label); - public boolean getDefault(); - public void setDefault(boolean _default); - public TextTrack getTrack(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUListElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUListElement.java deleted file mode 100644 index 6081a144..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUListElement.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLUListElement extends HTMLElement -{ - // HTMLUListElement - // HTMLUListElement-37 - public boolean getCompact(); - public void setCompact(boolean compact); - public String getType(); - public void setType(String type); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUnknownElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUnknownElement.java deleted file mode 100644 index 6a41cf12..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLUnknownElement.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLUnknownElement extends HTMLElement -{ - // HTMLUnknownElement -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLVideoElement.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLVideoElement.java deleted file mode 100644 index 669f86eb..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HTMLVideoElement.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface HTMLVideoElement extends HTMLMediaElement -{ - // HTMLVideoElement - public int getWidth(); - public void setWidth(int width); - public int getHeight(); - public void setHeight(int height); - public int getVideoWidth(); - public int getVideoHeight(); - public String getPoster(); - public void setPoster(String poster); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HashChangeEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/HashChangeEvent.java deleted file mode 100644 index 8992fd06..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/HashChangeEvent.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.events.Event; - -public interface HashChangeEvent extends Event -{ - // HashChangeEvent - public String getOldURL(); - public String getNewURL(); - public void initHashChangeEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String oldURLArg, String newURLArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/History.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/History.java deleted file mode 100644 index 9f1f97d8..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/History.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface History -{ - // History - public int getLength(); - public Object getState(); - public void go(); - public void go(int delta); - public void back(); - public void forward(); - public void pushState(Object data, String title); - public void pushState(Object data, String title, String url); - public void replaceState(Object data, String title); - public void replaceState(Object data, String title, String url); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ImageData.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ImageData.java deleted file mode 100644 index c72f6eff..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ImageData.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface ImageData -{ - // ImageData - public int getWidth(); - public int getHeight(); - public CanvasPixelArray getData(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/LocalMediaStream.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/LocalMediaStream.java deleted file mode 100644 index a065a151..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/LocalMediaStream.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface LocalMediaStream extends MediaStream -{ - // LocalMediaStream - public void stop(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Location.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Location.java deleted file mode 100644 index 85e2244f..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Location.java +++ /dev/null @@ -1,28 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface Location -{ - // Location - public String getHref(); - public void setHref(String href); - public void assign(String url); - public void replace(String url); - public void reload(); - public String getProtocol(); - public void setProtocol(String protocol); - public String getHost(); - public void setHost(String host); - public String getHostname(); - public void setHostname(String hostname); - public String getPort(); - public void setPort(String port); - public String getPathname(); - public void setPathname(String pathname); - public String getSearch(); - public void setSearch(String search); - public String getHash(); - public void setHash(String hash); - public String resolveURL(String url); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController.java deleted file mode 100644 index e1708a18..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MediaController -{ - // MediaController - public TimeRanges getBuffered(); - public TimeRanges getSeekable(); - public double getDuration(); - public double getCurrentTime(); - public void setCurrentTime(double currentTime); - public boolean getPaused(); - public TimeRanges getPlayed(); - public void play(); - public void pause(); - public double getDefaultPlaybackRate(); - public void setDefaultPlaybackRate(double defaultPlaybackRate); - public double getPlaybackRate(); - public void setPlaybackRate(double playbackRate); - public double getVolume(); - public void setVolume(double volume); - public boolean getMuted(); - public void setMuted(boolean muted); - public Function getOnemptied(); - public void setOnemptied(Function onemptied); - public Function getOnloadedmetadata(); - public void setOnloadedmetadata(Function onloadedmetadata); - public Function getOnloadeddata(); - public void setOnloadeddata(Function onloadeddata); - public Function getOncanplay(); - public void setOncanplay(Function oncanplay); - public Function getOncanplaythrough(); - public void setOncanplaythrough(Function oncanplaythrough); - public Function getOnplaying(); - public void setOnplaying(Function onplaying); - public Function getOnended(); - public void setOnended(Function onended); - public Function getOnwaiting(); - public void setOnwaiting(Function onwaiting); - public Function getOndurationchange(); - public void setOndurationchange(Function ondurationchange); - public Function getOntimeupdate(); - public void setOntimeupdate(Function ontimeupdate); - public Function getOnplay(); - public void setOnplay(Function onplay); - public Function getOnpause(); - public void setOnpause(Function onpause); - public Function getOnratechange(); - public void setOnratechange(Function onratechange); - public Function getOnvolumechange(); - public void setOnvolumechange(Function onvolumechange); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController_Constructor.java deleted file mode 100644 index 5be5c098..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaController_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MediaController_Constructor -{ - // Constructor - public MediaController createInstance(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaError.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaError.java deleted file mode 100644 index a8c2e132..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaError.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MediaError -{ - // MediaError - public static final short MEDIA_ERR_ABORTED = 1; - public static final short MEDIA_ERR_NETWORK = 2; - public static final short MEDIA_ERR_DECODE = 3; - public static final short MEDIA_ERR_SRC_NOT_SUPPORTED = 4; - public short getCode(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryList.java deleted file mode 100644 index 94ff81b9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryList.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MediaQueryList -{ - // MediaQueryList - public String getMedia(); - public boolean getMatches(); - public void addListener(MediaQueryListListener listener); - public void removeListener(MediaQueryListListener listener); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryListListener.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryListListener.java deleted file mode 100644 index 6b930cf4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaQueryListListener.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MediaQueryListListener -{ - // MediaQueryListListener - public void handleChange(MediaQueryList mql); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream.java deleted file mode 100644 index 6e1b242e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.ObjectArray; - -public interface MediaStream -{ - // MediaStream - public String getLabel(); - public ObjectArray getTracks(); - public MediaStreamRecorder record(); - public static final short LIVE = 1; - public static final short ENDED = 2; - public short getReadyState(); - public Function getOnended(); - public void setOnended(Function onended); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStreamRecorder.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStreamRecorder.java deleted file mode 100644 index 4b457386..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStreamRecorder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MediaStreamRecorder -{ - // MediaStreamRecorder - public void getRecordedData(BlobCallback callback); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream_Constructor.java deleted file mode 100644 index 946216c7..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MediaStream_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MediaStream_Constructor -{ - // Constructor - public MediaStream createInstance(MediaStream parentStream); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel.java deleted file mode 100644 index 6c77772d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MessageChannel -{ - // MessageChannel - public MessagePort getPort1(); - public MessagePort getPort2(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel_Constructor.java deleted file mode 100644 index 77440f10..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageChannel_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MessageChannel_Constructor -{ - // Constructor - public MessageChannel createInstance(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageEvent.java deleted file mode 100644 index 60a01525..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessageEvent.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.ObjectArray; -import org.w3c.dom.events.Event; - -public interface MessageEvent extends Event -{ - // MessageEvent - public Object getData(); - public String getOrigin(); - public String getLastEventId(); - public Window getSource(); - public ObjectArray getPorts(); - public void initMessageEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, MessagePort[] portsArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessagePort.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessagePort.java deleted file mode 100644 index ec6141e0..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MessagePort.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MessagePort -{ - // MessagePort - public void postMessage(Object message); - public void postMessage(Object message, Transferable[] transfer); - public void start(); - public void close(); - public Function getOnmessage(); - public void setOnmessage(Function onmessage); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MutableTextTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/MutableTextTrack.java deleted file mode 100644 index eecd4d40..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/MutableTextTrack.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface MutableTextTrack extends TextTrack -{ - // MutableTextTrack - public void addCue(TextTrackCue cue); - public void removeCue(TextTrackCue cue); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Navigator.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Navigator.java deleted file mode 100644 index 42796a97..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Navigator.java +++ /dev/null @@ -1,23 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface Navigator -{ - // Navigator - // NavigatorID - public String getAppName(); - public String getAppVersion(); - public String getPlatform(); - public String getUserAgent(); - // NavigatorOnLine - public boolean getOnLine(); - // NavigatorContentUtils - public void registerProtocolHandler(String scheme, String url, String title); - public void registerContentHandler(String mimeType, String url, String title); - // NavigatorStorageUtils - public void yieldForStorageUpdates(); - // NavigatorUserMedia - public void getUserMedia(String options, NavigatorUserMediaSuccessCallback successCallback); - public void getUserMedia(String options, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaError.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaError.java deleted file mode 100644 index cec4c6ad..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaError.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface NavigatorUserMediaError -{ - // NavigatorUserMediaError - public static final short PERMISSION_DENIED = 1; - public short getCode(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaErrorCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaErrorCallback.java deleted file mode 100644 index 6008406b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaErrorCallback.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface NavigatorUserMediaErrorCallback -{ - // NavigatorUserMediaErrorCallback - public void handleEvent(NavigatorUserMediaError error); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaSuccessCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaSuccessCallback.java deleted file mode 100644 index 3086b104..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/NavigatorUserMediaSuccessCallback.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface NavigatorUserMediaSuccessCallback -{ - // NavigatorUserMediaSuccessCallback - public void handleEvent(LocalMediaStream stream); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PageTransitionEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PageTransitionEvent.java deleted file mode 100644 index 83806e52..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PageTransitionEvent.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.events.Event; - -public interface PageTransitionEvent extends Event -{ - // PageTransitionEvent - public boolean getPersisted(); - public void initPageTransitionEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, boolean persistedArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection.java deleted file mode 100644 index 9b5c6c07..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection.java +++ /dev/null @@ -1,32 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.ObjectArray; - -public interface PeerConnection -{ - // PeerConnection - public void signalingMessage(String message); - public static final short NEW = 0; - public static final short NEGOTIATING = 1; - public static final short ACTIVE = 2; - public static final short CLOSED = 3; - public short getReadyState(); - public void send(String text); - public void addStream(MediaStream stream); - public void removeStream(MediaStream stream); - public ObjectArray getLocalStreams(); - public ObjectArray getRemoteStreams(); - public void close(); - public Function getOnconnecting(); - public void setOnconnecting(Function onconnecting); - public Function getOnopen(); - public void setOnopen(Function onopen); - public Function getOnmessage(); - public void setOnmessage(Function onmessage); - public Function getOnaddstream(); - public void setOnaddstream(Function onaddstream); - public Function getOnremovestream(); - public void setOnremovestream(Function onremovestream); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection_Constructor.java deleted file mode 100644 index 327ce51e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PeerConnection_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface PeerConnection_Constructor -{ - // Constructor - public PeerConnection createInstance(String configuration, SignalingCallback signalingCallback); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PopStateEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PopStateEvent.java deleted file mode 100644 index c6e700f1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PopStateEvent.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.events.Event; - -public interface PopStateEvent extends Event -{ - // PopStateEvent - public Object getState(); - public void initPopStateEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object stateArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PropertyNodeList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/PropertyNodeList.java deleted file mode 100644 index bbdf5570..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/PropertyNodeList.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; - -public interface PropertyNodeList extends NodeList -{ - // PropertyNodeList - public Object[] getValues(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/RadioNodeList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/RadioNodeList.java deleted file mode 100644 index eabe9697..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/RadioNodeList.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.NodeList; - -public interface RadioNodeList extends NodeList -{ - // RadioNodeList - public String getValue(); - public void setValue(String value); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Screen.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Screen.java deleted file mode 100644 index a6b79b7d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Screen.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface Screen -{ - // Screen - public int getAvailWidth(); - public int getAvailHeight(); - public int getWidth(); - public int getHeight(); - public int getColorDepth(); - public int getPixelDepth(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/SignalingCallback.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/SignalingCallback.java deleted file mode 100644 index 3d0e2b08..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/SignalingCallback.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface SignalingCallback -{ - // SignalingCallback - public void handleEvent(String message, PeerConnection source); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamEvent.java deleted file mode 100644 index ca8031b2..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamEvent.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.events.Event; - -public interface StreamEvent extends Event -{ - // StreamEvent - public MediaStream getStream(); - public void initStreamEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, MediaStream streamArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamTrack.java deleted file mode 100644 index ba82595e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/StreamTrack.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface StreamTrack -{ - // StreamTrack - public String getKind(); - public String getLabel(); - public boolean getEnabled(); - public void setEnabled(boolean enabled); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextMetrics.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextMetrics.java deleted file mode 100644 index a55b3036..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextMetrics.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface TextMetrics -{ - // TextMetrics - public double getWidth(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrack.java deleted file mode 100644 index fb2bc798..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrack.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface TextTrack -{ - // TextTrack - public String getKind(); - public String getLabel(); - public String getLanguage(); - public static final short NONE = 0; - public static final short LOADING = 1; - public static final short LOADED = 2; - public static final short ERROR = 3; - public short getReadyState(); - public Function getOnload(); - public void setOnload(Function onload); - public Function getOnerror(); - public void setOnerror(Function onerror); - public static final short OFF = 0; - public static final short HIDDEN = 1; - public static final short SHOWING = 2; - public short getMode(); - public void setMode(short mode); - public TextTrackCueList getCues(); - public TextTrackCueList getActiveCues(); - public Function getOncuechange(); - public void setOncuechange(Function oncuechange); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue.java deleted file mode 100644 index 91897a7a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.DocumentFragment; - -public interface TextTrackCue -{ - // TextTrackCue - public TextTrack getTrack(); - public String getId(); - public double getStartTime(); - public double getEndTime(); - public boolean getPauseOnExit(); - public String getDirection(); - public boolean getSnapToLines(); - public int getLinePosition(); - public int getTextPosition(); - public int getSize(); - public String getAlignment(); - public String getCueAsSource(); - public DocumentFragment getCueAsHTML(); - public Function getOnenter(); - public void setOnenter(Function onenter); - public Function getOnexit(); - public void setOnexit(Function onexit); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCueList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCueList.java deleted file mode 100644 index 32f4dda1..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCueList.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface TextTrackCueList -{ - // TextTrackCueList - public int getLength(); - public TextTrackCue getElement(int index); - public TextTrackCue getCueById(String id); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue_Constructor.java deleted file mode 100644 index b0f0be95..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TextTrackCue_Constructor.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface TextTrackCue_Constructor -{ - // Constructor - public TextTrackCue createInstance(String id, double startTime, double endTime, String text); - public TextTrackCue createInstance(String id, double startTime, double endTime, String text, String settings); - public TextTrackCue createInstance(String id, double startTime, double endTime, String text, String settings, boolean pauseOnExit); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TimeRanges.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/TimeRanges.java deleted file mode 100644 index 743cdbd8..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/TimeRanges.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface TimeRanges -{ - // TimeRanges - public int getLength(); - public double start(int index); - public double end(int index); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Transferable.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Transferable.java deleted file mode 100644 index d2686a64..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Transferable.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface Transferable -{ - // Transferable -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManager.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManager.java deleted file mode 100644 index 41988dbd..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManager.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface UndoManager -{ - // UndoManager - public int getLength(); - public Object item(int index); - public int getPosition(); - public int add(Object data, String title); - public void remove(int index); - public void clearUndo(); - public void clearRedo(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManagerEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManagerEvent.java deleted file mode 100644 index 171337f5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/UndoManagerEvent.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.events.Event; - -public interface UndoManagerEvent extends Event -{ - // UndoManagerEvent - public Object getData(); - public void initUndoManagerEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, Object dataArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ValidityState.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/ValidityState.java deleted file mode 100644 index 349c7b17..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/ValidityState.java +++ /dev/null @@ -1,17 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface ValidityState -{ - // ValidityState - public boolean getValueMissing(); - public boolean getTypeMismatch(); - public boolean getPatternMismatch(); - public boolean getTooLong(); - public boolean getRangeUnderflow(); - public boolean getRangeOverflow(); - public boolean getStepMismatch(); - public boolean getCustomError(); - public boolean getValid(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrack.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrack.java deleted file mode 100644 index 5720ae48..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrack.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface VideoTrack -{ - // VideoTrack - public String getId(); - public String getKind(); - public String getLabel(); - public String getLanguage(); - public boolean getSelected(); - public void setSelected(boolean selected); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrackList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrackList.java deleted file mode 100644 index 9488102d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/VideoTrackList.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface VideoTrackList -{ - // VideoTrackList - public int getLength(); - public VideoTrack getElement(int index); - public VideoTrack getTrackById(String id); - public int getSelectedIndex(); - public Function getOnchange(); - public void setOnchange(Function onchange); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Window.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/Window.java deleted file mode 100644 index 6ea2c133..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/Window.java +++ /dev/null @@ -1,235 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.css.CSSStyleDeclaration; - -public interface Window -{ - // Window - public Window getWindow(); - public Window getSelf(); - public Document getDocument(); - public String getName(); - public void setName(String name); - public Location getLocation(); - public void setLocation(String location); - public History getHistory(); - public UndoManager getUndoManager(); - public Object getLocationbar(); - public void setLocationbar(Object locationbar); - public Object getMenubar(); - public void setMenubar(Object menubar); - public Object getPersonalbar(); - public void setPersonalbar(Object personalbar); - public Object getScrollbars(); - public void setScrollbars(Object scrollbars); - public Object getStatusbar(); - public void setStatusbar(Object statusbar); - public Object getToolbar(); - public void setToolbar(Object toolbar); - public String getStatus(); - public void setStatus(String status); - public void close(); - public void stop(); - public void focus(); - public void blur(); - public Object getFrames(); - public void setFrames(Object frames); - public Object getLength(); - public void setLength(Object length); - public Window getTop(); - public Window getOpener(); - public void setOpener(Window opener); - public Window getParent(); - public Element getFrameElement(); - public Window open(); - public Window open(String url); - public Window open(String url, String target); - public Window open(String url, String target, String features); - public Window open(String url, String target, String features, boolean replace); - public Window getElement(int index); - public Object getElement(String name); - public void setElement(String name, Object value); - public Navigator getNavigator(); - public External getExternal(); - public ApplicationCache getApplicationCache(); - public void alert(String message); - public boolean confirm(String message); - public String prompt(String message); - public String prompt(String message, String _default); - public void print(); - public Object showModalDialog(String url); - public Object showModalDialog(String url, Object argument); - public void postMessage(Object message, String targetOrigin); - public void postMessage(Object message, String targetOrigin, Transferable[] transfer); - public Function getOnabort(); - public void setOnabort(Function onabort); - public Function getOnafterprint(); - public void setOnafterprint(Function onafterprint); - public Function getOnbeforeprint(); - public void setOnbeforeprint(Function onbeforeprint); - public Function getOnbeforeunload(); - public void setOnbeforeunload(Function onbeforeunload); - public Function getOnblur(); - public void setOnblur(Function onblur); - public Function getOncanplay(); - public void setOncanplay(Function oncanplay); - public Function getOncanplaythrough(); - public void setOncanplaythrough(Function oncanplaythrough); - public Function getOnchange(); - public void setOnchange(Function onchange); - public Function getOnclick(); - public void setOnclick(Function onclick); - public Function getOncontextmenu(); - public void setOncontextmenu(Function oncontextmenu); - public Function getOncuechange(); - public void setOncuechange(Function oncuechange); - public Function getOndblclick(); - public void setOndblclick(Function ondblclick); - public Function getOndrag(); - public void setOndrag(Function ondrag); - public Function getOndragend(); - public void setOndragend(Function ondragend); - public Function getOndragenter(); - public void setOndragenter(Function ondragenter); - public Function getOndragleave(); - public void setOndragleave(Function ondragleave); - public Function getOndragover(); - public void setOndragover(Function ondragover); - public Function getOndragstart(); - public void setOndragstart(Function ondragstart); - public Function getOndrop(); - public void setOndrop(Function ondrop); - public Function getOndurationchange(); - public void setOndurationchange(Function ondurationchange); - public Function getOnemptied(); - public void setOnemptied(Function onemptied); - public Function getOnended(); - public void setOnended(Function onended); - public Function getOnerror(); - public void setOnerror(Function onerror); - public Function getOnfocus(); - public void setOnfocus(Function onfocus); - public Function getOnhashchange(); - public void setOnhashchange(Function onhashchange); - public Function getOninput(); - public void setOninput(Function oninput); - public Function getOninvalid(); - public void setOninvalid(Function oninvalid); - public Function getOnkeydown(); - public void setOnkeydown(Function onkeydown); - public Function getOnkeypress(); - public void setOnkeypress(Function onkeypress); - public Function getOnkeyup(); - public void setOnkeyup(Function onkeyup); - public Function getOnload(); - public void setOnload(Function onload); - public Function getOnloadeddata(); - public void setOnloadeddata(Function onloadeddata); - public Function getOnloadedmetadata(); - public void setOnloadedmetadata(Function onloadedmetadata); - public Function getOnloadstart(); - public void setOnloadstart(Function onloadstart); - public Function getOnmessage(); - public void setOnmessage(Function onmessage); - public Function getOnmousedown(); - public void setOnmousedown(Function onmousedown); - public Function getOnmousemove(); - public void setOnmousemove(Function onmousemove); - public Function getOnmouseout(); - public void setOnmouseout(Function onmouseout); - public Function getOnmouseover(); - public void setOnmouseover(Function onmouseover); - public Function getOnmouseup(); - public void setOnmouseup(Function onmouseup); - public Function getOnmousewheel(); - public void setOnmousewheel(Function onmousewheel); - public Function getOnoffline(); - public void setOnoffline(Function onoffline); - public Function getOnonline(); - public void setOnonline(Function ononline); - public Function getOnpause(); - public void setOnpause(Function onpause); - public Function getOnplay(); - public void setOnplay(Function onplay); - public Function getOnplaying(); - public void setOnplaying(Function onplaying); - public Function getOnpagehide(); - public void setOnpagehide(Function onpagehide); - public Function getOnpageshow(); - public void setOnpageshow(Function onpageshow); - public Function getOnpopstate(); - public void setOnpopstate(Function onpopstate); - public Function getOnprogress(); - public void setOnprogress(Function onprogress); - public Function getOnratechange(); - public void setOnratechange(Function onratechange); - public Function getOnreadystatechange(); - public void setOnreadystatechange(Function onreadystatechange); - public Function getOnredo(); - public void setOnredo(Function onredo); - public Function getOnreset(); - public void setOnreset(Function onreset); - public Function getOnresize(); - public void setOnresize(Function onresize); - public Function getOnscroll(); - public void setOnscroll(Function onscroll); - public Function getOnseeked(); - public void setOnseeked(Function onseeked); - public Function getOnseeking(); - public void setOnseeking(Function onseeking); - public Function getOnselect(); - public void setOnselect(Function onselect); - public Function getOnshow(); - public void setOnshow(Function onshow); - public Function getOnstalled(); - public void setOnstalled(Function onstalled); - public Function getOnstorage(); - public void setOnstorage(Function onstorage); - public Function getOnsubmit(); - public void setOnsubmit(Function onsubmit); - public Function getOnsuspend(); - public void setOnsuspend(Function onsuspend); - public Function getOntimeupdate(); - public void setOntimeupdate(Function ontimeupdate); - public Function getOnundo(); - public void setOnundo(Function onundo); - public Function getOnunload(); - public void setOnunload(Function onunload); - public Function getOnvolumechange(); - public void setOnvolumechange(Function onvolumechange); - public Function getOnwaiting(); - public void setOnwaiting(Function onwaiting); - // Window-4 - public CSSStyleDeclaration getComputedStyle(Element elt); - public CSSStyleDeclaration getComputedStyle(Element elt, String pseudoElt); - // Window-5 - public MediaQueryList matchMedia(String media_query_list); - public Screen getScreen(); - public int getInnerWidth(); - public int getInnerHeight(); - public int getScrollX(); - public int getPageXOffset(); - public int getScrollY(); - public int getPageYOffset(); - public void scroll(int x, int y); - public void scrollTo(int x, int y); - public void scrollBy(int x, int y); - public int getScreenX(); - public int getScreenY(); - public int getOuterWidth(); - public int getOuterHeight(); - // WindowBase64 - public String btoa(String btoa); - public String atob(String atob); - // WindowTimers - public int setTimeout(Object handler); - public int setTimeout(Object handler, Object timeout, Object... args); - public void clearTimeout(int handle); - public int setInterval(Object handler); - public int setInterval(Object handler, Object timeout, Object... args); - public void clearInterval(int handle); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/html/WindowModal.java b/backends/gdx-backend-dragome/src/org/w3c/dom/html/WindowModal.java deleted file mode 100644 index e4be20a5..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/html/WindowModal.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.html; - -public interface WindowModal -{ - // WindowModal - public Object getDialogArguments(); - public String getReturnValue(); - public void setReturnValue(String returnValue); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/DocumentRange.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/DocumentRange.java deleted file mode 100644 index eb66b062..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/DocumentRange.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.ranges; - -public interface DocumentRange -{ - // DocumentRange - public Range createRange(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/Range.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/Range.java deleted file mode 100644 index a52d05c6..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/Range.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.ranges; - -import org.w3c.dom.DOMException; -import org.w3c.dom.DocumentFragment; -import org.w3c.dom.Node; -import org.w3c.dom.views.ClientRect; -import org.w3c.dom.views.ClientRectList; - -public interface Range -{ - // Range - public Node getStartContainer() throws DOMException; - public int getStartOffset() throws DOMException; - public Node getEndContainer() throws DOMException; - public int getEndOffset() throws DOMException; - public boolean getCollapsed() throws DOMException; - public Node getCommonAncestorContainer() throws DOMException; - public void setStart(Node refNode, int offset) throws RangeException, DOMException; - public void setEnd(Node refNode, int offset) throws RangeException, DOMException; - public void setStartBefore(Node refNode) throws RangeException, DOMException; - public void setStartAfter(Node refNode) throws RangeException, DOMException; - public void setEndBefore(Node refNode) throws RangeException, DOMException; - public void setEndAfter(Node refNode) throws RangeException, DOMException; - public void collapse(boolean toStart) throws DOMException; - public void selectNode(Node refNode) throws RangeException, DOMException; - public void selectNodeContents(Node refNode) throws RangeException, DOMException; - public static final short START_TO_START = 0; - public static final short START_TO_END = 1; - public static final short END_TO_END = 2; - public static final short END_TO_START = 3; - public short compareBoundaryPoints(short how, Range sourceRange) throws DOMException; - public void deleteContents() throws DOMException; - public DocumentFragment extractContents() throws DOMException; - public DocumentFragment cloneContents() throws DOMException; - public void insertNode(Node newNode) throws DOMException, RangeException; - public void surroundContents(Node newParent) throws DOMException, RangeException; - public Range cloneRange() throws DOMException; - public String toString() throws DOMException; - public void detach() throws DOMException; - // Range-39 - public ClientRectList getClientRects(); - public ClientRect getBoundingClientRect(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/RangeException.java b/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/RangeException.java deleted file mode 100644 index 4c5e3c57..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/ranges/RangeException.java +++ /dev/null @@ -1,15 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.ranges; - -public class RangeException extends RuntimeException -{ - public RangeException(short code, String message) - { - super(message); - this.code = code; - } - public static final short BAD_BOUNDARYPOINTS_ERR = 1; - public static final short INVALID_NODE_TYPE_ERR = 2; - public short code; -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/LinkStyle.java b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/LinkStyle.java deleted file mode 100644 index e4fc8e7d..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/LinkStyle.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.stylesheets; - -public interface LinkStyle -{ - // LinkStyle - public StyleSheet getSheet(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/MediaList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/MediaList.java deleted file mode 100644 index ced2fbcb..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/MediaList.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.stylesheets; - -public interface MediaList -{ - // MediaList - public String getMediaText(); - public void setMediaText(String mediaText); - public int getLength(); - public String item(int index); - public void appendMedium(String medium); - public void deleteMedium(String medium); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/StyleSheet.java b/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/StyleSheet.java deleted file mode 100644 index f9fac08c..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/stylesheets/StyleSheet.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.stylesheets; - -import org.w3c.dom.Node; - -public interface StyleSheet -{ - // StyleSheet - public String getType(); - public String getHref(); - public Node getOwnerNode(); - public StyleSheet getParentStyleSheet(); - public String getTitle(); - public MediaList getMedia(); - public void setMedia(String media); - public boolean getDisabled(); - public void setDisabled(boolean disabled); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/DocumentTraversal.java b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/DocumentTraversal.java deleted file mode 100644 index c1522366..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/DocumentTraversal.java +++ /dev/null @@ -1,13 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.traversal; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Node; - -public interface DocumentTraversal -{ - // DocumentTraversal - public NodeIterator createNodeIterator(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) throws DOMException; - public TreeWalker createTreeWalker(Node root, int whatToShow, NodeFilter filter, boolean entityReferenceExpansion) throws DOMException; -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeFilter.java b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeFilter.java deleted file mode 100644 index 35d2c658..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeFilter.java +++ /dev/null @@ -1,27 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.traversal; - -import org.w3c.dom.Node; - -public interface NodeFilter -{ - // NodeFilter - public static final short FILTER_ACCEPT = 1; - public static final short FILTER_REJECT = 2; - public static final short FILTER_SKIP = 3; - public static final int SHOW_ALL = 0xFFFFFFFF; - public static final int SHOW_ELEMENT = 0x00000001; - public static final int SHOW_ATTRIBUTE = 0x00000002; - public static final int SHOW_TEXT = 0x00000004; - public static final int SHOW_CDATA_SECTION = 0x00000008; - public static final int SHOW_ENTITY_REFERENCE = 0x00000010; - public static final int SHOW_ENTITY = 0x00000020; - public static final int SHOW_PROCESSING_INSTRUCTION = 0x00000040; - public static final int SHOW_COMMENT = 0x00000080; - public static final int SHOW_DOCUMENT = 0x00000100; - public static final int SHOW_DOCUMENT_TYPE = 0x00000200; - public static final int SHOW_DOCUMENT_FRAGMENT = 0x00000400; - public static final int SHOW_NOTATION = 0x00000800; - public short acceptNode(Node n); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeIterator.java b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeIterator.java deleted file mode 100644 index b0ae85f2..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/NodeIterator.java +++ /dev/null @@ -1,18 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.traversal; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Node; - -public interface NodeIterator -{ - // NodeIterator - public Node getRoot(); - public int getWhatToShow(); - public NodeFilter getFilter(); - public boolean getExpandEntityReferences(); - public Node nextNode() throws DOMException; - public Node previousNode() throws DOMException; - public void detach(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/TreeWalker.java b/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/TreeWalker.java deleted file mode 100644 index ab9ab234..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/traversal/TreeWalker.java +++ /dev/null @@ -1,24 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.traversal; - -import org.w3c.dom.DOMException; -import org.w3c.dom.Node; - -public interface TreeWalker -{ - // TreeWalker - public Node getRoot(); - public int getWhatToShow(); - public NodeFilter getFilter(); - public boolean getExpandEntityReferences(); - public Node getCurrentNode(); - public void setCurrentNode(Node currentNode) throws DOMException; - public Node parentNode(); - public Node firstChild(); - public Node lastChild(); - public Node previousSibling(); - public Node nextSibling(); - public Node previousNode(); - public Node nextNode(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer.java deleted file mode 100644 index 24456149..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -public interface ArrayBuffer -{ - // ArrayBuffer - public int getByteLength(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBufferView.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBufferView.java deleted file mode 100644 index 39d17a2b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBufferView.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -public interface ArrayBufferView -{ - // ArrayBufferView - public ArrayBuffer getBuffer(); - public int getByteOffset(); - public int getByteLength(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer_Constructor.java deleted file mode 100644 index 1c7495ae..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/ArrayBuffer_Constructor.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -public interface ArrayBuffer_Constructor -{ - // Constructor - public ArrayBuffer createInstance(int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView.java deleted file mode 100644 index 42515277..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -public interface DataView extends ArrayBufferView -{ - // DataView - public byte getInt8(int byteOffset); - public byte getUint8(int byteOffset); - public short getInt16(int byteOffset); - public short getInt16(int byteOffset, boolean littleEndian); - public short getUint16(int byteOffset); - public short getUint16(int byteOffset, boolean littleEndian); - public int getInt32(int byteOffset); - public int getInt32(int byteOffset, boolean littleEndian); - public int getUint32(int byteOffset); - public int getUint32(int byteOffset, boolean littleEndian); - public float getFloat32(int byteOffset); - public float getFloat32(int byteOffset, boolean littleEndian); - public double getFloat64(int byteOffset); - public double getFloat64(int byteOffset, boolean littleEndian); - public void setInt8(int byteOffset, byte value); - public void setUint8(int byteOffset, byte value); - public void setInt16(int byteOffset, short value); - public void setInt16(int byteOffset, short value, boolean littleEndian); - public void setUint16(int byteOffset, short value); - public void setUint16(int byteOffset, short value, boolean littleEndian); - public void setInt32(int byteOffset, int value); - public void setInt32(int byteOffset, int value, boolean littleEndian); - public void setUint32(int byteOffset, int value); - public void setUint32(int byteOffset, int value, boolean littleEndian); - public void setFloat32(int byteOffset, float value); - public void setFloat32(int byteOffset, float value, boolean littleEndian); - public void setFloat64(int byteOffset, double value); - public void setFloat64(int byteOffset, double value, boolean littleEndian); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView_Constructor.java deleted file mode 100644 index d1191a55..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/DataView_Constructor.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -public interface DataView_Constructor -{ - // Constructor - public DataView createInstance(ArrayBuffer buffer); - public DataView createInstance(ArrayBuffer buffer, int byteOffset); - public DataView createInstance(ArrayBuffer buffer, int byteOffset, int byteLength); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array.java deleted file mode 100644 index 234a4132..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.FloatArray; - -public interface Float32Array extends ArrayBufferView -{ - // Float32Array - public static final int BYTES_PER_ELEMENT = 4; - public int getLength(); - public float get(int index); - public void set(int index, float value); - public void set(Float32Array array); - public void set(Float32Array array, int offset); - public void set(FloatArray array); - public void set(FloatArray array, int offset); - public Float32Array subarray(int start, int end); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array_Constructor.java deleted file mode 100644 index e052903a..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float32Array_Constructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.FloatArray; - -public interface Float32Array_Constructor -{ - // Constructor - public Float32Array createInstance(int length); - public Float32Array createInstance(ArrayBufferView array); - public Float32Array createInstance(FloatArray array); - public Float32Array createInstance(ArrayBuffer buffer); - public Float32Array createInstance(ArrayBuffer buffer, int byteOffset); - public Float32Array createInstance(ArrayBuffer buffer, int byteOffset, int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array.java deleted file mode 100644 index 64a6069b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.DoubleArray; - -public interface Float64Array extends ArrayBufferView -{ - // Float64Array - public static final int BYTES_PER_ELEMENT = 8; - public int getLength(); - public double get(int index); - public void set(int index, double value); - public void set(Float64Array array); - public void set(Float64Array array, int offset); - public void set(DoubleArray array); - public void set(DoubleArray array, int offset); - public Float64Array subarray(int start, int end); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array_Constructor.java deleted file mode 100644 index 24140502..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Float64Array_Constructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.DoubleArray; - -public interface Float64Array_Constructor -{ - // Constructor - public Float64Array createInstance(int length); - public Float64Array createInstance(ArrayBufferView array); - public Float64Array createInstance(DoubleArray array); - public Float64Array createInstance(ArrayBuffer buffer); - public Float64Array createInstance(ArrayBuffer buffer, int byteOffset); - public Float64Array createInstance(ArrayBuffer buffer, int byteOffset, int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array.java deleted file mode 100644 index f4717b15..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.ShortArray; - -public interface Int16Array extends ArrayBufferView -{ - // Int16Array - public static final int BYTES_PER_ELEMENT = 2; - public int getLength(); - public short get(int index); - public void set(int index, short value); - public void set(Int16Array array); - public void set(Int16Array array, int offset); - public void set(ShortArray array); - public void set(ShortArray array, int offset); - public Int16Array subarray(int start, int end); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array_Constructor.java deleted file mode 100644 index d7b56e1b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int16Array_Constructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.ShortArray; - -public interface Int16Array_Constructor -{ - // Constructor - public Int16Array createInstance(int length); - public Int16Array createInstance(ArrayBufferView array); - public Int16Array createInstance(ShortArray array); - public Int16Array createInstance(ArrayBuffer buffer); - public Int16Array createInstance(ArrayBuffer buffer, int byteOffset); - public Int16Array createInstance(ArrayBuffer buffer, int byteOffset, int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array.java deleted file mode 100644 index 50c2fa87..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.LongArray; - -public interface Int32Array extends ArrayBufferView -{ - // Int32Array - public static final int BYTES_PER_ELEMENT = 4; - public int getLength(); - public int get(int index); - public void set(int index, int value); - public void set(Int32Array array); - public void set(Int32Array array, int offset); - public void set(LongArray array); - public void set(LongArray array, int offset); - public Int32Array subarray(int start, int end); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array_Constructor.java deleted file mode 100644 index 4a220daa..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int32Array_Constructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.LongArray; - -public interface Int32Array_Constructor -{ - // Constructor - public Int32Array createInstance(int length); - public Int32Array createInstance(ArrayBufferView array); - public Int32Array createInstance(LongArray array); - public Int32Array createInstance(ArrayBuffer buffer); - public Int32Array createInstance(ArrayBuffer buffer, int byteOffset); - public Int32Array createInstance(ArrayBuffer buffer, int byteOffset, int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array.java deleted file mode 100644 index e2096a69..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.ByteArray; - -public interface Int8Array extends ArrayBufferView -{ - // Int8Array - public static final int BYTES_PER_ELEMENT = 1; - public int getLength(); - public byte get(int index); - public void set(int index, byte value); - public void set(Int8Array array); - public void set(Int8Array array, int offset); - public void set(ByteArray array); - public void set(ByteArray array, int offset); - public Int8Array subarray(int start, int end); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array_Constructor.java deleted file mode 100644 index 42a7ede8..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Int8Array_Constructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.ByteArray; - -public interface Int8Array_Constructor -{ - // Constructor - public Int8Array createInstance(int length); - public Int8Array createInstance(ArrayBufferView array); - public Int8Array createInstance(ByteArray array); - public Int8Array createInstance(ArrayBuffer buffer); - public Int8Array createInstance(ArrayBuffer buffer, int byteOffset); - public Int8Array createInstance(ArrayBuffer buffer, int byteOffset, int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array.java deleted file mode 100644 index 032433ca..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.UnsignedShortArray; - -public interface Uint16Array extends ArrayBufferView -{ - // Uint16Array - public static final int BYTES_PER_ELEMENT = 2; - public int getLength(); - public short get(int index); - public void set(int index, short value); - public void set(Uint16Array array); - public void set(Uint16Array array, int offset); - public void set(UnsignedShortArray array); - public void set(UnsignedShortArray array, int offset); - public Uint16Array subarray(int start, int end); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array_Constructor.java deleted file mode 100644 index c7dc85ac..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint16Array_Constructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.UnsignedShortArray; - -public interface Uint16Array_Constructor -{ - // Constructor - public Uint16Array createInstance(int length); - public Uint16Array createInstance(ArrayBufferView array); - public Uint16Array createInstance(UnsignedShortArray array); - public Uint16Array createInstance(ArrayBuffer buffer); - public Uint16Array createInstance(ArrayBuffer buffer, int byteOffset); - public Uint16Array createInstance(ArrayBuffer buffer, int byteOffset, int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array.java deleted file mode 100644 index 4a8fa1fd..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.UnsignedLongArray; - -public interface Uint32Array extends ArrayBufferView -{ - // Uint32Array - public static final int BYTES_PER_ELEMENT = 4; - public int getLength(); - public int get(int index); - public void set(int index, int value); - public void set(Uint32Array array); - public void set(Uint32Array array, int offset); - public void set(UnsignedLongArray array); - public void set(UnsignedLongArray array, int offset); - public Uint32Array subarray(int start, int end); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array_Constructor.java deleted file mode 100644 index ffd95d92..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint32Array_Constructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.UnsignedLongArray; - -public interface Uint32Array_Constructor -{ - // Constructor - public Uint32Array createInstance(int length); - public Uint32Array createInstance(ArrayBufferView array); - public Uint32Array createInstance(UnsignedLongArray array); - public Uint32Array createInstance(ArrayBuffer buffer); - public Uint32Array createInstance(ArrayBuffer buffer, int byteOffset); - public Uint32Array createInstance(ArrayBuffer buffer, int byteOffset, int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array.java deleted file mode 100644 index 29d06a41..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.OctetArray; - -public interface Uint8Array extends ArrayBufferView -{ - // Uint8Array - public static final int BYTES_PER_ELEMENT = 1; - public int getLength(); - public byte get(int index); - public void set(int index, byte value); - public void set(Uint8Array array); - public void set(Uint8Array array, int offset); - public void set(OctetArray array); - public void set(OctetArray array, int offset); - public Uint8Array subarray(int start, int end); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array_Constructor.java b/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array_Constructor.java deleted file mode 100644 index 393c0cd9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/typedarray/Uint8Array_Constructor.java +++ /dev/null @@ -1,16 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.typedarray; - -import org.w3c.dom.OctetArray; - -public interface Uint8Array_Constructor -{ - // Constructor - public Uint8Array createInstance(int length); - public Uint8Array createInstance(ArrayBufferView array); - public Uint8Array createInstance(OctetArray array); - public Uint8Array createInstance(ArrayBuffer buffer); - public Uint8Array createInstance(ArrayBuffer buffer, int byteOffset); - public Uint8Array createInstance(ArrayBuffer buffer, int byteOffset, int length); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRect.java b/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRect.java deleted file mode 100644 index a53390c7..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRect.java +++ /dev/null @@ -1,14 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.views; - -public interface ClientRect -{ - // ClientRect - public float getTop(); - public float getRight(); - public float getBottom(); - public float getLeft(); - public float getWidth(); - public float getHeight(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRectList.java b/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRectList.java deleted file mode 100644 index 0cf0b3e7..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/views/ClientRectList.java +++ /dev/null @@ -1,10 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.views; - -public interface ClientRectList -{ - // ClientRectList - public int getLength(); - public ClientRect item(int index); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLActiveInfo.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLActiveInfo.java deleted file mode 100644 index 894db548..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLActiveInfo.java +++ /dev/null @@ -1,11 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLActiveInfo -{ - // WebGLActiveInfo - public int getSize(); - public int getType(); - public String getName(); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLBuffer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLBuffer.java deleted file mode 100644 index 7b152db3..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLBuffer.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLBuffer extends WebGLObject -{ - // WebGLBuffer -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextAttributes.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextAttributes.java deleted file mode 100644 index c7975aa6..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextAttributes.java +++ /dev/null @@ -1,20 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLContextAttributes -{ - // WebGLContextAttributes - public boolean getAlpha(); - public void setAlpha(boolean alpha); - public boolean getDepth(); - public void setDepth(boolean depth); - public boolean getStencil(); - public void setStencil(boolean stencil); - public boolean getAntialias(); - public void setAntialias(boolean antialias); - public boolean getPremultipliedAlpha(); - public void setPremultipliedAlpha(boolean premultipliedAlpha); - public boolean getPreserveDrawingBuffer(); - public void setPreserveDrawingBuffer(boolean preserveDrawingBuffer); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextEvent.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextEvent.java deleted file mode 100644 index 49d387cc..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLContextEvent.java +++ /dev/null @@ -1,12 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -import org.w3c.dom.events.Event; - -public interface WebGLContextEvent extends Event -{ - // WebGLContextEvent - public String getStatusMessage(); - public void initWebGLContextEvent(String typeArg, boolean canBubbleArg, boolean cancelableArg, String statusMessageArg); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLFramebuffer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLFramebuffer.java deleted file mode 100644 index 5be4c336..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLFramebuffer.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLFramebuffer extends WebGLObject -{ - // WebGLFramebuffer -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLObject.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLObject.java deleted file mode 100644 index c9f8b64e..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLObject.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLObject -{ - // WebGLObject -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLProgram.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLProgram.java deleted file mode 100644 index 024667a9..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLProgram.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLProgram extends WebGLObject -{ - // WebGLProgram -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderbuffer.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderbuffer.java deleted file mode 100644 index a8c9c794..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderbuffer.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLRenderbuffer extends WebGLObject -{ - // WebGLRenderbuffer -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderingContext.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderingContext.java deleted file mode 100644 index 64d4180b..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLRenderingContext.java +++ /dev/null @@ -1,478 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -import org.w3c.dom.FloatArray; -import org.w3c.dom.LongArray; -import org.w3c.dom.ObjectArray; -import org.w3c.dom.html.HTMLCanvasElement; -import org.w3c.dom.html.HTMLImageElement; -import org.w3c.dom.html.HTMLVideoElement; -import org.w3c.dom.html.ImageData; -import org.w3c.dom.typedarray.ArrayBuffer; -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Float32Array; -import org.w3c.dom.typedarray.Int32Array; - -public interface WebGLRenderingContext -{ - // WebGLRenderingContext - public static final int DEPTH_BUFFER_BIT = 0x00000100; - public static final int STENCIL_BUFFER_BIT = 0x00000400; - public static final int COLOR_BUFFER_BIT = 0x00004000; - public static final int POINTS = 0x0000; - public static final int LINES = 0x0001; - public static final int LINE_LOOP = 0x0002; - public static final int LINE_STRIP = 0x0003; - public static final int TRIANGLES = 0x0004; - public static final int TRIANGLE_STRIP = 0x0005; - public static final int TRIANGLE_FAN = 0x0006; - public static final int ZERO = 0; - public static final int ONE = 1; - public static final int SRC_COLOR = 0x0300; - public static final int ONE_MINUS_SRC_COLOR = 0x0301; - public static final int SRC_ALPHA = 0x0302; - public static final int ONE_MINUS_SRC_ALPHA = 0x0303; - public static final int DST_ALPHA = 0x0304; - public static final int ONE_MINUS_DST_ALPHA = 0x0305; - public static final int DST_COLOR = 0x0306; - public static final int ONE_MINUS_DST_COLOR = 0x0307; - public static final int SRC_ALPHA_SATURATE = 0x0308; - public static final int FUNC_ADD = 0x8006; - public static final int BLEND_EQUATION = 0x8009; - public static final int BLEND_EQUATION_RGB = 0x8009; - public static final int BLEND_EQUATION_ALPHA = 0x883D; - public static final int FUNC_SUBTRACT = 0x800A; - public static final int FUNC_REVERSE_SUBTRACT = 0x800B; - public static final int BLEND_DST_RGB = 0x80C8; - public static final int BLEND_SRC_RGB = 0x80C9; - public static final int BLEND_DST_ALPHA = 0x80CA; - public static final int BLEND_SRC_ALPHA = 0x80CB; - public static final int CONSTANT_COLOR = 0x8001; - public static final int ONE_MINUS_CONSTANT_COLOR = 0x8002; - public static final int CONSTANT_ALPHA = 0x8003; - public static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004; - public static final int BLEND_COLOR = 0x8005; - public static final int ARRAY_BUFFER = 0x8892; - public static final int ELEMENT_ARRAY_BUFFER = 0x8893; - public static final int ARRAY_BUFFER_BINDING = 0x8894; - public static final int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; - public static final int STREAM_DRAW = 0x88E0; - public static final int STATIC_DRAW = 0x88E4; - public static final int DYNAMIC_DRAW = 0x88E8; - public static final int BUFFER_SIZE = 0x8764; - public static final int BUFFER_USAGE = 0x8765; - public static final int CURRENT_VERTEX_ATTRIB = 0x8626; - public static final int FRONT = 0x0404; - public static final int BACK = 0x0405; - public static final int FRONT_AND_BACK = 0x0408; - public static final int CULL_FACE = 0x0B44; - public static final int BLEND = 0x0BE2; - public static final int DITHER = 0x0BD0; - public static final int STENCIL_TEST = 0x0B90; - public static final int DEPTH_TEST = 0x0B71; - public static final int SCISSOR_TEST = 0x0C11; - public static final int POLYGON_OFFSET_FILL = 0x8037; - public static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; - public static final int SAMPLE_COVERAGE = 0x80A0; - public static final int NO_ERROR = 0; - public static final int INVALID_ENUM = 0x0500; - public static final int INVALID_VALUE = 0x0501; - public static final int INVALID_OPERATION = 0x0502; - public static final int OUT_OF_MEMORY = 0x0505; - public static final int CW = 0x0900; - public static final int CCW = 0x0901; - public static final int LINE_WIDTH = 0x0B21; - public static final int ALIASED_POINT_SIZE_RANGE = 0x846D; - public static final int ALIASED_LINE_WIDTH_RANGE = 0x846E; - public static final int CULL_FACE_MODE = 0x0B45; - public static final int FRONT_FACE = 0x0B46; - public static final int DEPTH_RANGE = 0x0B70; - public static final int DEPTH_WRITEMASK = 0x0B72; - public static final int DEPTH_CLEAR_VALUE = 0x0B73; - public static final int DEPTH_FUNC = 0x0B74; - public static final int STENCIL_CLEAR_VALUE = 0x0B91; - public static final int STENCIL_FUNC = 0x0B92; - public static final int STENCIL_FAIL = 0x0B94; - public static final int STENCIL_PASS_DEPTH_FAIL = 0x0B95; - public static final int STENCIL_PASS_DEPTH_PASS = 0x0B96; - public static final int STENCIL_REF = 0x0B97; - public static final int STENCIL_VALUE_MASK = 0x0B93; - public static final int STENCIL_WRITEMASK = 0x0B98; - public static final int STENCIL_BACK_FUNC = 0x8800; - public static final int STENCIL_BACK_FAIL = 0x8801; - public static final int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; - public static final int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; - public static final int STENCIL_BACK_REF = 0x8CA3; - public static final int STENCIL_BACK_VALUE_MASK = 0x8CA4; - public static final int STENCIL_BACK_WRITEMASK = 0x8CA5; - public static final int VIEWPORT = 0x0BA2; - public static final int SCISSOR_BOX = 0x0C10; - public static final int COLOR_CLEAR_VALUE = 0x0C22; - public static final int COLOR_WRITEMASK = 0x0C23; - public static final int UNPACK_ALIGNMENT = 0x0CF5; - public static final int PACK_ALIGNMENT = 0x0D05; - public static final int MAX_TEXTURE_SIZE = 0x0D33; - public static final int MAX_VIEWPORT_DIMS = 0x0D3A; - public static final int SUBPIXEL_BITS = 0x0D50; - public static final int RED_BITS = 0x0D52; - public static final int GREEN_BITS = 0x0D53; - public static final int BLUE_BITS = 0x0D54; - public static final int ALPHA_BITS = 0x0D55; - public static final int DEPTH_BITS = 0x0D56; - public static final int STENCIL_BITS = 0x0D57; - public static final int POLYGON_OFFSET_UNITS = 0x2A00; - public static final int POLYGON_OFFSET_FACTOR = 0x8038; - public static final int TEXTURE_BINDING_2D = 0x8069; - public static final int SAMPLE_BUFFERS = 0x80A8; - public static final int SAMPLES = 0x80A9; - public static final int SAMPLE_COVERAGE_VALUE = 0x80AA; - public static final int SAMPLE_COVERAGE_INVERT = 0x80AB; - public static final int NUM_COMPRESSED_TEXTURE_FORMATS = 0x86A2; - public static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3; - public static final int DONT_CARE = 0x1100; - public static final int FASTEST = 0x1101; - public static final int NICEST = 0x1102; - public static final int GENERATE_MIPMAP_HINT = 0x8192; - public static final int BYTE = 0x1400; - public static final int UNSIGNED_BYTE = 0x1401; - public static final int SHORT = 0x1402; - public static final int UNSIGNED_SHORT = 0x1403; - public static final int INT = 0x1404; - public static final int UNSIGNED_INT = 0x1405; - public static final int FLOAT = 0x1406; - public static final int DEPTH_COMPONENT = 0x1902; - public static final int ALPHA = 0x1906; - public static final int RGB = 0x1907; - public static final int RGBA = 0x1908; - public static final int LUMINANCE = 0x1909; - public static final int LUMINANCE_ALPHA = 0x190A; - public static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033; - public static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034; - public static final int UNSIGNED_SHORT_5_6_5 = 0x8363; - public static final int FRAGMENT_SHADER = 0x8B30; - public static final int VERTEX_SHADER = 0x8B31; - public static final int MAX_VERTEX_ATTRIBS = 0x8869; - public static final int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; - public static final int MAX_VARYING_VECTORS = 0x8DFC; - public static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; - public static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; - public static final int MAX_TEXTURE_IMAGE_UNITS = 0x8872; - public static final int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; - public static final int SHADER_TYPE = 0x8B4F; - public static final int DELETE_STATUS = 0x8B80; - public static final int LINK_STATUS = 0x8B82; - public static final int VALIDATE_STATUS = 0x8B83; - public static final int ATTACHED_SHADERS = 0x8B85; - public static final int ACTIVE_UNIFORMS = 0x8B86; - public static final int ACTIVE_ATTRIBUTES = 0x8B89; - public static final int SHADING_LANGUAGE_VERSION = 0x8B8C; - public static final int CURRENT_PROGRAM = 0x8B8D; - public static final int NEVER = 0x0200; - public static final int LESS = 0x0201; - public static final int EQUAL = 0x0202; - public static final int LEQUAL = 0x0203; - public static final int GREATER = 0x0204; - public static final int NOTEQUAL = 0x0205; - public static final int GEQUAL = 0x0206; - public static final int ALWAYS = 0x0207; - public static final int KEEP = 0x1E00; - public static final int REPLACE = 0x1E01; - public static final int INCR = 0x1E02; - public static final int DECR = 0x1E03; - public static final int INVERT = 0x150A; - public static final int INCR_WRAP = 0x8507; - public static final int DECR_WRAP = 0x8508; - public static final int VENDOR = 0x1F00; - public static final int RENDERER = 0x1F01; - public static final int VERSION = 0x1F02; - public static final int NEAREST = 0x2600; - public static final int LINEAR = 0x2601; - public static final int NEAREST_MIPMAP_NEAREST = 0x2700; - public static final int LINEAR_MIPMAP_NEAREST = 0x2701; - public static final int NEAREST_MIPMAP_LINEAR = 0x2702; - public static final int LINEAR_MIPMAP_LINEAR = 0x2703; - public static final int TEXTURE_MAG_FILTER = 0x2800; - public static final int TEXTURE_MIN_FILTER = 0x2801; - public static final int TEXTURE_WRAP_S = 0x2802; - public static final int TEXTURE_WRAP_T = 0x2803; - public static final int TEXTURE_2D = 0x0DE1; - public static final int TEXTURE = 0x1702; - public static final int TEXTURE_CUBE_MAP = 0x8513; - public static final int TEXTURE_BINDING_CUBE_MAP = 0x8514; - public static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; - public static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; - public static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; - public static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; - public static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; - public static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; - public static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; - public static final int TEXTURE0 = 0x84C0; - public static final int TEXTURE1 = 0x84C1; - public static final int TEXTURE2 = 0x84C2; - public static final int TEXTURE3 = 0x84C3; - public static final int TEXTURE4 = 0x84C4; - public static final int TEXTURE5 = 0x84C5; - public static final int TEXTURE6 = 0x84C6; - public static final int TEXTURE7 = 0x84C7; - public static final int TEXTURE8 = 0x84C8; - public static final int TEXTURE9 = 0x84C9; - public static final int TEXTURE10 = 0x84CA; - public static final int TEXTURE11 = 0x84CB; - public static final int TEXTURE12 = 0x84CC; - public static final int TEXTURE13 = 0x84CD; - public static final int TEXTURE14 = 0x84CE; - public static final int TEXTURE15 = 0x84CF; - public static final int TEXTURE16 = 0x84D0; - public static final int TEXTURE17 = 0x84D1; - public static final int TEXTURE18 = 0x84D2; - public static final int TEXTURE19 = 0x84D3; - public static final int TEXTURE20 = 0x84D4; - public static final int TEXTURE21 = 0x84D5; - public static final int TEXTURE22 = 0x84D6; - public static final int TEXTURE23 = 0x84D7; - public static final int TEXTURE24 = 0x84D8; - public static final int TEXTURE25 = 0x84D9; - public static final int TEXTURE26 = 0x84DA; - public static final int TEXTURE27 = 0x84DB; - public static final int TEXTURE28 = 0x84DC; - public static final int TEXTURE29 = 0x84DD; - public static final int TEXTURE30 = 0x84DE; - public static final int TEXTURE31 = 0x84DF; - public static final int ACTIVE_TEXTURE = 0x84E0; - public static final int REPEAT = 0x2901; - public static final int CLAMP_TO_EDGE = 0x812F; - public static final int MIRRORED_REPEAT = 0x8370; - public static final int FLOAT_VEC2 = 0x8B50; - public static final int FLOAT_VEC3 = 0x8B51; - public static final int FLOAT_VEC4 = 0x8B52; - public static final int INT_VEC2 = 0x8B53; - public static final int INT_VEC3 = 0x8B54; - public static final int INT_VEC4 = 0x8B55; - public static final int BOOL = 0x8B56; - public static final int BOOL_VEC2 = 0x8B57; - public static final int BOOL_VEC3 = 0x8B58; - public static final int BOOL_VEC4 = 0x8B59; - public static final int FLOAT_MAT2 = 0x8B5A; - public static final int FLOAT_MAT3 = 0x8B5B; - public static final int FLOAT_MAT4 = 0x8B5C; - public static final int SAMPLER_2D = 0x8B5E; - public static final int SAMPLER_CUBE = 0x8B60; - public static final int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; - public static final int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; - public static final int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; - public static final int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; - public static final int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; - public static final int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; - public static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; - public static final int COMPILE_STATUS = 0x8B81; - public static final int LOW_FLOAT = 0x8DF0; - public static final int MEDIUM_FLOAT = 0x8DF1; - public static final int HIGH_FLOAT = 0x8DF2; - public static final int LOW_INT = 0x8DF3; - public static final int MEDIUM_INT = 0x8DF4; - public static final int HIGH_INT = 0x8DF5; - public static final int FRAMEBUFFER = 0x8D40; - public static final int RENDERBUFFER = 0x8D41; - public static final int RGBA4 = 0x8056; - public static final int RGB5_A1 = 0x8057; - public static final int RGB565 = 0x8D62; - public static final int DEPTH_COMPONENT16 = 0x81A5; - public static final int STENCIL_INDEX = 0x1901; - public static final int STENCIL_INDEX8 = 0x8D48; - public static final int DEPTH_STENCIL = 0x84F9; - public static final int RENDERBUFFER_WIDTH = 0x8D42; - public static final int RENDERBUFFER_HEIGHT = 0x8D43; - public static final int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; - public static final int RENDERBUFFER_RED_SIZE = 0x8D50; - public static final int RENDERBUFFER_GREEN_SIZE = 0x8D51; - public static final int RENDERBUFFER_BLUE_SIZE = 0x8D52; - public static final int RENDERBUFFER_ALPHA_SIZE = 0x8D53; - public static final int RENDERBUFFER_DEPTH_SIZE = 0x8D54; - public static final int RENDERBUFFER_STENCIL_SIZE = 0x8D55; - public static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; - public static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; - public static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; - public static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; - public static final int COLOR_ATTACHMENT0 = 0x8CE0; - public static final int DEPTH_ATTACHMENT = 0x8D00; - public static final int STENCIL_ATTACHMENT = 0x8D20; - public static final int DEPTH_STENCIL_ATTACHMENT = 0x821A; - public static final int NONE = 0; - public static final int FRAMEBUFFER_COMPLETE = 0x8CD5; - public static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; - public static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; - public static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; - public static final int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; - public static final int FRAMEBUFFER_BINDING = 0x8CA6; - public static final int RENDERBUFFER_BINDING = 0x8CA7; - public static final int MAX_RENDERBUFFER_SIZE = 0x84E8; - public static final int INVALID_FRAMEBUFFER_OPERATION = 0x0506; - public static final int UNPACK_FLIP_Y_WEBGL = 0x9240; - public static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; - public static final int CONTEXT_LOST_WEBGL = 0x9242; - public static final int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; - public static final int BROWSER_DEFAULT_WEBGL = 0x9244; - public HTMLCanvasElement getCanvas(); - public int getDrawingBufferWidth(); - public int getDrawingBufferHeight(); - public WebGLContextAttributes getContextAttributes(); - public boolean isContextLost(); - public ObjectArray getSupportedExtensions(); - public Object getExtension(String name); - public void activeTexture(int texture); - public void attachShader(WebGLProgram program, WebGLShader shader); - public void bindAttribLocation(WebGLProgram program, int index, String name); - public void bindBuffer(int target, WebGLBuffer buffer); - public void bindFramebuffer(int target, WebGLFramebuffer framebuffer); - public void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer); - public void bindTexture(int target, WebGLTexture texture); - public void blendColor(float red, float green, float blue, float alpha); - public void blendEquation(int mode); - public void blendEquationSeparate(int modeRGB, int modeAlpha); - public void blendFunc(int sfactor, int dfactor); - public void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha); - public void bufferData(int target, long size, int usage); - public void bufferData(int target, ArrayBufferView data, int usage); - public void bufferData(int target, ArrayBuffer data, int usage); - public void bufferSubData(int target, long offset, ArrayBufferView data); - public void bufferSubData(int target, long offset, ArrayBuffer data); - public int checkFramebufferStatus(int target); - public void clear(int mask); - public void clearColor(float red, float green, float blue, float alpha); - public void clearDepth(float depth); - public void clearStencil(int s); - public void colorMask(boolean red, boolean green, boolean blue, boolean alpha); - public void compileShader(WebGLShader shader); - public void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border); - public void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height); - public WebGLBuffer createBuffer(); - public WebGLFramebuffer createFramebuffer(); - public WebGLProgram createProgram(); - public WebGLRenderbuffer createRenderbuffer(); - public WebGLShader createShader(int type); - public WebGLTexture createTexture(); - public void cullFace(int mode); - public void deleteBuffer(WebGLBuffer buffer); - public void deleteFramebuffer(WebGLFramebuffer framebuffer); - public void deleteProgram(WebGLProgram program); - public void deleteRenderbuffer(WebGLRenderbuffer renderbuffer); - public void deleteShader(WebGLShader shader); - public void deleteTexture(WebGLTexture texture); - public void depthFunc(int func); - public void depthMask(boolean flag); - public void depthRange(float zNear, float zFar); - public void detachShader(WebGLProgram program, WebGLShader shader); - public void disable(int cap); - public void disableVertexAttribArray(int index); - public void drawArrays(int mode, int first, int count); - public void drawElements(int mode, int count, int type, long offset); - public void enable(int cap); - public void enableVertexAttribArray(int index); - public void finish(); - public void flush(); - public void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, WebGLRenderbuffer renderbuffer); - public void framebufferTexture2D(int target, int attachment, int textarget, WebGLTexture texture, int level); - public void frontFace(int mode); - public void generateMipmap(int target); - public WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index); - public WebGLActiveInfo getActiveUniform(WebGLProgram program, int index); - public ObjectArray getAttachedShaders(WebGLProgram program); - public int getAttribLocation(WebGLProgram program, String name); - public Object getParameter(int pname); - public Object getBufferParameter(int target, int pname); - public int getError(); - public Object getFramebufferAttachmentParameter(int target, int attachment, int pname); - public Object getProgramParameter(WebGLProgram program, int pname); - public String getProgramInfoLog(WebGLProgram program); - public Object getRenderbufferParameter(int target, int pname); - public Object getShaderParameter(WebGLShader shader, int pname); - public String getShaderInfoLog(WebGLShader shader); - public String getShaderSource(WebGLShader shader); - public Object getTexParameter(int target, int pname); - public Object getUniform(WebGLProgram program, WebGLUniformLocation location); - public WebGLUniformLocation getUniformLocation(WebGLProgram program, String name); - public Object getVertexAttrib(int index, int pname); - public long getVertexAttribOffset(int index, int pname); - public void hint(int target, int mode); - public boolean isBuffer(WebGLBuffer buffer); - public boolean isEnabled(int cap); - public boolean isFramebuffer(WebGLFramebuffer framebuffer); - public boolean isProgram(WebGLProgram program); - public boolean isRenderbuffer(WebGLRenderbuffer renderbuffer); - public boolean isShader(WebGLShader shader); - public boolean isTexture(WebGLTexture texture); - public void lineWidth(float width); - public void linkProgram(WebGLProgram program); - public void pixelStorei(int pname, int param); - public void polygonOffset(float factor, float units); - public void readPixels(int x, int y, int width, int height, int format, int type, ArrayBufferView pixels); - public void renderbufferStorage(int target, int internalformat, int width, int height); - public void sampleCoverage(float value, boolean invert); - public void scissor(int x, int y, int width, int height); - public void shaderSource(WebGLShader shader, String source); - public void stencilFunc(int func, int ref, int mask); - public void stencilFuncSeparate(int face, int func, int ref, int mask); - public void stencilMask(int mask); - public void stencilMaskSeparate(int face, int mask); - public void stencilOp(int fail, int zfail, int zpass); - public void stencilOpSeparate(int face, int fail, int zfail, int zpass); - public void texImage2D(int target, int level, int internalformat, int width, int height, int border, int format, int type, ArrayBufferView pixels); - public void texImage2D(int target, int level, int internalformat, int format, int type, ImageData pixels); - public void texImage2D(int target, int level, int internalformat, int format, int type, HTMLImageElement image); - public void texImage2D(int target, int level, int internalformat, int format, int type, HTMLCanvasElement canvas); - public void texImage2D(int target, int level, int internalformat, int format, int type, HTMLVideoElement video); - public void texParameterf(int target, int pname, float param); - public void texParameteri(int target, int pname, int param); - public void texSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, ArrayBufferView pixels); - public void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, ImageData pixels); - public void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, HTMLImageElement image); - public void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, HTMLCanvasElement canvas); - public void texSubImage2D(int target, int level, int xoffset, int yoffset, int format, int type, HTMLVideoElement video); - public void uniform1f(WebGLUniformLocation location, float x); - public void uniform1fv(WebGLUniformLocation location, Float32Array v); - public void uniform1fv(WebGLUniformLocation location, FloatArray v); - public void uniform1i(WebGLUniformLocation location, int x); - public void uniform1iv(WebGLUniformLocation location, Int32Array v); - public void uniform1iv(WebGLUniformLocation location, LongArray v); - public void uniform2f(WebGLUniformLocation location, float x, float y); - public void uniform2fv(WebGLUniformLocation location, Float32Array v); - public void uniform2fv(WebGLUniformLocation location, FloatArray v); - public void uniform2i(WebGLUniformLocation location, int x, int y); - public void uniform2iv(WebGLUniformLocation location, Int32Array v); - public void uniform2iv(WebGLUniformLocation location, LongArray v); - public void uniform3f(WebGLUniformLocation location, float x, float y, float z); - public void uniform3fv(WebGLUniformLocation location, Float32Array v); - public void uniform3fv(WebGLUniformLocation location, FloatArray v); - public void uniform3i(WebGLUniformLocation location, int x, int y, int z); - public void uniform3iv(WebGLUniformLocation location, Int32Array v); - public void uniform3iv(WebGLUniformLocation location, LongArray v); - public void uniform4f(WebGLUniformLocation location, float x, float y, float z, float w); - public void uniform4fv(WebGLUniformLocation location, Float32Array v); - public void uniform4fv(WebGLUniformLocation location, FloatArray v); - public void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w); - public void uniform4iv(WebGLUniformLocation location, Int32Array v); - public void uniform4iv(WebGLUniformLocation location, LongArray v); - public void uniformMatrix2fv(WebGLUniformLocation location, boolean transpose, Float32Array value); - public void uniformMatrix2fv(WebGLUniformLocation location, boolean transpose, FloatArray value); - public void uniformMatrix3fv(WebGLUniformLocation location, boolean transpose, Float32Array value); - public void uniformMatrix3fv(WebGLUniformLocation location, boolean transpose, FloatArray value); - public void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, Float32Array value); - public void uniformMatrix4fv(WebGLUniformLocation location, boolean transpose, FloatArray value); - public void useProgram(WebGLProgram program); - public void validateProgram(WebGLProgram program); - public void vertexAttrib1f(int indx, float x); - public void vertexAttrib1fv(int indx, Float32Array values); - public void vertexAttrib1fv(int indx, FloatArray values); - public void vertexAttrib2f(int indx, float x, float y); - public void vertexAttrib2fv(int indx, Float32Array values); - public void vertexAttrib2fv(int indx, FloatArray values); - public void vertexAttrib3f(int indx, float x, float y, float z); - public void vertexAttrib3fv(int indx, Float32Array values); - public void vertexAttrib3fv(int indx, FloatArray values); - public void vertexAttrib4f(int indx, float x, float y, float z, float w); - public void vertexAttrib4fv(int indx, Float32Array values); - public void vertexAttrib4fv(int indx, FloatArray values); - public void vertexAttribPointer(int indx, int size, int type, boolean normalized, int stride, long offset); - public void viewport(int x, int y, int width, int height); -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLShader.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLShader.java deleted file mode 100644 index e63e1682..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLShader.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLShader extends WebGLObject -{ - // WebGLShader -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLTexture.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLTexture.java deleted file mode 100644 index 0ac40ad4..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLTexture.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLTexture extends WebGLObject -{ - // WebGLTexture -} diff --git a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLUniformLocation.java b/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLUniformLocation.java deleted file mode 100644 index 74c78372..00000000 --- a/backends/gdx-backend-dragome/src/org/w3c/dom/webgl/WebGLUniformLocation.java +++ /dev/null @@ -1,8 +0,0 @@ -// Generated by esidl 0.4.0. - -package org.w3c.dom.webgl; - -public interface WebGLUniformLocation -{ - // WebGLUniformLocation -} From 672ae6573d34dfe1b5c141d4dae6a1a5394e9134 Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Tue, 22 Mar 2016 02:24:16 -0300 Subject: [PATCH 06/10] refactor: starting dragome-w3c-standards module usage --- .../gdx/assets/loaders/CubemapLoader.java | 1 - .../emu/com/badlogic/gdx/graphics/Pixmap.java | 394 +++++++++++------- .../badlogic/gdx/graphics/TextureData.java | 1 - .../gdx/graphics/glutils/ETC1TextureData.java | 9 +- .../glutils/VertexBufferObjectWithVAO.java | 1 - .../graphics/profiling/GLErrorListener.java | 3 +- .../emu/java/io/Reader.java | 1 - .../emu/java/util/Locale.java | 4 - .../backends/dragome/DragomeApplication.java | 21 +- .../dragome/DragomeConfiguration.java | 61 +-- .../gdx/backends/dragome/DragomeGL20.java | 23 +- .../backends/dragome/DragomeGL20Debug.java | 294 ++++++------- .../gdx/backends/dragome/DragomeGraphics.java | 213 ++++++---- .../dragome/js/webgl/WebGLFactory.java | 2 + .../dragome/preloader/AssetDownloader.java | 19 +- .../backends/dragome/preloader/Preloader.java | 14 +- tests/gdx-tests-dragome/pom.xml | 5 + .../gdx/tests/dragome/AnimationLauncher.java | 17 +- .../gdx/tests/dragome/GearsLauncher.java | 20 +- 19 files changed, 609 insertions(+), 494 deletions(-) diff --git a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/assets/loaders/CubemapLoader.java b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/assets/loaders/CubemapLoader.java index 062c8b04..675c1b92 100644 --- a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/assets/loaders/CubemapLoader.java +++ b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/assets/loaders/CubemapLoader.java @@ -10,7 +10,6 @@ import com.badlogic.gdx.graphics.Pixmap.Format; import com.badlogic.gdx.graphics.Texture.TextureFilter; import com.badlogic.gdx.graphics.Texture.TextureWrap; -import com.badlogic.gdx.graphics.TextureData; import com.badlogic.gdx.utils.Array; /** {@link AssetLoader} for {@link Cubemap} instances. The pixel data is loaded asynchronously. The texture is then created on the diff --git a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/Pixmap.java b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/Pixmap.java index b1316ad0..82c43fff 100644 --- a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/Pixmap.java +++ b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/Pixmap.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2011 See AUTHORS file. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,6 +23,10 @@ import org.w3c.dom.Document; import org.w3c.dom.Element; +import org.w3c.dom.html.CanvasPixelArray; +import org.w3c.dom.html.CanvasRenderingContext2D; +import org.w3c.dom.html.HTMLCanvasElement; +import org.w3c.dom.html.Window; import com.badlogic.gdx.backends.dragome.DragomeFileHandle; import com.badlogic.gdx.files.FileHandle; @@ -31,54 +35,71 @@ import com.badlogic.gdx.utils.GdxRuntimeException; import com.dragome.services.WebServiceLocator; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; -import com.dragome.web.html.dom.html5canvas.interfaces.CanvasPixelArray; -import com.dragome.web.html.dom.html5canvas.interfaces.CanvasRenderingContext2D; -import com.dragome.web.html.dom.html5canvas.interfaces.HTMLCanvasElement; -import com.dragome.web.html.dom.html5canvas.interfaces.ImageElement; +import com.dragome.web.html.dom.w3c.HTMLImageElementExtension; -public class Pixmap implements Disposable { - public static Map pixmaps = new HashMap(); - static int nextId = 0; +public class Pixmap implements Disposable +{ + public static Map pixmaps= new HashMap(); + static int nextId= 0; /** Different pixel formats. - * + * * @author mzechner */ - public enum Format { + public enum Format + { Alpha, Intensity, LuminanceAlpha, RGB565, RGBA4444, RGB888, RGBA8888; - - public static int toGlFormat (Format format) { - if (format == Alpha) return GL20.GL_ALPHA; - if (format == Intensity) return GL20.GL_ALPHA; - if (format == LuminanceAlpha) return GL20.GL_LUMINANCE_ALPHA; - if (format == RGB565) return GL20.GL_RGB; - if (format == RGB888) return GL20.GL_RGB; - if (format == RGBA4444) return GL20.GL_RGBA; - if (format == RGBA8888) return GL20.GL_RGBA; + + public static int toGlFormat(Format format) + { + if (format == Alpha) + return GL20.GL_ALPHA; + if (format == Intensity) + return GL20.GL_ALPHA; + if (format == LuminanceAlpha) + return GL20.GL_LUMINANCE_ALPHA; + if (format == RGB565) + return GL20.GL_RGB; + if (format == RGB888) + return GL20.GL_RGB; + if (format == RGBA4444) + return GL20.GL_RGBA; + if (format == RGBA8888) + return GL20.GL_RGBA; throw new GdxRuntimeException("unknown format: " + format); } - - public static int toGlType (Format format) { - if (format == Alpha) return GL20.GL_UNSIGNED_BYTE; - if (format == Intensity) return GL20.GL_UNSIGNED_BYTE; - if (format == LuminanceAlpha) return GL20.GL_UNSIGNED_BYTE; - if (format == RGB565) return GL20.GL_UNSIGNED_SHORT_5_6_5; - if (format == RGB888) return GL20.GL_UNSIGNED_BYTE; - if (format == RGBA4444) return GL20.GL_UNSIGNED_SHORT_4_4_4_4; - if (format == RGBA8888) return GL20.GL_UNSIGNED_BYTE; + + public static int toGlType(Format format) + { + if (format == Alpha) + return GL20.GL_UNSIGNED_BYTE; + if (format == Intensity) + return GL20.GL_UNSIGNED_BYTE; + if (format == LuminanceAlpha) + return GL20.GL_UNSIGNED_BYTE; + if (format == RGB565) + return GL20.GL_UNSIGNED_SHORT_5_6_5; + if (format == RGB888) + return GL20.GL_UNSIGNED_BYTE; + if (format == RGBA4444) + return GL20.GL_UNSIGNED_SHORT_4_4_4_4; + if (format == RGBA8888) + return GL20.GL_UNSIGNED_BYTE; throw new GdxRuntimeException("unknown format: " + format); } } /** Blending functions to be set with {@link Pixmap#setBlending}. * @author mzechner */ - public enum Blending { + public enum Blending + { None, SourceOver } /** Filters to be used with {@link Pixmap#drawPixmap(Pixmap, int, int, int, int, int, int, int, int)}. - * + * * @author mzechner */ - public enum Filter { + public enum Filter + { NearestNeighbour, BiLinear } @@ -89,195 +110,222 @@ public enum Filter { CanvasRenderingContext2D context; int id; IntBuffer buffer; - int r = 255, g = 255, b = 255; + int r= 255, g= 255, b= 255; float a; - String color = make(r, g, b, a); - static String clearColor = make(255, 255, 255, 1.0f); + String color= make(r, g, b, a); + static String clearColor= make(255, 255, 255, 1.0f); static Blending blending; CanvasPixelArray pixels; - public Pixmap (FileHandle file) { - DragomeFileHandle dragomeFile = (DragomeFileHandle)file; - ImageElement img = dragomeFile.preloader.images.get(file.path()); - if (img == null) throw new GdxRuntimeException("Couldn't load image '" + file.path() + "', file does not exist"); - create(img.getWidth(), img.getHeight(), Format.RGBA8888); + public Pixmap(FileHandle file) + { + DragomeFileHandle dragomeFile= (DragomeFileHandle) file; + HTMLImageElementExtension img= dragomeFile.preloader.images.get(file.path()); + if (img == null) + throw new GdxRuntimeException("Couldn't load image '" + file.path() + "', file does not exist"); + create(img.getWidthAsInteger(), img.getHeightAsInteger(), Format.RGBA8888); context.setGlobalCompositeOperation(Composite.COPY); context.drawImage(img, 0, 0); context.setGlobalCompositeOperation(getComposite()); } - private static String getComposite () { + private static String getComposite() + { return Composite.SOURCE_OVER; } - public Pixmap (ImageElement img) { - create(img.getWidth(), img.getHeight(), Format.RGBA8888); + public Pixmap(HTMLImageElementExtension img) + { + create(img.getWidthAsInteger(), img.getHeightAsInteger(), Format.RGBA8888); context.drawImage(img, 0, 0); } - public Pixmap (int width, int height, Format format) { + public Pixmap(int width, int height, Format format) + { create(width, height, format); } - private void create (int width, int height, Format format2) { - this.width = width; - this.height = height; - this.format = Format.RGBA8888; - Document document = WebServiceLocator.getInstance().getDomHandler().getDocument(); - Element createElement = document.createElement("canvas"); - canvas = JsDelegateFactory.createFromNode(createElement, HTMLCanvasElement.class); + private void create(int width, int height, Format format2) + { + this.width= width; + this.height= height; + this.format= Format.RGBA8888; + Document document= WebServiceLocator.getInstance().getDomHandler().getDocument(); + Element createElement= document.createElement("canvas"); + canvas= JsDelegateFactory.createFromNode(createElement, HTMLCanvasElement.class); canvas.setWidth(width); canvas.setHeight(height); - context = canvas.getContext("2d"); + context= (CanvasRenderingContext2D) canvas.getContext("2d"); context.setGlobalCompositeOperation(getComposite()); - buffer = BufferUtils.newIntBuffer(1); - id = nextId++; + buffer= BufferUtils.newIntBuffer(1); + id= nextId++; buffer.put(0, id); pixmaps.put(id, this); } - public static String make (int r2, int g2, int b2, float a2) { + public static String make(int r2, int g2, int b2, float a2) + { return "rgba(" + r2 + "," + g2 + "," + b2 + "," + a2 + ")"; } /** Sets the type of {@link Blending} to be used for all operations. Default is {@link Blending#SourceOver}. * @param blending the blending type */ - public static void setBlending (Blending blending) { - Pixmap.blending = blending; - String composite = getComposite(); - for (Pixmap pixmap : pixmaps.values()) { + public static void setBlending(Blending blending) + { + Pixmap.blending= blending; + String composite= getComposite(); + for (Pixmap pixmap : pixmaps.values()) + { pixmap.context.setGlobalCompositeOperation(composite); } } /** @return the currently set {@link Blending} */ - public static Blending getBlending () { + public static Blending getBlending() + { return blending; } /** Sets the type of interpolation {@link Filter} to be used in conjunction with * {@link Pixmap#drawPixmap(Pixmap, int, int, int, int, int, int, int, int)}. * @param filter the filter. */ - public static void setFilter (Filter filter) { + public static void setFilter(Filter filter) + { } - public Format getFormat () { + public Format getFormat() + { return format; } - public int getGLInternalFormat () { + public int getGLInternalFormat() + { return GL20.GL_RGBA; } - public int getGLFormat () { + public int getGLFormat() + { return GL20.GL_RGBA; } - public int getGLType () { + public int getGLType() + { return GL20.GL_UNSIGNED_BYTE; } - public int getWidth () { + public int getWidth() + { return width; } - public int getHeight () { + public int getHeight() + { return height; } - public Buffer getPixels () { + public Buffer getPixels() + { return buffer; } @Override - public void dispose () { + public void dispose() + { pixmaps.remove(id); } - public HTMLCanvasElement getCanvasElement () { + public HTMLCanvasElement getCanvasElement() + { return canvas; } /** Sets the color for the following drawing operations * @param color the color, encoded as RGBA8888 */ - public void setColor (int color) { - r = (color >>> 24) & 0xff; - g = (color >>> 16) & 0xff; - b = (color >>> 8) & 0xff; - a = (color & 0xff) / 255f; - this.color = make(r, g, b, a); + public void setColor(int color) + { + r= (color >>> 24) & 0xff; + g= (color >>> 16) & 0xff; + b= (color >>> 8) & 0xff; + a= (color & 0xff) / 255f; + this.color= make(r, g, b, a); context.setFillStyle(this.color); context.setStrokeStyle(this.color); } /** Sets the color for the following drawing operations. - * + * * @param r The red component. * @param g The green component. * @param b The blue component. * @param a The alpha component. */ - public void setColor (float r, float g, float b, float a) { - this.r = (int)(r * 255); - this.g = (int)(g * 255); - this.b = (int)(b * 255); - this.a = a; - color = make(this.r, this.g, this.b, this.a); + public void setColor(float r, float g, float b, float a) + { + this.r= (int) (r * 255); + this.g= (int) (g * 255); + this.b= (int) (b * 255); + this.a= a; + color= make(this.r, this.g, this.b, this.a); context.setFillStyle(color); context.setStrokeStyle(this.color); } /** Sets the color for the following drawing operations. * @param color The color. */ - public void setColor (Color color) { + public void setColor(Color color) + { setColor(color.r, color.g, color.b, color.a); } /** Fills the complete bitmap with the currently set color. */ - public void fill () { + public void fill() + { context.clearRect(0, 0, getWidth(), getHeight()); rectangle(0, 0, getWidth(), getHeight(), DrawType.FILL); } -// /** -// * Sets the width in pixels of strokes. -// * -// * @param width The stroke width in pixels. -// */ -// public void setStrokeWidth (int width); + // /** + // * Sets the width in pixels of strokes. + // * + // * @param width The stroke width in pixels. + // */ + // public void setStrokeWidth (int width); /** Draws a line between the given coordinates using the currently set color. - * + * * @param x The x-coodinate of the first point * @param y The y-coordinate of the first point * @param x2 The x-coordinate of the first point * @param y2 The y-coordinate of the first point */ - public void drawLine (int x, int y, int x2, int y2) { + public void drawLine(int x, int y, int x2, int y2) + { line(x, y, x2, y2, DrawType.STROKE); } /** Draws a rectangle outline starting at x, y extending by width to the right and by height downwards (y-axis points downwards) * using the current color. - * + * * @param x The x coordinate * @param y The y coordinate * @param width The width in pixels * @param height The height in pixels */ - public void drawRectangle (int x, int y, int width, int height) { + public void drawRectangle(int x, int y, int width, int height) + { rectangle(x, y, width, height, DrawType.STROKE); } /** Draws an area form another Pixmap to this Pixmap. - * + * * @param pixmap The other Pixmap * @param x The target x-coordinate (top left corner) * @param y The target y-coordinate (top left corner) */ - public void drawPixmap (Pixmap pixmap, int x, int y) { - HTMLCanvasElement image = pixmap.getCanvasElement(); + public void drawPixmap(Pixmap pixmap, int x, int y) + { + HTMLCanvasElement image= pixmap.getCanvasElement(); image(image, 0, 0, image.getWidth(), image.getHeight(), x, y, image.getWidth(), image.getHeight()); } /** Draws an area form another Pixmap to this Pixmap. - * + * * @param pixmap The other Pixmap * @param x The target x-coordinate (top left corner) * @param y The target y-coordinate (top left corner) @@ -285,15 +333,16 @@ public void drawPixmap (Pixmap pixmap, int x, int y) { * @param srcy The source y-coordinate (top left corner); * @param srcWidth The width of the area form the other Pixmap in pixels * @param srcHeight The height of the area form the other Pixmap in pixles */ - public void drawPixmap (Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeight) { - HTMLCanvasElement image = pixmap.getCanvasElement(); - image(image, srcx, srcy, srcWidth, srcHeight, x, y, srcWidth, srcHeight); + public void drawPixmap(Pixmap pixmap, int x, int y, int srcx, int srcy, int srcWidth, int srcHeight) + { + HTMLCanvasElement image= pixmap.getCanvasElement(); + image(image, srcx, srcy, srcWidth, srcHeight, x, y, srcWidth, srcHeight); } /** Draws an area form another Pixmap to this Pixmap. This will automatically scale and stretch the source image to the * specified target rectangle. Use {@link Pixmap#setFilter(Filter)} to specify the type of filtering to be used (nearest * neighbour or bilinear). - * + * * @param pixmap The other Pixmap * @param srcx The source x-coordinate (top left corner) * @param srcy The source y-coordinate (top left corner); @@ -303,87 +352,97 @@ public void drawPixmap (Pixmap pixmap, int x, int y, int srcx, int srcy, int src * @param dsty The target y-coordinate (top left corner) * @param dstWidth The target width * @param dstHeight the target height */ - public void drawPixmap (Pixmap pixmap, int srcx, int srcy, int srcWidth, int srcHeight, int dstx, int dsty, int dstWidth, - int dstHeight) { + public void drawPixmap(Pixmap pixmap, int srcx, int srcy, int srcWidth, int srcHeight, int dstx, int dsty, int dstWidth, int dstHeight) + { image(pixmap.getCanvasElement(), srcx, srcy, srcWidth, srcHeight, dstx, dsty, dstWidth, dstHeight); } /** Fills a rectangle starting at x, y extending by width to the right and by height downwards (y-axis points downwards) using * the current color. - * + * * @param x The x coordinate * @param y The y coordinate * @param width The width in pixels * @param height The height in pixels */ - public void fillRectangle (int x, int y, int width, int height) { + public void fillRectangle(int x, int y, int width, int height) + { rectangle(x, y, width, height, DrawType.FILL); } /** Draws a circle outline with the center at x,y and a radius using the current color and stroke width. - * + * * @param x The x-coordinate of the center * @param y The y-coordinate of the center * @param radius The radius in pixels */ - public void drawCircle (int x, int y, int radius) { + public void drawCircle(int x, int y, int radius) + { circle(x, y, radius, DrawType.STROKE); } /** Fills a circle with the center at x,y and a radius using the current color. - * + * * @param x The x-coordinate of the center * @param y The y-coordinate of the center * @param radius The radius in pixels */ - public void fillCircle (int x, int y, int radius) { + public void fillCircle(int x, int y, int radius) + { circle(x, y, radius, DrawType.FILL); } /** Fills a triangle with vertices at x1,y1 and x2,y2 and x3,y3 using the current color. - * + * * @param x1 The x-coordinate of vertex 1 * @param y1 The y-coordinate of vertex 1 * @param x2 The x-coordinate of vertex 2 * @param y2 The y-coordinate of vertex 2 * @param x3 The x-coordinate of vertex 3 * @param y3 The y-coordinate of vertex 3 */ - public void fillTriangle (int x1, int y1, int x2, int y2, int x3, int y3) { + public void fillTriangle(int x1, int y1, int x2, int y2, int x3, int y3) + { triangle(x1, y1, x2, y2, x3, y3, DrawType.FILL); } /** Returns the 32-bit RGBA8888 value of the pixel at x, y. For Alpha formats the RGB components will be one. - * + * * @param x The x-coordinate * @param y The y-coordinate * @return The pixel color in RGBA8888 format. */ - public int getPixel (int x, int y) { - if (pixels == null) pixels = context.getImageData(0, 0, width, height).getData(); - int i = x * 4 + y * width * 4; - int r = pixels.get(i + 0) & 0xff; - int g = pixels.get(i + 1) & 0xff; - int b = pixels.get(i + 2) & 0xff; - int a = pixels.get(i + 3) & 0xff; + public int getPixel(int x, int y) + { + if (pixels == null) + pixels= context.getImageData(0, 0, width, height).getData(); + int i= x * 4 + y * width * 4; + int r= pixels.getElement(i + 0) & 0xff; + int g= pixels.getElement(i + 1) & 0xff; + int b= pixels.getElement(i + 2) & 0xff; + int a= pixels.getElement(i + 3) & 0xff; return (r << 24) | (g << 16) | (b << 8) | (a); } /** Draws a pixel at the given location with the current color. - * + * * @param x the x-coordinate * @param y the y-coordinate */ - public void drawPixel (int x, int y) { + public void drawPixel(int x, int y) + { rectangle(x, y, 1, 1, DrawType.FILL); } /** Draws a pixel at the given location with the given color. - * + * * @param x the x-coordinate * @param y the y-coordinate * @param color the color in RGBA8888 format. */ - public void drawPixel (int x, int y, int color) { + public void drawPixel(int x, int y, int color) + { setColor(color); drawPixel(x, y); } - private void circle (int x, int y, int radius, DrawType drawType) { - if (blending == Blending.None) { + private void circle(int x, int y, int radius, DrawType drawType) + { + if (blending == Blending.None) + { context.setFillStyle(clearColor); context.setStrokeStyle(clearColor); context.setGlobalCompositeOperation("destination-out"); @@ -399,11 +458,13 @@ private void circle (int x, int y, int radius, DrawType drawType) { context.arc(x, y, radius, 0, 2 * Math.PI, false); fillOrStrokePath(drawType); context.closePath(); - pixels = null; + pixels= null; } - - private void line(int x, int y, int x2, int y2, DrawType drawType) { - if (blending == Blending.None) { + + private void line(int x, int y, int x2, int y2, DrawType drawType) + { + if (blending == Blending.None) + { context.setFillStyle(clearColor); context.setStrokeStyle(clearColor); context.setGlobalCompositeOperation("destination-out"); @@ -415,17 +476,19 @@ private void line(int x, int y, int x2, int y2, DrawType drawType) { context.setFillStyle(color); context.setStrokeStyle(color); context.setGlobalCompositeOperation(Composite.SOURCE_OVER); - } + } context.beginPath(); context.moveTo(x, y); context.lineTo(x2, y2); fillOrStrokePath(drawType); context.closePath(); - pixels = null; + pixels= null; } - - private void rectangle(int x, int y, int width, int height, DrawType drawType) { - if (blending == Blending.None) { + + private void rectangle(int x, int y, int width, int height, DrawType drawType) + { + if (blending == Blending.None) + { context.setFillStyle(clearColor); context.setStrokeStyle(clearColor); context.setGlobalCompositeOperation("destination-out"); @@ -441,37 +504,41 @@ private void rectangle(int x, int y, int width, int height, DrawType drawType) { context.rect(x, y, width, height); fillOrStrokePath(drawType); context.closePath(); - pixels = null; + pixels= null; } - - private void triangle(int x1, int y1, int x2, int y2, int x3, int y3, DrawType drawType) { - if (blending == Blending.None) { + + private void triangle(int x1, int y1, int x2, int y2, int x3, int y3, DrawType drawType) + { + if (blending == Blending.None) + { context.setFillStyle(clearColor); context.setStrokeStyle(clearColor); context.setGlobalCompositeOperation("destination-out"); context.beginPath(); - context.moveTo(x1,y1); - context.lineTo(x2,y2); - context.lineTo(x3,y3); - context.lineTo(x1,y1); + context.moveTo(x1, y1); + context.lineTo(x2, y2); + context.lineTo(x3, y3); + context.lineTo(x1, y1); fillOrStrokePath(drawType); context.closePath(); context.setFillStyle(color); context.setStrokeStyle(color); context.setGlobalCompositeOperation(Composite.SOURCE_OVER); - } + } context.beginPath(); - context.moveTo(x1,y1); - context.lineTo(x2,y2); - context.lineTo(x3,y3); - context.lineTo(x1,y1); + context.moveTo(x1, y1); + context.lineTo(x2, y2); + context.lineTo(x3, y3); + context.lineTo(x1, y1); fillOrStrokePath(drawType); context.closePath(); - pixels = null; + pixels= null; } - - private void image (HTMLCanvasElement image, int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight) { - if (blending == Blending.None) { + + private void image(HTMLCanvasElement image, int srcX, int srcY, int srcWidth, int srcHeight, int dstX, int dstY, int dstWidth, int dstHeight) + { + if (blending == Blending.None) + { context.setFillStyle(clearColor); context.setStrokeStyle(clearColor); context.setGlobalCompositeOperation("destination-out"); @@ -484,22 +551,25 @@ private void image (HTMLCanvasElement image, int srcX, int srcY, int srcWidth, i context.setGlobalCompositeOperation(Composite.SOURCE_OVER); } context.drawImage(image, srcX, srcY, srcWidth, srcHeight, dstX, dstY, dstWidth, dstHeight); - pixels = null; + pixels= null; } - - private void fillOrStrokePath(DrawType drawType) { - switch (drawType) { + + private void fillOrStrokePath(DrawType drawType) + { + switch (drawType) + { case FILL: context.fill(); break; case STROKE: context.stroke(); break; - } + } } - - private enum DrawType { + + private enum DrawType + { FILL, STROKE } - + } diff --git a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/TextureData.java b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/TextureData.java index 290c3eea..8a3a004e 100644 --- a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/TextureData.java +++ b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/TextureData.java @@ -3,7 +3,6 @@ import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.graphics.Pixmap.Format; import com.badlogic.gdx.graphics.glutils.FileTextureData; -import com.badlogic.gdx.graphics.glutils.MipMapGenerator; /** Used by a {@link Texture} to load the pixel data. A TextureData can either return a {@link Pixmap} or upload the pixel data * itself. It signals it's type via {@link #getType()} to the Texture that's using it. The Texture will then either invoke diff --git a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/glutils/ETC1TextureData.java b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/glutils/ETC1TextureData.java index 38c325df..27da5f9a 100644 --- a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/glutils/ETC1TextureData.java +++ b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/glutils/ETC1TextureData.java @@ -16,11 +16,10 @@ package com.badlogic.gdx.graphics.glutils; -import com.badlogic.gdx.files.FileHandle; -import com.badlogic.gdx.graphics.Pixmap; -import com.badlogic.gdx.graphics.Pixmap.Format; -import com.badlogic.gdx.graphics.glutils.ETC1.ETC1Data; -import com.badlogic.gdx.graphics.TextureData; +import com.badlogic.gdx.files.FileHandle; +import com.badlogic.gdx.graphics.Pixmap; +import com.badlogic.gdx.graphics.Pixmap.Format; +import com.badlogic.gdx.graphics.TextureData; import com.badlogic.gdx.utils.GdxRuntimeException; public class ETC1TextureData implements TextureData { diff --git a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/glutils/VertexBufferObjectWithVAO.java b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/glutils/VertexBufferObjectWithVAO.java index 76fd8079..32ab9823 100644 --- a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/glutils/VertexBufferObjectWithVAO.java +++ b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/glutils/VertexBufferObjectWithVAO.java @@ -1,6 +1,5 @@ package com.badlogic.gdx.graphics.glutils; -import java.nio.ByteBuffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; diff --git a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/profiling/GLErrorListener.java b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/profiling/GLErrorListener.java index 8607c4c2..2c5c4fe6 100644 --- a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/profiling/GLErrorListener.java +++ b/backends/gdx-backend-dragome/emu/com/badlogic/gdx/graphics/profiling/GLErrorListener.java @@ -16,9 +16,10 @@ package com.badlogic.gdx.graphics.profiling; +import static com.badlogic.gdx.graphics.profiling.GLProfiler.resolveErrorNumber; + import com.badlogic.gdx.Gdx; import com.badlogic.gdx.utils.GdxRuntimeException; -import static com.badlogic.gdx.graphics.profiling.GLProfiler.resolveErrorNumber; /** @see GLProfiler * @author Jan Polák */ diff --git a/backends/gdx-backend-dragome/emu/java/io/Reader.java b/backends/gdx-backend-dragome/emu/java/io/Reader.java index 197ce446..477e0511 100644 --- a/backends/gdx-backend-dragome/emu/java/io/Reader.java +++ b/backends/gdx-backend-dragome/emu/java/io/Reader.java @@ -18,7 +18,6 @@ package java.io; import java.nio.CharBuffer; -import java.nio.ReadOnlyBufferException; /*** The base class for all readers. A reader is a means of reading data from a source in a character-wise manner. Some readers also * support marking a position in the input and returning to this position later. diff --git a/backends/gdx-backend-dragome/emu/java/util/Locale.java b/backends/gdx-backend-dragome/emu/java/util/Locale.java index 466a6ed2..6b1e4714 100644 --- a/backends/gdx-backend-dragome/emu/java/util/Locale.java +++ b/backends/gdx-backend-dragome/emu/java/util/Locale.java @@ -17,10 +17,6 @@ package java.util; -import java.io.IOException; -import java.io.ObjectInputStream; -import java.io.ObjectOutputStream; -import java.io.ObjectStreamField; import java.io.Serializable; //import libcore.icu.ICU; diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeApplication.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeApplication.java index a3ccd27c..5638f269 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeApplication.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeApplication.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -35,16 +35,15 @@ import com.badlogic.gdx.utils.Clipboard; import com.dragome.view.DefaultVisualActivity; import com.dragome.web.dispatcher.EventDispatcherImpl; -import com.dragome.web.html.dom.Timer; -import com.dragome.web.html.dom.html5canvas.interfaces.HTMLCanvasElement; import com.dragome.web.html.dom.w3c.BrowserDomHandler; +import com.dragome.web.html.dom.w3c.HTMLCanvasElementExtension; /** @author xpenatan */ public abstract class DragomeApplication extends DefaultVisualActivity implements Application { private ApplicationListener listener; BrowserDomHandler elementBySelector; - + DragomeGraphics graphics; DragomeInput input; DragomeNet net; @@ -73,7 +72,7 @@ public void build () { } private void prepate () { - listener = createApplicationListener(); + listener = createApplicationListener(); if (listener == null) return; DragomeApplicationConfiguration config = getConfig(); if(config == null) @@ -128,7 +127,7 @@ public void run () { // } // } // }, 0); - + DragomeWindow.requestAnimationFrame(new Runnable() { @Override @@ -142,7 +141,7 @@ public void run () { DragomeWindow.requestAnimationFrame(this, graphics.canvas); } }, graphics.canvas); - + init = true; } @@ -295,14 +294,14 @@ public void removeLifecycleListener (LifecycleListener listener) { } } - public HTMLCanvasElement getCanvas () { + public HTMLCanvasElementExtension getCanvas () { return graphics.canvas; } public Preloader getPreloader () { return preloader; } - + public void addEventListener (EventListener aEventListener, String... aEvent) { Element theElement = elementBySelector.getElementBySelector("body"); EventDispatcherImpl.setEventListener(theElement, aEventListener, aEvent); diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java index dbe25621..09062bfb 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java @@ -30,6 +30,8 @@ import org.w3c.dom.NodeList; import org.w3c.dom.Text; import org.w3c.dom.events.Event; +import org.w3c.dom.html.CanvasRenderingContext2D; +import org.w3c.dom.html.HTMLCanvasElement; import org.w3c.dom.typedarray.ArrayBuffer; import org.w3c.dom.typedarray.ArrayBufferView; import org.w3c.dom.typedarray.Float32Array; @@ -40,33 +42,30 @@ import org.w3c.dom.typedarray.Uint16Array; import org.w3c.dom.typedarray.Uint32Array; import org.w3c.dom.typedarray.Uint8Array; +import org.w3c.dom.webgl.WebGLActiveInfo; +import org.w3c.dom.webgl.WebGLBuffer; +import org.w3c.dom.webgl.WebGLContextAttributes; +import org.w3c.dom.webgl.WebGLFramebuffer; +import org.w3c.dom.webgl.WebGLObject; +import org.w3c.dom.webgl.WebGLProgram; +import org.w3c.dom.webgl.WebGLRenderbuffer; +import org.w3c.dom.webgl.WebGLRenderingContext; +import org.w3c.dom.webgl.WebGLShader; +import org.w3c.dom.webgl.WebGLTexture; +import org.w3c.dom.webgl.WebGLUniformLocation; import com.badlogic.gdx.backends.dragome.js.storage.Storage; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLActiveInfo; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLBuffer; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLContextAttributes; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLFramebuffer; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLObject; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLProgram; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLRenderbuffer; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLRenderingContext; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLShader; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLTexture; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLUniformLocation; import com.dragome.commons.ChainedInstrumentationDragomeConfigurator; import com.dragome.commons.DragomeConfiguratorImplementor; import com.dragome.commons.compiler.ClasspathFile; import com.dragome.commons.compiler.InMemoryClasspathFile; import com.dragome.commons.compiler.annotations.CompilerType; -import com.dragome.web.config.NodeSubTypeFactory; -import com.dragome.web.enhancers.jsdelegate.DefaultDelegateStrategy; +import com.dragome.web.config.DomHandlerDelegateStrategy; import com.dragome.web.enhancers.jsdelegate.JsDelegateGenerator; -import com.dragome.web.enhancers.jsdelegate.interfaces.SubTypeFactory; import com.dragome.web.helpers.serverside.DefaultClasspathFilter; -import com.dragome.web.html.dom.html5canvas.interfaces.CanvasImageSource; -import com.dragome.web.html.dom.html5canvas.interfaces.CanvasRenderingContext2D; -import com.dragome.web.html.dom.html5canvas.interfaces.HTMLCanvasElement; -import com.dragome.web.html.dom.html5canvas.interfaces.ImageElement; +import com.dragome.web.html.dom.w3c.HTMLCanvasElementExtension; +import com.dragome.web.html.dom.w3c.HTMLImageElementExtension; +import com.dragome.web.html.dom.w3c.WebGLRenderingContextExtension; /** @author xpenatan */ @DragomeConfiguratorImplementor(priority= 10) @@ -130,7 +129,7 @@ public void add(Class clazz) private void createJsDelegateGenerator(String classpath) { - jsDelegateGenerator= new JsDelegateGenerator(classpath.replace(";", ":"), new DefaultDelegateStrategy() + jsDelegateGenerator= new JsDelegateGenerator(classpath.replace(";", ":"), new DomHandlerDelegateStrategy() { public String createMethodCall(Method method, String params) { @@ -149,22 +148,6 @@ else if ((name.equals("get") || name.equals("getAsDouble")) && method.getParamet return super.createMethodCall(method, params); } - - public String getSubTypeExtractorFor(Class interface1, String methodName) - { - if (methodName.equals("item") || methodName.equals("cloneNode")) - return "temp.nodeType"; - - return null; - } - - public Class getSubTypeFactoryClassFor(Class interface1, String methodName) - { - if (methodName.equals("item") || methodName.equals("cloneNode")) - return NodeSubTypeFactory.class; - - return null; - } }); } @@ -182,8 +165,8 @@ public List getExtraClasspath(String classpath) add(Text.class); add(HTMLCanvasElement.class); add(CanvasRenderingContext2D.class); - add(CanvasImageSource.class); - add(ImageElement.class); + add(HTMLImageElementExtension.class); + add(HTMLCanvasElementExtension.class); add(Event.class); add(WebGLActiveInfo.class); @@ -197,7 +180,7 @@ public List getExtraClasspath(String classpath) add(WebGLShader.class); add(WebGLTexture.class); add(WebGLUniformLocation.class); - + add(WebGLRenderingContextExtension.class); add(ArrayBuffer.class); add(ArrayBufferView.class); @@ -232,6 +215,8 @@ else if (aClassPathEntry.contains("dragome-js-commons-") || aClassPathEntry.cont flag= true; else if (aClassPathEntry.contains("dragome-js-jre-") || aClassPathEntry.contains("dragome-js-jre\\bin")) flag= true; + else if (aClassPathEntry.contains("dragome-w3c-standards-") || aClassPathEntry.contains("dragome-w3c-standards\\bin")) + flag= true; else if (aClassPathEntry.contains("dragome-callback-evictor-") || aClassPathEntry.contains("dragome-callback-evictor\\bin")) flag= true; else if (aClassPathEntry.contains("dragome-form-bindings-") || aClassPathEntry.contains("dragome-form-bindings\\bin")) diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java index 5372d436..555e8523 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java @@ -30,20 +30,21 @@ import org.w3c.dom.typedarray.Int16Array; import org.w3c.dom.typedarray.Int32Array; import org.w3c.dom.typedarray.Uint8Array; +import org.w3c.dom.webgl.WebGLActiveInfo; +import org.w3c.dom.webgl.WebGLBuffer; +import org.w3c.dom.webgl.WebGLFramebuffer; +import org.w3c.dom.webgl.WebGLProgram; +import org.w3c.dom.webgl.WebGLRenderbuffer; +import org.w3c.dom.webgl.WebGLRenderingContext; +import org.w3c.dom.webgl.WebGLShader; +import org.w3c.dom.webgl.WebGLTexture; +import org.w3c.dom.webgl.WebGLUniformLocation; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLActiveInfo; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLBuffer; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLFramebuffer; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLProgram; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLRenderbuffer; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLRenderingContext; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLShader; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLTexture; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLUniformLocation; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.utils.GdxRuntimeException; import com.dragome.commons.javascript.ScriptHelper; +import com.dragome.web.html.dom.w3c.WebGLRenderingContextExtension; /** Ported from GWT backend. * @author xpenatan */ @@ -69,9 +70,9 @@ public class DragomeGL20 implements GL20 { Int16Array shortBuffer; float[] floatArray = new float[16000]; - WebGLRenderingContext gl; + WebGLRenderingContextExtension gl; - public DragomeGL20 (WebGLRenderingContext gl) { + public DragomeGL20 (WebGLRenderingContextExtension gl) { this.gl = gl; floatBuffer= TypedArraysFactory.createInstanceOf(Float32Array.class, 2000 * 20); intBuffer= TypedArraysFactory.createInstanceOf(Int32Array.class, 2000 * 6); diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20Debug.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20Debug.java index d3c99bb8..37531bf3 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20Debug.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20Debug.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2011 See AUTHORS file. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -20,12 +20,12 @@ import java.nio.FloatBuffer; import java.nio.IntBuffer; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLRenderingContext; import com.badlogic.gdx.utils.GdxRuntimeException; +import com.dragome.web.html.dom.w3c.WebGLRenderingContextExtension; public class DragomeGL20Debug extends DragomeGL20 { - protected DragomeGL20Debug (WebGLRenderingContext gl) { + protected DragomeGL20Debug (WebGLRenderingContextExtension gl) { super(gl); } @@ -46,49 +46,49 @@ public void glActiveTexture (int texture) { @Override public void glBindTexture (int target, int texture) { - + super.glBindTexture(target, texture); checkError(); } @Override public void glBlendFunc (int sfactor, int dfactor) { - + super.glBlendFunc(sfactor, dfactor); checkError(); } @Override public void glClear (int mask) { - + super.glClear(mask); checkError(); } @Override public void glClearColor (float red, float green, float blue, float alpha) { - + super.glClearColor(red, green, blue, alpha); checkError(); } @Override public void glClearDepthf (float depth) { - + super.glClearDepthf(depth); checkError(); } @Override public void glClearStencil (int s) { - + super.glClearStencil(s); checkError(); } @Override public void glColorMask (boolean red, boolean green, boolean blue, boolean alpha) { - + super.glColorMask(red, green, blue, alpha); checkError(); } @@ -96,7 +96,7 @@ public void glColorMask (boolean red, boolean green, boolean blue, boolean alpha @Override public void glCompressedTexImage2D (int target, int level, int internalformat, int width, int height, int border, int imageSize, Buffer data) { - + super.glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data); checkError(); } @@ -104,194 +104,194 @@ public void glCompressedTexImage2D (int target, int level, int internalformat, i @Override public void glCompressedTexSubImage2D (int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, Buffer data) { - + super.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data); checkError(); } @Override public void glCopyTexImage2D (int target, int level, int internalformat, int x, int y, int width, int height, int border) { - + super.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border); checkError(); } @Override public void glCopyTexSubImage2D (int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) { - + super.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height); checkError(); } @Override public void glCullFace (int mode) { - + super.glCullFace(mode); checkError(); } @Override public void glDeleteTextures (int n, IntBuffer textures) { - + super.glDeleteTextures(n, textures); checkError(); } @Override public void glDepthFunc (int func) { - + super.glDepthFunc(func); checkError(); } @Override public void glDepthMask (boolean flag) { - + super.glDepthMask(flag); checkError(); } @Override public void glDepthRangef (float zNear, float zFar) { - + super.glDepthRangef(zNear, zFar); checkError(); } @Override public void glDisable (int cap) { - + super.glDisable(cap); checkError(); } @Override public void glDrawArrays (int mode, int first, int count) { - + super.glDrawArrays(mode, first, count); checkError(); } @Override public void glDrawElements (int mode, int count, int type, Buffer indices) { - + super.glDrawElements(mode, count, type, indices); checkError(); } @Override public void glEnable (int cap) { - + super.glEnable(cap); checkError(); } @Override public void glFinish () { - + super.glFinish(); checkError(); } @Override public void glFlush () { - + super.glFlush(); checkError(); } @Override public void glFrontFace (int mode) { - + super.glFrontFace(mode); checkError(); } @Override public void glGenTextures (int n, IntBuffer textures) { - + super.glGenTextures(n, textures); checkError(); } @Override public int glGetError () { - + return super.glGetError(); } @Override public void glGetIntegerv (int pname, IntBuffer params) { - + super.glGetIntegerv(pname, params); checkError(); } @Override public String glGetString (int name) { - + return super.glGetString(name); } @Override public void glHint (int target, int mode) { - + super.glHint(target, mode); checkError(); } @Override public void glLineWidth (float width) { - + super.glLineWidth(width); checkError(); } @Override public void glPixelStorei (int pname, int param) { - + super.glPixelStorei(pname, param); checkError(); } @Override public void glPolygonOffset (float factor, float units) { - + super.glPolygonOffset(factor, units); checkError(); } @Override public void glReadPixels (int x, int y, int width, int height, int format, int type, Buffer pixels) { - + super.glReadPixels(x, y, width, height, format, type, pixels); checkError(); } @Override public void glScissor (int x, int y, int width, int height) { - + super.glScissor(x, y, width, height); checkError(); } @Override public void glStencilFunc (int func, int ref, int mask) { - + super.glStencilFunc(func, ref, mask); checkError(); } @Override public void glStencilMask (int mask) { - + super.glStencilMask(mask); checkError(); } @Override public void glStencilOp (int fail, int zfail, int zpass) { - + super.glStencilOp(fail, zfail, zpass); checkError(); } @@ -299,14 +299,14 @@ public void glStencilOp (int fail, int zfail, int zpass) { @Override public void glTexImage2D (int target, int level, int internalformat, int width, int height, int border, int format, int type, Buffer pixels) { - + super.glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels); checkError(); } @Override public void glTexParameterf (int target, int pname, float param) { - + super.glTexParameterf(target, pname, param); checkError(); } @@ -314,111 +314,111 @@ public void glTexParameterf (int target, int pname, float param) { @Override public void glTexSubImage2D (int target, int level, int xoffset, int yoffset, int width, int height, int format, int type, Buffer pixels) { - + super.glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels); checkError(); } @Override public void glViewport (int x, int y, int width, int height) { - + super.glViewport(x, y, width, height); checkError(); } @Override public void glAttachShader (int program, int shader) { - + super.glAttachShader(program, shader); checkError(); } @Override public void glBindAttribLocation (int program, int index, String name) { - + super.glBindAttribLocation(program, index, name); checkError(); } @Override public void glBindBuffer (int target, int buffer) { - + super.glBindBuffer(target, buffer); checkError(); } @Override public void glBindFramebuffer (int target, int framebuffer) { - + super.glBindFramebuffer(target, framebuffer); checkError(); } @Override public void glBindRenderbuffer (int target, int renderbuffer) { - + super.glBindRenderbuffer(target, renderbuffer); checkError(); } @Override public void glBlendColor (float red, float green, float blue, float alpha) { - + super.glBlendColor(red, green, blue, alpha); checkError(); } @Override public void glBlendEquation (int mode) { - + super.glBlendEquation(mode); checkError(); } @Override public void glBlendEquationSeparate (int modeRGB, int modeAlpha) { - + super.glBlendEquationSeparate(modeRGB, modeAlpha); checkError(); } @Override public void glBlendFuncSeparate (int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) { - + super.glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha); checkError(); } @Override public void glBufferData (int target, int size, Buffer data, int usage) { - + super.glBufferData(target, size, data, usage); checkError(); } @Override public void glBufferSubData (int target, int offset, int size, Buffer data) { - + super.glBufferSubData(target, offset, size, data); checkError(); } @Override public int glCheckFramebufferStatus (int target) { - + return super.glCheckFramebufferStatus(target); } @Override public void glCompileShader (int shader) { - + super.glCompileShader(shader); checkError(); } @Override public int glCreateProgram () { - + int program = super.glCreateProgram(); checkError(); return program; @@ -426,7 +426,7 @@ public int glCreateProgram () { @Override public int glCreateShader (int type) { - + int shader = super.glCreateShader(type); checkError(); return shader; @@ -434,112 +434,112 @@ public int glCreateShader (int type) { @Override public void glDeleteBuffers (int n, IntBuffer buffers) { - + super.glDeleteBuffers(n, buffers); checkError(); } @Override public void glDeleteFramebuffers (int n, IntBuffer framebuffers) { - + super.glDeleteFramebuffers(n, framebuffers); checkError(); } @Override public void glDeleteProgram (int program) { - + super.glDeleteProgram(program); checkError(); } @Override public void glDeleteRenderbuffers (int n, IntBuffer renderbuffers) { - + super.glDeleteRenderbuffers(n, renderbuffers); checkError(); } @Override public void glDeleteShader (int shader) { - + super.glDeleteShader(shader); checkError(); } @Override public void glDetachShader (int program, int shader) { - + super.glDetachShader(program, shader); checkError(); } @Override public void glDisableVertexAttribArray (int index) { - + super.glDisableVertexAttribArray(index); checkError(); } @Override public void glDrawElements (int mode, int count, int type, int indices) { - + super.glDrawElements(mode, count, type, indices); checkError(); } @Override public void glEnableVertexAttribArray (int index) { - + super.glEnableVertexAttribArray(index); checkError(); } @Override public void glFramebufferRenderbuffer (int target, int attachment, int renderbuffertarget, int renderbuffer) { - + super.glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer); checkError(); } @Override public void glFramebufferTexture2D (int target, int attachment, int textarget, int texture, int level) { - + super.glFramebufferTexture2D(target, attachment, textarget, texture, level); checkError(); } @Override public void glGenBuffers (int n, IntBuffer buffers) { - + super.glGenBuffers(n, buffers); checkError(); } @Override public void glGenerateMipmap (int target) { - + super.glGenerateMipmap(target); checkError(); } @Override public void glGenFramebuffers (int n, IntBuffer framebuffers) { - + super.glGenFramebuffers(n, framebuffers); checkError(); } @Override public void glGenRenderbuffers (int n, IntBuffer renderbuffers) { - + super.glGenRenderbuffers(n, renderbuffers); checkError(); } @Override public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer type) { - + String attrib = super.glGetActiveAttrib(program, index, size, type); checkError(); return attrib; @@ -547,7 +547,7 @@ public String glGetActiveAttrib (int program, int index, IntBuffer size, Buffer @Override public String glGetActiveUniform (int program, int index, IntBuffer size, Buffer type) { - + String uniform = super.glGetActiveUniform(program, index, size, type); checkError(); return uniform; @@ -555,14 +555,14 @@ public String glGetActiveUniform (int program, int index, IntBuffer size, Buffer @Override public void glGetAttachedShaders (int program, int maxcount, Buffer count, IntBuffer shaders) { - + super.glGetAttachedShaders(program, maxcount, count, shaders); checkError(); } @Override public int glGetAttribLocation (int program, String name) { - + int loc = super.glGetAttribLocation(program, name); checkError(); return loc; @@ -570,42 +570,42 @@ public int glGetAttribLocation (int program, String name) { @Override public void glGetBooleanv (int pname, Buffer params) { - + super.glGetBooleanv(pname, params); checkError(); } @Override public void glGetBufferParameteriv (int target, int pname, IntBuffer params) { - + super.glGetBufferParameteriv(target, pname, params); checkError(); } @Override public void glGetFloatv (int pname, FloatBuffer params) { - + super.glGetFloatv(pname, params); checkError(); } @Override public void glGetFramebufferAttachmentParameteriv (int target, int attachment, int pname, IntBuffer params) { - + super.glGetFramebufferAttachmentParameteriv(target, attachment, pname, params); checkError(); } @Override public void glGetProgramiv (int program, int pname, IntBuffer params) { - + super.glGetProgramiv(program, pname, params); checkError(); } @Override public String glGetProgramInfoLog (int program) { - + String info = super.glGetProgramInfoLog(program); checkError(); return info; @@ -613,21 +613,21 @@ public String glGetProgramInfoLog (int program) { @Override public void glGetRenderbufferParameteriv (int target, int pname, IntBuffer params) { - + super.glGetRenderbufferParameteriv(target, pname, params); checkError(); } @Override public void glGetShaderiv (int shader, int pname, IntBuffer params) { - + super.glGetShaderiv(shader, pname, params); checkError(); } @Override public String glGetShaderInfoLog (int shader) { - + String info = super.glGetShaderInfoLog(shader); checkError(); return info; @@ -635,42 +635,42 @@ public String glGetShaderInfoLog (int shader) { @Override public void glGetShaderPrecisionFormat (int shadertype, int precisiontype, IntBuffer range, IntBuffer precision) { - + super.glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision); checkError(); } @Override public void glGetTexParameterfv (int target, int pname, FloatBuffer params) { - + super.glGetTexParameterfv(target, pname, params); checkError(); } @Override public void glGetTexParameteriv (int target, int pname, IntBuffer params) { - + super.glGetTexParameteriv(target, pname, params); checkError(); } @Override public void glGetUniformfv (int program, int location, FloatBuffer params) { - + super.glGetUniformfv(program, location, params); checkError(); } @Override public void glGetUniformiv (int program, int location, IntBuffer params) { - + super.glGetUniformiv(program, location, params); checkError(); } @Override public int glGetUniformLocation (int program, String name) { - + int loc = super.glGetUniformLocation(program, name); checkError(); return loc; @@ -678,28 +678,28 @@ public int glGetUniformLocation (int program, String name) { @Override public void glGetVertexAttribfv (int index, int pname, FloatBuffer params) { - + super.glGetVertexAttribfv(index, pname, params); checkError(); } @Override public void glGetVertexAttribiv (int index, int pname, IntBuffer params) { - + super.glGetVertexAttribiv(index, pname, params); checkError(); } @Override public void glGetVertexAttribPointerv (int index, int pname, Buffer pointer) { - + super.glGetVertexAttribPointerv(index, pname, pointer); checkError(); } @Override public boolean glIsBuffer (int buffer) { - + boolean res = super.glIsBuffer(buffer); checkError(); return res; @@ -707,7 +707,7 @@ public boolean glIsBuffer (int buffer) { @Override public boolean glIsEnabled (int cap) { - + boolean res = super.glIsEnabled(cap); checkError(); return res; @@ -715,7 +715,7 @@ public boolean glIsEnabled (int cap) { @Override public boolean glIsFramebuffer (int framebuffer) { - + boolean res = super.glIsFramebuffer(framebuffer); checkError(); return res; @@ -723,7 +723,7 @@ public boolean glIsFramebuffer (int framebuffer) { @Override public boolean glIsProgram (int program) { - + boolean res = super.glIsProgram(program); checkError(); return res; @@ -731,7 +731,7 @@ public boolean glIsProgram (int program) { @Override public boolean glIsRenderbuffer (int renderbuffer) { - + boolean res = super.glIsRenderbuffer(renderbuffer); checkError(); return res; @@ -739,7 +739,7 @@ public boolean glIsRenderbuffer (int renderbuffer) { @Override public boolean glIsShader (int shader) { - + boolean res = super.glIsShader(shader); checkError(); return res; @@ -747,7 +747,7 @@ public boolean glIsShader (int shader) { @Override public boolean glIsTexture (int texture) { - + boolean res = super.glIsTexture(texture); checkError(); return res; @@ -755,301 +755,301 @@ public boolean glIsTexture (int texture) { @Override public void glLinkProgram (int program) { - + super.glLinkProgram(program); checkError(); } @Override public void glReleaseShaderCompiler () { - + super.glReleaseShaderCompiler(); checkError(); } @Override public void glRenderbufferStorage (int target, int internalformat, int width, int height) { - + super.glRenderbufferStorage(target, internalformat, width, height); checkError(); } @Override public void glSampleCoverage (float value, boolean invert) { - + super.glSampleCoverage(value, invert); checkError(); } @Override public void glShaderBinary (int n, IntBuffer shaders, int binaryformat, Buffer binary, int length) { - + super.glShaderBinary(n, shaders, binaryformat, binary, length); checkError(); } @Override public void glShaderSource (int shader, String source) { - + super.glShaderSource(shader, source); checkError(); } @Override public void glStencilFuncSeparate (int face, int func, int ref, int mask) { - + super.glStencilFuncSeparate(face, func, ref, mask); checkError(); } @Override public void glStencilMaskSeparate (int face, int mask) { - + super.glStencilMaskSeparate(face, mask); checkError(); } @Override public void glStencilOpSeparate (int face, int fail, int zfail, int zpass) { - + super.glStencilOpSeparate(face, fail, zfail, zpass); checkError(); } @Override public void glTexParameterfv (int target, int pname, FloatBuffer params) { - + super.glTexParameterfv(target, pname, params); checkError(); } @Override public void glTexParameteri (int target, int pname, int param) { - + super.glTexParameteri(target, pname, param); checkError(); } @Override public void glTexParameteriv (int target, int pname, IntBuffer params) { - + super.glTexParameteriv(target, pname, params); checkError(); } @Override public void glUniform1f (int location, float x) { - + super.glUniform1f(location, x); checkError(); } @Override public void glUniform1fv (int location, int count, FloatBuffer v) { - + super.glUniform1fv(location, count, v); checkError(); } @Override public void glUniform1i (int location, int x) { - + super.glUniform1i(location, x); checkError(); } @Override public void glUniform1iv (int location, int count, IntBuffer v) { - + super.glUniform1iv(location, count, v); checkError(); } @Override public void glUniform2f (int location, float x, float y) { - + super.glUniform2f(location, x, y); checkError(); } @Override public void glUniform2fv (int location, int count, FloatBuffer v) { - + super.glUniform2fv(location, count, v); checkError(); } @Override public void glUniform2i (int location, int x, int y) { - + super.glUniform2i(location, x, y); checkError(); } @Override public void glUniform2iv (int location, int count, IntBuffer v) { - + super.glUniform2iv(location, count, v); checkError(); } @Override public void glUniform3f (int location, float x, float y, float z) { - + super.glUniform3f(location, x, y, z); checkError(); } @Override public void glUniform3fv (int location, int count, FloatBuffer v) { - + super.glUniform3fv(location, count, v); checkError(); } @Override public void glUniform3i (int location, int x, int y, int z) { - + super.glUniform3i(location, x, y, z); checkError(); } @Override public void glUniform3iv (int location, int count, IntBuffer v) { - + super.glUniform3iv(location, count, v); checkError(); } @Override public void glUniform4f (int location, float x, float y, float z, float w) { - + super.glUniform4f(location, x, y, z, w); checkError(); } @Override public void glUniform4fv (int location, int count, FloatBuffer v) { - + super.glUniform4fv(location, count, v); checkError(); } @Override public void glUniform4i (int location, int x, int y, int z, int w) { - + super.glUniform4i(location, x, y, z, w); checkError(); } @Override public void glUniform4iv (int location, int count, IntBuffer v) { - + super.glUniform4iv(location, count, v); checkError(); } @Override public void glUniformMatrix2fv (int location, int count, boolean transpose, FloatBuffer value) { - + super.glUniformMatrix2fv(location, count, transpose, value); checkError(); } @Override public void glUniformMatrix3fv (int location, int count, boolean transpose, FloatBuffer value) { - + super.glUniformMatrix3fv(location, count, transpose, value); checkError(); } @Override public void glUniformMatrix4fv (int location, int count, boolean transpose, FloatBuffer value) { - + super.glUniformMatrix4fv(location, count, transpose, value); checkError(); } @Override public void glUseProgram (int program) { - + super.glUseProgram(program); checkError(); } @Override public void glValidateProgram (int program) { - + super.glValidateProgram(program); checkError(); } @Override public void glVertexAttrib1f (int indx, float x) { - + super.glVertexAttrib1f(indx, x); checkError(); } @Override public void glVertexAttrib1fv (int indx, FloatBuffer values) { - + super.glVertexAttrib1fv(indx, values); checkError(); } @Override public void glVertexAttrib2f (int indx, float x, float y) { - + super.glVertexAttrib2f(indx, x, y); checkError(); } @Override public void glVertexAttrib2fv (int indx, FloatBuffer values) { - + super.glVertexAttrib2fv(indx, values); checkError(); } @Override public void glVertexAttrib3f (int indx, float x, float y, float z) { - + super.glVertexAttrib3f(indx, x, y, z); checkError(); } @Override public void glVertexAttrib3fv (int indx, FloatBuffer values) { - + super.glVertexAttrib3fv(indx, values); checkError(); } @Override public void glVertexAttrib4f (int indx, float x, float y, float z, float w) { - + super.glVertexAttrib4f(indx, x, y, z, w); checkError(); } @Override public void glVertexAttrib4fv (int indx, FloatBuffer values) { - + super.glVertexAttrib4fv(indx, values); checkError(); } @Override public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, Buffer ptr) { - + super.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); checkError(); } @Override public void glVertexAttribPointer (int indx, int size, int type, boolean normalized, int stride, int ptr) { - + super.glVertexAttribPointer(indx, size, type, normalized, stride, ptr); checkError(); } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGraphics.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGraphics.java index 65bdd33e..42022f02 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGraphics.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGraphics.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -17,12 +17,11 @@ package com.badlogic.gdx.backends.dragome; import org.w3c.dom.Element; +import org.w3c.dom.webgl.WebGLContextAttributes; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.Graphics; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLContextAttributes; import com.badlogic.gdx.backends.dragome.js.webgl.WebGLFactory; -import com.badlogic.gdx.backends.dragome.js.webgl.WebGLRenderingContext; import com.badlogic.gdx.graphics.Cursor; import com.badlogic.gdx.graphics.Cursor.SystemCursor; import com.badlogic.gdx.graphics.GL20; @@ -30,245 +29,303 @@ import com.badlogic.gdx.graphics.Pixmap; import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; -import com.dragome.web.html.dom.html5canvas.interfaces.HTMLCanvasElement; +import com.dragome.web.html.dom.w3c.HTMLCanvasElementExtension; +import com.dragome.web.html.dom.w3c.WebGLRenderingContextExtension; /** @author xpenatan */ -public class DragomeGraphics implements Graphics { - - HTMLCanvasElement canvas; +public class DragomeGraphics implements Graphics +{ + HTMLCanvasElementExtension canvas; GL20 gl; String extensions; - float fps = 0; - long lastTimeStamp = System.currentTimeMillis(); - long frameId = -1; - float deltaTime = 0; - float time = 0; + float fps= 0; + long lastTimeStamp= System.currentTimeMillis(); + long frameId= -1; + float deltaTime= 0; + float time= 0; int frames; DragomeApplicationConfiguration config; DragomeApplication app; - public DragomeGraphics (DragomeApplication app, DragomeApplicationConfiguration config) { - this.app = app; - Element canvasElement = app.elementBySelector.getElementBySelector("canvas"); - canvas = JsDelegateFactory.createFromNode(canvasElement, HTMLCanvasElement.class); - this.config = config; + public DragomeGraphics(DragomeApplication app, DragomeApplicationConfiguration config) + { + this.app= app; + Element canvasElement= app.elementBySelector.getElementBySelector("canvas"); + canvas= JsDelegateFactory.createFromNode(canvasElement, HTMLCanvasElementExtension.class); + this.config= config; } - public boolean init () { + public boolean init() + { ScriptHelper.put("canvas", canvas, this); - WebGLContextAttributes attributes = WebGLFactory.create(); + WebGLContextAttributes attributes= WebGLFactory.create(); attributes.setAntialias(config.antialiasing); attributes.setStencil(config.stencil); attributes.setAlpha(config.alpha); attributes.setPremultipliedAlpha(config.premultipliedAlpha); attributes.setPreserveDrawingBuffer(config.preserveDrawingBuffer); - ScriptHelper.evalNoResult("var names = [ 'experimental-webgl', 'webgl', 'moz-webgl', 'webkit-webgl', 'webkit-3d']", this); - ScriptHelper.evalNoResult("var obj; for ( var i = 0; i < names.length; i++) { try {var ctx = canvas.node.getContext(names[i], attributes); if (ctx != null) { obj = ctx; } } catch (e) { } }", this); - Object instance = ScriptHelper.eval("obj", this); - if (instance == null) return false; - WebGLRenderingContext context = JsDelegateFactory.createFrom(instance, WebGLRenderingContext.class); - if(config.useDebugGL) - gl = new DragomeGL20Debug(context); + + WebGLRenderingContextExtension context= findWebGLContext(); + if (context == null) + return false; + + if (config.useDebugGL) + gl= new DragomeGL20Debug(context); else - gl = new DragomeGL20(context); + gl= new DragomeGL20(context); + return true; } - public void update () { - long currTimeStamp = System.currentTimeMillis(); - deltaTime = (currTimeStamp - lastTimeStamp) / 1000.0f; - lastTimeStamp = currTimeStamp; - time += deltaTime; + private WebGLRenderingContextExtension findWebGLContext() + { + String[] contextNames= new String[] { "moz-webgl", "webgl", "experimental-webgl", "webkit-webgl", "webkit-3d" }; + for (String contextName : contextNames) + { + Object context= canvas.getContext(contextName); + if (context != null) + return (WebGLRenderingContextExtension) context; + } + + return null; + } + + public void update() + { + long currTimeStamp= System.currentTimeMillis(); + deltaTime= (currTimeStamp - lastTimeStamp) / 1000.0f; + lastTimeStamp= currTimeStamp; + time+= deltaTime; frames++; - if (time > 1) { - this.fps = frames; - time = 0; - frames = 0; + if (time > 1) + { + this.fps= frames; + time= 0; + frames= 0; } } @Override - public boolean isGL30Available () { + public boolean isGL30Available() + { return false; } @Override - public GL20 getGL20 () { + public GL20 getGL20() + { return gl; } @Override - public GL30 getGL30 () { + public GL30 getGL30() + { return null; } @Override - public int getWidth () { + public int getWidth() + { return canvas.getWidth(); } @Override - public int getHeight () { + public int getHeight() + { return canvas.getHeight(); } @Override - public int getBackBufferWidth () { + public int getBackBufferWidth() + { return canvas.getWidth(); } @Override - public int getBackBufferHeight () { + public int getBackBufferHeight() + { return canvas.getHeight(); } @Override - public long getFrameId () { + public long getFrameId() + { return frameId; } @Override - public float getDeltaTime () { + public float getDeltaTime() + { return deltaTime; } @Override - public float getRawDeltaTime () { + public float getRawDeltaTime() + { return deltaTime; } @Override - public int getFramesPerSecond () { - return (int)fps; + public int getFramesPerSecond() + { + return (int) fps; } @Override - public GraphicsType getType () { + public GraphicsType getType() + { return GraphicsType.WebGL; } @Override - public float getPpiX () { + public float getPpiX() + { return 96; } @Override - public float getPpiY () { + public float getPpiY() + { return 96; } @Override - public float getPpcX () { + public float getPpcX() + { return 96 / 2.54f; } @Override - public float getPpcY () { + public float getPpcY() + { return 96 / 2.54f; } @Override - public float getDensity () { + public float getDensity() + { return 96.0f / 160; } @Override - public boolean supportsDisplayModeChange () { + public boolean supportsDisplayModeChange() + { return false; } @Override - public Monitor getPrimaryMonitor () { + public Monitor getPrimaryMonitor() + { return null; } @Override - public Monitor getMonitor () { + public Monitor getMonitor() + { return null; } @Override - public Monitor[] getMonitors () { + public Monitor[] getMonitors() + { return null; } @Override - public DisplayMode[] getDisplayModes () { + public DisplayMode[] getDisplayModes() + { return null; } @Override - public DisplayMode[] getDisplayModes (Monitor monitor) { + public DisplayMode[] getDisplayModes(Monitor monitor) + { return null; } @Override - public DisplayMode getDisplayMode () { + public DisplayMode getDisplayMode() + { return null; } @Override - public DisplayMode getDisplayMode (Monitor monitor) { + public DisplayMode getDisplayMode(Monitor monitor) + { return null; } @Override - public boolean setFullscreenMode (DisplayMode displayMode) { + public boolean setFullscreenMode(DisplayMode displayMode) + { return false; } @Override - public boolean setWindowedMode (int width, int height) { + public boolean setWindowedMode(int width, int height) + { return false; } @Override - public void setTitle (String title) { + public void setTitle(String title) + { } @Override - public void setVSync (boolean vsync) { + public void setVSync(boolean vsync) + { } @Override - public BufferFormat getBufferFormat () { + public BufferFormat getBufferFormat() + { return new BufferFormat(8, 8, 8, 0, 16, config.stencil ? 8 : 0, 0, false); } @Override - public boolean supportsExtension (String extension) { - if (extensions == null) extensions = Gdx.gl.glGetString(GL20.GL_EXTENSIONS); + public boolean supportsExtension(String extension) + { + if (extensions == null) + extensions= Gdx.gl.glGetString(GL20.GL_EXTENSIONS); return extensions.contains(extension); } @Override - public void setContinuousRendering (boolean isContinuous) { + public void setContinuousRendering(boolean isContinuous) + { } @Override - public boolean isContinuousRendering () { + public boolean isContinuousRendering() + { return true; } @Override - public void requestRendering () { + public void requestRendering() + { } @Override - public boolean isFullscreen () { + public boolean isFullscreen() + { return false; } @Override - public Cursor newCursor (Pixmap pixmap, int xHotspot, int yHotspot) { + public Cursor newCursor(Pixmap pixmap, int xHotspot, int yHotspot) + { return null; } @Override - public void setCursor (Cursor cursor) { + public void setCursor(Cursor cursor) + { } @Override - public void setSystemCursor (SystemCursor systemCursor) { + public void setSystemCursor(SystemCursor systemCursor) + { } } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFactory.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFactory.java index ef378baa..e9ccaaab 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFactory.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/webgl/WebGLFactory.java @@ -1,5 +1,7 @@ package com.badlogic.gdx.backends.dragome.js.webgl; +import org.w3c.dom.webgl.WebGLContextAttributes; + import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java index e855abf3..d64093fe 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java @@ -17,6 +17,7 @@ package com.badlogic.gdx.backends.dragome.preloader; import org.w3c.dom.events.Event; +import org.w3c.dom.html.HTMLImageElement; import org.w3c.dom.typedarray.Int8Array; import com.badlogic.gdx.backends.dragome.TypedArraysFactory; @@ -28,7 +29,7 @@ import com.dragome.commons.compiler.annotations.MethodAlias; import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; -import com.dragome.web.html.dom.html5canvas.interfaces.ImageElement; +import com.dragome.web.html.dom.w3c.HTMLImageElementExtension; /** Adapted from gwt backend * @author xpenatan */ @@ -70,7 +71,7 @@ public void load (String url, AssetType type, String mimeType, AssetLoaderListen loadText(url, (AssetLoaderListener)listener); break; case Image: - loadImage(url, mimeType, (AssetLoaderListener)listener); + loadImage(url, mimeType, (AssetLoaderListener)listener); break; case Binary: loadBinary(url, (AssetLoaderListener)listener); @@ -156,12 +157,12 @@ public void onSuccess (Blob result) { } } - public void loadImage (final String url, final String mimeType, final AssetLoaderListener listener) { + public void loadImage (final String url, final String mimeType, final AssetLoaderListener listener) { loadImage(url, mimeType, null, listener); } public void loadImage (final String url, final String mimeType, final String crossOrigin, - final AssetLoaderListener listener) { + final AssetLoaderListener listener) { if (useBrowserCache || useInlineBase64) { loadBinary(url, new AssetLoaderListener() { @Override @@ -176,7 +177,7 @@ public void onFailure () { @Override public void onSuccess (Blob result) { - final ImageElement image = createImage(); + final HTMLImageElementExtension image = createImage(); if (crossOrigin != null) { image.setAttribute("crossOrigin", crossOrigin); @@ -199,7 +200,7 @@ public void onEvent (Event event) { }); } else { - final ImageElement image = createImage(); + final HTMLImageElementExtension image = createImage(); if (crossOrigin != null) { image.setAttribute("crossOrigin", crossOrigin); } @@ -221,7 +222,7 @@ private static interface ImgEventListener { public void onEvent (Event event); } - static void hookImgListener (ImageElement img, ImgEventListener h) { + static void hookImgListener (HTMLImageElementExtension img, ImgEventListener h) { ScriptHelper.put("img", img, null); ScriptHelper.put("h", h, null); @@ -235,9 +236,9 @@ private static void myEvent (ImgEventListener h, Object instance) { h.onEvent(event); } - static ImageElement createImage () { + static HTMLImageElementExtension createImage () { Object instance = ScriptHelper.eval("new Image()", null); - ImageElement img = JsDelegateFactory.createFrom(instance, ImageElement.class); + HTMLImageElementExtension img = JsDelegateFactory.createFrom(instance, HTMLImageElementExtension.class); return img; } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Preloader.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Preloader.java index 99de8b7f..06f64f03 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Preloader.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/Preloader.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -23,21 +23,21 @@ import java.io.InputStream; import java.io.UnsupportedEncodingException; +import com.badlogic.gdx.Files.FileType; import com.badlogic.gdx.backends.dragome.DragomeFileHandle; import com.badlogic.gdx.backends.dragome.preloader.AssetDownloader.AssetLoaderListener; import com.badlogic.gdx.backends.dragome.preloader.AssetFilter.AssetType; -import com.badlogic.gdx.Files.FileType; import com.badlogic.gdx.files.FileHandle; import com.badlogic.gdx.utils.Array; import com.badlogic.gdx.utils.GdxRuntimeException; import com.badlogic.gdx.utils.ObjectMap; -import com.dragome.web.html.dom.html5canvas.interfaces.ImageElement; +import com.dragome.web.html.dom.w3c.HTMLImageElementExtension; /** Adapted from gwt backend * @author xpenatan */ public class Preloader { public ObjectMap directories = new ObjectMap(); - public ObjectMap images = new ObjectMap(); + public ObjectMap images = new ObjectMap(); public ObjectMap audio = new ObjectMap(); public ObjectMap texts = new ObjectMap(); public ObjectMap binaries = new ObjectMap(); @@ -150,7 +150,7 @@ public void onSuccess (Object result) { texts.put(url, (String)result); break; case Image: - images.put(url, (ImageElement)result); + images.put(url, (HTMLImageElementExtension)result); break; case Binary: binaries.put(url, (Blob)result); diff --git a/tests/gdx-tests-dragome/pom.xml b/tests/gdx-tests-dragome/pom.xml index 1f6494fa..bbcab450 100644 --- a/tests/gdx-tests-dragome/pom.xml +++ b/tests/gdx-tests-dragome/pom.xml @@ -60,6 +60,11 @@ gdx-backend-dragome 0.0.1-SNAPSHOT + + com.dragome + dragome-w3c-standards + 0.96-beta3-SNAPSHOT + diff --git a/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/AnimationLauncher.java b/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/AnimationLauncher.java index fb70294d..881001f0 100644 --- a/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/AnimationLauncher.java +++ b/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/AnimationLauncher.java @@ -12,26 +12,27 @@ public class AnimationLauncher extends DragomeApplication { @Override - public ApplicationListener createApplicationListener() { + public ApplicationListener createApplicationListener() + { return new AnimationTest(); } @Override - public DragomeApplicationConfiguration getConfig() { + public DragomeApplicationConfiguration getConfig() + { return null; } - @Override - protected void onResize() { - - int clientWidth = DragomeWindow.getInnerWidth(); - int clientHeight = DragomeWindow.getInnerHeight(); + protected void onResize() + { + int clientWidth= DragomeWindow.getInnerWidth(); + int clientHeight= DragomeWindow.getInnerHeight(); getCanvas().setWidth(clientWidth); getCanvas().setHeight(clientHeight); getCanvas().setCoordinateSpaceWidth(clientWidth); getCanvas().setCoordinateSpaceHeight(clientHeight); - + super.onResize(); } } diff --git a/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/GearsLauncher.java b/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/GearsLauncher.java index 90304191..09b385f7 100644 --- a/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/GearsLauncher.java +++ b/tests/gdx-tests-dragome/src/com/badlogic/gdx/tests/dragome/GearsLauncher.java @@ -11,26 +11,28 @@ public class GearsLauncher extends DragomeApplication { @Override - public ApplicationListener createApplicationListener() { - return new GearsDemo(); + public ApplicationListener createApplicationListener() + { + return new GearsDemo(); } @Override - public DragomeApplicationConfiguration getConfig() { + public DragomeApplicationConfiguration getConfig() + { return null; } - @Override - protected void onResize() { - - int clientWidth = DragomeWindow.getInnerWidth(); - int clientHeight = DragomeWindow.getInnerHeight(); + protected void onResize() + { + + int clientWidth= DragomeWindow.getInnerWidth(); + int clientHeight= DragomeWindow.getInnerHeight(); getCanvas().setWidth(clientWidth); getCanvas().setHeight(clientHeight); getCanvas().setCoordinateSpaceWidth(clientWidth); getCanvas().setCoordinateSpaceHeight(clientHeight); - + super.onResize(); } } From 8d1997066c48314a73c3683c622b2c2c567dadf6 Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Tue, 22 Mar 2016 02:49:58 -0300 Subject: [PATCH 07/10] before jre removing --- .../gdx-backend-dragome/emu/java/io/InputStreamReader.java | 2 -- .../{com/badlogic/gdx/utils => java/io}/Utf8Decoder.java | 2 +- .../gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java | 4 ++-- .../gdx/backends/dragome/DragomeConfiguration.java | 4 ++-- .../badlogic/gdx/backends/dragome/js/storage/Storage.java | 7 ++++--- 5 files changed, 9 insertions(+), 10 deletions(-) rename backends/gdx-backend-dragome/emu/{com/badlogic/gdx/utils => java/io}/Utf8Decoder.java (99%) diff --git a/backends/gdx-backend-dragome/emu/java/io/InputStreamReader.java b/backends/gdx-backend-dragome/emu/java/io/InputStreamReader.java index 841a2c7d..39e71e6d 100644 --- a/backends/gdx-backend-dragome/emu/java/io/InputStreamReader.java +++ b/backends/gdx-backend-dragome/emu/java/io/InputStreamReader.java @@ -10,8 +10,6 @@ package java.io; -import com.badlogic.gdx.utils.Utf8Decoder; - public class InputStreamReader extends Reader { private final InputStream in; diff --git a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/utils/Utf8Decoder.java b/backends/gdx-backend-dragome/emu/java/io/Utf8Decoder.java similarity index 99% rename from backends/gdx-backend-dragome/emu/com/badlogic/gdx/utils/Utf8Decoder.java rename to backends/gdx-backend-dragome/emu/java/io/Utf8Decoder.java index 86217721..fffbe7fc 100644 --- a/backends/gdx-backend-dragome/emu/com/badlogic/gdx/utils/Utf8Decoder.java +++ b/backends/gdx-backend-dragome/emu/java/io/Utf8Decoder.java @@ -36,7 +36,7 @@ * IN THE SOFTWARE. ******************************************************************************/ -package com.badlogic.gdx.utils; +package java.io; /** Utf8Decoder converts UTF-8 encoded bytes into characters properly handling buffer boundaries. * diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java index 15012fdd..0b36e137 100644 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java +++ b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java @@ -24,8 +24,8 @@ import org.w3c.dom.typedarray.Int8Array; import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.js.storage.Storage; import com.badlogic.gdx.backends.dragome.utils.Endianness; +import com.dragome.web.html.dom.w3c.ArrayBufferFactory; /** DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyHeapByteBuffer compose the implementation of direct byte buffers. *

@@ -41,7 +41,7 @@ abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBuffer DirectByteBuffer(int capacity) { - this(Storage.createArrayBuffer(capacity), capacity, 0); + this(ArrayBufferFactory.createArrayBuffer(capacity), capacity, 0); } DirectByteBuffer(ArrayBuffer buf) diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java index 09062bfb..3c365cb4 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java @@ -54,7 +54,6 @@ import org.w3c.dom.webgl.WebGLTexture; import org.w3c.dom.webgl.WebGLUniformLocation; -import com.badlogic.gdx.backends.dragome.js.storage.Storage; import com.dragome.commons.ChainedInstrumentationDragomeConfigurator; import com.dragome.commons.DragomeConfiguratorImplementor; import com.dragome.commons.compiler.ClasspathFile; @@ -63,6 +62,7 @@ import com.dragome.web.config.DomHandlerDelegateStrategy; import com.dragome.web.enhancers.jsdelegate.JsDelegateGenerator; import com.dragome.web.helpers.serverside.DefaultClasspathFilter; +import com.dragome.web.html.dom.w3c.ArrayBufferFactory; import com.dragome.web.html.dom.w3c.HTMLCanvasElementExtension; import com.dragome.web.html.dom.w3c.HTMLImageElementExtension; import com.dragome.web.html.dom.w3c.WebGLRenderingContextExtension; @@ -195,7 +195,7 @@ public List getExtraClasspath(String classpath) add(Uint32Array.class); add(Uint8Array.class); - add(Storage.class); + add(ArrayBufferFactory.class); add(TypedArraysFactory.class); return extraClasspathFiles; diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java index 16a8c931..a293b5cc 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java @@ -21,6 +21,7 @@ import com.dragome.commons.DelegateCode; import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; +import com.dragome.web.html.dom.w3c.ArrayBufferFactory; /** https://www.w3.org/TR/webstorage/#storage-0 * @author xpenatan */ @@ -28,11 +29,11 @@ public interface Storage { static final boolean localStorageSupported = checkStorageSupport("localStorage"); static final boolean sessionStorageSupported = checkStorageSupport("sessionStorage"); - public static Storage getLocalStorageIfSupported () { - Storage storage = null; + public static ArrayBufferFactory getLocalStorageIfSupported () { + ArrayBufferFactory storage = null; if (localStorageSupported || sessionStorageSupported) { Object instance = ScriptHelper.eval("window.localStorage", null); - storage = JsDelegateFactory.createFrom(instance, Storage.class); + storage = JsDelegateFactory.createFrom(instance, ArrayBufferFactory.class); } return storage; } From 78c673eeb03abc4531cbea90b570b4ca6de5ccf5 Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Tue, 22 Mar 2016 03:03:37 -0300 Subject: [PATCH 08/10] removing already moved jre classes --- .../emu/java/io/BufferedInputStream.java | 27 - .../emu/java/io/BufferedReader.java | 108 --- .../emu/java/io/BufferedWriter.java | 53 -- .../emu/java/io/ByteArrayInputStream.java | 92 -- .../emu/java/io/ByteArrayOutputStream.java | 60 -- .../emu/java/io/Closeable.java | 29 - .../emu/java/io/DataInput.java | 49 - .../emu/java/io/DataInputStream.java | 157 ---- .../emu/java/io/DataOutput.java | 47 - .../emu/java/io/DataOutputStream.java | 100 --- .../emu/java/io/EOFException.java | 21 - .../emu/java/io/FileFilter.java | 7 - .../emu/java/io/FileNotFoundException.java | 28 - .../emu/java/io/FileWriter.java | 46 - .../emu/java/io/FilenameFilter.java | 22 - .../emu/java/io/FilterInputStream.java | 59 -- .../emu/java/io/Flushable.java | 26 - .../emu/java/io/HasArrayBufferView.java | 26 - .../emu/java/io/IOException.java | 28 - .../emu/java/io/InputStream.java | 46 - .../emu/java/io/InputStreamReader.java | 41 - .../emu/java/io/Numbers.java | 60 -- .../emu/java/io/OutputStream.java | 40 - .../emu/java/io/Reader.java | 195 ---- .../emu/java/io/StringReader.java | 35 - .../emu/java/io/StringWriter.java | 37 - .../emu/java/io/UTFDataFormatException.java | 28 - .../java/io/UnsupportedEncodingException.java | 27 - .../emu/java/io/Utf8Decoder.java | 143 --- .../emu/java/io/Writer.java | 173 ---- .../emu/java/net/URLEncoder.java | 134 --- .../emu/java/nio/BaseByteBuffer.java | 71 -- .../emu/java/nio/Buffer.java | 232 ----- .../emu/java/nio/BufferFactory.java | 155 ---- .../emu/java/nio/BufferOverflowException.java | 33 - .../java/nio/BufferUnderflowException.java | 33 - .../emu/java/nio/ByteBuffer.java | 836 ------------------ .../emu/java/nio/ByteBufferWrapper.java | 21 - .../emu/java/nio/ByteOrder.java | 69 -- .../emu/java/nio/CharArrayBuffer.java | 96 -- .../emu/java/nio/CharBuffer.java | 622 ------------- .../emu/java/nio/CharSequenceAdapter.java | 149 ---- .../emu/java/nio/CharToByteBufferAdapter.java | 211 ----- .../emu/java/nio/DirectByteBuffer.java | 307 ------- .../java/nio/DirectReadOnlyByteBuffer.java | 147 --- .../nio/DirectReadOnlyFloatBufferAdapter.java | 146 --- .../nio/DirectReadOnlyIntBufferAdapter.java | 146 --- .../nio/DirectReadOnlyShortBufferAdapter.java | 145 --- .../java/nio/DirectReadWriteByteBuffer.java | 221 ----- .../DirectReadWriteFloatBufferAdapter.java | 163 ---- .../nio/DirectReadWriteIntBufferAdapter.java | 161 ---- .../DirectReadWriteShortBufferAdapter.java | 182 ---- .../emu/java/nio/DoubleArrayBuffer.java | 83 -- .../emu/java/nio/DoubleBuffer.java | 435 --------- .../java/nio/DoubleToByteBufferAdapter.java | 201 ----- .../emu/java/nio/FloatArrayBuffer.java | 83 -- .../emu/java/nio/FloatBuffer.java | 434 --------- .../java/nio/FloatToByteBufferAdapter.java | 201 ----- .../emu/java/nio/HasArrayBufferView.java | 26 - .../emu/java/nio/HeapByteBuffer.java | 247 ------ .../emu/java/nio/IntArrayBuffer.java | 82 -- .../emu/java/nio/IntBuffer.java | 427 --------- .../emu/java/nio/IntToByteBufferAdapter.java | 205 ----- .../emu/java/nio/InvalidMarkException.java | 32 - .../emu/java/nio/LongArrayBuffer.java | 82 -- .../emu/java/nio/LongBuffer.java | 431 --------- .../emu/java/nio/LongToByteBufferAdapter.java | 200 ----- .../emu/java/nio/ReadOnlyBufferException.java | 32 - .../emu/java/nio/ReadOnlyCharArrayBuffer.java | 95 -- .../java/nio/ReadOnlyDoubleArrayBuffer.java | 90 -- .../java/nio/ReadOnlyFloatArrayBuffer.java | 90 -- .../emu/java/nio/ReadOnlyHeapByteBuffer.java | 131 --- .../emu/java/nio/ReadOnlyIntArrayBuffer.java | 89 -- .../emu/java/nio/ReadOnlyLongArrayBuffer.java | 89 -- .../java/nio/ReadOnlyShortArrayBuffer.java | 90 -- .../java/nio/ReadWriteCharArrayBuffer.java | 114 --- .../java/nio/ReadWriteDoubleArrayBuffer.java | 115 --- .../java/nio/ReadWriteFloatArrayBuffer.java | 118 --- .../emu/java/nio/ReadWriteHeapByteBuffer.java | 196 ---- .../emu/java/nio/ReadWriteIntArrayBuffer.java | 114 --- .../java/nio/ReadWriteLongArrayBuffer.java | 114 --- .../java/nio/ReadWriteShortArrayBuffer.java | 115 --- .../emu/java/nio/ShortArrayBuffer.java | 83 -- .../emu/java/nio/ShortBuffer.java | 427 --------- .../java/nio/ShortToByteBufferAdapter.java | 205 ----- .../emu/java/nio/StringByteBuffer.java | 218 ----- .../emu/java/util/Locale.java | 639 ------------- .../emu/java/util/StringTokenizer.java | 225 ----- .../backends/dragome/TypedArraysFactory.java | 30 - .../backends/dragome/utils/Endianness.java | 21 - .../dragome/utils/StringToByteBuffer.java | 25 - 91 files changed, 12724 deletions(-) delete mode 100644 backends/gdx-backend-dragome/emu/java/io/BufferedInputStream.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/BufferedReader.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/BufferedWriter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/ByteArrayInputStream.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/ByteArrayOutputStream.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/Closeable.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/DataInput.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/DataInputStream.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/DataOutput.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/DataOutputStream.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/EOFException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/FileFilter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/FileNotFoundException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/FileWriter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/FilenameFilter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/FilterInputStream.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/Flushable.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/HasArrayBufferView.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/IOException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/InputStream.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/InputStreamReader.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/Numbers.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/OutputStream.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/Reader.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/StringReader.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/StringWriter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/UTFDataFormatException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/UnsupportedEncodingException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/Utf8Decoder.java delete mode 100644 backends/gdx-backend-dragome/emu/java/io/Writer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/net/URLEncoder.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/BaseByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/Buffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/BufferFactory.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/BufferOverflowException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/BufferUnderflowException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ByteBufferWrapper.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ByteOrder.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/CharArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/CharBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/CharSequenceAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/CharToByteBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DoubleArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DoubleBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/DoubleToByteBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/FloatArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/FloatBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/FloatToByteBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/HasArrayBufferView.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/HeapByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/IntArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/IntBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/IntToByteBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/InvalidMarkException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/LongArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/LongBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/LongToByteBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadOnlyBufferException.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadOnlyCharArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadOnlyDoubleArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadOnlyFloatArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadOnlyHeapByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadOnlyIntArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadOnlyLongArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadOnlyShortArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadWriteCharArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadWriteDoubleArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadWriteFloatArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadWriteHeapByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadWriteIntArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadWriteLongArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ReadWriteShortArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ShortArrayBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ShortBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/ShortToByteBufferAdapter.java delete mode 100644 backends/gdx-backend-dragome/emu/java/nio/StringByteBuffer.java delete mode 100644 backends/gdx-backend-dragome/emu/java/util/Locale.java delete mode 100644 backends/gdx-backend-dragome/emu/java/util/StringTokenizer.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/utils/Endianness.java delete mode 100644 backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/utils/StringToByteBuffer.java diff --git a/backends/gdx-backend-dragome/emu/java/io/BufferedInputStream.java b/backends/gdx-backend-dragome/emu/java/io/BufferedInputStream.java deleted file mode 100644 index e96157d3..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/BufferedInputStream.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2011 See AUTHORS file. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package java.io; - -public class BufferedInputStream extends FilterInputStream { - public BufferedInputStream (InputStream in) { - super(in); - } - - public BufferedInputStream (InputStream in, int size) { - super(in); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/BufferedReader.java b/backends/gdx-backend-dragome/emu/java/io/BufferedReader.java deleted file mode 100644 index b1294841..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/BufferedReader.java +++ /dev/null @@ -1,108 +0,0 @@ -/* Copyright (c) 2008, Avian Contributors - - Permission to use, copy, modify, and/or distribute this software - for any purpose with or without fee is hereby granted, provided - that the above copyright notice and this permission notice appear - in all copies. - - There is NO WARRANTY for this software. See license.txt for - details. */ - -package java.io; - -public class BufferedReader extends Reader { - private final Reader in; - private final char[] buffer; - private int position; - private int limit; - - public BufferedReader (Reader in, int bufferSize) { - this.in = in; - this.buffer = new char[bufferSize]; - } - - public BufferedReader (Reader in) { - this(in, 8192); - } - - private void fill () throws IOException { - position = 0; - limit = in.read(buffer); - } - - public String readLine () throws IOException { - StringBuilder sb = new StringBuilder(); - while (true) { - if (position >= limit) { - fill(); - } - - if (position >= limit) { - return sb.length() == 0 ? null : sb.toString(); - } - - for (int i = position; i < limit; ++i) { - if (buffer[i] == '\r') { - sb.append(buffer, position, i - position); - position = i + 1; - if (i + 1 < limit) { - if (buffer[i + 1] == '\n') { - position = i + 2; - } - } else { - fill(); - if (buffer[position] == '\n') { - position += 1; - } - } - return sb.toString(); - } else if (buffer[i] == '\n') { - sb.append(buffer, position, i - position); - position = i + 1; - return sb.toString(); - } - } - sb.append(buffer, position, limit - position); - position = limit; - } - } - - public int read (char[] b, int offset, int length) throws IOException { - int count = 0; - - if (position >= limit && length < buffer.length) { - fill(); - } - - if (position < limit) { - int remaining = limit - position; - if (remaining > length) { - remaining = length; - } - - System.arraycopy(buffer, position, b, offset, remaining); - - count += remaining; - position += remaining; - offset += remaining; - length -= remaining; - } - - if (length > 0) { - int c = in.read(b, offset, length); - if (c == -1) { - if (count == 0) { - count = -1; - } - } else { - count += c; - } - } - - return count; - } - - public void close () throws IOException { - in.close(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/BufferedWriter.java b/backends/gdx-backend-dragome/emu/java/io/BufferedWriter.java deleted file mode 100644 index 2aeed0c6..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/BufferedWriter.java +++ /dev/null @@ -1,53 +0,0 @@ -/* Copyright (c) 2008, Avian Contributors - - Permission to use, copy, modify, and/or distribute this software - for any purpose with or without fee is hereby granted, provided - that the above copyright notice and this permission notice appear - in all copies. - - There is NO WARRANTY for this software. See license.txt for - details. */ - -package java.io; - -public class BufferedWriter extends Writer { - private final Writer out; - private final char[] buffer; - private int position; - - public BufferedWriter (Writer out, int size) { - this.out = out; - this.buffer = new char[size]; - } - - public BufferedWriter (Writer out) { - this(out, 4096); - } - - private void drain () throws IOException { - if (position > 0) { - out.write(buffer, 0, position); - position = 0; - } - } - - public void write (char[] b, int offset, int length) throws IOException { - if (length > buffer.length - position) { - drain(); - out.write(b, offset, length); - } else { - System.arraycopy(b, offset, buffer, position, length); - position += length; - } - } - - public void flush () throws IOException { - drain(); - out.flush(); - } - - public void close () throws IOException { - flush(); - out.close(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/ByteArrayInputStream.java b/backends/gdx-backend-dragome/emu/java/io/ByteArrayInputStream.java deleted file mode 100644 index ca8fccfb..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/ByteArrayInputStream.java +++ /dev/null @@ -1,92 +0,0 @@ -/******************************************************************************* - * Copyright 2011 See AUTHORS file. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ -package java.io; - -public class ByteArrayInputStream extends InputStream { - byte buf[]; - int pos; - int count; - int mark = 0; - - public ByteArrayInputStream(byte buf[]) { - this.buf = buf; - this.pos = 0; - this.count = buf.length; - } - - public ByteArrayInputStream(byte buf[], int offset, int length) { - this.buf = buf; - this.pos = offset; - this.count = Math.min(offset + length, buf.length); - this.mark = offset; - } - - public synchronized int read() { - return (pos < count) ? (buf[pos++] & 0xff) : -1; - } - - public synchronized int read(byte b[], int off, int len) { - if (b == null) { - throw new NullPointerException(); - } else if (off < 0 || len < 0 || len > b.length - off) { - throw new IndexOutOfBoundsException(); - } - - if (pos >= count) { - return -1; - } - - int avail = count - pos; - if (len > avail) { - len = avail; - } - if (len <= 0) { - return 0; - } - System.arraycopy(buf, pos, b, off, len); - pos += len; - return len; - } - - public synchronized long skip(long n) { - long k = count - pos; - if (n < k) { - k = n < 0 ? 0 : n; - } - - pos += k; - return k; - } - - public synchronized int available() { - return count - pos; - } - - public boolean markSupported() { - return true; - } - - public void mark(int readAheadLimit) { - mark = pos; - } - - public synchronized void reset() { - pos = mark; - } - - public void close() throws IOException { - } -} \ No newline at end of file diff --git a/backends/gdx-backend-dragome/emu/java/io/ByteArrayOutputStream.java b/backends/gdx-backend-dragome/emu/java/io/ByteArrayOutputStream.java deleted file mode 100644 index 9153674d..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/ByteArrayOutputStream.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public class ByteArrayOutputStream extends OutputStream { - - protected int count; - protected byte[] buf; - - public ByteArrayOutputStream () { - this(16); - } - - public ByteArrayOutputStream (int initialSize) { - buf = new byte[initialSize]; - } - - @Override - public void write (int b) { - if (buf.length == count) { - byte[] newBuf = new byte[buf.length * 3 / 2]; - System.arraycopy(buf, 0, newBuf, 0, count); - buf = newBuf; - } - - buf[count++] = (byte)b; - } - - public byte[] toByteArray () { - byte[] result = new byte[count]; - System.arraycopy(buf, 0, result, 0, count); - return result; - } - - public int size () { - return count; - } - - public String toString () { - return new String(buf, 0, count); - } - - public String toString (String enc) throws UnsupportedEncodingException { - return new String(buf, 0, count, enc); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/Closeable.java b/backends/gdx-backend-dragome/emu/java/io/Closeable.java deleted file mode 100644 index e752c4e8..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/Closeable.java +++ /dev/null @@ -1,29 +0,0 @@ -/** Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.io; - -/*** Defines an interface for classes that can (or need to) be closed once they are not used any longer. This usually includes all - * sorts of {@link InputStream}s and {@link OutputStream}s. Calling the {@code close} method releases resources that the object - * holds. */ -public interface Closeable { - - /*** Closes the object and release any system resources it holds. If the object has already been closed, then invoking this - * method has no effect. - * - * @throws IOException if any error occurs when closing the object. */ - public void close () throws IOException; -} diff --git a/backends/gdx-backend-dragome/emu/java/io/DataInput.java b/backends/gdx-backend-dragome/emu/java/io/DataInput.java deleted file mode 100644 index 29f3b7c3..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/DataInput.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public interface DataInput { - public boolean readBoolean () throws IOException; - - public byte readByte () throws IOException; - - public char readChar () throws IOException; - - public double readDouble () throws IOException; - - public float readFloat () throws IOException; - - public void readFully (byte[] b) throws IOException; - - public void readFully (byte[] b, int off, int len) throws IOException; - - public int readInt () throws IOException; - - public String readLine () throws IOException; - - public long readLong () throws IOException; - - public short readShort () throws IOException; - - public String readUTF () throws IOException; - - public int readUnsignedByte () throws IOException; - - public int readUnsignedShort () throws IOException; - - public int skipBytes (int n) throws IOException; -} diff --git a/backends/gdx-backend-dragome/emu/java/io/DataInputStream.java b/backends/gdx-backend-dragome/emu/java/io/DataInputStream.java deleted file mode 100644 index 33be0a00..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/DataInputStream.java +++ /dev/null @@ -1,157 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - - -public class DataInputStream extends InputStream implements DataInput { - - private final InputStream is; - - public DataInputStream (final InputStream is) { - this.is = is; - } - - @Override - public int read () throws IOException { - return is.read(); - } - - public boolean readBoolean () throws IOException { - return readByte() != 0; - } - - public byte readByte () throws IOException { - int i = read(); - if (i == -1) { - throw new EOFException(); - } - return (byte)i; - } - - public char readChar () throws IOException { - int a = is.read(); - int b = readUnsignedByte(); - return (char)((a << 8) | b); - } - - public double readDouble () throws IOException { - return Double.longBitsToDouble(readLong()); - } - - public float readFloat () throws IOException { - return Numbers.intBitsToFloat(readInt()); - } - - public void readFully (byte[] b) throws IOException { - readFully(b, 0, b.length); - } - - public void readFully (byte[] b, int off, int len) throws IOException { - while (len > 0) { - int count = is.read(b, off, len); - if (count <= 0) { - throw new EOFException(); - } - off += count; - len -= count; - } - } - - public int readInt () throws IOException { - int a = is.read(); - int b = is.read(); - int c = is.read(); - int d = readUnsignedByte(); - return (a << 24) | (b << 16) | (c << 8) | d; - } - - public String readLine () throws IOException { - throw new RuntimeException("readline NYI"); - } - - public long readLong () throws IOException { - long a = readInt(); - long b = readInt() & 0x0ffffffff; - return (a << 32) | b; - } - - public short readShort () throws IOException { - int a = is.read(); - int b = readUnsignedByte(); - return (short)((a << 8) | b); - } - - public String readUTF () throws IOException { - int bytes = readUnsignedShort(); - StringBuilder sb = new StringBuilder(); - - while (bytes > 0) { - bytes -= readUtfChar(sb); - } - - return sb.toString(); - } - - private int readUtfChar (StringBuilder sb) throws IOException { - int a = readUnsignedByte(); - if ((a & 0x80) == 0) { - sb.append((char)a); - return 1; - } - if ((a & 0xe0) == 0xc0) { - int b = readUnsignedByte(); - sb.append((char)(((a & 0x1F) << 6) | (b & 0x3F))); - return 2; - } - if ((a & 0xf0) == 0xe0) { - int b = readUnsignedByte(); - int c = readUnsignedByte(); - sb.append((char)(((a & 0x0F) << 12) | ((b & 0x3F) << 6) | (c & 0x3F))); - return 3; - } - throw new UTFDataFormatException(); - } - - public int readUnsignedByte () throws IOException { - int i = read(); - if (i == -1) { - throw new EOFException(); - } - return i; - } - - public int readUnsignedShort () throws IOException { - int a = is.read(); - int b = readUnsignedByte(); - return ((a << 8) | b); - } - - public int skipBytes (int n) throws IOException { - // note: This is actually a valid implementation of this method, rendering it quite useless... - return 0; - } - - @Override - public int available () { - return is.available(); - } - - @Override - public void close () throws IOException { - is.close(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/DataOutput.java b/backends/gdx-backend-dragome/emu/java/io/DataOutput.java deleted file mode 100644 index 16b58d3d..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/DataOutput.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public interface DataOutput { - public void write (byte[] data) throws IOException; - - public void write (byte[] data, int ofs, int len) throws IOException; - - public void write (int v) throws IOException; - - public void writeBoolean (boolean v) throws IOException; - - public void writeByte (int v) throws IOException; - - public void writeBytes (String s) throws IOException; - - public void writeChar (int v) throws IOException; - - public void writeChars (String s) throws IOException; - - public void writeDouble (double v) throws IOException; - - public void writeFloat (float v) throws IOException; - - public void writeInt (int v) throws IOException; - - public void writeLong (long v) throws IOException; - - public void writeShort (int v) throws IOException; - - public void writeUTF (String s) throws IOException; -} diff --git a/backends/gdx-backend-dragome/emu/java/io/DataOutputStream.java b/backends/gdx-backend-dragome/emu/java/io/DataOutputStream.java deleted file mode 100644 index e5a590ce..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/DataOutputStream.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - - -public class DataOutputStream extends OutputStream implements DataOutput { - - OutputStream os; - - public DataOutputStream (OutputStream os) { - this.os = os; - } - - @Override - public void write (int b) throws IOException { - os.write(b); - } - - public void writeBoolean (boolean v) throws IOException { - os.write(v ? 1 : 0); - } - - public void writeByte (int v) throws IOException { - os.write(v); - } - - public void writeBytes (String s) throws IOException { - int len = s.length(); - for (int i = 0; i < len; i++) { - os.write(s.charAt(i) & 0xff); - } - } - - public void writeChar (int v) throws IOException { - os.write(v >> 8); - os.write(v); - } - - public void writeChars (String s) throws IOException { - throw new RuntimeException("writeChars NYI"); - } - - public void writeDouble (double v) throws IOException { - writeLong(Double.doubleToLongBits(v)); - } - - public void writeFloat (float v) throws IOException { - writeInt(Numbers.floatToIntBits(v)); - } - - public void writeInt (int v) throws IOException { - os.write(v >> 24); - os.write(v >> 16); - os.write(v >> 8); - os.write(v); - } - - public void writeLong (long v) throws IOException { - writeInt((int)(v >> 32L)); - writeInt((int)v); - } - - public void writeShort (int v) throws IOException { - os.write(v >> 8); - os.write(v); - } - - public void writeUTF (String s) throws IOException { - ByteArrayOutputStream baos = new ByteArrayOutputStream(); - for (int i = 0; i < s.length(); i++) { - char c = s.charAt(i); - if (c > 0 && c < 80) { - baos.write(c); - } else if (c < '\u0800') { - baos.write(0xc0 | (0x1f & (c >> 6))); - baos.write(0x80 | (0x3f & c)); - } else { - baos.write(0xe0 | (0x0f & (c >> 12))); - baos.write(0x80 | (0x3f & (c >> 6))); - baos.write(0x80 | (0x3f & c)); - } - } - writeShort(baos.count); - os.write(baos.buf, 0, baos.count); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/EOFException.java b/backends/gdx-backend-dragome/emu/java/io/EOFException.java deleted file mode 100644 index 0aaa32db..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/EOFException.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public class EOFException extends IOException { - -} diff --git a/backends/gdx-backend-dragome/emu/java/io/FileFilter.java b/backends/gdx-backend-dragome/emu/java/io/FileFilter.java deleted file mode 100644 index c2599b51..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/FileFilter.java +++ /dev/null @@ -1,7 +0,0 @@ -package java.io; - -public interface FileFilter { - - boolean accept (File file); - -} diff --git a/backends/gdx-backend-dragome/emu/java/io/FileNotFoundException.java b/backends/gdx-backend-dragome/emu/java/io/FileNotFoundException.java deleted file mode 100644 index daf34606..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/FileNotFoundException.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public class FileNotFoundException extends IOException { - - public FileNotFoundException () { - super(); - } - - public FileNotFoundException (String s) { - super(s); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/FileWriter.java b/backends/gdx-backend-dragome/emu/java/io/FileWriter.java deleted file mode 100644 index 1d7cfd78..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/FileWriter.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public class FileWriter { - - private final RandomAccessFile file; - - public FileWriter (String name) throws FileNotFoundException { - this.file = new RandomAccessFile(new File(name), "rw"); - } - - public void close () throws IOException { - file.close(); - } - - public void flush () throws IOException { -// file.flush(); // TODO need to imp - } - - public void write (String s) throws IOException { - for (int i = 0; i < s.length(); i++) { - file.write(s.charAt(i)); - } - } - -// public void write(char[] cbuf, int off, int len) throws IOException { -// // TODO Auto-generated method stub -// -// } - -} diff --git a/backends/gdx-backend-dragome/emu/java/io/FilenameFilter.java b/backends/gdx-backend-dragome/emu/java/io/FilenameFilter.java deleted file mode 100644 index 71406716..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/FilenameFilter.java +++ /dev/null @@ -1,22 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public interface FilenameFilter { - - boolean accept (File file, String name); -} diff --git a/backends/gdx-backend-dragome/emu/java/io/FilterInputStream.java b/backends/gdx-backend-dragome/emu/java/io/FilterInputStream.java deleted file mode 100644 index a08dc477..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/FilterInputStream.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright 2011 See AUTHORS file. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package java.io; - -public class FilterInputStream extends InputStream { - protected InputStream in; - - protected FilterInputStream (InputStream in) { - this.in = in; - } - - public int read () throws IOException { - return in.read(); - } - - public int read (byte b[]) throws IOException { - return read(b, 0, b.length); - } - - public int read (byte b[], int off, int len) throws IOException { - return in.read(b, off, len); - } - - public long skip (long n) throws IOException { - return 0; - } - - public int available () { - return in.available(); - } - - public void close () throws IOException { - in.close(); - } - - public synchronized void mark (int readlimit) { - } - - public synchronized void reset () throws IOException { - } - - public boolean markSupported () { - return false; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/Flushable.java b/backends/gdx-backend-dragome/emu/java/io/Flushable.java deleted file mode 100644 index f0f46030..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/Flushable.java +++ /dev/null @@ -1,26 +0,0 @@ -/** Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.io; - -/*** Defines an interface for classes that can (or need to) be flushed, typically before some output processing is considered to be - * finished and the object gets closed. */ -public interface Flushable { - /*** Flushes the object by writing out any buffered data to the underlying output. - * - * @throws IOException if there are any issues writing the data. */ - void flush () throws IOException; -} diff --git a/backends/gdx-backend-dragome/emu/java/io/HasArrayBufferView.java b/backends/gdx-backend-dragome/emu/java/io/HasArrayBufferView.java deleted file mode 100644 index fab8096c..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/HasArrayBufferView.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011 See AUTHORS file. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package java.io; - -import org.w3c.dom.typedarray.ArrayBufferView; - -public interface HasArrayBufferView { - - public ArrayBufferView getTypedArray (); - - public int getElementSize (); -} diff --git a/backends/gdx-backend-dragome/emu/java/io/IOException.java b/backends/gdx-backend-dragome/emu/java/io/IOException.java deleted file mode 100644 index 55566791..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/IOException.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public class IOException extends Exception { - - public IOException () { - super(); - } - - public IOException (String s) { - super(s); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/InputStream.java b/backends/gdx-backend-dragome/emu/java/io/InputStream.java deleted file mode 100644 index b6260582..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/InputStream.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public abstract class InputStream implements Closeable { - public abstract int read () throws IOException; - - public int read (byte[] buf, int start, int len) throws IOException { - - int end = start + len; - for (int i = start; i < end; i++) { - int r = read(); - if (r == -1) { - return i == start ? -1 : i - start; - } - buf[i] = (byte)r; - } - return len; - } - - public int read (byte[] buf) throws IOException { - return read(buf, 0, buf.length); - } - - public void close () throws IOException { - - } - - public int available () { - return 0; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/InputStreamReader.java b/backends/gdx-backend-dragome/emu/java/io/InputStreamReader.java deleted file mode 100644 index 39e71e6d..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/InputStreamReader.java +++ /dev/null @@ -1,41 +0,0 @@ -/* Copyright (c) 2008-2010, Avian Contributors - - Permission to use, copy, modify, and/or distribute this software - for any purpose with or without fee is hereby granted, provided - that the above copyright notice and this permission notice appear - in all copies. - - There is NO WARRANTY for this software. See license.txt for - details. */ - -package java.io; - -public class InputStreamReader extends Reader { - private final InputStream in; - - private final Utf8Decoder utf8Decoder; - - public InputStreamReader (InputStream in) { - this.in = in; - this.utf8Decoder = new Utf8Decoder(); - } - - public InputStreamReader (InputStream in, String encoding) throws UnsupportedEncodingException { - this(in); - - // FIXME this is bad, but some APIs seem to use "ISO-8859-1", fuckers... -// if (! encoding.equals("UTF-8")) { -// throw new UnsupportedEncodingException(encoding); -// } - } - - public int read (char[] b, int offset, int length) throws IOException { - byte[] buffer = new byte[length]; - int c = in.read(buffer); - return c <= 0 ? c : utf8Decoder.decode(buffer, 0, c, b, offset); - } - - public void close () throws IOException { - in.close(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/Numbers.java b/backends/gdx-backend-dragome/emu/java/io/Numbers.java deleted file mode 100644 index d9fa25f3..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/Numbers.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -import org.w3c.dom.typedarray.Float32Array; -import org.w3c.dom.typedarray.Int32Array; -import org.w3c.dom.typedarray.Int8Array; - -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; - -public class Numbers -{ - - static final double LN2= Math.log(2); - - public static final int floatToIntBits(float f) - { - wfa.set(0, f); - return wia.get(0); - } - - static Int8Array wba= TypedArraysFactory.createInstanceOf(Int8Array.class, 4); - static Int32Array wia= TypedArraysFactory.createInstanceOf(Int32Array.class, wba.getBuffer(), 0, 1); - static Float32Array wfa= TypedArraysFactory.createInstanceOf(Float32Array.class, wba.getBuffer(), 0, 1); - - public static final float intBitsToFloat(int i) - { - wia.set(0, i); - return wfa.get(0); - } - - public static final long doubleToLongBits(Double d) - { - throw new RuntimeException("NYI"); - } - - public static final double longBitsToDouble(long l) - { - throw new RuntimeException("NYI"); - } - - public static long doubleToRawLongBits(double value) - { - throw new RuntimeException("NYI: Numbers.doubleToRawLongBits"); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/OutputStream.java b/backends/gdx-backend-dragome/emu/java/io/OutputStream.java deleted file mode 100644 index bfeb9871..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/OutputStream.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public abstract class OutputStream { - // not abstract because of some gwt strangeness - public void write (int b) throws IOException { - } - - public void write (byte[] ba) throws IOException { - write(ba, 0, ba.length); - } - - public void write (byte[] ba, int start, int len) throws IOException { - int end = start + len; - for (int i = start; i < end; i++) { - write(ba[i]); - } - } - - public void flush () { - } - - public void close () throws IOException { - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/Reader.java b/backends/gdx-backend-dragome/emu/java/io/Reader.java deleted file mode 100644 index 477e0511..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/Reader.java +++ /dev/null @@ -1,195 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.io; - -import java.nio.CharBuffer; - -/*** The base class for all readers. A reader is a means of reading data from a source in a character-wise manner. Some readers also - * support marking a position in the input and returning to this position later. - *

- * This abstract class does not provide a fully working implementation, so it needs to be subclassed, and at least the - * {@link #read(char[], int, int)} and {@link #close()} methods needs to be overridden. Overriding some of the non-abstract - * methods is also often advised, since it might result in higher efficiency. - *

- * Many specialized readers for purposes like reading from a file already exist in this package. - * - * @see Writer */ -public abstract class Reader implements Readable, Closeable { - /*** The object used to synchronize access to the reader. */ - protected Object lock; - - /*** Constructs a new {@code Reader} with {@code this} as the object used to synchronize critical sections. */ - protected Reader () { - super(); - lock = this; - } - - /*** Constructs a new {@code Reader} with {@code lock} used to synchronize critical sections. - * - * @param lock the {@code Object} used to synchronize critical sections. - * @throws NullPointerException if {@code lock} is {@code null}. */ - protected Reader (Object lock) { - if (lock == null) { - throw new NullPointerException(); - } - this.lock = lock; - } - - /*** Closes this reader. Implementations of this method should free any resources associated with the reader. - * - * @throws IOException if an error occurs while closing this reader. */ - public abstract void close () throws IOException; - - /*** Sets a mark position in this reader. The parameter {@code readLimit} indicates how many characters can be read before the - * mark is invalidated. Calling {@code reset()} will reposition the reader back to the marked position if {@code readLimit} has - * not been surpassed. - *

- * This default implementation simply throws an {@code IOException}; subclasses must provide their own implementation. - * - * @param readLimit the number of characters that can be read before the mark is invalidated. - * @throws IllegalArgumentException if {@code readLimit < 0}. - * @throws IOException if an error occurs while setting a mark in this reader. - * @see #markSupported() - * @see #reset() */ - public void mark (int readLimit) throws IOException { - throw new IOException(); - } - - /*** Indicates whether this reader supports the {@code mark()} and {@code reset()} methods. This default implementation returns - * {@code false}. - * - * @return always {@code false}. */ - public boolean markSupported () { - return false; - } - - /*** Reads a single character from this reader and returns it as an integer with the two higher-order bytes set to 0. Returns -1 - * if the end of the reader has been reached. - * - * @return the character read or -1 if the end of the reader has been reached. - * @throws IOException if this reader is closed or some other I/O error occurs. */ - public int read () throws IOException { - synchronized (lock) { - char charArray[] = new char[1]; - if (read(charArray, 0, 1) != -1) { - return charArray[0]; - } - return -1; - } - } - - /*** Reads characters from this reader and stores them in the character array {@code buf} starting at offset 0. Returns the - * number of characters actually read or -1 if the end of the reader has been reached. - * - * @param buf character array to store the characters read. - * @return the number of characters read or -1 if the end of the reader has been reached. - * @throws IOException if this reader is closed or some other I/O error occurs. */ - public int read (char buf[]) throws IOException { - return read(buf, 0, buf.length); - } - - /*** Reads at most {@code count} characters from this reader and stores them at {@code offset} in the character array {@code buf} - * . Returns the number of characters actually read or -1 if the end of the reader has been reached. - * - * @param buf the character array to store the characters read. - * @param offset the initial position in {@code buffer} to store the characters read from this reader. - * @param count the maximum number of characters to read. - * @return the number of characters read or -1 if the end of the reader has been reached. - * @throws IOException if this reader is closed or some other I/O error occurs. */ - public abstract int read (char buf[], int offset, int count) throws IOException; - - /*** Indicates whether this reader is ready to be read without blocking. Returns {@code true} if this reader will not block when - * {@code read} is called, {@code false} if unknown or blocking will occur. This default implementation always returns - * {@code false}. - * - * @return always {@code false}. - * @throws IOException if this reader is closed or some other I/O error occurs. - * @see #read() - * @see #read(char[]) - * @see #read(char[], int, int) */ - public boolean ready () throws IOException { - return false; - } - - /*** Resets this reader's position to the last {@code mark()} location. Invocations of {@code read()} and {@code skip()} will - * occur from this new location. If this reader has not been marked, the behavior of {@code reset()} is implementation - * specific. This default implementation throws an {@code IOException}. - * - * @throws IOException always thrown in this default implementation. - * @see #mark(int) - * @see #markSupported() */ - public void reset () throws IOException { - throw new IOException(); - } - - /*** Skips {@code amount} characters in this reader. Subsequent calls of {@code read} methods will not return these characters - * unless {@code reset()} is used. This method may perform multiple reads to read {@code count} characters. - * - * @param count the maximum number of characters to skip. - * @return the number of characters actually skipped. - * @throws IllegalArgumentException if {@code amount < 0}. - * @throws IOException if this reader is closed or some other I/O error occurs. - * @see #mark(int) - * @see #markSupported() - * @see #reset() */ - public long skip (long count) throws IOException { - if (count < 0) { - throw new IllegalArgumentException(); - } - synchronized (lock) { - long skipped = 0; - int toRead = count < 512 ? (int)count : 512; - char charsSkipped[] = new char[toRead]; - while (skipped < count) { - int read = read(charsSkipped, 0, toRead); - if (read == -1) { - return skipped; - } - skipped += read; - if (read < toRead) { - return skipped; - } - if (count - skipped < toRead) { - toRead = (int)(count - skipped); - } - } - return skipped; - } - } - - /*** Reads characters and puts them into the {@code target} character buffer. - * - * @param target the destination character buffer. - * @return the number of characters put into {@code target} or -1 if the end of this reader has been reached before a character - * has been read. - * @throws IOException if any I/O error occurs while reading from this reader. - * @throws NullPointerException if {@code target} is {@code null}. - * @throws ReadOnlyBufferException if {@code target} is read-only. */ - public int read (CharBuffer target) throws IOException { - if (null == target) { - throw new NullPointerException(); - } - int length = target.length(); - char[] buf = new char[length]; - length = Math.min(length, read(buf)); - if (length > 0) { - target.put(buf, 0, length); - } - return length; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/StringReader.java b/backends/gdx-backend-dragome/emu/java/io/StringReader.java deleted file mode 100644 index c2247d1d..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/StringReader.java +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright (c) 2008, Avian Contributors - - Permission to use, copy, modify, and/or distribute this software - for any purpose with or without fee is hereby granted, provided - that the above copyright notice and this permission notice appear - in all copies. - - There is NO WARRANTY for this software. See license.txt for - details. */ - -package java.io; - -public class StringReader extends Reader { - private final String in; - private int position = 0; - - public StringReader (String in) { - this.in = in; - } - - public int read (char[] b, int offset, int length) throws IOException { - if (length > in.length() - position) { - length = in.length() - position; - if (length <= 0) { - return -1; - } - } - in.getChars(position, position + length, b, offset); - position += length; - return length; - } - - public void close () throws IOException { - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/StringWriter.java b/backends/gdx-backend-dragome/emu/java/io/StringWriter.java deleted file mode 100644 index cbf0703d..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/StringWriter.java +++ /dev/null @@ -1,37 +0,0 @@ -/* Copyright (c) 2008, Avian Contributors - - Permission to use, copy, modify, and/or distribute this software - for any purpose with or without fee is hereby granted, provided - that the above copyright notice and this permission notice appear - in all copies. - - There is NO WARRANTY for this software. See license.txt for - details. */ - -package java.io; - -public class StringWriter extends Writer { - private final StringBuilder out; - - public StringWriter() { - out = new StringBuilder(); - } - - public StringWriter(int initialCapacity) { - out = new StringBuilder(initialCapacity); - } - - public void write (char[] b, int offset, int length) throws IOException { - out.append(b, offset, length); - } - - public String toString () { - return out.toString(); - } - - public void flush () throws IOException { - } - - public void close () throws IOException { - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/UTFDataFormatException.java b/backends/gdx-backend-dragome/emu/java/io/UTFDataFormatException.java deleted file mode 100644 index b0076e65..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/UTFDataFormatException.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public class UTFDataFormatException extends IOException { - - public UTFDataFormatException (String msg) { - super(msg); - } - - public UTFDataFormatException () { - super(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/UnsupportedEncodingException.java b/backends/gdx-backend-dragome/emu/java/io/UnsupportedEncodingException.java deleted file mode 100644 index f0f81510..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/UnsupportedEncodingException.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.io; - -public class UnsupportedEncodingException extends IOException { - public UnsupportedEncodingException () { - super(); - } - - public UnsupportedEncodingException (String s) { - super(s); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/Utf8Decoder.java b/backends/gdx-backend-dragome/emu/java/io/Utf8Decoder.java deleted file mode 100644 index fffbe7fc..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/Utf8Decoder.java +++ /dev/null @@ -1,143 +0,0 @@ -/******************************************************************************* - * Copyright 2015 See AUTHORS file. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -/******************************************************************************* - * Copyright (c) 2008-2009 Bjoern Hoehrmann - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to - * deal in the Software without restriction, including without limitation the - * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - * sell copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - ******************************************************************************/ - -package java.io; - -/** Utf8Decoder converts UTF-8 encoded bytes into characters properly handling buffer boundaries. - * - * This class is stateful and up to 4 calls to {@link #decode(byte)} may be needed before a character is appended to the char - * buffer. - * - * The UTF-8 decoding is done by this class and no additional buffers are created. The UTF-8 code was inspired by - * http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ - * - * @author davebaol */ -public class Utf8Decoder { - - private static final char REPLACEMENT = '\ufffd'; - private static final int UTF8_ACCEPT = 0; - private static final int UTF8_REJECT = 12; - - // This table maps bytes to character classes to reduce - // the size of the transition table and create bitmasks. - private static final byte[] BYTE_TABLE = { - // @off - disable libgdx formatter - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, - 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9, - 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, 7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7, - 8,8,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, - 10,3,3,3,3,3,3,3,3,3,3,3,3,4,3,3, 11,6,6,6,5,8,8,8,8,8,8,8,8,8,8,8 - // @on - enable libgdx formatter - }; - - // This is a transition table that maps a combination of a - // state of the automaton and a character class to a state. - private static final byte[] TRANSITION_TABLE = { - // @off - disable libgdx formatter - 0,12,24,36,60,96,84,12,12,12,48,72, 12,12,12,12,12,12,12,12,12,12,12,12, - 12, 0,12,12,12,12,12, 0,12, 0,12,12, 12,24,12,12,12,12,12,24,12,24,12,12, - 12,12,12,12,12,12,12,24,12,12,12,12, 12,24,12,12,12,12,12,12,12,24,12,12, - 12,12,12,12,12,12,12,36,12,36,12,12, 12,36,12,12,12,12,12,36,12,36,12,12, - 12,36,12,12,12,12,12,12,12,12,12,12 - // @on - enable libgdx formatter - }; - - private int codePoint; - private int state; - private final char[] utf16Char = new char[2]; - private char[] charBuffer; - private int charOffset; - - public Utf8Decoder () { - this.state = UTF8_ACCEPT; - } - - protected void reset () { - state = UTF8_ACCEPT; - } - - public int decode (byte[] b, int offset, int length, char[] charBuffer, int charOffset) { - this.charBuffer = charBuffer; - this.charOffset = charOffset; - int end = offset + length; - for (int i = offset; i < end; i++) - decode(b[i]); - return this.charOffset - charOffset; - } - - private void decode (byte b) { - - if (b > 0 && state == UTF8_ACCEPT) { - charBuffer[charOffset++] = (char)(b & 0xFF); - } else { - int i = b & 0xFF; - int type = BYTE_TABLE[i]; - codePoint = state == UTF8_ACCEPT ? (0xFF >> type) & i : (i & 0x3F) | (codePoint << 6); - int next = TRANSITION_TABLE[state + type]; - - switch (next) { - case UTF8_ACCEPT: - state = next; - if (codePoint < Character.MIN_HIGH_SURROGATE) { - charBuffer[charOffset++] = (char)codePoint; - } else { - // The code below is equivalent to - // for (char c : Character.toChars(codePoint)) charBuffer[charOffset++] = c; - // but does not allocate a char array. - int codePointLength = Character.toChars(codePoint, utf16Char, 0); - charBuffer[charOffset++] = utf16Char[0]; - if (codePointLength == 2) charBuffer[charOffset++] = utf16Char[1]; - } - break; - - case UTF8_REJECT: - codePoint = 0; - state = UTF8_ACCEPT; - charBuffer[charOffset++] = REPLACEMENT; - break; - - default: - state = next; - break; - } - } - } -} diff --git a/backends/gdx-backend-dragome/emu/java/io/Writer.java b/backends/gdx-backend-dragome/emu/java/io/Writer.java deleted file mode 100644 index 8f07bb63..00000000 --- a/backends/gdx-backend-dragome/emu/java/io/Writer.java +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.io; - -/*** The base class for all writers. A writer is a means of writing data to a target in a character-wise manner. Most output streams - * expect the {@link #flush()} method to be called before closing the stream, to ensure all data is actually written out. - *

- * This abstract class does not provide a fully working implementation, so it needs to be subclassed, and at least the - * {@link #write(char[], int, int)}, {@link #close()} and {@link #flush()} methods needs to be overridden. Overriding some of the - * non-abstract methods is also often advised, since it might result in higher efficiency. - *

- * Many specialized readers for purposes like reading from a file already exist in this package. - * - * @see Reader */ -public abstract class Writer implements Appendable, Closeable, Flushable { - - static final String TOKEN_NULL = "null"; //$NON-NLS-1$ - - /*** The object used to synchronize access to the writer. */ - protected Object lock; - - /*** Constructs a new {@code Writer} with {@code this} as the object used to synchronize critical sections. */ - protected Writer () { - super(); - lock = this; - } - - /*** Constructs a new {@code Writer} with {@code lock} used to synchronize critical sections. - * - * @param lock the {@code Object} used to synchronize critical sections. - * @throws NullPointerException if {@code lock} is {@code null}. */ - protected Writer (Object lock) { - if (lock == null) { - throw new NullPointerException(); - } - this.lock = lock; - } - - /*** Closes this writer. Implementations of this method should free any resources associated with the writer. - * - * @throws IOException if an error occurs while closing this writer. */ - public abstract void close () throws IOException; - - /*** Flushes this writer. Implementations of this method should ensure that all buffered characters are written to the target. - * - * @throws IOException if an error occurs while flushing this writer. */ - public abstract void flush () throws IOException; - - /*** Writes the entire character buffer {@code buf} to the target. - * - * @param buf the non-null array containing characters to write. - * @throws IOException if this writer is closed or another I/O error occurs. */ - public void write (char buf[]) throws IOException { - write(buf, 0, buf.length); - } - - /*** Writes {@code count} characters starting at {@code offset} in {@code buf} to the target. - * - * @param buf the non-null character array to write. - * @param offset the index of the first character in {@code buf} to write. - * @param count the maximum number of characters to write. - * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code count < 0}, or if {@code offset + count} is greater than - * the size of {@code buf}. - * @throws IOException if this writer is closed or another I/O error occurs. */ - public abstract void write (char buf[], int offset, int count) throws IOException; - - /*** Writes one character to the target. Only the two least significant bytes of the integer {@code oneChar} are written. - * - * @param oneChar the character to write to the target. - * @throws IOException if this writer is closed or another I/O error occurs. */ - public void write (int oneChar) throws IOException { - synchronized (lock) { - char oneCharArray[] = new char[1]; - oneCharArray[0] = (char)oneChar; - write(oneCharArray); - } - } - - /*** Writes the characters from the specified string to the target. - * - * @param str the non-null string containing the characters to write. - * @throws IOException if this writer is closed or another I/O error occurs. */ - public void write (String str) throws IOException { - write(str, 0, str.length()); - } - - /*** Writes {@code count} characters from {@code str} starting at {@code offset} to the target. - * - * @param str the non-null string containing the characters to write. - * @param offset the index of the first character in {@code str} to write. - * @param count the number of characters from {@code str} to write. - * @throws IOException if this writer is closed or another I/O error occurs. - * @throws IndexOutOfBoundsException if {@code offset < 0} or {@code count < 0}, or if {@code offset + count} is greater than - * the length of {@code str}. */ - public void write (String str, int offset, int count) throws IOException { - if (count < 0) { // other cases tested by getChars() - throw new StringIndexOutOfBoundsException(); - } - char buf[] = new char[count]; - str.getChars(offset, offset + count, buf, 0); - - synchronized (lock) { - write(buf, 0, buf.length); - } - } - - /*** Appends the character {@code c} to the target. This method works the same way as {@link #write(int)}. - * - * @param c the character to append to the target stream. - * @return this writer. - * @throws IOException if this writer is closed or another I/O error occurs. */ - public Writer append (char c) throws IOException { - write(c); - return this; - } - - /*** Appends the character sequence {@code csq} to the target. This method works the same way as - * {@code Writer.write(csq.toString())}. If {@code csq} is {@code null}, then the string "null" is written to the target - * stream. - * - * @param csq the character sequence appended to the target. - * @return this writer. - * @throws IOException if this writer is closed or another I/O error occurs. */ - public Writer append (CharSequence csq) throws IOException { - if (null == csq) { - write(TOKEN_NULL); - } else { - write(csq.toString()); - } - return this; - } - - /*** Appends a subsequence of the character sequence {@code csq} to the target. This method works the same way as - * {@code Writer.writer(csq.subsequence(start, end).toString())}. If {@code csq} is {@code null}, then the specified - * subsequence of the string "null" will be written to the target. - * - * @param csq the character sequence appended to the target. - * @param start the index of the first char in the character sequence appended to the target. - * @param end the index of the character following the last character of the subsequence appended to the target. - * @return this writer. - * @throws IOException if this writer is closed or another I/O error occurs. - * @throws IndexOutOfBoundsException if {@code start > end}, {@code start < 0}, {@code end < 0} or either {@code start} or - * {@code end} are greater or equal than the length of {@code csq}. */ - public Writer append (CharSequence csq, int start, int end) throws IOException { - if (null == csq) { - write(TOKEN_NULL.substring(start, end)); - } else { - write(csq.subSequence(start, end).toString()); - } - return this; - } - - /*** Returns true if this writer has encountered and suppressed an error. Used by PrintWriters as an alternative to checked - * exceptions. */ - boolean checkError () { - return false; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/net/URLEncoder.java b/backends/gdx-backend-dragome/emu/java/net/URLEncoder.java deleted file mode 100644 index ab19aca3..00000000 --- a/backends/gdx-backend-dragome/emu/java/net/URLEncoder.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.net; - -import java.io.UnsupportedEncodingException; - -/** - * This class is used to encode a string using the format required by - * {@code application/x-www-form-urlencoded} MIME content type. - */ -public class URLEncoder { - - static final String digits = "0123456789ABCDEF"; - - /** - * Prevents this class from being instantiated. - */ - private URLEncoder() { - } - - /** - * Encodes a given string {@code s} in a x-www-form-urlencoded string using - * the specified encoding scheme {@code enc}. - *

- * All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') - * and characters '.', '-', '*', '_' are converted into their hexadecimal - * value prepended by '%'. For example: '#' -> %23. In addition, spaces are - * substituted by '+' - * - * @param s - * the string to be encoded. - * @return the encoded string. - * @deprecated use {@link #encode(String, String)} instead. - */ - @Deprecated - public static String encode(String s) { - // Guess a bit bigger for encoded form - StringBuilder buf = new StringBuilder(s.length() + 16); - for (int i = 0; i < s.length(); i++) { - char ch = s.charAt(i); - if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') - || (ch >= '0' && ch <= '9') || ".-*_".indexOf(ch) > -1) { - buf.append(ch); - } else if (ch == ' ') { - buf.append('+'); - } else { - byte[] bytes = new String(new char[] { ch }).getBytes(); - for (int j = 0; j < bytes.length; j++) { - buf.append('%'); - buf.append(digits.charAt((bytes[j] & 0xf0) >> 4)); - buf.append(digits.charAt(bytes[j] & 0xf)); - } - } - } - return buf.toString(); - } - - /** - * Encodes the given string {@code s} in a x-www-form-urlencoded string - * using the specified encoding scheme {@code enc}. - *

- * All characters except letters ('a'..'z', 'A'..'Z') and numbers ('0'..'9') - * and characters '.', '-', '*', '_' are converted into their hexadecimal - * value prepended by '%'. For example: '#' -> %23. In addition, spaces are - * substituted by '+' - * - * @param s - * the string to be encoded. - * @param enc - * the encoding scheme to be used. - * @return the encoded string. - * @throws UnsupportedEncodingException - * if the specified encoding scheme is invalid. - */ - public static String encode(String s, String enc) throws UnsupportedEncodingException { - if (s == null || enc == null) { - throw new NullPointerException(); - } - // check for UnsupportedEncodingException - "".getBytes(enc); - - // Guess a bit bigger for encoded form - StringBuilder buf = new StringBuilder(s.length() + 16); - int start = -1; - for (int i = 0; i < s.length(); i++) { - char ch = s.charAt(i); - if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') - || (ch >= '0' && ch <= '9') || " .-*_".indexOf(ch) > -1) { - if (start >= 0) { - convert(s.substring(start, i), buf, enc); - start = -1; - } - if (ch != ' ') { - buf.append(ch); - } else { - buf.append('+'); - } - } else { - if (start < 0) { - start = i; - } - } - } - if (start >= 0) { - convert(s.substring(start, s.length()), buf, enc); - } - return buf.toString(); - } - - private static void convert(String s, StringBuilder buf, String enc) - throws UnsupportedEncodingException { - byte[] bytes = s.getBytes(enc); - for (int j = 0; j < bytes.length; j++) { - buf.append('%'); - buf.append(digits.charAt((bytes[j] & 0xf0) >> 4)); - buf.append(digits.charAt(bytes[j] & 0xf)); - } - } -} \ No newline at end of file diff --git a/backends/gdx-backend-dragome/emu/java/nio/BaseByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/BaseByteBuffer.java deleted file mode 100644 index 9c78c2a6..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/BaseByteBuffer.java +++ /dev/null @@ -1,71 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** Serves as the root of other byte buffer impl classes, implements common methods that can be shared by child classes. */ -abstract class BaseByteBuffer extends ByteBuffer { - - protected BaseByteBuffer (int capacity) { - super(capacity); - } - - @Override - public CharBuffer asCharBuffer () { - return CharToByteBufferAdapter.wrap(this); - } - - @Override - public DoubleBuffer asDoubleBuffer () { - return DoubleToByteBufferAdapter.wrap(this); - } - - @Override - public FloatBuffer asFloatBuffer () { - return FloatToByteBufferAdapter.wrap(this); - } - - @Override - public IntBuffer asIntBuffer () { - return IntToByteBufferAdapter.wrap(this); - } - - @Override - public LongBuffer asLongBuffer () { - return LongToByteBufferAdapter.wrap(this); - } - - @Override - public ShortBuffer asShortBuffer () { - return ShortToByteBufferAdapter.wrap(this); - } - - public final char getChar () { - return (char)getShort(); - } - - public final char getChar (int index) { - return (char)getShort(index); - } - - public final ByteBuffer putChar (char value) { - return putShort((short)value); - } - - public final ByteBuffer putChar (int index, char value) { - return putShort(index, (short)value); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/Buffer.java b/backends/gdx-backend-dragome/emu/java/nio/Buffer.java deleted file mode 100644 index 9e36157f..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/Buffer.java +++ /dev/null @@ -1,232 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A buffer is a list of elements of a specific primitive type. - *

- * A buffer can be described by the following properties: - *

    - *
  • Capacity: the number of elements a buffer can hold. Capacity may not be negative and never changes.
  • - *
  • Position: a cursor of this buffer. Elements are read or written at the position if you do not specify an index explicitly. - * Position may not be negative and not greater than the limit.
  • - *
  • Limit: controls the scope of accessible elements. You can only read or write elements from index zero to - * limit - 1. Accessing elements out of the scope will cause an exception. Limit may not be negative and not greater - * than capacity.
  • - *
  • Mark: used to remember the current position, so that you can reset the position later. Mark may not be negative and no - * greater than position.
  • - *
  • A buffer can be read-only or read-write. Trying to modify the elements of a read-only buffer will cause a - * ReadOnlyBufferException, while changing the position, limit and mark of a read-only buffer is OK.
  • - *
  • A buffer can be direct or indirect. A direct buffer will try its best to take advantage of native memory APIs and it may - * not stay in the Java heap, thus it is not affected by garbage collection.
  • - *
- *

- *

- * Buffers are not thread-safe. If concurrent access to a buffer instance is required, then the callers are responsible to take - * care of the synchronization issues. - *

- * - * @since Android 1.0 */ -public abstract class Buffer { - - /** UNSET_MARK means the mark has not been set. */ - final static int UNSET_MARK = -1; - - /** The capacity of this buffer, which never change. */ - final int capacity; - - /** limit - 1 is the last element that can be read or written. Limit must be no less than zero and no greater than - * capacity. */ - int limit; - - /** Mark is where position will be set when reset() is called. Mark is not set by default. Mark is always no less - * than zero and no greater than position. */ - int mark = UNSET_MARK; - - /** The current position of this buffer. Position is always no less than zero and no greater than limit. */ - int position = 0; - - /** Construct a buffer with the specified capacity. - * - * @param capacity the capacity of this buffer. */ - Buffer (int capacity) { - super(); - if (capacity < 0) { - throw new IllegalArgumentException(); - } - this.capacity = this.limit = capacity; - } - - /** Returns the capacity of this buffer. - * - * @return the number of elements that are contained in this buffer. - * @since Android 1.0 */ - public final int capacity () { - return capacity; - } - - /** Clears this buffer. - *

- * While the content of this buffer is not changed, the following internal changes take place: the current position is reset - * back to the start of the buffer, the value of the buffer limit is made equal to the capacity and mark is cleared. - *

- * - * @return this buffer. - * @since Android 1.0 */ - public final Buffer clear () { - position = 0; - mark = UNSET_MARK; - limit = capacity; - return this; - } - - /** Flips this buffer. - *

- * The limit is set to the current position, then the position is set to zero, and the mark is cleared. - *

- *

- * The content of this buffer is not changed. - *

- * - * @return this buffer. - * @since Android 1.0 */ - public final Buffer flip () { - limit = position; - position = 0; - mark = UNSET_MARK; - return this; - } - - /** Indicates if there are elements remaining in this buffer, that is if {@code position < limit}. - * - * @return {@code true} if there are elements remaining in this buffer, {@code false} otherwise. - * @since Android 1.0 */ - public final boolean hasRemaining () { - return position < limit; - } - - /** Indicates whether this buffer is read-only. - * - * @return {@code true} if this buffer is read-only, {@code false} otherwise. - * @since Android 1.0 */ - public abstract boolean isReadOnly (); - - /** Returns the limit of this buffer. - * - * @return the limit of this buffer. - * @since Android 1.0 */ - public final int limit () { - return limit; - } - - /** Sets the limit of this buffer. - *

- * If the current position in the buffer is in excess of newLimit then, on returning from this call, it will have - * been adjusted to be equivalent to newLimit. If the mark is set and is greater than the new limit, then it is - * cleared. - *

- * - * @param newLimit the new limit, must not be negative and not greater than capacity. - * @return this buffer. - * @exception IllegalArgumentException if newLimit is invalid. - * @since Android 1.0 */ - public final Buffer limit (int newLimit) { - if (newLimit < 0 || newLimit > capacity) { - throw new IllegalArgumentException(); - } - - limit = newLimit; - if (position > newLimit) { - position = newLimit; - } - if ((mark != UNSET_MARK) && (mark > newLimit)) { - mark = UNSET_MARK; - } - return this; - } - - /** Marks the current position, so that the position may return to this point later by calling reset(). - * - * @return this buffer. - * @since Android 1.0 */ - public final Buffer mark () { - mark = position; - return this; - } - - /** Returns the position of this buffer. - * - * @return the value of this buffer's current position. - * @since Android 1.0 */ - public final int position () { - return position; - } - - /** Sets the position of this buffer. - *

- * If the mark is set and it is greater than the new position, then it is cleared. - *

- * - * @param newPosition the new position, must be not negative and not greater than limit. - * @return this buffer. - * @exception IllegalArgumentException if newPosition is invalid. - * @since Android 1.0 */ - public final Buffer position (int newPosition) { - if (newPosition < 0 || newPosition > limit) { - throw new IllegalArgumentException(); - } - - position = newPosition; - if ((mark != UNSET_MARK) && (mark > position)) { - mark = UNSET_MARK; - } - return this; - } - - /** Returns the number of remaining elements in this buffer, that is {@code limit - position}. - * - * @return the number of remaining elements in this buffer. - * @since Android 1.0 */ - public final int remaining () { - return limit - position; - } - - /** Resets the position of this buffer to the mark. - * - * @return this buffer. - * @exception InvalidMarkException if the mark is not set. - * @since Android 1.0 */ - public final Buffer reset () { - if (mark == UNSET_MARK) { - throw new InvalidMarkException(); - } - position = mark; - return this; - } - - /** Rewinds this buffer. - *

- * The position is set to zero, and the mark is cleared. The content of this buffer is not changed. - *

- * - * @return this buffer. - * @since Android 1.0 */ - public final Buffer rewind () { - position = 0; - mark = UNSET_MARK; - return this; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/BufferFactory.java b/backends/gdx-backend-dragome/emu/java/nio/BufferFactory.java deleted file mode 100644 index 8f58ee96..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/BufferFactory.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** Provide factory service of buffer classes. - *

- * Since all buffer impl classes are package private (except DirectByteBuffer), this factory is the only entrance to access buffer - * functions from outside of the impl package. - *

*/ -final class BufferFactory { - - /** Returns a new byte buffer based on the specified byte array. - * - * @param array The byte array - * @return A new byte buffer based on the specified byte array. */ - public static ByteBuffer newByteBuffer (byte array[]) { - return new ReadWriteHeapByteBuffer(array); - } - - /** Returns a new array based byte buffer with the specified capacity. - * - * @param capacity The capacity of the new buffer - * @return A new array based byte buffer with the specified capacity. */ - public static ByteBuffer newByteBuffer (int capacity) { - return new ReadWriteHeapByteBuffer(capacity); - } - - /** Returns a new char buffer based on the specified char array. - * - * @param array The char array - * @return A new char buffer based on the specified char array. */ - public static CharBuffer newCharBuffer (char array[]) { - return new ReadWriteCharArrayBuffer(array); - } - - /** Returns a new readonly char buffer based on the specified char sequence. - * - * @param chseq The char sequence - * @return A new readonly char buffer based on the specified char sequence. */ - public static CharBuffer newCharBuffer (CharSequence chseq) { - return new CharSequenceAdapter(chseq); - } - - /** Returns a new array based char buffer with the specified capacity. - * - * @param capacity The capacity of the new buffer - * @return A new array based char buffer with the specified capacity. */ - public static CharBuffer newCharBuffer (int capacity) { - return new ReadWriteCharArrayBuffer(capacity); - } - - /** Returns a new direct byte buffer with the specified capacity. - * - * @param capacity The capacity of the new buffer - * @return A new direct byte buffer with the specified capacity. */ - public static ByteBuffer newDirectByteBuffer (int capacity) { - return new DirectReadWriteByteBuffer(capacity); - } - - /** Returns a new double buffer based on the specified double array. - * - * @param array The double array - * @return A new double buffer based on the specified double array. */ - public static DoubleBuffer newDoubleBuffer (double array[]) { - return new ReadWriteDoubleArrayBuffer(array); - } - - /** Returns a new array based double buffer with the specified capacity. - * - * @param capacity The capacity of the new buffer - * @return A new array based double buffer with the specified capacity. */ - public static DoubleBuffer newDoubleBuffer (int capacity) { - return new ReadWriteDoubleArrayBuffer(capacity); - } - - /** Returns a new float buffer based on the specified float array. - * - * @param array The float array - * @return A new float buffer based on the specified float array. */ - public static FloatBuffer newFloatBuffer (float array[]) { - return new ReadWriteFloatArrayBuffer(array); - } - - /** Returns a new array based float buffer with the specified capacity. - * - * @param capacity The capacity of the new buffer - * @return A new array based float buffer with the specified capacity. */ - public static FloatBuffer newFloatBuffer (int capacity) { - return new ReadWriteFloatArrayBuffer(capacity); - } - - /** Returns a new array based int buffer with the specified capacity. - * - * @param capacity The capacity of the new buffer - * @return A new array based int buffer with the specified capacity. */ - public static IntBuffer newIntBuffer (int capacity) { - return new ReadWriteIntArrayBuffer(capacity); - } - - /** Returns a new int buffer based on the specified int array. - * - * @param array The int array - * @return A new int buffer based on the specified int array. */ - public static IntBuffer newIntBuffer (int array[]) { - return new ReadWriteIntArrayBuffer(array); - } - - /** Returns a new array based long buffer with the specified capacity. - * - * @param capacity The capacity of the new buffer - * @return A new array based long buffer with the specified capacity. */ - public static LongBuffer newLongBuffer (int capacity) { - return new ReadWriteLongArrayBuffer(capacity); - } - - /** Returns a new long buffer based on the specified long array. - * - * @param array The long array - * @return A new long buffer based on the specified long array. */ - public static LongBuffer newLongBuffer (long array[]) { - return new ReadWriteLongArrayBuffer(array); - } - - /** Returns a new array based short buffer with the specified capacity. - * - * @param capacity The capacity of the new buffer - * @return A new array based short buffer with the specified capacity. */ - public static ShortBuffer newShortBuffer (int capacity) { - return new ReadWriteShortArrayBuffer(capacity); - } - - /** Returns a new short buffer based on the specified short array. - * - * @param array The short array - * @return A new short buffer based on the specified short array. */ - public static ShortBuffer newShortBuffer (short array[]) { - return new ReadWriteShortArrayBuffer(array); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/BufferOverflowException.java b/backends/gdx-backend-dragome/emu/java/nio/BufferOverflowException.java deleted file mode 100644 index 923808ec..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/BufferOverflowException.java +++ /dev/null @@ -1,33 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A BufferOverflowException is thrown when elements are written to a buffer but there is not enough remaining space - * in the buffer. - * - * @since Android 1.0 */ -public class BufferOverflowException extends RuntimeException { - - private static final long serialVersionUID = -5484897634319144535L; - - /** Constructs a BufferOverflowException. - * - * @since Android 1.0 */ - public BufferOverflowException () { - super(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/BufferUnderflowException.java b/backends/gdx-backend-dragome/emu/java/nio/BufferUnderflowException.java deleted file mode 100644 index 1d3251ee..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/BufferUnderflowException.java +++ /dev/null @@ -1,33 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A BufferUnderflowException is thrown when elements are read from a buffer but there are not enough remaining - * elements in the buffer. - * - * @since Android 1.0 */ -public class BufferUnderflowException extends RuntimeException { - - private static final long serialVersionUID = -1713313658691622206L; - - /** Constructs a BufferUnderflowException. - * - * @since Android 1.0 */ - public BufferUnderflowException () { - super(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ByteBuffer.java deleted file mode 100644 index 2c0d7ad0..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ByteBuffer.java +++ /dev/null @@ -1,836 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import com.badlogic.gdx.backends.dragome.utils.Endianness; -import com.badlogic.gdx.backends.dragome.utils.StringToByteBuffer; - -/** A buffer for bytes. - *

- * A byte buffer can be created in either one of the following ways: - *

- *
    - *
  • {@link #allocate(int) Allocate} a new byte array and create a buffer based on it;
  • - *
  • {@link #allocateDirect(int) Allocate} a memory block and create a direct buffer based on it;
  • - *
  • {@link #wrap(byte[]) Wrap} an existing byte array to create a new buffer.
  • - *
- * @since Android 1.0 */ -public abstract class ByteBuffer extends Buffer implements Comparable, StringToByteBuffer { - - /** Creates a byte buffer based on a newly allocated byte array. - * - * @param capacity the capacity of the new buffer - * @return the created byte buffer. - * @throws IllegalArgumentException if {@code capacity < 0}. - * @since Android 1.0 */ - public static ByteBuffer allocate (int capacity) { - if (capacity < 0) { - throw new IllegalArgumentException(); - } - return BufferFactory.newByteBuffer(capacity); - } - - /** Creates a direct byte buffer based on a newly allocated memory block. - * - * @param capacity the capacity of the new buffer - * @return the created byte buffer. - * @throws IllegalArgumentException if {@code capacity < 0}. - * @since Android 1.0 */ - public static ByteBuffer allocateDirect (int capacity) { - if (capacity < 0) { - throw new IllegalArgumentException(); - } - return BufferFactory.newDirectByteBuffer(capacity); - } - - /** Creates a new byte buffer by wrapping the given byte array. - *

- * Calling this method has the same effect as {@code wrap(array, 0, array.length)}. - *

- * - * @param array the byte array which the new buffer will be based on - * @return the created byte buffer. - * @since Android 1.0 */ - public static ByteBuffer wrap (byte[] array) { - return BufferFactory.newByteBuffer(array); - } - - /** Creates a new byte buffer by wrapping the given byte array. - *

- * The new buffer's position will be {@code start}, limit will be {@code start + len}, capacity will be the length of the array. - *

- * - * @param array the byte array which the new buffer will be based on. - * @param start the start index, must not be negative and not greater than {@code array.length}. - * @param len the length, must not be negative and not greater than {@code array.length - start}. - * @return the created byte buffer. - * @exception IndexOutOfBoundsException if either {@code start} or {@code len} is invalid. - * @since Android 1.0 */ - public static ByteBuffer wrap (byte[] array, int start, int len) { - int length = array.length; - if ((start < 0) || (len < 0) || ((long)start + (long)len > length)) { - throw new IndexOutOfBoundsException(); - } - - ByteBuffer buf = BufferFactory.newByteBuffer(array); - buf.position = start; - buf.limit = start + len; - - return buf; - } - - /** The byte order of this buffer, default is {@code BIG_ENDIAN}. */ - Endianness order = Endianness.BIG_ENDIAN; - - /** Constructs a {@code ByteBuffer} with given capacity. - * - * @param capacity the capacity of the buffer. */ - ByteBuffer (int capacity) { - super(capacity); - } - - /** Returns the byte array which this buffer is based on, if there is one. - * - * @return the byte array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on a read-only array. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final byte[] array () { - return protectedArray(); - } - - /** Returns the offset of the byte array which this buffer is based on, if there is one. - *

- * The offset is the index of the array which corresponds to the zero position of the buffer. - *

- * - * @return the offset of the byte array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on a read-only array. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final int arrayOffset () { - return protectedArrayOffset(); - } - - /** Returns a char buffer which is based on the remaining content of this byte buffer. - *

- * The new buffer's position is zero, its limit and capacity is the number of remaining bytes divided by two, and its mark is - * not set. The new buffer's read-only property and byte order are the same as this buffer's. The new buffer is direct if this - * byte buffer is direct. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a char buffer which is based on the content of this byte buffer. - * @since Android 1.0 */ - public abstract CharBuffer asCharBuffer (); - - /** Returns a double buffer which is based on the remaining content of this byte buffer. - *

- * The new buffer's position is zero, its limit and capacity is the number of remaining bytes divided by eight, and its mark is - * not set. The new buffer's read-only property and byte order are the same as this buffer's. The new buffer is direct if this - * byte buffer is direct. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a double buffer which is based on the content of this byte buffer. - * @since Android 1.0 */ - public abstract DoubleBuffer asDoubleBuffer (); - - /** Returns a float buffer which is based on the remaining content of this byte buffer. - *

- * The new buffer's position is zero, its limit and capacity is the number of remaining bytes divided by four, and its mark is - * not set. The new buffer's read-only property and byte order are the same as this buffer's. The new buffer is direct if this - * byte buffer is direct. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a float buffer which is based on the content of this byte buffer. - * @since Android 1.0 */ - public abstract FloatBuffer asFloatBuffer (); - - /** Returns a int buffer which is based on the remaining content of this byte buffer. - *

- * The new buffer's position is zero, its limit and capacity is the number of remaining bytes divided by four, and its mark is - * not set. The new buffer's read-only property and byte order are the same as this buffer's. The new buffer is direct if this - * byte buffer is direct. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a int buffer which is based on the content of this byte buffer. - * @since Android 1.0 */ - public abstract IntBuffer asIntBuffer (); - - /** Returns a long buffer which is based on the remaining content of this byte buffer. - *

- * The new buffer's position is zero, its limit and capacity is the number of remaining bytes divided by eight, and its mark is - * not set. The new buffer's read-only property and byte order are the same as this buffer's. The new buffer is direct if this - * byte buffer is direct. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a long buffer which is based on the content of this byte buffer. - * @since Android 1.0 */ - public abstract LongBuffer asLongBuffer (); - - /** Returns a read-only buffer that shares its content with this buffer. - *

- * The returned buffer is guaranteed to be a new instance, even if this buffer is read-only itself. The new buffer's position, - * limit, capacity and mark are the same as this buffer. - *

- *

- * The new buffer shares its content with this buffer, which means this buffer's change of content will be visible to the new - * buffer. The two buffer's position, limit and mark are independent. - *

- * - * @return a read-only version of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer asReadOnlyBuffer (); - - /** Returns a short buffer which is based on the remaining content of this byte buffer. - *

- * The new buffer's position is zero, its limit and capacity is the number of remaining bytes divided by two, and its mark is - * not set. The new buffer's read-only property and byte order are the same as this buffer's. The new buffer is direct if this - * byte buffer is direct. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a short buffer which is based on the content of this byte buffer. - * @since Android 1.0 */ - public abstract ShortBuffer asShortBuffer (); - - /** Compacts this byte buffer. - *

- * The remaining bytes will be moved to the head of the buffer, starting from position zero. Then the position is set to - * {@code remaining()}; the limit is set to capacity; the mark is cleared. - *

- * - * @return this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer compact (); - - /** Compares the remaining bytes of this buffer to another byte buffer's remaining bytes. - * - * @param otherBuffer another byte buffer. - * @return a negative value if this is less than {@code other}; 0 if this equals to {@code other}; a positive value if this is - * greater than {@code other}. - * @exception ClassCastException if {@code other} is not a byte buffer. - * @since Android 1.0 */ - public int compareTo (ByteBuffer otherBuffer) { - int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); - int thisPos = position; - int otherPos = otherBuffer.position; - byte thisByte, otherByte; - while (compareRemaining > 0) { - thisByte = get(thisPos); - otherByte = otherBuffer.get(otherPos); - if (thisByte != otherByte) { - return thisByte < otherByte ? -1 : 1; - } - thisPos++; - otherPos++; - compareRemaining--; - } - return remaining() - otherBuffer.remaining(); - } - - /** Returns a duplicated buffer that shares its content with this buffer. - *

- * The duplicated buffer's position, limit, capacity and mark are the same as this buffer's. The duplicated buffer's read-only - * property and byte order are the same as this buffer's too. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a duplicated buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer duplicate (); - - /** Checks whether this byte buffer is equal to another object. - *

- * If {@code other} is not a byte buffer then {@code false} is returned. Two byte buffers are equal if and only if their - * remaining bytes are exactly the same. Position, limit, capacity and mark are not considered. - *

- * - * @param other the object to compare with this byte buffer. - * @return {@code true} if this byte buffer is equal to {@code other}, {@code false} otherwise. - * @since Android 1.0 */ - public boolean equals (Object other) { - if (!(other instanceof ByteBuffer)) { - return false; - } - ByteBuffer otherBuffer = (ByteBuffer)other; - - if (remaining() != otherBuffer.remaining()) { - return false; - } - - int myPosition = position; - int otherPosition = otherBuffer.position; - boolean equalSoFar = true; - while (equalSoFar && (myPosition < limit)) { - equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); - } - - return equalSoFar; - } - - /** Returns the byte at the current position and increases the position by 1. - * - * @return the byte at the current position. - * @exception BufferUnderflowException if the position is equal or greater than limit. - * @since Android 1.0 */ - public abstract byte get (); - - /** Reads bytes from the current position into the specified byte array and increases the position by the number of bytes read. - *

- * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. - *

- * - * @param dest the destination byte array. - * @return this buffer. - * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. - * @since Android 1.0 */ - public ByteBuffer get (byte[] dest) { - return get(dest, 0, dest.length); - } - - /** Reads bytes from the current position into the specified byte array, starting at the specified offset, and increases the - * position by the number of bytes read. - * - * @param dest the target byte array. - * @param off the offset of the byte array, must not be negative and not greater than {@code dest.length}. - * @param len the number of bytes to read, must not be negative and not greater than {@code dest.length - off} - * @return this buffer. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception BufferUnderflowException if {@code len} is greater than {@code remaining()}. - * @since Android 1.0 */ - public ByteBuffer get (byte[] dest, int off, int len) { - int length = dest.length; - if ((off < 0) || (len < 0) || ((long)off + (long)len > length)) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferUnderflowException(); - } - for (int i = off; i < off + len; i++) { - dest[i] = get(); - } - return this; - } - - /** Returns the byte at the specified index and does not change the position. - * - * @param index the index, must not be negative and less than limit. - * @return the byte at the specified index. - * @exception IndexOutOfBoundsException if index is invalid. - * @since Android 1.0 */ - public abstract byte get (int index); - - /** Returns the char at the current position and increases the position by 2. - *

- * The 2 bytes starting at the current position are composed into a char according to the current byte order and returned. - *

- * - * @return the char at the current position. - * @exception BufferUnderflowException if the position is greater than {@code limit - 2}. - * @since Android 1.0 */ - public abstract char getChar (); - - /** Returns the char at the specified index. - *

- * The 2 bytes starting from the specified index are composed into a char according to the current byte order and returned. The - * position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 2}. - * @return the char at the specified index. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @since Android 1.0 */ - public abstract char getChar (int index); - - /** Returns the double at the current position and increases the position by 8. - *

- * The 8 bytes starting from the current position are composed into a double according to the current byte order and returned. - *

- * - * @return the double at the current position. - * @exception BufferUnderflowException if the position is greater than {@code limit - 8}. - * @since Android 1.0 */ - public abstract double getDouble (); - - /** Returns the double at the specified index. - *

- * The 8 bytes starting at the specified index are composed into a double according to the current byte order and returned. The - * position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 8}. - * @return the double at the specified index. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @since Android 1.0 */ - public abstract double getDouble (int index); - - /** Returns the float at the current position and increases the position by 4. - *

- * The 4 bytes starting at the current position are composed into a float according to the current byte order and returned. - *

- * - * @return the float at the current position. - * @exception BufferUnderflowException if the position is greater than {@code limit - 4}. - * @since Android 1.0 */ - public abstract float getFloat (); - - /** Returns the float at the specified index. - *

- * The 4 bytes starting at the specified index are composed into a float according to the current byte order and returned. The - * position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 4}. - * @return the float at the specified index. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @since Android 1.0 */ - public abstract float getFloat (int index); - - /** Returns the int at the current position and increases the position by 4. - *

- * The 4 bytes starting at the current position are composed into a int according to the current byte order and returned. - *

- * - * @return the int at the current position. - * @exception BufferUnderflowException if the position is greater than {@code limit - 4}. - * @since Android 1.0 */ - public abstract int getInt (); - - /** Returns the int at the specified index. - *

- * The 4 bytes starting at the specified index are composed into a int according to the current byte order and returned. The - * position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 4}. - * @return the int at the specified index. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @since Android 1.0 */ - public abstract int getInt (int index); - - /** Returns the long at the current position and increases the position by 8. - *

- * The 8 bytes starting at the current position are composed into a long according to the current byte order and returned. - *

- * - * @return the long at the current position. - * @exception BufferUnderflowException if the position is greater than {@code limit - 8}. - * @since Android 1.0 */ - public abstract long getLong (); - - /** Returns the long at the specified index. - *

- * The 8 bytes starting at the specified index are composed into a long according to the current byte order and returned. The - * position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 8}. - * @return the long at the specified index. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @since Android 1.0 */ - public abstract long getLong (int index); - - /** Returns the short at the current position and increases the position by 2. - *

- * The 2 bytes starting at the current position are composed into a short according to the current byte order and returned. - *

- * - * @return the short at the current position. - * @exception BufferUnderflowException if the position is greater than {@code limit - 2}. - * @since Android 1.0 */ - public abstract short getShort (); - - /** Returns the short at the specified index. - *

- * The 2 bytes starting at the specified index are composed into a short according to the current byte order and returned. The - * position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 2}. - * @return the short at the specified index. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @since Android 1.0 */ - public abstract short getShort (int index); - - /** Indicates whether this buffer is based on a byte array and provides read/write access. - * - * @return {@code true} if this buffer is based on a byte array and provides read/write access, {@code false} otherwise. - * @since Android 1.0 */ - public final boolean hasArray () { - return protectedHasArray(); - } - - /** Calculates this buffer's hash code from the remaining chars. The position, limit, capacity and mark don't affect the hash - * code. - * - * @return the hash code calculated from the remaining bytes. - * @since Android 1.0 */ - public int hashCode () { - int myPosition = position; - int hash = 0; - while (myPosition < limit) { - hash = hash + get(myPosition++); - } - return hash; - } - - /** Indicates whether this buffer is direct. - * - * @return {@code true} if this buffer is direct, {@code false} otherwise. - * @since Android 1.0 */ - public abstract boolean isDirect (); - - /** Returns the byte order used by this buffer when converting bytes from/to other primitive types. - *

- * The default byte order of byte buffer is always {@link ByteOrder#BIG_ENDIAN BIG_ENDIAN} - *

- * - * @return the byte order used by this buffer when converting bytes from/to other primitive types. - * @since Android 1.0 */ - public final ByteOrder order () { - return order == Endianness.BIG_ENDIAN ? ByteOrder.BIG_ENDIAN : ByteOrder.LITTLE_ENDIAN; - } - - /** Sets the byte order of this buffer. - * - * @param byteOrder the byte order to set. If {@code null} then the order will be {@link ByteOrder#LITTLE_ENDIAN LITTLE_ENDIAN} - * . - * @return this buffer. - * @see ByteOrder - * @since Android 1.0 */ - public final ByteBuffer order (ByteOrder byteOrder) { - return orderImpl(byteOrder); - } - - ByteBuffer orderImpl (ByteOrder byteOrder) { - order = byteOrder == ByteOrder.BIG_ENDIAN ? Endianness.BIG_ENDIAN : Endianness.LITTLE_ENDIAN; - return this; - } - - /** Child class implements this method to realize {@code array()}. - * - * @see #array() - * @since Android 1.0 */ - abstract byte[] protectedArray (); - - /** Child class implements this method to realize {@code arrayOffset()}. - * - * @see #arrayOffset() - * @since Android 1.0 */ - abstract int protectedArrayOffset (); - - /** Child class implements this method to realize {@code hasArray()}. - * - * @see #hasArray() - * @since Android 1.0 */ - abstract boolean protectedHasArray (); - - /** Writes the given byte to the current position and increases the position by 1. - * - * @param b the byte to write. - * @return this buffer. - * @exception BufferOverflowException if position is equal or greater than limit. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer put (byte b); - - /** Writes bytes in the given byte array to the current position and increases the position by the number of bytes written. - *

- * Calling this method has the same effect as {@code put(src, 0, src.length)}. - *

- * - * @param src the source byte array. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code src.length}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public final ByteBuffer put (byte[] src) { - return put(src, 0, src.length); - } - - /** Writes bytes in the given byte array, starting from the specified offset, to the current position and increases the position - * by the number of bytes written. - * - * @param src the source byte array. - * @param off the offset of byte array, must not be negative and not greater than {@code src.length}. - * @param len the number of bytes to write, must not be negative and not greater than {@code src.length - off}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code len}. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public ByteBuffer put (byte[] src, int off, int len) { - int length = src.length; - if ((off < 0) || (len < 0) || ((long)off + (long)len > length)) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferOverflowException(); - } - for (int i = off; i < off + len; i++) { - put(src[i]); - } - return this; - } - - /** Writes all the remaining bytes of the {@code src} byte buffer to this buffer's current position, and increases both buffers' - * position by the number of bytes copied. - * - * @param src the source byte buffer. - * @return this buffer. - * @exception BufferOverflowException if {@code src.remaining()} is greater than this buffer's {@code remaining()}. - * @exception IllegalArgumentException if {@code src} is this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public ByteBuffer put (ByteBuffer src) { - if (src == this) { - throw new IllegalArgumentException(); - } - if (src.remaining() > remaining()) { - throw new BufferOverflowException(); - } - byte[] contents = new byte[src.remaining()]; - src.get(contents); - put(contents); - return this; - } - - /** Write a byte to the specified index of this buffer without changing the position. - * - * @param index the index, must not be negative and less than the limit. - * @param b the byte to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer put (int index, byte b); - - /** Writes the given char to the current position and increases the position by 2. - *

- * The char is converted to bytes using the current byte order. - *

- * - * @param value the char to write. - * @return this buffer. - * @exception BufferOverflowException if position is greater than {@code limit - 2}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putChar (char value); - - /** Writes the given char to the specified index of this buffer. - *

- * The char is converted to bytes using the current byte order. The position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 2}. - * @param value the char to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putChar (int index, char value); - - /** Writes the given double to the current position and increases the position by 8. - *

- * The double is converted to bytes using the current byte order. - *

- * - * @param value the double to write. - * @return this buffer. - * @exception BufferOverflowException if position is greater than {@code limit - 8}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putDouble (double value); - - /** Writes the given double to the specified index of this buffer. - *

- * The double is converted to bytes using the current byte order. The position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 8}. - * @param value the double to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putDouble (int index, double value); - - /** Writes the given float to the current position and increases the position by 4. - *

- * The float is converted to bytes using the current byte order. - *

- * - * @param value the float to write. - * @return this buffer. - * @exception BufferOverflowException if position is greater than {@code limit - 4}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putFloat (float value); - - /** Writes the given float to the specified index of this buffer. - *

- * The float is converted to bytes using the current byte order. The position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 4}. - * @param value the float to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putFloat (int index, float value); - - /** Writes the given int to the current position and increases the position by 4. - *

- * The int is converted to bytes using the current byte order. - *

- * - * @param value the int to write. - * @return this buffer. - * @exception BufferOverflowException if position is greater than {@code limit - 4}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putInt (int value); - - /** Writes the given int to the specified index of this buffer. - *

- * The int is converted to bytes using the current byte order. The position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 4}. - * @param value the int to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putInt (int index, int value); - - /** Writes the given long to the current position and increases the position by 8. - *

- * The long is converted to bytes using the current byte order. - *

- * - * @param value the long to write. - * @return this buffer. - * @exception BufferOverflowException if position is greater than {@code limit - 8}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putLong (long value); - - /** Writes the given long to the specified index of this buffer. - *

- * The long is converted to bytes using the current byte order. The position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 8}. - * @param value the long to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putLong (int index, long value); - - /** Writes the given short to the current position and increases the position by 2. - *

- * The short is converted to bytes using the current byte order. - *

- * - * @param value the short to write. - * @return this buffer. - * @exception BufferOverflowException if position is greater than {@code limit - 2}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putShort (short value); - - /** Writes the given short to the specified index of this buffer. - *

- * The short is converted to bytes using the current byte order. The position is not changed. - *

- * - * @param index the index, must not be negative and equal or less than {@code limit - 2}. - * @param value the short to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if {@code index} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer putShort (int index, short value); - - /** Returns a sliced buffer that shares its content with this buffer. - *

- * The sliced buffer's capacity will be this buffer's {@code remaining()}, and it's zero position will correspond to this - * buffer's current position. The new buffer's position will be 0, limit will be its capacity, and its mark is cleared. The new - * buffer's read-only property and byte order are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a sliced buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract ByteBuffer slice (); - - /** Returns a string representing the state of this byte buffer. - * - * @return a string representing the state of this byte buffer. - * @since Android 1.0 */ - public String toString () { - StringBuffer buf = new StringBuffer(); - buf.append(getClass().getName()); - buf.append(", status: capacity="); //$NON-NLS-1$ - buf.append(capacity()); - buf.append(" position="); //$NON-NLS-1$ - buf.append(position()); - buf.append(" limit="); //$NON-NLS-1$ - buf.append(limit()); - return buf.toString(); - } - - public ByteBuffer stringToByteBuffer (String s) { - return new StringByteBuffer(s); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ByteBufferWrapper.java b/backends/gdx-backend-dragome/emu/java/nio/ByteBufferWrapper.java deleted file mode 100644 index a8654af4..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ByteBufferWrapper.java +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright 2010 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ - -package java.nio; - -public interface ByteBufferWrapper { - ByteBuffer getByteBuffer (); -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ByteOrder.java b/backends/gdx-backend-dragome/emu/java/nio/ByteOrder.java deleted file mode 100644 index a5b0f470..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ByteOrder.java +++ /dev/null @@ -1,69 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -//import org.apache.harmony.luni.platform.Platform; - -/** Defines byte order constants. - * - * @since Android 1.0 */ -public final class ByteOrder { - - /** This constant represents big endian. - * - * @since Android 1.0 */ - public static final ByteOrder BIG_ENDIAN = new ByteOrder("BIG_ENDIAN"); //$NON-NLS-1$ - - /** This constant represents little endian. - * - * @since Android 1.0 */ - public static final ByteOrder LITTLE_ENDIAN = new ByteOrder("LITTLE_ENDIAN"); //$NON-NLS-1$ - - private static final ByteOrder NATIVE_ORDER; - - static { -// if (Platform.getMemorySystem().isLittleEndian()) { - NATIVE_ORDER = LITTLE_ENDIAN; -// } else { -// NATIVE_ORDER = BIG_ENDIAN; -// } - } - - /** Returns the current platform byte order. - * - * @return the byte order object, which is either LITTLE_ENDIAN or BIG_ENDIAN. - * @since Android 1.0 */ - public static ByteOrder nativeOrder () { - return NATIVE_ORDER; - } - - private final String name; - - private ByteOrder (String name) { - super(); - this.name = name; - } - - /** Returns a string that describes this object. - * - * @return "BIG_ENDIAN" for {@link #BIG_ENDIAN ByteOrder.BIG_ENDIAN} objects, "LITTLE_ENDIAN" for {@link #LITTLE_ENDIAN - * ByteOrder.LITTLE_ENDIAN} objects. - * @since Android 1.0 */ - public String toString () { - return name; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/CharArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/CharArrayBuffer.java deleted file mode 100644 index 17a0522b..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/CharArrayBuffer.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** CharArrayBuffer, ReadWriteCharArrayBuffer and ReadOnlyCharArrayBuffer compose the implementation of array based char buffers. - *

- * CharArrayBuffer implements all the shared readonly methods and is extended by the other two classes. - *

- *

- * All methods are marked final for runtime performance. - *

*/ -abstract class CharArrayBuffer extends CharBuffer { - - protected final char[] backingArray; - - protected final int offset; - - CharArrayBuffer (char[] array) { - this(array.length, array, 0); - } - - CharArrayBuffer (int capacity) { - this(capacity, new char[capacity], 0); - } - - CharArrayBuffer (int capacity, char[] backingArray, int offset) { - super(capacity); - this.backingArray = backingArray; - this.offset = offset; - } - - public final char get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return backingArray[offset + position++]; - } - - public final char get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return backingArray[offset + index]; - } - - public final CharBuffer get (char[] dest, int off, int len) { - int length = dest.length; - if ((off < 0) || (len < 0) || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - System.arraycopy(backingArray, offset + position, dest, off, len); - position += len; - return this; - } - - public final boolean isDirect () { - return false; - } - - public final ByteOrder order () { - return ByteOrder.nativeOrder(); - } - - public final CharSequence subSequence (int start, int end) { - if (start < 0 || end < start || end > remaining()) { - throw new IndexOutOfBoundsException(); - } - - CharBuffer result = duplicate(); - result.limit(position + end); - result.position(position + start); - return result; - } - - public final String toString () { - return String.copyValueOf(backingArray, offset + position, remaining()); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/CharBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/CharBuffer.java deleted file mode 100644 index 8011e36f..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/CharBuffer.java +++ /dev/null @@ -1,622 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import java.io.IOException; - -/** A buffer of chars. - *

- * A char buffer can be created in either one of the following ways: - *

- *
    - *
  • {@link #allocate(int) Allocate} a new char array and create a buffer based on it;
  • - *
  • {@link #wrap(char[]) Wrap} an existing char array to create a new buffer;
  • - *
  • {@link #wrap(CharSequence) Wrap} an existing char sequence to create a new buffer;
  • - *
  • Use {@link java.nio.ByteBuffer#asCharBuffer() ByteBuffer.asCharBuffer} to create a char buffer based on a byte buffer.
  • - *
- * - * @since Android 1.0 */ -public abstract class CharBuffer extends Buffer implements Comparable, CharSequence, Appendable {// , Readable { - - /** Creates a char buffer based on a newly allocated char array. - * - * @param capacity the capacity of the new buffer. - * @return the created char buffer. - * @throws IllegalArgumentException if {@code capacity} is less than zero. - * @since Android 1.0 */ - public static CharBuffer allocate (int capacity) { - if (capacity < 0) { - throw new IllegalArgumentException(); - } - return BufferFactory.newCharBuffer(capacity); - } - - /** Creates a new char buffer by wrapping the given char array. - *

- * Calling this method has the same effect as {@code wrap(array, 0, array.length)}. - *

- * - * @param array the char array which the new buffer will be based on. - * @return the created char buffer. - * @since Android 1.0 */ - public static CharBuffer wrap (char[] array) { - return wrap(array, 0, array.length); - } - - /** Creates a new char buffer by wrapping the given char array. - *

- * The new buffer's position will be {@code start}, limit will be {@code start + len}, capacity will be the length of the array. - *

- * - * @param array the char array which the new buffer will be based on. - * @param start the start index, must not be negative and not greater than {@code array.length}. - * @param len the length, must not be negative and not greater than {@code array.length - start}. - * @return the created char buffer. - * @exception IndexOutOfBoundsException if either {@code start} or {@code len} is invalid. - * @since Android 1.0 */ - public static CharBuffer wrap (char[] array, int start, int len) { - int length = array.length; - if ((start < 0) || (len < 0) || (long)start + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - CharBuffer buf = BufferFactory.newCharBuffer(array); - buf.position = start; - buf.limit = start + len; - - return buf; - } - - /** Creates a new char buffer by wrapping the given char sequence. - *

- * Calling this method has the same effect as {@code wrap(chseq, 0, chseq.length())}. - *

- * - * @param chseq the char sequence which the new buffer will be based on. - * @return the created char buffer. - * @since Android 1.0 */ - public static CharBuffer wrap (CharSequence chseq) { - return BufferFactory.newCharBuffer(chseq); - } - - /** Creates a new char buffer by wrapping the given char sequence. - *

- * The new buffer's position will be {@code start}, limit will be {@code end}, capacity will be the length of the char sequence. - * The new buffer is read-only. - *

- * - * @param chseq the char sequence which the new buffer will be based on. - * @param start the start index, must not be negative and not greater than {@code chseq.length()}. - * @param end the end index, must be no less than {@code start} and no greater than {@code chseq.length()}. - * @return the created char buffer. - * @exception IndexOutOfBoundsException if either {@code start} or {@code end} is invalid. - * @since Android 1.0 */ - public static CharBuffer wrap (CharSequence chseq, int start, int end) { - if (chseq == null) { - throw new NullPointerException(); - } - if (start < 0 || end < start || end > chseq.length()) { - throw new IndexOutOfBoundsException(); - } - - CharBuffer result = BufferFactory.newCharBuffer(chseq); - result.position = start; - result.limit = end; - return result; - } - - /** Constructs a {@code CharBuffer} with given capacity. - * - * @param capacity the capacity of the buffer. - * @since Android 1.0 */ - CharBuffer (int capacity) { - super(capacity); - } - - /** Returns the char array which this buffer is based on, if there is one. - * - * @return the char array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final char[] array () { - return protectedArray(); - } - - /** Returns the offset of the char array which this buffer is based on, if there is one. - *

- * The offset is the index of the array corresponds to the zero position of the buffer. - *

- * - * @return the offset of the char array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final int arrayOffset () { - return protectedArrayOffset(); - } - - /** Returns a read-only buffer that shares its content with this buffer. - *

- * The returned buffer is guaranteed to be a new instance, even if this buffer is read-only itself. The new buffer's position, - * limit, capacity and mark are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means this buffer's change of content will be visible to the new - * buffer. The two buffer's position, limit and mark are independent. - *

- * - * @return a read-only version of this buffer. - * @since Android 1.0 */ - public abstract CharBuffer asReadOnlyBuffer (); - - /** Returns the character located at the specified index in the buffer. The index value is referenced from the current buffer - * position. - * - * @param index the index referenced from the current buffer position. It must not be less than zero but less than the value - * obtained from a call to {@code remaining()}. - * @return the character located at the specified index (referenced from the current position) in the buffer. - * @exception IndexOutOfBoundsException if the index is invalid. - * @since Android 1.0 */ - public final char charAt (int index) { - if (index < 0 || index >= remaining()) { - throw new IndexOutOfBoundsException(); - } - return get(position + index); - } - - /** Compacts this char buffer. - *

- * The remaining chars will be moved to the head of the buffer, starting from position zero. Then the position is set to - * {@code remaining()}; the limit is set to capacity; the mark is cleared. - *

- * - * @return this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract CharBuffer compact (); - - /** Compare the remaining chars of this buffer to another char buffer's remaining chars. - * - * @param otherBuffer another char buffer. - * @return a negative value if this is less than {@code otherBuffer}; 0 if this equals to {@code otherBuffer}; a positive value - * if this is greater than {@code otherBuffer}. - * @exception ClassCastException if {@code otherBuffer} is not a char buffer. - * @since Android 1.0 */ - public int compareTo (CharBuffer otherBuffer) { - int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); - int thisPos = position; - int otherPos = otherBuffer.position; - char thisByte, otherByte; - while (compareRemaining > 0) { - thisByte = get(thisPos); - otherByte = otherBuffer.get(otherPos); - if (thisByte != otherByte) { - return thisByte < otherByte ? -1 : 1; - } - thisPos++; - otherPos++; - compareRemaining--; - } - return remaining() - otherBuffer.remaining(); - } - - /** Returns a duplicated buffer that shares its content with this buffer. - *

- * The duplicated buffer's initial position, limit, capacity and mark are the same as this buffer's. The duplicated buffer's - * read-only property and byte order are the same as this buffer's, too. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a duplicated buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract CharBuffer duplicate (); - - /** Checks whether this char buffer is equal to another object. - *

- * If {@code other} is not a char buffer then {@code false} is returned. Two char buffers are equal if and only if their - * remaining chars are exactly the same. Position, limit, capacity and mark are not considered. - *

- * - * @param other the object to compare with this char buffer. - * @return {@code true} if this char buffer is equal to {@code other}, {@code false} otherwise. - * @since Android 1.0 */ - public boolean equals (Object other) { - if (!(other instanceof CharBuffer)) { - return false; - } - CharBuffer otherBuffer = (CharBuffer)other; - - if (remaining() != otherBuffer.remaining()) { - return false; - } - - int myPosition = position; - int otherPosition = otherBuffer.position; - boolean equalSoFar = true; - while (equalSoFar && (myPosition < limit)) { - equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); - } - - return equalSoFar; - } - - /** Returns the char at the current position and increases the position by 1. - * - * @return the char at the current position. - * @exception BufferUnderflowException if the position is equal or greater than limit. - * @since Android 1.0 */ - public abstract char get (); - - /** Reads chars from the current position into the specified char array and increases the position by the number of chars read. - *

- * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. - *

- * - * @param dest the destination char array. - * @return this buffer. - * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. - * @since Android 1.0 */ - public CharBuffer get (char[] dest) { - return get(dest, 0, dest.length); - } - - /** Reads chars from the current position into the specified char array, starting from the specified offset, and increases the - * position by the number of chars read. - * - * @param dest the target char array. - * @param off the offset of the char array, must not be negative and not greater than {@code dest.length}. - * @param len The number of chars to read, must be no less than zero and no greater than {@code dest.length - off}. - * @return this buffer. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception BufferUnderflowException if {@code len} is greater than {@code remaining()}. - * @since Android 1.0 */ - public CharBuffer get (char[] dest, int off, int len) { - int length = dest.length; - if ((off < 0) || (len < 0) || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferUnderflowException(); - } - for (int i = off; i < off + len; i++) { - dest[i] = get(); - } - return this; - } - - /** Returns a char at the specified index; the position is not changed. - * - * @param index the index, must not be negative and less than limit. - * @return a char at the specified index. - * @exception IndexOutOfBoundsException if index is invalid. - * @since Android 1.0 */ - public abstract char get (int index); - - /** Indicates whether this buffer is based on a char array and is read/write. - * - * @return {@code true} if this buffer is based on a byte array and provides read/write access, {@code false} otherwise. - * @since Android 1.0 */ - public final boolean hasArray () { - return protectedHasArray(); - } - - /** Calculates this buffer's hash code from the remaining chars. The position, limit, capacity and mark don't affect the hash - * code. - * - * @return the hash code calculated from the remaining chars. - * @since Android 1.0 */ - public int hashCode () { - int myPosition = position; - int hash = 0; - while (myPosition < limit) { - hash = hash + get(myPosition++); - } - return hash; - } - - /** Indicates whether this buffer is direct. A direct buffer will try its best to take advantage of native memory APIs and it - * may not stay in the Java heap, so it is not affected by garbage collection. - *

- * A char buffer is direct if it is based on a byte buffer and the byte buffer is direct. - *

- * - * @return {@code true} if this buffer is direct, {@code false} otherwise. - * @since Android 1.0 */ - public abstract boolean isDirect (); - - /** Returns the number of remaining chars. - * - * @return the number of remaining chars. - * @since Android 1.0 */ - public final int length () { - return remaining(); - } - - /** Returns the byte order used by this buffer when converting chars from/to bytes. - *

- * If this buffer is not based on a byte buffer, then this always returns the platform's native byte order. - *

- * - * @return the byte order used by this buffer when converting chars from/to bytes. - * @since Android 1.0 */ - public abstract ByteOrder order (); - - /** Child class implements this method to realize {@code array()}. - * - * @see #array() */ - abstract char[] protectedArray (); - - /** Child class implements this method to realize {@code arrayOffset()}. - * - * @see #arrayOffset() */ - abstract int protectedArrayOffset (); - - /** Child class implements this method to realize {@code hasArray()}. - * - * @see #hasArray() */ - abstract boolean protectedHasArray (); - - /** Writes the given char to the current position and increases the position by 1. - * - * @param c the char to write. - * @return this buffer. - * @exception BufferOverflowException if position is equal or greater than limit. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract CharBuffer put (char c); - - /** Writes chars from the given char array to the current position and increases the position by the number of chars written. - *

- * Calling this method has the same effect as {@code put(src, 0, src.length)}. - *

- * - * @param src the source char array. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code src.length}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public final CharBuffer put (char[] src) { - return put(src, 0, src.length); - } - - /** Writes chars from the given char array, starting from the specified offset, to the current position and increases the - * position by the number of chars written. - * - * @param src the source char array. - * @param off the offset of char array, must not be negative and not greater than {@code src.length}. - * @param len the number of chars to write, must be no less than zero and no greater than {@code src.length - off}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code len}. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public CharBuffer put (char[] src, int off, int len) { - int length = src.length; - if ((off < 0) || (len < 0) || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferOverflowException(); - } - for (int i = off; i < off + len; i++) { - put(src[i]); - } - return this; - } - - /** Writes all the remaining chars of the {@code src} char buffer to this buffer's current position, and increases both buffers' - * position by the number of chars copied. - * - * @param src the source char buffer. - * @return this buffer. - * @exception BufferOverflowException if {@code src.remaining()} is greater than this buffer's {@code remaining()}. - * @exception IllegalArgumentException if {@code src} is this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public CharBuffer put (CharBuffer src) { - if (src == this) { - throw new IllegalArgumentException(); - } - if (src.remaining() > remaining()) { - throw new BufferOverflowException(); - } - - char[] contents = new char[src.remaining()]; - src.get(contents); - put(contents); - return this; - } - - /** Writes a char to the specified index of this buffer; the position is not changed. - * - * @param index the index, must be no less than zero and less than the limit. - * @param c the char to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if index is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract CharBuffer put (int index, char c); - - /** Writes all chars of the given string to the current position of this buffer, and increases the position by the length of - * string. - *

- * Calling this method has the same effect as {@code put(str, 0, str.length())}. - *

- * - * @param str the string to write. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than the length of string. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public final CharBuffer put (String str) { - return put(str, 0, str.length()); - } - - /** Writes chars of the given string to the current position of this buffer, and increases the position by the number of chars - * written. - * - * @param str the string to write. - * @param start the first char to write, must not be negative and not greater than {@code str.length()}. - * @param end the last char to write (excluding), must be less than {@code start} and not greater than {@code str.length()}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code end - start}. - * @exception IndexOutOfBoundsException if either {@code start} or {@code end} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public CharBuffer put (String str, int start, int end) { - int length = str.length(); - if (start < 0 || end < start || end > length) { - throw new IndexOutOfBoundsException(); - } - - if (end - start > remaining()) { - throw new BufferOverflowException(); - } - for (int i = start; i < end; i++) { - put(str.charAt(i)); - } - return this; - } - - /** Returns a sliced buffer that shares its content with this buffer. - *

- * The sliced buffer's capacity will be this buffer's {@code remaining()}, and its zero position will correspond to this - * buffer's current position. The new buffer's position will be 0, limit will be its capacity, and its mark is cleared. The new - * buffer's read-only property and byte order are same as this buffer. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a sliced buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract CharBuffer slice (); - - /** Returns a new char buffer representing a sub-sequence of this buffer's current remaining content. - *

- * The new buffer's position will be {@code position() + start}, limit will be {@code position() + end}, capacity will be the - * same as this buffer. The new buffer's read-only property and byte order are the same as this buffer. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @param start the start index of the sub-sequence, referenced from the current buffer position. Must not be less than zero - * and not greater than the value obtained from a call to {@code remaining()}. - * @param end the end index of the sub-sequence, referenced from the current buffer position. Must not be less than - * {@code start} and not be greater than the value obtained from a call to {@code remaining()}. - * @return a new char buffer represents a sub-sequence of this buffer's current remaining content. - * @exception IndexOutOfBoundsException if either {@code start} or {@code end} is invalid. - * @since Android 1.0 */ - public abstract CharSequence subSequence (int start, int end); - - /** Returns a string representing the current remaining chars of this buffer. - * - * @return a string representing the current remaining chars of this buffer. - * @since Android 1.0 */ - public String toString () { - StringBuffer strbuf = new StringBuffer(); - for (int i = position; i < limit; i++) { - strbuf.append(get(i)); - } - return strbuf.toString(); - } - - /** Writes the given char to the current position and increases the position by 1. - * - * @param c the char to write. - * @return this buffer. - * @exception BufferOverflowException if position is equal or greater than limit. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public CharBuffer append (char c) { - return put(c); - } - - /** Writes all chars of the given character sequence {@code csq} to the current position of this buffer, and increases the - * position by the length of the csq. - *

- * Calling this method has the same effect as {@code append(csq.toString())}. - *

- * If the {@code CharSequence} is {@code null} the string "null" will be written to the buffer. - * - * @param csq the {@code CharSequence} to write. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than the length of csq. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public CharBuffer append (CharSequence csq) { - if (csq != null) { - return put(csq.toString()); - } - return put("null"); //$NON-NLS-1$ - } - - /** Writes chars of the given {@code CharSequence} to the current position of this buffer, and increases the position by the - * number of chars written. - * - * @param csq the {@code CharSequence} to write. - * @param start the first char to write, must not be negative and not greater than {@code csq.length()}. - * @param end the last char to write (excluding), must be less than {@code start} and not greater than {@code csq.length()}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code end - start}. - * @exception IndexOutOfBoundsException if either {@code start} or {@code end} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public CharBuffer append (CharSequence csq, int start, int end) { - if (csq == null) { - csq = "null"; //$NON-NLS-1$ - } - CharSequence cs = csq.subSequence(start, end); - if (cs.length() > 0) { - return put(cs.toString()); - } - return this; - } - - /** Reads characters from this buffer and puts them into {@code target}. The number of chars that are copied is either the - * number of remaining chars in this buffer or the number of remaining chars in {@code target}, whichever is smaller. - * - * @param target the target char buffer. - * @throws IllegalArgumentException if {@code target} is this buffer. - * @throws IOException if an I/O error occurs. - * @throws ReadOnlyBufferException if no changes may be made to the contents of {@code target}. - * @return the number of chars copied or -1 if there are no chars left to be read from this buffer. - * @since Android 1.0 */ - public int read (CharBuffer target) throws IOException { - if (target == this) { - throw new IllegalArgumentException(); - } - if (remaining() == 0) { - return target.remaining() == 0 ? 0 : -1; - } - int result = Math.min(target.remaining(), remaining()); - char[] chars = new char[result]; - get(chars); - target.put(chars); - return result; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/CharSequenceAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/CharSequenceAdapter.java deleted file mode 100644 index 45b7e77e..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/CharSequenceAdapter.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** This class wraps a char sequence to be a char buffer. - *

- * Implementation notice: - *

    - *
  • Char sequence based buffer is always readonly.
  • - *
- *

*/ -final class CharSequenceAdapter extends CharBuffer { - - static CharSequenceAdapter copy (CharSequenceAdapter other) { - CharSequenceAdapter buf = new CharSequenceAdapter(other.sequence); - buf.limit = other.limit; - buf.position = other.position; - buf.mark = other.mark; - return buf; - } - - final CharSequence sequence; - - CharSequenceAdapter (CharSequence chseq) { - super(chseq.length()); - sequence = chseq; - } - - public CharBuffer asReadOnlyBuffer () { - return duplicate(); - } - - public CharBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public CharBuffer duplicate () { - return copy(this); - } - - public char get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return sequence.charAt(position++); - } - - public char get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return sequence.charAt(index); - } - - public final CharBuffer get (char[] dest, int off, int len) { - int length = dest.length; - if ((off < 0) || (len < 0) || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - int newPosition = position + len; - sequence.toString().getChars(position, newPosition, dest, off); - position = newPosition; - return this; - } - - public boolean isDirect () { - return false; - } - - public boolean isReadOnly () { - return true; - } - - public ByteOrder order () { - return ByteOrder.nativeOrder(); - } - - protected char[] protectedArray () { - throw new UnsupportedOperationException(); - } - - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public CharBuffer put (char c) { - throw new ReadOnlyBufferException(); - } - - public CharBuffer put (int index, char c) { - throw new ReadOnlyBufferException(); - } - - public final CharBuffer put (char[] src, int off, int len) { - if ((off < 0) || (len < 0) || (long)off + (long)len > src.length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferOverflowException(); - } - - throw new ReadOnlyBufferException(); - } - - public CharBuffer put (String src, int start, int end) { - if ((start < 0) || (end < 0) || (long)start + (long)end > src.length()) { - throw new IndexOutOfBoundsException(); - } - throw new ReadOnlyBufferException(); - } - - public CharBuffer slice () { - return new CharSequenceAdapter(sequence.subSequence(position, limit)); - } - - public CharSequence subSequence (int start, int end) { - if (end < start || start < 0 || end > remaining()) { - throw new IndexOutOfBoundsException(); - } - - CharSequenceAdapter result = copy(this); - result.position = position + start; - result.limit = position + end; - return result; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/CharToByteBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/CharToByteBufferAdapter.java deleted file mode 100644 index 0f65cd43..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/CharToByteBufferAdapter.java +++ /dev/null @@ -1,211 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -//import org.apache.harmony.nio.internal.DirectBuffer; -//import org.apache.harmony.luni.platform.PlatformAddress; - -/** This class wraps a byte buffer to be a char buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class CharToByteBufferAdapter extends CharBuffer { // implements DirectBuffer { - - static CharBuffer wrap (ByteBuffer byteBuffer) { - return new CharToByteBufferAdapter(byteBuffer.slice()); - } - - private final ByteBuffer byteBuffer; - - CharToByteBufferAdapter (ByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 1)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - } - -// public int getByteCapacity() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getByteCapacity(); -// } -// assert false : byteBuffer; -// return -1; -// } -// -// public PlatformAddress getEffectiveAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getEffectiveAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public PlatformAddress getBaseAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getBaseAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public boolean isAddressValid() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).isAddressValid(); -// } -// assert false : byteBuffer; -// return false; -// } -// -// public void addressValidityCheck() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).addressValidityCheck(); -// } else { -// assert false : byteBuffer; -// } -// } -// -// public void free() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).free(); -// } else { -// assert false : byteBuffer; -// } -// } - - @Override - public CharBuffer asReadOnlyBuffer () { - CharToByteBufferAdapter buf = new CharToByteBufferAdapter(byteBuffer.asReadOnlyBuffer()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public CharBuffer compact () { - if (byteBuffer.isReadOnly()) { - throw new ReadOnlyBufferException(); - } - byteBuffer.limit(limit << 1); - byteBuffer.position(position << 1); - byteBuffer.compact(); - byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - @Override - public CharBuffer duplicate () { - CharToByteBufferAdapter buf = new CharToByteBufferAdapter(byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public char get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return byteBuffer.getChar(position++ << 1); - } - - @Override - public char get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return byteBuffer.getChar(index << 1); - } - - @Override - public boolean isDirect () { - return byteBuffer.isDirect(); - } - - @Override - public boolean isReadOnly () { - return byteBuffer.isReadOnly(); - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected char[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public CharBuffer put (char c) { - if (position == limit) { - throw new BufferOverflowException(); - } - byteBuffer.putChar(position++ << 1, c); - return this; - } - - @Override - public CharBuffer put (int index, char c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - byteBuffer.putChar(index << 1, c); - return this; - } - - @Override - public CharBuffer slice () { - byteBuffer.limit(limit << 1); - byteBuffer.position(position << 1); - CharBuffer result = new CharToByteBufferAdapter(byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - @Override - public CharSequence subSequence (int start, int end) { - if (start < 0 || end < start || end > remaining()) { - throw new IndexOutOfBoundsException(); - } - - CharBuffer result = duplicate(); - result.limit(position + end); - result.position(position + start); - return result; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java deleted file mode 100644 index 0b36e137..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectByteBuffer.java +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import java.io.Numbers; - -import org.w3c.dom.typedarray.ArrayBuffer; -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Int8Array; - -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; -import com.badlogic.gdx.backends.dragome.utils.Endianness; -import com.dragome.web.html.dom.w3c.ArrayBufferFactory; - -/** DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyHeapByteBuffer compose the implementation of direct byte buffers. - *

- * DirectByteBuffer implements all the shared readonly methods and is extended by the other two classes. - *

- *

- * All methods are marked final for runtime performance. - *

*/ -abstract class DirectByteBuffer extends BaseByteBuffer implements HasArrayBufferView -{ - - Int8Array byteArray; - - DirectByteBuffer(int capacity) - { - this(ArrayBufferFactory.createArrayBuffer(capacity), capacity, 0); - } - - DirectByteBuffer(ArrayBuffer buf) - { - this(buf, buf.getByteLength(), 0); - } - - DirectByteBuffer(ArrayBuffer buffer, int capacity, int offset) - { - super(capacity); - byteArray= TypedArraysFactory.createInstanceOf(Int8Array.class, buffer, offset, capacity); - } - - public ArrayBufferView getTypedArray() - { - return byteArray; - } - - public int getElementSize() - { - return 1; - } - - /* - * Override ByteBuffer.get(byte[], int, int) to improve performance. - * - * (non-Javadoc) - * - * @see java.nio.ByteBuffer#get(byte[], int, int) - */ - public final ByteBuffer get(byte[] dest, int off, int len) - { - int length= dest.length; - if (off < 0 || len < 0 || (long) off + (long) len > length) - { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) - { - throw new BufferUnderflowException(); - } - - for (int i= 0; i < len; i++) - { - dest[i + off]= get(position + i); - } - - position+= len; - return this; - } - - public final byte get() - { - // if (position == limit) { - // throw new BufferUnderflowException(); - // } - return (byte) byteArray.get(position++); - } - - public final byte get(int index) - { - // if (index < 0 || index >= limit) { - // throw new IndexOutOfBoundsException(); - // } - return (byte) byteArray.get(index); - } - - public final double getDouble() - { - return Numbers.longBitsToDouble(getLong()); - } - - public final double getDouble(int index) - { - return Numbers.longBitsToDouble(getLong(index)); - } - - public final float getFloat() - { - return Numbers.intBitsToFloat(getInt()); - } - - public final float getFloat(int index) - { - return Numbers.intBitsToFloat(getInt(index)); - } - - public final int getInt() - { - int newPosition= position + 4; - // if (newPosition > limit) { - // throw new BufferUnderflowException(); - // } - int result= loadInt(position); - position= newPosition; - return result; - } - - public final int getInt(int index) - { - // if (index < 0 || index + 4 > limit) { - // throw new IndexOutOfBoundsException(); - // } - return loadInt(index); - } - - public final long getLong() - { - int newPosition= position + 8; - // if (newPosition > limit) { - // throw new BufferUnderflowException(); - // } - long result= loadLong(position); - position= newPosition; - return result; - } - - public final long getLong(int index) - { - // if (index < 0 || index + 8 > limit) { - // throw new IndexOutOfBoundsException(); - // } - return loadLong(index); - } - - public final short getShort() - { - int newPosition= position + 2; - // if (newPosition > limit) { - // throw new BufferUnderflowException(); - // } - short result= loadShort(position); - position= newPosition; - return result; - } - - public final short getShort(int index) - { - // if (index < 0 || index + 2 > limit) { - // throw new IndexOutOfBoundsException(); - // } - return loadShort(index); - } - - public final boolean isDirect() - { - return false; - } - - protected final int loadInt(int baseOffset) - { - int bytes= 0; - if (order == Endianness.BIG_ENDIAN) - { - for (int i= 0; i < 4; i++) - { - bytes= bytes << 8; - bytes= bytes | (byteArray.get(baseOffset + i) & 0xFF); - } - } - else - { - for (int i= 3; i >= 0; i--) - { - bytes= bytes << 8; - bytes= bytes | (byteArray.get(baseOffset + i) & 0xFF); - } - } - return bytes; - } - - protected final long loadLong(int baseOffset) - { - long bytes= 0; - if (order == Endianness.BIG_ENDIAN) - { - for (int i= 0; i < 8; i++) - { - bytes= bytes << 8; - bytes= bytes | (byteArray.get(baseOffset + i) & 0xFF); - } - } - else - { - for (int i= 7; i >= 0; i--) - { - bytes= bytes << 8; - bytes= bytes | (byteArray.get(baseOffset + i) & 0xFF); - } - } - return bytes; - } - - protected final short loadShort(int baseOffset) - { - short bytes= 0; - if (order == Endianness.BIG_ENDIAN) - { - bytes= (short) (byteArray.get(baseOffset) << 8); - bytes|= (byteArray.get(baseOffset + 1) & 0xFF); - } - else - { - bytes= (short) (byteArray.get(baseOffset + 1) << 8); - bytes|= (byteArray.get(baseOffset) & 0xFF); - } - return bytes; - } - - protected final void store(int baseOffset, int value) - { - if (order == Endianness.BIG_ENDIAN) - { - for (int i= 3; i >= 0; i--) - { - byteArray.set(baseOffset + i, (byte) (value & 0xFF)); - value= value >> 8; - } - } - else - { - for (int i= 0; i <= 3; i++) - { - byteArray.set(baseOffset + i, (byte) (value & 0xFF)); - value= value >> 8; - } - } - } - - protected final void store(int baseOffset, long value) - { - if (order == Endianness.BIG_ENDIAN) - { - for (int i= 7; i >= 0; i--) - { - byteArray.set(baseOffset + i, (byte) (value & 0xFF)); - value= value >> 8; - } - } - else - { - for (int i= 0; i <= 7; i++) - { - byteArray.set(baseOffset + i, (byte) (value & 0xFF)); - value= value >> 8; - } - } - } - - protected final void store(int baseOffset, short value) - { - if (order == Endianness.BIG_ENDIAN) - { - byteArray.set(baseOffset, (byte) ((value >> 8) & 0xFF)); - byteArray.set(baseOffset + 1, (byte) (value & 0xFF)); - } - else - { - byteArray.set(baseOffset + 1, (byte) ((value >> 8) & 0xFF)); - byteArray.set(baseOffset, (byte) (value & 0xFF)); - } - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java deleted file mode 100644 index 9066d807..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyByteBuffer.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import org.w3c.dom.typedarray.ArrayBuffer; - -/** HeapByteBuffer, ReadWriteHeapByteBuffer and ReadOnlyHeapByteBuffer compose the implementation of array based byte buffers. - *

- * ReadOnlyHeapByteBuffer extends HeapByteBuffer with all the write methods throwing read only exception. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class DirectReadOnlyByteBuffer extends DirectByteBuffer { - - static DirectReadOnlyByteBuffer copy (DirectByteBuffer other, int markOfOther) { - DirectReadOnlyByteBuffer buf = new DirectReadOnlyByteBuffer(other.byteArray.getBuffer(), other.capacity(), - other.byteArray.getByteOffset()); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - buf.order(other.order()); - return buf; - } - - DirectReadOnlyByteBuffer (ArrayBuffer backingArray, int capacity, int arrayOffset) { - super(backingArray, capacity, arrayOffset); - } - - public ByteBuffer asReadOnlyBuffer () { - return copy(this, mark); - } - - public ByteBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return true; - } - - protected byte[] protectedArray () { - throw new ReadOnlyBufferException(); - } - - protected int protectedArrayOffset () { - throw new ReadOnlyBufferException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public FloatBuffer asFloatBuffer () { - return DirectReadOnlyFloatBufferAdapter.wrap(this); - } - - public IntBuffer asIntBuffer () { - return order() == ByteOrder.nativeOrder() ? DirectReadOnlyIntBufferAdapter.wrap(this) : super.asIntBuffer(); - } - - public ShortBuffer asShortBuffer () { - return order() == ByteOrder.nativeOrder() ? DirectReadOnlyShortBufferAdapter.wrap(this) : super.asShortBuffer(); - } - - public ByteBuffer put (byte b) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer put (int index, byte b) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer put (byte[] src, int off, int len) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putDouble (double value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putDouble (int index, double value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putFloat (float value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putFloat (int index, float value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putInt (int value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putInt (int index, int value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putLong (int index, long value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putLong (long value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putShort (int index, short value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putShort (short value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer put (ByteBuffer buf) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer slice () { - DirectReadOnlyByteBuffer slice = new DirectReadOnlyByteBuffer(byteArray.getBuffer(), remaining(), byteArray.getByteOffset() - + position); - slice.order = order; - return slice; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java deleted file mode 100644 index 25720400..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyFloatBufferAdapter.java +++ /dev/null @@ -1,146 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Float32Array; - -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; - -/** This class wraps a byte buffer to be a float buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class DirectReadOnlyFloatBufferAdapter extends FloatBuffer implements HasArrayBufferView { -// implements DirectBuffer { - - static FloatBuffer wrap (DirectByteBuffer byteBuffer) { - return new DirectReadOnlyFloatBufferAdapter((DirectByteBuffer)byteBuffer.slice()); - } - - private final DirectByteBuffer byteBuffer; - private final Float32Array floatArray; - - DirectReadOnlyFloatBufferAdapter (DirectByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 2)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - this.floatArray = TypedArraysFactory.createInstanceOf(Float32Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); - } - - @Override - public FloatBuffer asReadOnlyBuffer () { - DirectReadOnlyFloatBufferAdapter buf = new DirectReadOnlyFloatBufferAdapter(byteBuffer); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public FloatBuffer compact () { - throw new ReadOnlyBufferException(); - } - - @Override - public FloatBuffer duplicate () { - DirectReadOnlyFloatBufferAdapter buf = new DirectReadOnlyFloatBufferAdapter((DirectByteBuffer)byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public float get () { -// if (position == limit) { -// throw new BufferUnderflowException(); -// } - return floatArray.get(position++); - } - - @Override - public float get (int index) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - return floatArray.get(index); - } - - @Override - public boolean isDirect () { - return true; - } - - @Override - public boolean isReadOnly () { - return true; - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - float[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - boolean protectedHasArray () { - return false; - } - - @Override - public FloatBuffer put (float c) { - throw new ReadOnlyBufferException(); - } - - @Override - public FloatBuffer put (int index, float c) { - throw new ReadOnlyBufferException(); - } - - @Override - public FloatBuffer slice () { - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - FloatBuffer result = new DirectReadOnlyFloatBufferAdapter((DirectByteBuffer)byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - public ArrayBufferView getTypedArray () { - return floatArray; - } - - public int getElementSize () { - return 4; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java deleted file mode 100644 index 95c6f3a8..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyIntBufferAdapter.java +++ /dev/null @@ -1,146 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Int32Array; - -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; - -/** This class wraps a byte buffer to be a int buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class DirectReadOnlyIntBufferAdapter extends IntBuffer implements HasArrayBufferView { -// implements DirectBuffer { - - static IntBuffer wrap (DirectByteBuffer byteBuffer) { - return new DirectReadOnlyIntBufferAdapter((DirectByteBuffer)byteBuffer.slice()); - } - - private final DirectByteBuffer byteBuffer; - private final Int32Array intArray; - - DirectReadOnlyIntBufferAdapter (DirectByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 2)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - this.intArray = TypedArraysFactory.createInstanceOf(Int32Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); - } - - @Override - public IntBuffer asReadOnlyBuffer () { - DirectReadOnlyIntBufferAdapter buf = new DirectReadOnlyIntBufferAdapter(byteBuffer); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public IntBuffer compact () { - throw new ReadOnlyBufferException(); - } - - @Override - public IntBuffer duplicate () { - DirectReadOnlyIntBufferAdapter buf = new DirectReadOnlyIntBufferAdapter((DirectByteBuffer)byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public int get () { -// if (position == limit) { -// throw new BufferUnderflowException(); -// } - return intArray.get(position++); - } - - @Override - public int get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return intArray.get(index); - } - - @Override - public boolean isDirect () { - return true; - } - - @Override - public boolean isReadOnly () { - return true; - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected int[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public IntBuffer put (int c) { - throw new ReadOnlyBufferException(); - } - - @Override - public IntBuffer put (int index, int c) { - throw new ReadOnlyBufferException(); - } - - @Override - public IntBuffer slice () { - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - IntBuffer result = new DirectReadOnlyIntBufferAdapter((DirectByteBuffer)byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - public ArrayBufferView getTypedArray () { - return intArray; - } - - public int getElementSize () { - return 4; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java deleted file mode 100644 index ff5fad60..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadOnlyShortBufferAdapter.java +++ /dev/null @@ -1,145 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Int16Array; - -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; - -/** This class wraps a byte buffer to be a short buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class DirectReadOnlyShortBufferAdapter extends ShortBuffer implements HasArrayBufferView { - - static ShortBuffer wrap (DirectByteBuffer byteBuffer) { - return new DirectReadOnlyShortBufferAdapter((DirectByteBuffer)byteBuffer.slice()); - } - - private final DirectByteBuffer byteBuffer; - private final Int16Array shortArray; - - DirectReadOnlyShortBufferAdapter (DirectByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 1)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - this.shortArray = TypedArraysFactory.createInstanceOf(Int16Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); - } - - @Override - public ShortBuffer asReadOnlyBuffer () { - DirectReadOnlyShortBufferAdapter buf = new DirectReadOnlyShortBufferAdapter(byteBuffer); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public ShortBuffer compact () { - throw new ReadOnlyBufferException(); - } - - @Override - public ShortBuffer duplicate () { - DirectReadOnlyShortBufferAdapter buf = new DirectReadOnlyShortBufferAdapter((DirectByteBuffer)byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public short get () { -// if (position == limit) { -// throw new BufferUnderflowException(); -// } - return (short) shortArray.get(position++); - } - - @Override - public short get (int index) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - return (short) shortArray.get(index); - } - - @Override - public boolean isDirect () { - return true; - } - - @Override - public boolean isReadOnly () { - return true; - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected short[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public ShortBuffer put (short c) { - throw new ReadOnlyBufferException(); - } - - @Override - public ShortBuffer put (int index, short c) { - throw new ReadOnlyBufferException(); - } - - @Override - public ShortBuffer slice () { - byteBuffer.limit(limit << 1); - byteBuffer.position(position << 1); - ShortBuffer result = new DirectReadOnlyShortBufferAdapter((DirectByteBuffer)byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - public ArrayBufferView getTypedArray () { - return shortArray; - } - - public int getElementSize () { - return 2; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java deleted file mode 100644 index 4003c758..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteByteBuffer.java +++ /dev/null @@ -1,221 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import java.io.Numbers; - -import org.w3c.dom.typedarray.ArrayBuffer; - -/** DirectByteBuffer, DirectReadWriteByteBuffer and DirectReadOnlyByteBuffer compose the implementation of direct byte buffers. - *

- * DirectReadWriteByteBuffer extends DirectByteBuffer with all the write methods. - *

- *

- * This class is marked final for runtime performance. - *

*/ -public final class DirectReadWriteByteBuffer extends DirectByteBuffer { - - static DirectReadWriteByteBuffer copy (DirectByteBuffer other, int markOfOther) { - DirectReadWriteByteBuffer buf = new DirectReadWriteByteBuffer(other.byteArray.getBuffer(), other.capacity(), - other.byteArray.getByteOffset()); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - buf.order(other.order()); - return buf; - } - - DirectReadWriteByteBuffer (ArrayBuffer backingArray) { - super(backingArray); - } - - public DirectReadWriteByteBuffer (int capacity) { - super(capacity); - } - - DirectReadWriteByteBuffer (ArrayBuffer backingArray, int capacity, int arrayOffset) { - super(backingArray, capacity, arrayOffset); - } - - public FloatBuffer asFloatBuffer () { - return DirectReadWriteFloatBufferAdapter.wrap(this); - } - - public IntBuffer asIntBuffer () { - return order() == ByteOrder.nativeOrder() ? DirectReadWriteIntBufferAdapter.wrap(this) : super.asIntBuffer(); - } - - public ShortBuffer asShortBuffer () { - return order() == ByteOrder.nativeOrder() ? DirectReadWriteShortBufferAdapter.wrap(this) : super.asShortBuffer(); - } - - public ByteBuffer asReadOnlyBuffer () { - return DirectReadOnlyByteBuffer.copy(this, mark); - } - - public ByteBuffer compact () { -// System.arraycopy(backingArray, position + offset, backingArray, offset, -// remaining()); - - int rem = remaining(); - for (int i = 0; i < rem; i++) { - byteArray.set(i, byteArray.get(position + i)); - } - - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - public ByteBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return false; - } - - protected byte[] protectedArray () { - throw new UnsupportedOperationException(); - } - - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - protected boolean protectedHasArray () { - return true; - } - - public ByteBuffer put (byte b) { -// if (position == limit) { -// throw new BufferOverflowException(); -// } - byteArray.set(position++, b); - return this; - } - - public ByteBuffer put (int index, byte b) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - byteArray.set(index, b); - return this; - } - - /* - * Override ByteBuffer.put(byte[], int, int) to improve performance. - * - * (non-Javadoc) - * - * @see java.nio.ByteBuffer#put(byte[], int, int) - */ - public ByteBuffer put (byte[] src, int off, int len) { - if (off < 0 || len < 0 || (long)off + (long)len > src.length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferOverflowException(); - } - if (isReadOnly()) { - throw new ReadOnlyBufferException(); - } - for (int i = 0; i < len; i++) { - byteArray.set(i + position, src[off + i]); - } - position += len; - return this; - } - - public ByteBuffer putDouble (double value) { - return putLong(Numbers.doubleToRawLongBits(value)); - } - - public ByteBuffer putDouble (int index, double value) { - return putLong(index, Numbers.doubleToRawLongBits(value)); - } - - public ByteBuffer putFloat (float value) { - return putInt(Numbers.floatToIntBits(value)); - } - - public ByteBuffer putFloat (int index, float value) { - return putInt(index, Numbers.floatToIntBits(value)); - } - - public ByteBuffer putInt (int value) { - int newPosition = position + 4; -// if (newPosition > limit) { -// throw new BufferOverflowException(); -// } - store(position, value); - position = newPosition; - return this; - } - - public ByteBuffer putInt (int index, int value) { -// if (index < 0 || (long)index + 4 > limit) { -// throw new IndexOutOfBoundsException(); -// } - store(index, value); - return this; - } - - public ByteBuffer putLong (int index, long value) { -// if (index < 0 || (long)index + 8 > limit) { -// throw new IndexOutOfBoundsException(); -// } - store(index, value); - return this; - } - - public ByteBuffer putLong (long value) { - int newPosition = position + 8; -// if (newPosition > limit) { -// throw new BufferOverflowException(); -// } - store(position, value); - position = newPosition; - return this; - } - - public ByteBuffer putShort (int index, short value) { -// if (index < 0 || (long)index + 2 > limit) { -// throw new IndexOutOfBoundsException(); -// } - store(index, value); - return this; - } - - public ByteBuffer putShort (short value) { - int newPosition = position + 2; -// if (newPosition > limit) { -// throw new BufferOverflowException(); -// } - store(position, value); - position = newPosition; - return this; - } - - public ByteBuffer slice () { - DirectReadWriteByteBuffer slice = new DirectReadWriteByteBuffer(byteArray.getBuffer(), remaining(), - byteArray.getByteOffset() + position); - slice.order = order; - return slice; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java deleted file mode 100644 index 06a39e13..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteFloatBufferAdapter.java +++ /dev/null @@ -1,163 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Float32Array; - -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; - -/** This class wraps a byte buffer to be a float buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class DirectReadWriteFloatBufferAdapter extends FloatBuffer implements HasArrayBufferView { -// implements DirectBuffer { - - static FloatBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { - return new DirectReadWriteFloatBufferAdapter((DirectReadWriteByteBuffer)byteBuffer.slice()); - } - - private final DirectReadWriteByteBuffer byteBuffer; - private final Float32Array floatArray; - - DirectReadWriteFloatBufferAdapter (DirectReadWriteByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 2)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - this.floatArray = TypedArraysFactory.createInstanceOf(Float32Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); - } - - // TODO(haustein) This will be slow - @Override - public FloatBuffer asReadOnlyBuffer () { - DirectReadOnlyFloatBufferAdapter buf = new DirectReadOnlyFloatBufferAdapter(byteBuffer); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public FloatBuffer compact () { - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - byteBuffer.compact(); - byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - @Override - public FloatBuffer duplicate () { - DirectReadWriteFloatBufferAdapter buf = new DirectReadWriteFloatBufferAdapter( - (DirectReadWriteByteBuffer)byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public float get () { -// if (position == limit) { -// throw new BufferUnderflowException(); -// } - return floatArray.get(position++); - } - - @Override - public float get (int index) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - return floatArray.get(index); - } - - @Override - public boolean isDirect () { - return true; - } - - @Override - public boolean isReadOnly () { - return false; - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected float[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public FloatBuffer put (float c) { -// if (position == limit) { -// throw new BufferOverflowException(); -// } - floatArray.set(position++, c); - return this; - } - - @Override - public FloatBuffer put (int index, float c) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - floatArray.set(index, c); - return this; - } - - @Override - public FloatBuffer slice () { - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - FloatBuffer result = new DirectReadWriteFloatBufferAdapter((DirectReadWriteByteBuffer)byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - public ArrayBufferView getTypedArray () { - return floatArray; - } - - public int getElementSize () { - return 4; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java deleted file mode 100644 index 42425b3c..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteIntBufferAdapter.java +++ /dev/null @@ -1,161 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Int32Array; - -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; - -/** This class wraps a byte buffer to be a int buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class DirectReadWriteIntBufferAdapter extends IntBuffer implements HasArrayBufferView { - - static IntBuffer wrap (DirectReadWriteByteBuffer byteBuffer) { - return new DirectReadWriteIntBufferAdapter((DirectReadWriteByteBuffer)byteBuffer.slice()); - } - - private final DirectReadWriteByteBuffer byteBuffer; - private final Int32Array intArray; - - DirectReadWriteIntBufferAdapter (DirectReadWriteByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 2)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - this.intArray = TypedArraysFactory.createInstanceOf(Int32Array.class,byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); - } - - // TODO(haustein) This will be slow - @Override - public IntBuffer asReadOnlyBuffer () { - DirectReadOnlyIntBufferAdapter buf = new DirectReadOnlyIntBufferAdapter(byteBuffer); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public IntBuffer compact () { - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - byteBuffer.compact(); - byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - @Override - public IntBuffer duplicate () { - DirectReadWriteIntBufferAdapter buf = new DirectReadWriteIntBufferAdapter((DirectReadWriteByteBuffer)byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public int get () { -// if (position == limit) { -// throw new BufferUnderflowException(); -// } - return intArray.get(position++); - } - - @Override - public int get (int index) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - return intArray.get(index); - } - - @Override - public boolean isDirect () { - return true; - } - - @Override - public boolean isReadOnly () { - return false; - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected int[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public IntBuffer put (int c) { -// if (position == limit) { -// throw new BufferOverflowException(); -// } - intArray.set(position++, c); - return this; - } - - @Override - public IntBuffer put (int index, int c) { -// if (index < 0 || index >= limit) { -// throw new IndexOutOfBoundsException(); -// } - intArray.set(index, c); - return this; - } - - @Override - public IntBuffer slice () { - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - IntBuffer result = new DirectReadWriteIntBufferAdapter((DirectReadWriteByteBuffer)byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - public ArrayBufferView getTypedArray () { - return intArray; - } - - public int getElementSize () { - return 4; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java deleted file mode 100644 index 632e390b..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DirectReadWriteShortBufferAdapter.java +++ /dev/null @@ -1,182 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import org.w3c.dom.typedarray.ArrayBufferView; -import org.w3c.dom.typedarray.Int16Array; - -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; - -/** This class wraps a byte buffer to be a short buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class DirectReadWriteShortBufferAdapter extends ShortBuffer implements HasArrayBufferView -{ - // implements DirectBuffer { - - static ShortBuffer wrap(DirectReadWriteByteBuffer byteBuffer) - { - return new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer) byteBuffer.slice()); - } - - private final DirectReadWriteByteBuffer byteBuffer; - private final Int16Array shortArray; - - DirectReadWriteShortBufferAdapter(DirectReadWriteByteBuffer byteBuffer) - { - super((byteBuffer.capacity() >> 1)); - this.byteBuffer= byteBuffer; - this.byteBuffer.clear(); - this.shortArray= TypedArraysFactory.createInstanceOf(Int16Array.class, byteBuffer.byteArray.getBuffer(), byteBuffer.byteArray.getByteOffset(), capacity); - } - - // TODO(haustein) This will be slow - @Override - public ShortBuffer asReadOnlyBuffer() - { - DirectReadOnlyShortBufferAdapter buf= new DirectReadOnlyShortBufferAdapter(byteBuffer); - buf.limit= limit; - buf.position= position; - buf.mark= mark; - return buf; - } - - @Override - public ShortBuffer compact() - { - byteBuffer.limit(limit << 1); - byteBuffer.position(position << 1); - byteBuffer.compact(); - byteBuffer.clear(); - position= limit - position; - limit= capacity; - mark= UNSET_MARK; - return this; - } - - @Override - public ShortBuffer duplicate() - { - DirectReadWriteShortBufferAdapter buf= new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer) byteBuffer.duplicate()); - buf.limit= limit; - buf.position= position; - buf.mark= mark; - return buf; - } - - @Override - public short get() - { - // if (position == limit) { - // throw new BufferUnderflowException(); - // } - return (short) shortArray.get(position++); - } - - @Override - public short get(int index) - { - // if (index < 0 || index >= limit) { - // throw new IndexOutOfBoundsException(); - // } - return (short) shortArray.get(index); - } - - @Override - public boolean isDirect() - { - return true; - } - - @Override - public boolean isReadOnly() - { - return false; - } - - @Override - public ByteOrder order() - { - return byteBuffer.order(); - } - - @Override - protected short[] protectedArray() - { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset() - { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray() - { - return false; - } - - @Override - public ShortBuffer put(short c) - { - // if (position == limit) { - // throw new BufferOverflowException(); - // } - shortArray.set(position++, c); - return this; - } - - @Override - public ShortBuffer put(int index, short c) - { - // if (index < 0 || index >= limit) { - // throw new IndexOutOfBoundsException(); - // } - shortArray.set(index, c); - return this; - } - - @Override - public ShortBuffer slice() - { - byteBuffer.limit(limit << 1); - byteBuffer.position(position << 1); - ShortBuffer result= new DirectReadWriteShortBufferAdapter((DirectReadWriteByteBuffer) byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - public ArrayBufferView getTypedArray() - { - return shortArray; - } - - public int getElementSize() - { - return 2; - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DoubleArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DoubleArrayBuffer.java deleted file mode 100644 index f7270be8..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DoubleArrayBuffer.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** DoubleArrayBuffer, ReadWriteDoubleArrayBuffer and ReadOnlyDoubleArrayBuffer compose the implementation of array based double - * buffers. - *

- * DoubleArrayBuffer implements all the shared readonly methods and is extended by the other two classes. - *

- *

- * All methods are marked final for runtime performance. - *

*/ -abstract class DoubleArrayBuffer extends DoubleBuffer { - - protected final double[] backingArray; - - protected final int offset; - - DoubleArrayBuffer (double[] array) { - this(array.length, array, 0); - } - - DoubleArrayBuffer (int capacity) { - this(capacity, new double[capacity], 0); - } - - DoubleArrayBuffer (int capacity, double[] backingArray, int offset) { - super(capacity); - this.backingArray = backingArray; - this.offset = offset; - } - - public final double get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return backingArray[offset + position++]; - } - - public final double get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return backingArray[offset + index]; - } - - public final DoubleBuffer get (double[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - System.arraycopy(backingArray, offset + position, dest, off, len); - position += len; - return this; - } - - public final boolean isDirect () { - return false; - } - - public final ByteOrder order () { - return ByteOrder.nativeOrder(); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DoubleBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/DoubleBuffer.java deleted file mode 100644 index c88d69c6..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DoubleBuffer.java +++ /dev/null @@ -1,435 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A buffer of doubles. - *

- * A double buffer can be created in either one of the following ways: - *

- *
    - *
  • {@link #allocate(int) Allocate} a new double array and create a buffer based on it;
  • - *
  • {@link #wrap(double[]) Wrap} an existing double array to create a new buffer;
  • - *
  • Use {@link java.nio.ByteBuffer#asDoubleBuffer() ByteBuffer.asDoubleBuffer} to create a double buffer based on a byte buffer. - *
  • - *
- * - * @since Android 1.0 */ -public abstract class DoubleBuffer extends Buffer implements Comparable { - - /** Creates a double buffer based on a newly allocated double array. - * - * @param capacity the capacity of the new buffer. - * @return the created double buffer. - * @throws IllegalArgumentException if {@code capacity} is less than zero. - * @since Android 1.0 */ - public static DoubleBuffer allocate (int capacity) { - if (capacity < 0) { - throw new IllegalArgumentException(); - } - return BufferFactory.newDoubleBuffer(capacity); - } - - /** Creates a new double buffer by wrapping the given double array. - *

- * Calling this method has the same effect as {@code wrap(array, 0, array.length)}. - *

- * - * @param array the double array which the new buffer will be based on. - * @return the created double buffer. - * @since Android 1.0 */ - public static DoubleBuffer wrap (double[] array) { - return wrap(array, 0, array.length); - } - - /** Creates a new double buffer by wrapping the given double array. - *

- * The new buffer's position will be {@code start}, limit will be {@code start + len}, capacity will be the length of the array. - *

- * - * @param array the double array which the new buffer will be based on. - * @param start the start index, must not be negative and not greater than {@code array.length}. - * @param len the length, must not be negative and not greater than {@code array.length - start}. - * @return the created double buffer. - * @exception IndexOutOfBoundsException if either {@code start} or {@code len} is invalid. - * @since Android 1.0 */ - public static DoubleBuffer wrap (double[] array, int start, int len) { - int length = array.length; - if (start < 0 || len < 0 || (long)start + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - DoubleBuffer buf = BufferFactory.newDoubleBuffer(array); - buf.position = start; - buf.limit = start + len; - - return buf; - } - - /** Constructs a {@code DoubleBuffer} with given capacity. - * - * @param capacity the capacity of the buffer. */ - DoubleBuffer (int capacity) { - super(capacity); - } - - /** Returns the double array which this buffer is based on, if there is one. - * - * @return the double array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final double[] array () { - return protectedArray(); - } - - /** Returns the offset of the double array which this buffer is based on, if there is one. - *

- * The offset is the index of the array corresponding to the zero position of the buffer. - *

- * - * @return the offset of the double array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final int arrayOffset () { - return protectedArrayOffset(); - } - - /** Returns a read-only buffer that shares its content with this buffer. - *

- * The returned buffer is guaranteed to be a new instance, even if this buffer is read-only itself. The new buffer's position, - * limit, capacity and mark are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means that this buffer's change of content will be visible to the - * new buffer. The two buffer's position, limit and mark are independent. - *

- * - * @return a read-only version of this buffer. - * @since Android 1.0 */ - public abstract DoubleBuffer asReadOnlyBuffer (); - - /** Compacts this double buffer. - *

- * The remaining doubles will be moved to the head of the buffer, staring from position zero. Then the position is set to - * {@code remaining()}; the limit is set to capacity; the mark is cleared. - *

- * - * @return this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract DoubleBuffer compact (); - - /** Compare the remaining doubles of this buffer to another double buffer's remaining doubles. - * - * @param otherBuffer another double buffer. - * @return a negative value if this is less than {@code other}; 0 if this equals to {@code other}; a positive value if this is - * greater than {@code other}. - * @exception ClassCastException if {@code other} is not a double buffer. - * @since Android 1.0 */ - public int compareTo (DoubleBuffer otherBuffer) { - int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); - int thisPos = position; - int otherPos = otherBuffer.position; - // BEGIN android-changed - double thisDouble, otherDouble; - while (compareRemaining > 0) { - thisDouble = get(thisPos); - otherDouble = otherBuffer.get(otherPos); - // checks for double and NaN inequality - if ((thisDouble != otherDouble) && ((thisDouble == thisDouble) || (otherDouble == otherDouble))) { - return thisDouble < otherDouble ? -1 : 1; - } - thisPos++; - otherPos++; - compareRemaining--; - } - // END android-changed - return remaining() - otherBuffer.remaining(); - } - - /** Returns a duplicated buffer that shares its content with this buffer. - *

- * The duplicated buffer's position, limit, capacity and mark are the same as this buffer's. The duplicated buffer's read-only - * property and byte order are the same as this buffer's, too. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a duplicated buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract DoubleBuffer duplicate (); - - /** Checks whether this double buffer is equal to another object. - *

- * If {@code other} is not a double buffer then {@code false} is returned. Two double buffers are equal if and only if their - * remaining doubles are exactly the same. Position, limit, capacity and mark are not considered. - *

- * - * @param other the object to compare with this double buffer. - * @return {@code true} if this double buffer is equal to {@code other}, {@code false} otherwise. - * @since Android 1.0 */ - public boolean equals (Object other) { - if (!(other instanceof DoubleBuffer)) { - return false; - } - DoubleBuffer otherBuffer = (DoubleBuffer)other; - - if (remaining() != otherBuffer.remaining()) { - return false; - } - - int myPosition = position; - int otherPosition = otherBuffer.position; - boolean equalSoFar = true; - while (equalSoFar && (myPosition < limit)) { - equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); - } - - return equalSoFar; - } - - /** Returns the double at the current position and increases the position by 1. - * - * @return the double at the current position. - * @exception BufferUnderflowException if the position is equal or greater than limit. - * @since Android 1.0 */ - public abstract double get (); - - /** Reads doubles from the current position into the specified double array and increases the position by the number of doubles - * read. - *

- * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. - *

- * - * @param dest the destination double array. - * @return this buffer. - * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. - * @since Android 1.0 */ - public DoubleBuffer get (double[] dest) { - return get(dest, 0, dest.length); - } - - /** Reads doubles from the current position into the specified double array, starting from the specified offset, and increases - * the position by the number of doubles read. - * - * @param dest the target double array. - * @param off the offset of the double array, must not be negative and not greater than {@code dest.length}. - * @param len the number of doubles to read, must be no less than zero and not greater than {@code dest.length - off}. - * @return this buffer. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception BufferUnderflowException if {@code len} is greater than {@code remaining()}. - * @since Android 1.0 */ - public DoubleBuffer get (double[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferUnderflowException(); - } - for (int i = off; i < off + len; i++) { - dest[i] = get(); - } - return this; - } - - /** Returns a double at the specified index; the position is not changed. - * - * @param index the index, must not be negative and less than limit. - * @return a double at the specified index. - * @exception IndexOutOfBoundsException if index is invalid. - * @since Android 1.0 */ - public abstract double get (int index); - - /** Indicates whether this buffer is based on a double array and is read/write. - * - * @return {@code true} if this buffer is based on a double array and provides read/write access, {@code false} otherwise. - * @since Android 1.0 */ - public final boolean hasArray () { - return protectedHasArray(); - } - -// /** -// * Calculates this buffer's hash code from the remaining chars. The -// * position, limit, capacity and mark don't affect the hash code. -// * -// * @return the hash code calculated from the remaining chars. -// * @since Android 1.0 -// */ -// public int hashCode() { -// int myPosition = position; -// int hash = 0; -// long l; -// while (myPosition < limit) { -// l = Double.doubleToLongBits(get(myPosition++)); -// hash = hash + ((int) l) ^ ((int) (l >> 32)); -// } -// return hash; -// } - - /** Indicates whether this buffer is direct. A direct buffer will try its best to take advantage of native memory APIs and it - * may not stay in the Java heap, so it is not affected by garbage collection. - *

- * A double buffer is direct if it is based on a byte buffer and the byte buffer is direct. - *

- * - * @return {@code true} if this buffer is direct, {@code false} otherwise. - * @since Android 1.0 */ - public abstract boolean isDirect (); - - /** Returns the byte order used by this buffer when converting doubles from/to bytes. - *

- * If this buffer is not based on a byte buffer, then this always returns the platform's native byte order. - *

- * - * @return the byte order used by this buffer when converting doubles from/to bytes. - * @since Android 1.0 */ - public abstract ByteOrder order (); - - /** Child class implements this method to realize {@code array()}. - * - * @see #array() */ - abstract double[] protectedArray (); - - /** Child class implements this method to realize {@code arrayOffset()}. - * - * @see #arrayOffset() */ - abstract int protectedArrayOffset (); - - /** Child class implements this method to realize {@code hasArray()}. - * - * @see #hasArray() */ - abstract boolean protectedHasArray (); - - /** Writes the given double to the current position and increases the position by 1. - * - * @param d the double to write. - * @return this buffer. - * @exception BufferOverflowException if position is equal or greater than limit. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract DoubleBuffer put (double d); - - /** Writes doubles from the given double array to the current position and increases the position by the number of doubles - * written. - *

- * Calling this method has the same effect as {@code put(src, 0, src.length)}. - *

- * - * @param src the source double array. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code src.length}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public final DoubleBuffer put (double[] src) { - return put(src, 0, src.length); - } - - /** Writes doubles from the given double array, starting from the specified offset, to the current position and increases the - * position by the number of doubles written. - * - * @param src the source double array. - * @param off the offset of double array, must not be negative and not greater than {@code src.length}. - * @param len the number of doubles to write, must be no less than zero and not greater than {@code src.length - off}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code len}. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public DoubleBuffer put (double[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferOverflowException(); - } - for (int i = off; i < off + len; i++) { - put(src[i]); - } - return this; - } - - /** Writes all the remaining doubles of the {@code src} double buffer to this buffer's current position, and increases both - * buffers' position by the number of doubles copied. - * - * @param src the source double buffer. - * @return this buffer. - * @exception BufferOverflowException if {@code src.remaining()} is greater than this buffer's {@code remaining()}. - * @exception IllegalArgumentException if {@code src} is this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public DoubleBuffer put (DoubleBuffer src) { - if (src == this) { - throw new IllegalArgumentException(); - } - if (src.remaining() > remaining()) { - throw new BufferOverflowException(); - } - double[] doubles = new double[src.remaining()]; - src.get(doubles); - put(doubles); - return this; - } - - /** Write a double to the specified index of this buffer and the position is not changed. - * - * @param index the index, must not be negative and less than the limit. - * @param d the double to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if index is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract DoubleBuffer put (int index, double d); - - /** Returns a sliced buffer that shares its content with this buffer. - *

- * The sliced buffer's capacity will be this buffer's {@code remaining()}, and its zero position will correspond to this - * buffer's current position. The new buffer's position will be 0, limit will be its capacity, and its mark is cleared. The new - * buffer's read-only property and byte order are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a sliced buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract DoubleBuffer slice (); - - /** Returns a string representing the state of this double buffer. - * - * @return A string representing the state of this double buffer. - * @since Android 1.0 */ - public String toString () { - StringBuffer buf = new StringBuffer(); - buf.append(getClass().getName()); - buf.append(", status: capacity="); //$NON-NLS-1$ - buf.append(capacity()); - buf.append(" position="); //$NON-NLS-1$ - buf.append(position()); - buf.append(" limit="); //$NON-NLS-1$ - buf.append(limit()); - return buf.toString(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/DoubleToByteBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/DoubleToByteBufferAdapter.java deleted file mode 100644 index 10c9ad9d..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/DoubleToByteBufferAdapter.java +++ /dev/null @@ -1,201 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -//import org.apache.harmony.nio.internal.DirectBuffer; -//import org.apache.harmony.luni.platform.PlatformAddress; - -/** This class wraps a byte buffer to be a double buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class DoubleToByteBufferAdapter extends DoubleBuffer { - // implements DirectBuffer { - - static DoubleBuffer wrap (ByteBuffer byteBuffer) { - return new DoubleToByteBufferAdapter(byteBuffer.slice()); - } - - private final ByteBuffer byteBuffer; - - DoubleToByteBufferAdapter (ByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 3)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - } - -// public int getByteCapacity() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getByteCapacity(); -// } -// assert false : byteBuffer; -// return -1; -// } -// -// public PlatformAddress getEffectiveAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getEffectiveAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public PlatformAddress getBaseAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getBaseAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public boolean isAddressValid() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).isAddressValid(); -// } -// assert false : byteBuffer; -// return false; -// } -// -// public void addressValidityCheck() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).addressValidityCheck(); -// } else { -// assert false : byteBuffer; -// } -// } -// -// public void free() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).free(); -// } else { -// assert false : byteBuffer; -// } -// } - - @Override - public DoubleBuffer asReadOnlyBuffer () { - DoubleToByteBufferAdapter buf = new DoubleToByteBufferAdapter(byteBuffer.asReadOnlyBuffer()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public DoubleBuffer compact () { - if (byteBuffer.isReadOnly()) { - throw new ReadOnlyBufferException(); - } - byteBuffer.limit(limit << 3); - byteBuffer.position(position << 3); - byteBuffer.compact(); - byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - @Override - public DoubleBuffer duplicate () { - DoubleToByteBufferAdapter buf = new DoubleToByteBufferAdapter(byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public double get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return byteBuffer.getDouble(position++ << 3); - } - - @Override - public double get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return byteBuffer.getDouble(index << 3); - } - - @Override - public boolean isDirect () { - return byteBuffer.isDirect(); - } - - @Override - public boolean isReadOnly () { - return byteBuffer.isReadOnly(); - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected double[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public DoubleBuffer put (double c) { - if (position == limit) { - throw new BufferOverflowException(); - } - byteBuffer.putDouble(position++ << 3, c); - return this; - } - - @Override - public DoubleBuffer put (int index, double c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - byteBuffer.putDouble(index << 3, c); - return this; - } - - @Override - public DoubleBuffer slice () { - byteBuffer.limit(limit << 3); - byteBuffer.position(position << 3); - DoubleBuffer result = new DoubleToByteBufferAdapter(byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/FloatArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/FloatArrayBuffer.java deleted file mode 100644 index 4c6eca80..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/FloatArrayBuffer.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** FloatArrayBuffer, ReadWriteFloatArrayBuffer and ReadOnlyFloatArrayBuffer compose the implementation of array based float - * buffers. - *

- * FloatArrayBuffer implements all the shared readonly methods and is extended by the other two classes. - *

- *

- * All methods are marked final for runtime performance. - *

*/ -abstract class FloatArrayBuffer extends FloatBuffer { - - protected final float[] backingArray; - - protected final int offset; - - FloatArrayBuffer (float[] array) { - this(array.length, array, 0); - } - - FloatArrayBuffer (int capacity) { - this(capacity, new float[capacity], 0); - } - - FloatArrayBuffer (int capacity, float[] backingArray, int offset) { - super(capacity); - this.backingArray = backingArray; - this.offset = offset; - } - - public final float get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return backingArray[offset + position++]; - } - - public final float get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return backingArray[offset + index]; - } - - public final FloatBuffer get (float[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - System.arraycopy(backingArray, offset + position, dest, off, len); - position += len; - return this; - } - - public final boolean isDirect () { - return false; - } - - public final ByteOrder order () { - return ByteOrder.nativeOrder(); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/FloatBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/FloatBuffer.java deleted file mode 100644 index 9f34720e..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/FloatBuffer.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A buffer of floats. - *

- * A float buffer can be created in either of the following ways: - *

- *
    - *
  • {@link #allocate(int) Allocate} a new float array and create a buffer based on it;
  • - *
  • {@link #wrap(float[]) Wrap} an existing float array to create a new buffer;
  • - *
  • Use {@link java.nio.ByteBuffer#asFloatBuffer() ByteBuffer.asFloatBuffer} to create a float buffer based on a byte buffer.
  • - *
- * - * @since Android 1.0 */ -public abstract class FloatBuffer extends Buffer implements Comparable { - - /** Creates a float buffer based on a newly allocated float array. - * - * @param capacity the capacity of the new buffer. - * @return the created float buffer. - * @throws IllegalArgumentException if {@code capacity} is less than zero. - * @since Android 1.0 */ - public static FloatBuffer allocate (int capacity) { - if (capacity < 0) { - throw new IllegalArgumentException(); - } - return BufferFactory.newFloatBuffer(capacity); - } - - /** Creates a new float buffer by wrapping the given float array. - *

- * Calling this method has the same effect as {@code wrap(array, 0, array.length)}. - *

- * - * @param array the float array which the new buffer will be based on. - * @return the created float buffer. - * @since Android 1.0 */ - public static FloatBuffer wrap (float[] array) { - return wrap(array, 0, array.length); - } - - /** Creates a new float buffer by wrapping the given float array. - *

- * The new buffer's position will be {@code start}, limit will be {@code start + len}, capacity will be the length of the array. - *

- * - * @param array the float array which the new buffer will be based on. - * @param start the start index, must not be negative and not greater than {@code array.length}. - * @param len the length, must not be negative and not greater than {@code array.length - start}. - * @return the created float buffer. - * @exception IndexOutOfBoundsException if either {@code start} or {@code len} is invalid. - * @exception NullPointerException if {@code array} is null. - * @since Android 1.0 */ - public static FloatBuffer wrap (float[] array, int start, int len) { - if (array == null) { - throw new NullPointerException(); - } - if (start < 0 || len < 0 || (long)start + (long)len > array.length) { - throw new IndexOutOfBoundsException(); - } - - FloatBuffer buf = BufferFactory.newFloatBuffer(array); - buf.position = start; - buf.limit = start + len; - - return buf; - } - - /** Constructs a {@code FloatBuffer} with given capacity. - * - * @param capacity The capacity of the buffer */ - FloatBuffer (int capacity) { - super(capacity); - } - - /** Returns the float array which this buffer is based on, if there is one. - * - * @return the float array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final float[] array () { - return protectedArray(); - } - - /** Returns the offset of the float array which this buffer is based on, if there is one. - *

- * The offset is the index of the array and corresponds to the zero position of the buffer. - *

- * - * @return the offset of the float array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final int arrayOffset () { - return protectedArrayOffset(); - } - - /** Returns a read-only buffer that shares its content with this buffer. - *

- * The returned buffer is guaranteed to be a new instance, even if this buffer is read-only itself. The new buffer's position, - * limit, capacity and mark are the same as this buffer. - *

- *

- * The new buffer shares its content with this buffer, which means this buffer's change of content will be visible to the new - * buffer. The two buffer's position, limit and mark are independent. - *

- * - * @return a read-only version of this buffer. - * @since Android 1.0 */ - public abstract FloatBuffer asReadOnlyBuffer (); - - /** Compacts this float buffer. - *

- * The remaining floats will be moved to the head of the buffer, starting from position zero. Then the position is set to - * {@code remaining()}; the limit is set to capacity; the mark is cleared. - *

- * - * @return this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract FloatBuffer compact (); - - /** Compare the remaining floats of this buffer to another float buffer's remaining floats. - * - * @param otherBuffer another float buffer. - * @return a negative value if this is less than {@code otherBuffer}; 0 if this equals to {@code otherBuffer}; a positive value - * if this is greater than {@code otherBuffer}. - * @exception ClassCastException if {@code otherBuffer} is not a float buffer. - * @since Android 1.0 */ - public int compareTo (FloatBuffer otherBuffer) { - int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); - int thisPos = position; - int otherPos = otherBuffer.position; - // BEGIN android-changed - float thisFloat, otherFloat; - while (compareRemaining > 0) { - thisFloat = get(thisPos); - otherFloat = otherBuffer.get(otherPos); - // checks for float and NaN inequality - if ((thisFloat != otherFloat) && ((thisFloat == thisFloat) || (otherFloat == otherFloat))) { - return thisFloat < otherFloat ? -1 : 1; - } - thisPos++; - otherPos++; - compareRemaining--; - } - // END android-changed - return remaining() - otherBuffer.remaining(); - } - - /** Returns a duplicated buffer that shares its content with this buffer. - *

- * The duplicated buffer's position, limit, capacity and mark are the same as this buffer. The duplicated buffer's read-only - * property and byte order are same as this buffer too. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a duplicated buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract FloatBuffer duplicate (); - - /** Checks whether this float buffer is equal to another object. - *

- * If {@code other} is not a float buffer then {@code false} is returned. Two float buffers are equal if and only if their - * remaining floats are exactly the same. Position, limit, capacity and mark are not considered. - *

- * - * @param other the object to compare with this float buffer. - * @return {@code true} if this float buffer is equal to {@code other}, {@code false} otherwise. - * @since Android 1.0 */ - public boolean equals (Object other) { - if (!(other instanceof FloatBuffer)) { - return false; - } - FloatBuffer otherBuffer = (FloatBuffer)other; - - if (remaining() != otherBuffer.remaining()) { - return false; - } - - int myPosition = position; - int otherPosition = otherBuffer.position; - boolean equalSoFar = true; - while (equalSoFar && (myPosition < limit)) { - equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); - } - - return equalSoFar; - } - - /** Returns the float at the current position and increases the position by 1. - * - * @return the float at the current position. - * @exception BufferUnderflowException if the position is equal or greater than limit. - * @since Android 1.0 */ - public abstract float get (); - - /** Reads floats from the current position into the specified float array and increases the position by the number of floats - * read. - *

- * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. - *

- * - * @param dest the destination float array. - * @return this buffer. - * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. - * @since Android 1.0 */ - public FloatBuffer get (float[] dest) { - return get(dest, 0, dest.length); - } - - /** Reads floats from the current position into the specified float array, starting from the specified offset, and increases the - * position by the number of floats read. - * - * @param dest the target float array. - * @param off the offset of the float array, must not be negative and no greater than {@code dest.length}. - * @param len the number of floats to read, must be no less than zero and no greater than {@code dest.length - off}. - * @return this buffer. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception BufferUnderflowException if {@code len} is greater than {@code remaining()}. - * @since Android 1.0 */ - public FloatBuffer get (float[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferUnderflowException(); - } - for (int i = off; i < off + len; i++) { - dest[i] = get(); - } - return this; - } - - /** Returns a float at the specified index; the position is not changed. - * - * @param index the index, must not be negative and less than limit. - * @return a float at the specified index. - * @exception IndexOutOfBoundsException if index is invalid. - * @since Android 1.0 */ - public abstract float get (int index); - - /** Indicates whether this buffer is based on a float array and is read/write. - * - * @return {@code true} if this buffer is based on a float array and provides read/write access, {@code false} otherwise. - * @since Android 1.0 */ - public final boolean hasArray () { - return protectedHasArray(); - } - -// /** -// * Calculates this buffer's hash code from the remaining chars. The -// * position, limit, capacity and mark don't affect the hash code. -// * -// * @return the hash code calculated from the remaining floats. -// * @since Android 1.0 -// */ -// public int hashCode() { -// int myPosition = position; -// int hash = 0; -// while (myPosition < limit) { -// hash = hash + Float.floatToIntBits(get(myPosition++)); -// } -// return hash; -// } - - /** Indicates whether this buffer is direct. A direct buffer will try its best to take advantage of native memory APIs and it - * may not stay in the Java heap, so it is not affected by garbage collection. - *

- * A float buffer is direct if it is based on a byte buffer and the byte buffer is direct. - *

- * - * @return {@code true} if this buffer is direct, {@code false} otherwise. - * @since Android 1.0 */ - public abstract boolean isDirect (); - - /** Returns the byte order used by this buffer when converting floats from/to bytes. - *

- * If this buffer is not based on a byte buffer, then always return the platform's native byte order. - *

- * - * @return the byte order used by this buffer when converting floats from/to bytes. - * @since Android 1.0 */ - public abstract ByteOrder order (); - - /** Child class implements this method to realize {@code array()}. - * - * @return see {@code array()} */ - abstract float[] protectedArray (); - - /** Child class implements this method to realize {@code arrayOffset()}. - * - * @return see {@code arrayOffset()} */ - abstract int protectedArrayOffset (); - - /** Child class implements this method to realize {@code hasArray()}. - * - * @return see {@code hasArray()} */ - abstract boolean protectedHasArray (); - - /** Writes the given float to the current position and increases the position by 1. - * - * @param f the float to write. - * @return this buffer. - * @exception BufferOverflowException if position is equal or greater than limit. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract FloatBuffer put (float f); - - /** Writes floats from the given float array to the current position and increases the position by the number of floats written. - *

- * Calling this method has the same effect as {@code put(src, 0, src.length)}. - *

- * - * @param src the source float array. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code src.length}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public final FloatBuffer put (float[] src) { - return put(src, 0, src.length); - } - - /** Writes floats from the given float array, starting from the specified offset, to the current position and increases the - * position by the number of floats written. - * - * @param src the source float array. - * @param off the offset of float array, must not be negative and not greater than {@code src.length}. - * @param len the number of floats to write, must be no less than zero and no greater than {@code src.length - off}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code len}. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public FloatBuffer put (float[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferOverflowException(); - } - for (int i = off; i < off + len; i++) { - put(src[i]); - } - return this; - } - - /** Writes all the remaining floats of the {@code src} float buffer to this buffer's current position, and increases both - * buffers' position by the number of floats copied. - * - * @param src the source float buffer. - * @return this buffer. - * @exception BufferOverflowException if {@code src.remaining()} is greater than this buffer's {@code remaining()}. - * @exception IllegalArgumentException if {@code src} is this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public FloatBuffer put (FloatBuffer src) { - if (src == this) { - throw new IllegalArgumentException(); - } - if (src.remaining() > remaining()) { - throw new BufferOverflowException(); - } - float[] contents = new float[src.remaining()]; - src.get(contents); - put(contents); - return this; - } - - /** Writes a float to the specified index of this buffer; the position is not changed. - * - * @param index the index, must not be negative and less than the limit. - * @param f the float to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if index is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract FloatBuffer put (int index, float f); - - /** Returns a sliced buffer that shares its content with this buffer. - *

- * The sliced buffer's capacity will be this buffer's {@code remaining()}, and its zero position will correspond to this - * buffer's current position. The new buffer's position will be 0, limit will be its capacity, and its mark is cleared. The new - * buffer's read-only property and byte order are same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a sliced buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract FloatBuffer slice (); - - /** Returns a string representing the state of this float buffer. - * - * @return a string representing the state of this float buffer. - * @since Android 1.0 */ - public String toString () { - StringBuffer buf = new StringBuffer(); - buf.append(getClass().getName()); - buf.append(", status: capacity="); //$NON-NLS-1$ - buf.append(capacity()); - buf.append(" position="); //$NON-NLS-1$ - buf.append(position()); - buf.append(" limit="); //$NON-NLS-1$ - buf.append(limit()); - return buf.toString(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/FloatToByteBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/FloatToByteBufferAdapter.java deleted file mode 100644 index c0722b7a..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/FloatToByteBufferAdapter.java +++ /dev/null @@ -1,201 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -//import org.apache.harmony.nio.internal.DirectBuffer; -//import org.apache.harmony.luni.platform.PlatformAddress; - -/** This class wraps a byte buffer to be a float buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class FloatToByteBufferAdapter extends FloatBuffer { -// implements DirectBuffer { - - static FloatBuffer wrap (ByteBuffer byteBuffer) { - return new FloatToByteBufferAdapter(byteBuffer.slice()); - } - - private final ByteBuffer byteBuffer; - - FloatToByteBufferAdapter (ByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 2)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - } - -// public int getByteCapacity() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getByteCapacity(); -// } -// assert false : byteBuffer; -// return -1; -// } -// -// public PlatformAddress getEffectiveAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getEffectiveAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public PlatformAddress getBaseAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getBaseAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public boolean isAddressValid() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).isAddressValid(); -// } -// assert false : byteBuffer; -// return false; -// } -// -// public void addressValidityCheck() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).addressValidityCheck(); -// } else { -// assert false : byteBuffer; -// } -// } -// -// public void free() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).free(); -// } else { -// assert false : byteBuffer; -// } -// } - - @Override - public FloatBuffer asReadOnlyBuffer () { - FloatToByteBufferAdapter buf = new FloatToByteBufferAdapter(byteBuffer.asReadOnlyBuffer()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public FloatBuffer compact () { - if (byteBuffer.isReadOnly()) { - throw new ReadOnlyBufferException(); - } - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - byteBuffer.compact(); - byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - @Override - public FloatBuffer duplicate () { - FloatToByteBufferAdapter buf = new FloatToByteBufferAdapter(byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public float get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return byteBuffer.getFloat(position++ << 2); - } - - @Override - public float get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return byteBuffer.getFloat(index << 2); - } - - @Override - public boolean isDirect () { - return byteBuffer.isDirect(); - } - - @Override - public boolean isReadOnly () { - return byteBuffer.isReadOnly(); - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected float[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public FloatBuffer put (float c) { - if (position == limit) { - throw new BufferOverflowException(); - } - byteBuffer.putFloat(position++ << 2, c); - return this; - } - - @Override - public FloatBuffer put (int index, float c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - byteBuffer.putFloat(index << 2, c); - return this; - } - - @Override - public FloatBuffer slice () { - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - FloatBuffer result = new FloatToByteBufferAdapter(byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/HasArrayBufferView.java b/backends/gdx-backend-dragome/emu/java/nio/HasArrayBufferView.java deleted file mode 100644 index dd5d81db..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/HasArrayBufferView.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011 See AUTHORS file. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package java.nio; - -import org.w3c.dom.typedarray.ArrayBufferView; - -public interface HasArrayBufferView { - - public ArrayBufferView getTypedArray (); - - public int getElementSize (); -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/HeapByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/HeapByteBuffer.java deleted file mode 100644 index 913ea80c..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/HeapByteBuffer.java +++ /dev/null @@ -1,247 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import java.io.Numbers; - -import com.badlogic.gdx.backends.dragome.utils.Endianness; - -/** HeapByteBuffer, ReadWriteHeapByteBuffer and ReadOnlyHeapByteBuffer compose the implementation of array based byte buffers. - *

- * HeapByteBuffer implements all the shared readonly methods and is extended by the other two classes. - *

- *

- * All methods are marked final for runtime performance. - *

*/ -abstract class HeapByteBuffer extends BaseByteBuffer { - - protected final byte[] backingArray; - - protected final int offset; - - HeapByteBuffer (byte[] backingArray) { - this(backingArray, backingArray.length, 0); - } - - HeapByteBuffer (int capacity) { - this(new byte[capacity], capacity, 0); - } - - HeapByteBuffer (byte[] backingArray, int capacity, int offset) { - super(capacity); - this.backingArray = backingArray; - this.offset = offset; - - if (offset + capacity > backingArray.length) { - throw new IndexOutOfBoundsException(); - } - } - - /* - * Override ByteBuffer.get(byte[], int, int) to improve performance. - * - * (non-Javadoc) - * - * @see java.nio.ByteBuffer#get(byte[], int, int) - */ - public final ByteBuffer get (byte[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - System.arraycopy(backingArray, offset + position, dest, off, len); - position += len; - return this; - } - - public final byte get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return backingArray[offset + position++]; - } - - public final byte get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return backingArray[offset + index]; - } - - public final double getDouble () { - return Numbers.longBitsToDouble(getLong()); - } - - public final double getDouble (int index) { - return Numbers.longBitsToDouble(getLong(index)); - } - - public final float getFloat () { - return Numbers.intBitsToFloat(getInt()); - } - - public final float getFloat (int index) { - return Numbers.intBitsToFloat(getInt(index)); - } - - public final int getInt () { - int newPosition = position + 4; - if (newPosition > limit) { - throw new BufferUnderflowException(); - } - int result = loadInt(position); - position = newPosition; - return result; - } - - public final int getInt (int index) { - if (index < 0 || index + 4 > limit) { - throw new IndexOutOfBoundsException(); - } - return loadInt(index); - } - - public final long getLong () { - int newPosition = position + 8; - if (newPosition > limit) { - throw new BufferUnderflowException(); - } - long result = loadLong(position); - position = newPosition; - return result; - } - - public final long getLong (int index) { - if (index < 0 || index + 8 > limit) { - throw new IndexOutOfBoundsException(); - } - return loadLong(index); - } - - public final short getShort () { - int newPosition = position + 2; - if (newPosition > limit) { - throw new BufferUnderflowException(); - } - short result = loadShort(position); - position = newPosition; - return result; - } - - public final short getShort (int index) { - if (index < 0 || index + 2 > limit) { - throw new IndexOutOfBoundsException(); - } - return loadShort(index); - } - - public final boolean isDirect () { - return false; - } - - protected final int loadInt (int index) { - int baseOffset = offset + index; - int bytes = 0; - if (order == Endianness.BIG_ENDIAN) { - for (int i = 0; i < 4; i++) { - bytes = bytes << 8; - bytes = bytes | (backingArray[baseOffset + i] & 0xFF); - } - } else { - for (int i = 3; i >= 0; i--) { - bytes = bytes << 8; - bytes = bytes | (backingArray[baseOffset + i] & 0xFF); - } - } - return bytes; - } - - protected final long loadLong (int index) { - int baseOffset = offset + index; - long bytes = 0; - if (order == Endianness.BIG_ENDIAN) { - for (int i = 0; i < 8; i++) { - bytes = bytes << 8; - bytes = bytes | (backingArray[baseOffset + i] & 0xFF); - } - } else { - for (int i = 7; i >= 0; i--) { - bytes = bytes << 8; - bytes = bytes | (backingArray[baseOffset + i] & 0xFF); - } - } - return bytes; - } - - protected final short loadShort (int index) { - int baseOffset = offset + index; - short bytes = 0; - if (order == Endianness.BIG_ENDIAN) { - bytes = (short)(backingArray[baseOffset] << 8); - bytes |= (backingArray[baseOffset + 1] & 0xFF); - } else { - bytes = (short)(backingArray[baseOffset + 1] << 8); - bytes |= (backingArray[baseOffset] & 0xFF); - } - return bytes; - } - - protected final void store (int index, int value) { - int baseOffset = offset + index; - if (order == Endianness.BIG_ENDIAN) { - for (int i = 3; i >= 0; i--) { - backingArray[baseOffset + i] = (byte)(value & 0xFF); - value = value >> 8; - } - } else { - for (int i = 0; i <= 3; i++) { - backingArray[baseOffset + i] = (byte)(value & 0xFF); - value = value >> 8; - } - } - } - - protected final void store (int index, long value) { - int baseOffset = offset + index; - if (order == Endianness.BIG_ENDIAN) { - for (int i = 7; i >= 0; i--) { - backingArray[baseOffset + i] = (byte)(value & 0xFF); - value = value >> 8; - } - } else { - for (int i = 0; i <= 7; i++) { - backingArray[baseOffset + i] = (byte)(value & 0xFF); - value = value >> 8; - } - } - } - - protected final void store (int index, short value) { - int baseOffset = offset + index; - if (order == Endianness.BIG_ENDIAN) { - backingArray[baseOffset] = (byte)((value >> 8) & 0xFF); - backingArray[baseOffset + 1] = (byte)(value & 0xFF); - } else { - backingArray[baseOffset + 1] = (byte)((value >> 8) & 0xFF); - backingArray[baseOffset] = (byte)(value & 0xFF); - } - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/IntArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/IntArrayBuffer.java deleted file mode 100644 index 10a62ad4..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/IntArrayBuffer.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** IntArrayBuffer, ReadWriteIntArrayBuffer and ReadOnlyIntArrayBuffer compose the implementation of array based int buffers. - *

- * IntArrayBuffer implements all the shared readonly methods and is extended by the other two classes. - *

- *

- * All methods are marked final for runtime performance. - *

*/ -abstract class IntArrayBuffer extends IntBuffer { - - protected final int[] backingArray; - - protected final int offset; - - IntArrayBuffer (int[] array) { - this(array.length, array, 0); - } - - IntArrayBuffer (int capacity) { - this(capacity, new int[capacity], 0); - } - - IntArrayBuffer (int capacity, int[] backingArray, int offset) { - super(capacity); - this.backingArray = backingArray; - this.offset = offset; - } - - public final int get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return backingArray[offset + position++]; - } - - public final int get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return backingArray[offset + index]; - } - - public final IntBuffer get (int[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)len + (long)off > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - System.arraycopy(backingArray, offset + position, dest, off, len); - position += len; - return this; - } - - public final boolean isDirect () { - return false; - } - - public final ByteOrder order () { - return ByteOrder.nativeOrder(); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/IntBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/IntBuffer.java deleted file mode 100644 index dab83306..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/IntBuffer.java +++ /dev/null @@ -1,427 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A buffer of ints. - *

- * A int buffer can be created in either of the following ways: - *

- *
    - *
  • {@link #allocate(int) Allocate} a new int array and create a buffer based on it;
  • - *
  • {@link #wrap(int[]) Wrap} an existing int array to create a new buffer;
  • - *
  • Use {@link java.nio.ByteBuffer#asIntBuffer() ByteBuffer.asIntBuffer} to create a int buffer based on a byte buffer.
  • - *
- * - * @since Android 1.0 */ -public abstract class IntBuffer extends Buffer implements Comparable { - - /** Creates an int buffer based on a newly allocated int array. - * - * @param capacity the capacity of the new buffer. - * @return the created int buffer. - * @throws IllegalArgumentException if {@code capacity} is less than zero. - * @since Android 1.0 */ - public static IntBuffer allocate (int capacity) { - if (capacity < 0) { - throw new IllegalArgumentException(); - } - return BufferFactory.newIntBuffer(capacity); - } - - /** Creates a new int buffer by wrapping the given int array. - *

- * Calling this method has the same effect as {@code wrap(array, 0, array.length)}. - *

- * - * @param array the int array which the new buffer will be based on. - * @return the created int buffer. - * @since Android 1.0 */ - public static IntBuffer wrap (int[] array) { - return wrap(array, 0, array.length); - } - - /** Creates a new int buffer by wrapping the given int array. - *

- * The new buffer's position will be {@code start}, limit will be {@code start + len}, capacity will be the length of the array. - *

- * - * @param array the int array which the new buffer will be based on. - * @param start the start index, must not be negative and not greater than {@code array.length} - * @param len the length, must not be negative and not greater than {@code array.length - start}. - * @return the created int buffer. - * @exception IndexOutOfBoundsException if either {@code start} or {@code len} is invalid. - * @since Android 1.0 */ - public static IntBuffer wrap (int[] array, int start, int len) { - if (array == null) { - throw new NullPointerException(); - } - if (start < 0 || len < 0 || (long)len + (long)start > array.length) { - throw new IndexOutOfBoundsException(); - } - IntBuffer buf = BufferFactory.newIntBuffer(array); - buf.position = start; - buf.limit = start + len; - - return buf; - } - - /** Constructs a {@code IntBuffer} with given capacity. - * - * @param capacity the capacity of the buffer. */ - IntBuffer (int capacity) { - super(capacity); - } - - /** Returns the int array which this buffer is based on, if there is one. - * - * @return the int array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final int[] array () { - return protectedArray(); - } - - /** Returns the offset of the int array which this buffer is based on, if there is one. - *

- * The offset is the index of the array corresponds to the zero position of the buffer. - *

- * - * @return the offset of the int array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final int arrayOffset () { - return protectedArrayOffset(); - } - - /** Returns a read-only buffer that shares its content with this buffer. - *

- * The returned buffer is guaranteed to be a new instance, even this buffer is read-only itself. The new buffer's position, - * limit, capacity and mark are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means this buffer's change of content will be visible to the new - * buffer. The two buffer's position, limit and mark are independent. - *

- * - * @return a read-only version of this buffer. - * @since Android 1.0 */ - public abstract IntBuffer asReadOnlyBuffer (); - - /** Compacts this int buffer. - *

- * The remaining ints will be moved to the head of the buffer, starting from position zero. Then the position is set to - * {@code remaining()}; the limit is set to capacity; the mark is cleared. - *

- * - * @return this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract IntBuffer compact (); - - /** Compares the remaining ints of this buffer to another int buffer's remaining ints. - * - * @param otherBuffer another int buffer. - * @return a negative value if this is less than {@code other}; 0 if this equals to {@code other}; a positive value if this is - * greater than {@code other}. - * @exception ClassCastException if {@code other} is not an int buffer. - * @since Android 1.0 */ - public int compareTo (IntBuffer otherBuffer) { - int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); - int thisPos = position; - int otherPos = otherBuffer.position; - // BEGIN android-changed - int thisInt, otherInt; - while (compareRemaining > 0) { - thisInt = get(thisPos); - otherInt = otherBuffer.get(otherPos); - if (thisInt != otherInt) { - return thisInt < otherInt ? -1 : 1; - } - thisPos++; - otherPos++; - compareRemaining--; - } - // END android-changed - return remaining() - otherBuffer.remaining(); - } - - /** Returns a duplicated buffer that shares its content with this buffer. - *

- * The duplicated buffer's position, limit, capacity and mark are the same as this buffer. The duplicated buffer's read-only - * property and byte order are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a duplicated buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract IntBuffer duplicate (); - - /** Checks whether this int buffer is equal to another object. - *

- * If {@code other} is not a int buffer then {@code false} is returned. Two int buffers are equal if and only if their remaining - * ints are exactly the same. Position, limit, capacity and mark are not considered. - *

- * - * @param other the object to compare with this int buffer. - * @return {@code true} if this int buffer is equal to {@code other}, {@code false} otherwise. - * @since Android 1.0 */ - public boolean equals (Object other) { - if (!(other instanceof IntBuffer)) { - return false; - } - IntBuffer otherBuffer = (IntBuffer)other; - - if (remaining() != otherBuffer.remaining()) { - return false; - } - - int myPosition = position; - int otherPosition = otherBuffer.position; - boolean equalSoFar = true; - while (equalSoFar && (myPosition < limit)) { - equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); - } - - return equalSoFar; - } - - /** Returns the int at the current position and increases the position by 1. - * - * @return the int at the current position. - * @exception BufferUnderflowException if the position is equal or greater than limit. - * @since Android 1.0 */ - public abstract int get (); - - /** Reads ints from the current position into the specified int array and increases the position by the number of ints read. - *

- * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. - *

- * - * @param dest the destination int array. - * @return this buffer. - * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. - * @since Android 1.0 */ - public IntBuffer get (int[] dest) { - return get(dest, 0, dest.length); - } - - /** Reads ints from the current position into the specified int array, starting from the specified offset, and increases the - * position by the number of ints read. - * - * @param dest the target int array. - * @param off the offset of the int array, must not be negative and not greater than {@code dest.length}. - * @param len the number of ints to read, must be no less than zero and not greater than {@code dest.length - off}. - * @return this buffer. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception BufferUnderflowException if {@code len} is greater than {@code remaining()}. - * @since Android 1.0 */ - public IntBuffer get (int[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)len + (long)off > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - for (int i = off; i < off + len; i++) { - dest[i] = get(); - } - return this; - } - - /** Returns an int at the specified index; the position is not changed. - * - * @param index the index, must not be negative and less than limit. - * @return an int at the specified index. - * @exception IndexOutOfBoundsException if index is invalid. - * @since Android 1.0 */ - public abstract int get (int index); - - /** Indicates whether this buffer is based on a int array and is read/write. - * - * @return {@code true} if this buffer is based on a int array and provides read/write access, {@code false} otherwise. - * @since Android 1.0 */ - public final boolean hasArray () { - return protectedHasArray(); - } - - /** Calculates this buffer's hash code from the remaining chars. The position, limit, capacity and mark don't affect the hash - * code. - * - * @return the hash code calculated from the remaining ints. - * @since Android 1.0 */ - public int hashCode () { - int myPosition = position; - int hash = 0; - while (myPosition < limit) { - hash = hash + get(myPosition++); - } - return hash; - } - - /** Indicates whether this buffer is direct. A direct buffer will try its best to take advantage of native memory APIs and it - * may not stay in the Java heap, so it is not affected by garbage collection. - *

- * An int buffer is direct if it is based on a byte buffer and the byte buffer is direct. - *

- * - * @return {@code true} if this buffer is direct, {@code false} otherwise. - * @since Android 1.0 */ - public abstract boolean isDirect (); - - /** Returns the byte order used by this buffer when converting ints from/to bytes. - *

- * If this buffer is not based on a byte buffer, then always return the platform's native byte order. - *

- * - * @return the byte order used by this buffer when converting ints from/to bytes. - * @since Android 1.0 */ - public abstract ByteOrder order (); - - /** Child class implements this method to realize {@code array()}. - * - * @return see {@code array()} */ - protected abstract int[] protectedArray (); - - /** Child class implements this method to realize {@code arrayOffset()}. - * - * @return see {@code arrayOffset()} */ - protected abstract int protectedArrayOffset (); - - /** Child class implements this method to realize {@code hasArray()}. - * - * @return see {@code hasArray()} */ - protected abstract boolean protectedHasArray (); - - /** Writes the given int to the current position and increases the position by 1. - * - * @param i the int to write. - * @return this buffer. - * @exception BufferOverflowException if position is equal or greater than limit. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract IntBuffer put (int i); - - /** Writes ints from the given int array to the current position and increases the position by the number of ints written. - *

- * Calling this method has the same effect as {@code put(src, 0, src.length)}. - *

- * - * @param src the source int array. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code src.length}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public final IntBuffer put (int[] src) { - return put(src, 0, src.length); - } - - /** Writes ints from the given int array, starting from the specified offset, to the current position and increases the position - * by the number of ints written. - * - * @param src the source int array. - * @param off the offset of int array, must not be negative and not greater than {@code src.length}. - * @param len the number of ints to write, must be no less than zero and not greater than {@code src.length - off}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code len}. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public IntBuffer put (int[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)len + (long)off > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferOverflowException(); - } - for (int i = off; i < off + len; i++) { - put(src[i]); - } - return this; - } - - /** Writes all the remaining ints of the {@code src} int buffer to this buffer's current position, and increases both buffers' - * position by the number of ints copied. - * - * @param src the source int buffer. - * @return this buffer. - * @exception BufferOverflowException if {@code src.remaining()} is greater than this buffer's {@code remaining()}. - * @exception IllegalArgumentException if {@code src} is this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public IntBuffer put (IntBuffer src) { - if (src == this) { - throw new IllegalArgumentException(); - } - if (src.remaining() > remaining()) { - throw new BufferOverflowException(); - } - int[] contents = new int[src.remaining()]; - src.get(contents); - put(contents); - return this; - } - - /** Write a int to the specified index of this buffer; the position is not changed. - * - * @param index the index, must not be negative and less than the limit. - * @param i the int to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if index is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract IntBuffer put (int index, int i); - - /** Returns a sliced buffer that shares its content with this buffer. - *

- * The sliced buffer's capacity will be this buffer's {@code remaining()}, and its zero position will correspond to this - * buffer's current position. The new buffer's position will be 0, limit will be its capacity, and its mark is cleared. The new - * buffer's read-only property and byte order are same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a sliced buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract IntBuffer slice (); - - /** Returns a string represents of the state of this int buffer. - * - * @return a string represents of the state of this int buffer. - * @since Android 1.0 */ - public String toString () { - StringBuffer buf = new StringBuffer(); - buf.append(getClass().getName()); - buf.append(", status: capacity="); //$NON-NLS-1$ - buf.append(capacity()); - buf.append(" position="); //$NON-NLS-1$ - buf.append(position()); - buf.append(" limit="); //$NON-NLS-1$ - buf.append(limit()); - return buf.toString(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/IntToByteBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/IntToByteBufferAdapter.java deleted file mode 100644 index f2151ff5..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/IntToByteBufferAdapter.java +++ /dev/null @@ -1,205 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -//import org.apache.harmony.nio.internal.DirectBuffer; -//import org.apache.harmony.luni.platform.PlatformAddress; - -/** This class wraps a byte buffer to be a int buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class IntToByteBufferAdapter extends IntBuffer implements ByteBufferWrapper { -// implements DirectBuffer { - - static IntBuffer wrap (ByteBuffer byteBuffer) { - return new IntToByteBufferAdapter(byteBuffer.slice()); - } - - private final ByteBuffer byteBuffer; - - IntToByteBufferAdapter (ByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 2)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - } - -// public int getByteCapacity() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getByteCapacity(); -// } -// assert false : byteBuffer; -// return -1; -// } -// -// public PlatformAddress getEffectiveAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getEffectiveAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public PlatformAddress getBaseAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getBaseAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public boolean isAddressValid() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).isAddressValid(); -// } -// assert false : byteBuffer; -// return false; -// } -// -// public void addressValidityCheck() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).addressValidityCheck(); -// } else { -// assert false : byteBuffer; -// } -// } -// -// public void free() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).free(); -// } else { -// assert false : byteBuffer; -// } -// } - - @Override - public IntBuffer asReadOnlyBuffer () { - IntToByteBufferAdapter buf = new IntToByteBufferAdapter(byteBuffer.asReadOnlyBuffer()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public IntBuffer compact () { - if (byteBuffer.isReadOnly()) { - throw new ReadOnlyBufferException(); - } - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - byteBuffer.compact(); - byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - @Override - public IntBuffer duplicate () { - IntToByteBufferAdapter buf = new IntToByteBufferAdapter(byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public int get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return byteBuffer.getInt(position++ << 2); - } - - @Override - public int get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return byteBuffer.getInt(index << 2); - } - - @Override - public boolean isDirect () { - return byteBuffer.isDirect(); - } - - @Override - public boolean isReadOnly () { - return byteBuffer.isReadOnly(); - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected int[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public IntBuffer put (int c) { - if (position == limit) { - throw new BufferOverflowException(); - } - byteBuffer.putInt(position++ << 2, c); - return this; - } - - @Override - public IntBuffer put (int index, int c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - byteBuffer.putInt(index << 2, c); - return this; - } - - @Override - public IntBuffer slice () { - byteBuffer.limit(limit << 2); - byteBuffer.position(position << 2); - IntBuffer result = new IntToByteBufferAdapter(byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - public ByteBuffer getByteBuffer () { - return byteBuffer; - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/InvalidMarkException.java b/backends/gdx-backend-dragome/emu/java/nio/InvalidMarkException.java deleted file mode 100644 index a523dc5b..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/InvalidMarkException.java +++ /dev/null @@ -1,32 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** An {@code InvalidMarkException} is thrown when {@code reset()} is called on a buffer, but no mark has been set previously. - * - * @since Android 1.0 */ -public class InvalidMarkException extends IllegalStateException { - - private static final long serialVersionUID = 1698329710438510774L; - - /** Constructs an {@code InvalidMarkException}. - * - * @since Android 1.0 */ - public InvalidMarkException () { - super(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/LongArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/LongArrayBuffer.java deleted file mode 100644 index 73c9be06..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/LongArrayBuffer.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** LongArrayBuffer, ReadWriteLongArrayBuffer and ReadOnlyLongArrayBuffer compose the implementation of array based long buffers. - *

- * LongArrayBuffer implements all the shared readonly methods and is extended by the other two classes. - *

- *

- * All methods are marked final for runtime performance. - *

*/ -abstract class LongArrayBuffer extends LongBuffer { - - protected final long[] backingArray; - - protected final int offset; - - LongArrayBuffer (long[] array) { - this(array.length, array, 0); - } - - LongArrayBuffer (int capacity) { - this(capacity, new long[capacity], 0); - } - - LongArrayBuffer (int capacity, long[] backingArray, int offset) { - super(capacity); - this.backingArray = backingArray; - this.offset = offset; - } - - public final long get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return backingArray[offset + position++]; - } - - public final long get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return backingArray[offset + index]; - } - - public final LongBuffer get (long[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)len + (long)off > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - System.arraycopy(backingArray, offset + position, dest, off, len); - position += len; - return this; - } - - public final boolean isDirect () { - return false; - } - - public final ByteOrder order () { - return ByteOrder.nativeOrder(); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/LongBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/LongBuffer.java deleted file mode 100644 index 53a226fb..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/LongBuffer.java +++ /dev/null @@ -1,431 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A buffer of longs. - *

- * A long buffer can be created in either of the following ways: - *

- *
    - *
  • {@link #allocate(int) Allocate} a new long array and create a buffer based on it;
  • - *
  • {@link #wrap(long[]) Wrap} an existing long array to create a new buffer;
  • - *
  • Use {@link java.nio.ByteBuffer#asLongBuffer() ByteBuffer.asLongBuffer} to create a long buffer based on a byte buffer.
  • - *
- * - * @since Android 1.0 */ -public abstract class LongBuffer extends Buffer implements Comparable { - - /** Creates a long buffer based on a newly allocated long array. - * - * @param capacity the capacity of the new buffer. - * @return the created long buffer. - * @throws IllegalArgumentException if {@code capacity} is less than zero. - * @since Android 1.0 */ - public static LongBuffer allocate (int capacity) { - if (capacity < 0) { - throw new IllegalArgumentException(); - } - return BufferFactory.newLongBuffer(capacity); - } - - /** Creates a new long buffer by wrapping the given long array. - *

- * Calling this method has the same effect as {@code wrap(array, 0, array.length)}. - *

- * - * @param array the long array which the new buffer will be based on. - * @return the created long buffer. - * @since Android 1.0 */ - public static LongBuffer wrap (long[] array) { - return wrap(array, 0, array.length); - } - - /** Creates a new long buffer by wrapping the given long array. - *

- * The new buffer's position will be {@code start}, limit will be {@code start + len}, capacity will be the length of the array. - *

- * - * @param array the long array which the new buffer will be based on. - * @param start the start index, must not be negative and not greater than {@code array.length}. - * @param len the length, must not be negative and not greater than {@code array.length - start}. - * @return the created long buffer. - * @exception IndexOutOfBoundsException if either {@code start} or {@code len} is invalid. - * @since Android 1.0 */ - public static LongBuffer wrap (long[] array, int start, int len) { - if (array == null) { - throw new NullPointerException(); - } - if (start < 0 || len < 0 || (long)len + (long)start > array.length) { - throw new IndexOutOfBoundsException(); - } - - LongBuffer buf = BufferFactory.newLongBuffer(array); - buf.position = start; - buf.limit = start + len; - - return buf; - } - - /** Constructs a {@code LongBuffer} with given capacity. - * - * @param capacity The capacity of the buffer */ - LongBuffer (int capacity) { - super(capacity); - } - - /** Returns the long array which this buffer is based on, if there is one. - * - * @return the long array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final long[] array () { - return protectedArray(); - } - - /** Returns the offset of the long array which this buffer is based on, if there is one. - *

- * The offset is the index of the array and corresponds to the zero position of the buffer. - *

- * - * @return the offset of the long array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final int arrayOffset () { - return protectedArrayOffset(); - } - - /** Returns a read-only buffer that shares its content with this buffer. - *

- * The returned buffer is guaranteed to be a new instance, even if this buffer is read-only itself. The new buffer's position, - * limit, capacity and mark are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means this buffer's change of content will be visible to the new - * buffer. The two buffer's position, limit and mark are independent. - *

- * - * @return a read-only version of this buffer. - * @since Android 1.0 */ - public abstract LongBuffer asReadOnlyBuffer (); - - /** Compacts this long buffer. - *

- * The remaining longs will be moved to the head of the buffer, staring from position zero. Then the position is set to - * {@code remaining()}; the limit is set to capacity; the mark is cleared. - *

- * - * @return this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract LongBuffer compact (); - - /** Compare the remaining longs of this buffer to another long buffer's remaining longs. - * - * @param otherBuffer another long buffer. - * @return a negative value if this is less than {@code otherBuffer}; 0 if this equals to {@code otherBuffer}; a positive value - * if this is greater than {@code otherBuffer} - * @exception ClassCastException if {@code otherBuffer} is not a long buffer. - * @since Android 1.0 */ - public int compareTo (LongBuffer otherBuffer) { - int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); - int thisPos = position; - int otherPos = otherBuffer.position; - // BEGIN android-changed - long thisLong, otherLong; - while (compareRemaining > 0) { - thisLong = get(thisPos); - otherLong = otherBuffer.get(otherPos); - if (thisLong != otherLong) { - return thisLong < otherLong ? -1 : 1; - } - thisPos++; - otherPos++; - compareRemaining--; - } - // END android-changed - return remaining() - otherBuffer.remaining(); - } - - /** Returns a duplicated buffer that shares its content with this buffer. - *

- * The duplicated buffer's position, limit, capacity and mark are the same as this buffer. The duplicated buffer's read-only - * property and byte order are same as this buffer's, too. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a duplicated buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract LongBuffer duplicate (); - - /** Checks whether this long buffer is equal to another object. - *

- * If {@code other} is not a long buffer then {@code false} is returned. Two long buffers are equal if and only if their - * remaining longs are exactly the same. Position, limit, capacity and mark are not considered. - *

- * - * @param other the object to compare with this long buffer. - * @return {@code true} if this long buffer is equal to {@code other}, {@code false} otherwise. - * @since Android 1.0 */ - public boolean equals (Object other) { - if (!(other instanceof LongBuffer)) { - return false; - } - LongBuffer otherBuffer = (LongBuffer)other; - - if (remaining() != otherBuffer.remaining()) { - return false; - } - - int myPosition = position; - int otherPosition = otherBuffer.position; - boolean equalSoFar = true; - while (equalSoFar && (myPosition < limit)) { - equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); - } - - return equalSoFar; - } - - /** Returns the long at the current position and increase the position by 1. - * - * @return the long at the current position. - * @exception BufferUnderflowException if the position is equal or greater than limit. - * @since Android 1.0 */ - public abstract long get (); - - /** Reads longs from the current position into the specified long array and increases the position by the number of longs read. - *

- * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. - *

- * - * @param dest the destination long array. - * @return this buffer. - * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. - * @since Android 1.0 */ - public LongBuffer get (long[] dest) { - return get(dest, 0, dest.length); - } - - /** Reads longs from the current position into the specified long array, starting from the specified offset, and increase the - * position by the number of longs read. - * - * @param dest the target long array. - * @param off the offset of the long array, must not be negative and not greater than {@code dest.length}. - * @param len the number of longs to read, must be no less than zero and not greater than {@code dest.length - off}. - * @return this buffer. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception BufferUnderflowException if {@code len} is greater than {@code remaining()}. - * @since Android 1.0 */ - public LongBuffer get (long[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)len + (long)off > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferUnderflowException(); - } - for (int i = off; i < off + len; i++) { - dest[i] = get(); - } - return this; - } - - /** Returns the long at the specified index; the position is not changed. - * - * @param index the index, must not be negative and less than limit. - * @return the long at the specified index. - * @exception IndexOutOfBoundsException if index is invalid. - * @since Android 1.0 */ - public abstract long get (int index); - - /** Indicates whether this buffer is based on a long array and is read/write. - * - * @return {@code true} if this buffer is based on a long array and provides read/write access, {@code false} otherwise. - * @since Android 1.0 */ - public final boolean hasArray () { - return protectedHasArray(); - } - - /** Calculates this buffer's hash code from the remaining chars. The position, limit, capacity and mark don't affect the hash - * code. - * - * @return the hash code calculated from the remaining longs. - * @since Android 1.0 */ - public int hashCode () { - int myPosition = position; - int hash = 0; - long l; - while (myPosition < limit) { - l = get(myPosition++); - hash = hash + ((int)l) ^ ((int)(l >> 32)); - } - return hash; - } - - /** Indicates whether this buffer is direct. A direct buffer will try its best to take advantage of native memory APIs and it - * may not stay in the Java heap, so it is not affected by garbage collection. - *

- * A long buffer is direct if it is based on a byte buffer and the byte buffer is direct. - *

- * - * @return {@code true} if this buffer is direct, {@code false} otherwise. - * @since Android 1.0 */ - public abstract boolean isDirect (); - - /** Returns the byte order used by this buffer when converting longs from/to bytes. - *

- * If this buffer is not based on a byte buffer, then always return the platform's native byte order. - *

- * - * @return the byte order used by this buffer when converting longs from/to bytes. - * @since Android 1.0 */ - public abstract ByteOrder order (); - - /** Child class implements this method to realize {@code array()}. - * - * @return see {@code array()} */ - abstract long[] protectedArray (); - - /** Child class implements this method to realize {@code arrayOffset()}. - * - * @return see {@code arrayOffset()} */ - abstract int protectedArrayOffset (); - - /** Child class implements this method to realize {@code hasArray()}. - * - * @return see {@code hasArray()} */ - abstract boolean protectedHasArray (); - - /** Writes the given long to the current position and increases the position by 1. - * - * @param l the long to write. - * @return this buffer. - * @exception BufferOverflowException if position is equal or greater than limit. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract LongBuffer put (long l); - - /** Writes longs from the given long array to the current position and increases the position by the number of longs written. - *

- * Calling this method has the same effect as {@code put(src, 0, src.length)}. - *

- * - * @param src the source long array. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code src.length}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public final LongBuffer put (long[] src) { - return put(src, 0, src.length); - } - - /** Writes longs from the given long array, starting from the specified offset, to the current position and increases the - * position by the number of longs written. - * - * @param src the source long array. - * @param off the offset of long array, must not be negative and not greater than {@code src.length}. - * @param len the number of longs to write, must be no less than zero and not greater than {@code src.length - off}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code len}. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public LongBuffer put (long[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)len + (long)off > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferOverflowException(); - } - for (int i = off; i < off + len; i++) { - put(src[i]); - } - return this; - } - - /** Writes all the remaining longs of the {@code src} long buffer to this buffer's current position, and increases both buffers' - * position by the number of longs copied. - * - * @param src the source long buffer. - * @return this buffer. - * @exception BufferOverflowException if {@code src.remaining()} is greater than this buffer's {@code remaining()}. - * @exception IllegalArgumentException if {@code src} is this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public LongBuffer put (LongBuffer src) { - if (src == this) { - throw new IllegalArgumentException(); - } - if (src.remaining() > remaining()) { - throw new BufferOverflowException(); - } - long[] contents = new long[src.remaining()]; - src.get(contents); - put(contents); - return this; - } - - /** Writes a long to the specified index of this buffer; the position is not changed. - * - * @param index the index, must not be negative and less than the limit. - * @param l the long to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if index is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract LongBuffer put (int index, long l); - - /** Returns a sliced buffer that shares its content with this buffer. - *

- * The sliced buffer's capacity will be this buffer's {@code remaining()}, and its zero position will correspond to this - * buffer's current position. The new buffer's position will be 0, limit will be its capacity, and its mark is cleared. The new - * buffer's read-only property and byte order are same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a sliced buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract LongBuffer slice (); - - /** Returns a string representing the state of this long buffer. - * - * @return a string representing the state of this long buffer. - * @since Android 1.0 */ - public String toString () { - StringBuffer buf = new StringBuffer(); - buf.append(getClass().getName()); - buf.append(", status: capacity="); //$NON-NLS-1$ - buf.append(capacity()); - buf.append(" position="); //$NON-NLS-1$ - buf.append(position()); - buf.append(" limit="); //$NON-NLS-1$ - buf.append(limit()); - return buf.toString(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/LongToByteBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/LongToByteBufferAdapter.java deleted file mode 100644 index 410b3b30..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/LongToByteBufferAdapter.java +++ /dev/null @@ -1,200 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -//import org.apache.harmony.nio.internal.DirectBuffer; -//import org.apache.harmony.luni.platform.PlatformAddress; - -/** This class wraps a byte buffer to be a long buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class LongToByteBufferAdapter extends LongBuffer {// implements DirectBuffer { - - static LongBuffer wrap (ByteBuffer byteBuffer) { - return new LongToByteBufferAdapter(byteBuffer.slice()); - } - - private final ByteBuffer byteBuffer; - - LongToByteBufferAdapter (ByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 3)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - } - -// public int getByteCapacity() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getByteCapacity(); -// } -// assert false : byteBuffer; -// return -1; -// } -// -// public PlatformAddress getEffectiveAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getEffectiveAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public PlatformAddress getBaseAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getBaseAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public boolean isAddressValid() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).isAddressValid(); -// } -// assert false : byteBuffer; -// return false; -// } -// -// public void addressValidityCheck() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).addressValidityCheck(); -// } else { -// assert false : byteBuffer; -// } -// } -// -// public void free() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).free(); -// } else { -// assert false : byteBuffer; -// } -// } - - @Override - public LongBuffer asReadOnlyBuffer () { - LongToByteBufferAdapter buf = new LongToByteBufferAdapter(byteBuffer.asReadOnlyBuffer()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public LongBuffer compact () { - if (byteBuffer.isReadOnly()) { - throw new ReadOnlyBufferException(); - } - byteBuffer.limit(limit << 3); - byteBuffer.position(position << 3); - byteBuffer.compact(); - byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - @Override - public LongBuffer duplicate () { - LongToByteBufferAdapter buf = new LongToByteBufferAdapter(byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public long get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return byteBuffer.getLong(position++ << 3); - } - - @Override - public long get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return byteBuffer.getLong(index << 3); - } - - @Override - public boolean isDirect () { - return byteBuffer.isDirect(); - } - - @Override - public boolean isReadOnly () { - return byteBuffer.isReadOnly(); - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected long[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public LongBuffer put (long c) { - if (position == limit) { - throw new BufferOverflowException(); - } - byteBuffer.putLong(position++ << 3, c); - return this; - } - - @Override - public LongBuffer put (int index, long c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - byteBuffer.putLong(index << 3, c); - return this; - } - - @Override - public LongBuffer slice () { - byteBuffer.limit(limit << 3); - byteBuffer.position(position << 3); - LongBuffer result = new LongToByteBufferAdapter(byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyBufferException.java b/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyBufferException.java deleted file mode 100644 index 100ce78b..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyBufferException.java +++ /dev/null @@ -1,32 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A {@code ReadOnlyBufferException} is thrown when some write operation is called on a read-only buffer. - * - * @since Android 1.0 */ -public class ReadOnlyBufferException extends UnsupportedOperationException { - - private static final long serialVersionUID = -1210063976496234090L; - - /** Constructs a {@code ReadOnlyBufferException}. - * - * @since Android 1.0 */ - public ReadOnlyBufferException () { - super(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyCharArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyCharArrayBuffer.java deleted file mode 100644 index 773ab12d..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyCharArrayBuffer.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** CharArrayBuffer, ReadWriteCharArrayBuffer and ReadOnlyCharArrayBuffer compose the implementation of array based char buffers. - *

- * ReadOnlyCharArrayBuffer extends CharArrayBuffer with all the write methods throwing read only exception. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadOnlyCharArrayBuffer extends CharArrayBuffer { - - static ReadOnlyCharArrayBuffer copy (CharArrayBuffer other, int markOfOther) { - ReadOnlyCharArrayBuffer buf = new ReadOnlyCharArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadOnlyCharArrayBuffer (int capacity, char[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public CharBuffer asReadOnlyBuffer () { - return duplicate(); - } - - public CharBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public CharBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return true; - } - - protected char[] protectedArray () { - throw new ReadOnlyBufferException(); - } - - protected int protectedArrayOffset () { - throw new ReadOnlyBufferException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public CharBuffer put (char c) { - throw new ReadOnlyBufferException(); - } - - public CharBuffer put (int index, char c) { - throw new ReadOnlyBufferException(); - } - - public final CharBuffer put (char[] src, int off, int len) { - throw new ReadOnlyBufferException(); - } - - public final CharBuffer put (CharBuffer src) { - throw new ReadOnlyBufferException(); - } - - public CharBuffer put (String src, int start, int end) { - if ((start < 0) || (end < 0) || (long)start + (long)end > src.length()) { - throw new IndexOutOfBoundsException(); - } - throw new ReadOnlyBufferException(); - } - - public CharBuffer slice () { - return new ReadOnlyCharArrayBuffer(remaining(), backingArray, offset + position); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyDoubleArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyDoubleArrayBuffer.java deleted file mode 100644 index 372ac4e3..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyDoubleArrayBuffer.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** DoubleArrayBuffer, ReadWriteDoubleArrayBuffer and ReadOnlyDoubleArrayBuffer compose the implementation of array based double - * buffers. - *

- * ReadOnlyDoubleArrayBuffer extends DoubleArrayBuffer with all the write methods throwing read only exception. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadOnlyDoubleArrayBuffer extends DoubleArrayBuffer { - - static ReadOnlyDoubleArrayBuffer copy (DoubleArrayBuffer other, int markOfOther) { - ReadOnlyDoubleArrayBuffer buf = new ReadOnlyDoubleArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadOnlyDoubleArrayBuffer (int capacity, double[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public DoubleBuffer asReadOnlyBuffer () { - return duplicate(); - } - - public DoubleBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public DoubleBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return true; - } - - protected double[] protectedArray () { - throw new ReadOnlyBufferException(); - } - - protected int protectedArrayOffset () { - throw new ReadOnlyBufferException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public DoubleBuffer put (double c) { - throw new ReadOnlyBufferException(); - } - - public DoubleBuffer put (int index, double c) { - throw new ReadOnlyBufferException(); - } - - public final DoubleBuffer put (double[] src, int off, int len) { - throw new ReadOnlyBufferException(); - } - - public final DoubleBuffer put (DoubleBuffer buf) { - throw new ReadOnlyBufferException(); - } - - public DoubleBuffer slice () { - return new ReadOnlyDoubleArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyFloatArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyFloatArrayBuffer.java deleted file mode 100644 index 9bb46e2c..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyFloatArrayBuffer.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** FloatArrayBuffer, ReadWriteFloatArrayBuffer and ReadOnlyFloatArrayBuffer compose the implementation of array based float - * buffers. - *

- * ReadOnlyFloatArrayBuffer extends FloatArrayBuffer with all the write methods throwing read only exception. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadOnlyFloatArrayBuffer extends FloatArrayBuffer { - - static ReadOnlyFloatArrayBuffer copy (FloatArrayBuffer other, int markOfOther) { - ReadOnlyFloatArrayBuffer buf = new ReadOnlyFloatArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadOnlyFloatArrayBuffer (int capacity, float[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public FloatBuffer asReadOnlyBuffer () { - return duplicate(); - } - - public FloatBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public FloatBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return true; - } - - protected float[] protectedArray () { - throw new ReadOnlyBufferException(); - } - - protected int protectedArrayOffset () { - throw new ReadOnlyBufferException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public FloatBuffer put (float c) { - throw new ReadOnlyBufferException(); - } - - public FloatBuffer put (int index, float c) { - throw new ReadOnlyBufferException(); - } - - public FloatBuffer put (FloatBuffer buf) { - throw new ReadOnlyBufferException(); - } - - public final FloatBuffer put (float[] src, int off, int len) { - throw new ReadOnlyBufferException(); - } - - public FloatBuffer slice () { - return new ReadOnlyFloatArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyHeapByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyHeapByteBuffer.java deleted file mode 100644 index 5e6a4671..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyHeapByteBuffer.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** HeapByteBuffer, ReadWriteHeapByteBuffer and ReadOnlyHeapByteBuffer compose the implementation of array based byte buffers. - *

- * ReadOnlyHeapByteBuffer extends HeapByteBuffer with all the write methods throwing read only exception. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadOnlyHeapByteBuffer extends HeapByteBuffer { - - static ReadOnlyHeapByteBuffer copy (HeapByteBuffer other, int markOfOther) { - ReadOnlyHeapByteBuffer buf = new ReadOnlyHeapByteBuffer(other.backingArray, other.capacity(), other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - buf.order(other.order()); - return buf; - } - - ReadOnlyHeapByteBuffer (byte[] backingArray, int capacity, int arrayOffset) { - super(backingArray, capacity, arrayOffset); - } - - public ByteBuffer asReadOnlyBuffer () { - return copy(this, mark); - } - - public ByteBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return true; - } - - protected byte[] protectedArray () { - throw new ReadOnlyBufferException(); - } - - protected int protectedArrayOffset () { - throw new ReadOnlyBufferException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public ByteBuffer put (byte b) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer put (int index, byte b) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer put (byte[] src, int off, int len) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putDouble (double value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putDouble (int index, double value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putFloat (float value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putFloat (int index, float value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putInt (int value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putInt (int index, int value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putLong (int index, long value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putLong (long value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putShort (int index, short value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer putShort (short value) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer put (ByteBuffer buf) { - throw new ReadOnlyBufferException(); - } - - public ByteBuffer slice () { - ReadOnlyHeapByteBuffer slice = new ReadOnlyHeapByteBuffer(backingArray, remaining(), offset + position); - slice.order = order; - return slice; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyIntArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyIntArrayBuffer.java deleted file mode 100644 index 228db222..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyIntArrayBuffer.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** IntArrayBuffer, ReadWriteIntArrayBuffer and ReadOnlyIntArrayBuffer compose the implementation of array based int buffers. - *

- * ReadOnlyIntArrayBuffer extends IntArrayBuffer with all the write methods throwing read only exception. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadOnlyIntArrayBuffer extends IntArrayBuffer { - - static ReadOnlyIntArrayBuffer copy (IntArrayBuffer other, int markOfOther) { - ReadOnlyIntArrayBuffer buf = new ReadOnlyIntArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadOnlyIntArrayBuffer (int capacity, int[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public IntBuffer asReadOnlyBuffer () { - return duplicate(); - } - - public IntBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public IntBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return true; - } - - protected int[] protectedArray () { - throw new ReadOnlyBufferException(); - } - - protected int protectedArrayOffset () { - throw new ReadOnlyBufferException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public IntBuffer put (int c) { - throw new ReadOnlyBufferException(); - } - - public IntBuffer put (int index, int c) { - throw new ReadOnlyBufferException(); - } - - public IntBuffer put (IntBuffer buf) { - throw new ReadOnlyBufferException(); - } - - public final IntBuffer put (int[] src, int off, int len) { - throw new ReadOnlyBufferException(); - } - - public IntBuffer slice () { - return new ReadOnlyIntArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyLongArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyLongArrayBuffer.java deleted file mode 100644 index bca9209b..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyLongArrayBuffer.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** LongArrayBuffer, ReadWriteLongArrayBuffer and ReadOnlyLongArrayBuffer compose the implementation of array based long buffers. - *

- * ReadOnlyLongArrayBuffer extends LongArrayBuffer with all the write methods throwing read only exception. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadOnlyLongArrayBuffer extends LongArrayBuffer { - - static ReadOnlyLongArrayBuffer copy (LongArrayBuffer other, int markOfOther) { - ReadOnlyLongArrayBuffer buf = new ReadOnlyLongArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadOnlyLongArrayBuffer (int capacity, long[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public LongBuffer asReadOnlyBuffer () { - return duplicate(); - } - - public LongBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public LongBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return true; - } - - protected long[] protectedArray () { - throw new ReadOnlyBufferException(); - } - - protected int protectedArrayOffset () { - throw new ReadOnlyBufferException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public LongBuffer put (long c) { - throw new ReadOnlyBufferException(); - } - - public LongBuffer put (int index, long c) { - throw new ReadOnlyBufferException(); - } - - public LongBuffer put (LongBuffer buf) { - throw new ReadOnlyBufferException(); - } - - public final LongBuffer put (long[] src, int off, int len) { - throw new ReadOnlyBufferException(); - } - - public LongBuffer slice () { - return new ReadOnlyLongArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyShortArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyShortArrayBuffer.java deleted file mode 100644 index 7d9dbda5..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadOnlyShortArrayBuffer.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** ShortArrayBuffer, ReadWriteShortArrayBuffer and ReadOnlyShortArrayBuffer compose the implementation of array based short - * buffers. - *

- * ReadOnlyShortArrayBuffer extends ShortArrayBuffer with all the write methods throwing read only exception. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadOnlyShortArrayBuffer extends ShortArrayBuffer { - - static ReadOnlyShortArrayBuffer copy (ShortArrayBuffer other, int markOfOther) { - ReadOnlyShortArrayBuffer buf = new ReadOnlyShortArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadOnlyShortArrayBuffer (int capacity, short[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public ShortBuffer asReadOnlyBuffer () { - return duplicate(); - } - - public ShortBuffer compact () { - throw new ReadOnlyBufferException(); - } - - public ShortBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return true; - } - - protected short[] protectedArray () { - throw new ReadOnlyBufferException(); - } - - protected int protectedArrayOffset () { - throw new ReadOnlyBufferException(); - } - - protected boolean protectedHasArray () { - return false; - } - - public ShortBuffer put (ShortBuffer buf) { - throw new ReadOnlyBufferException(); - } - - public ShortBuffer put (short c) { - throw new ReadOnlyBufferException(); - } - - public ShortBuffer put (int index, short c) { - throw new ReadOnlyBufferException(); - } - - public final ShortBuffer put (short[] src, int off, int len) { - throw new ReadOnlyBufferException(); - } - - public ShortBuffer slice () { - return new ReadOnlyShortArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteCharArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadWriteCharArrayBuffer.java deleted file mode 100644 index 3c1b55e4..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteCharArrayBuffer.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** CharArrayBuffer, ReadWriteCharArrayBuffer and ReadOnlyCharArrayBuffer compose the implementation of array based char buffers. - *

- * ReadWriteCharArrayBuffer extends CharArrayBuffer with all the write methods. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadWriteCharArrayBuffer extends CharArrayBuffer { - - static ReadWriteCharArrayBuffer copy (CharArrayBuffer other, int markOfOther) { - ReadWriteCharArrayBuffer buf = new ReadWriteCharArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadWriteCharArrayBuffer (char[] array) { - super(array); - } - - ReadWriteCharArrayBuffer (int capacity) { - super(capacity); - } - - ReadWriteCharArrayBuffer (int capacity, char[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public CharBuffer asReadOnlyBuffer () { - return ReadOnlyCharArrayBuffer.copy(this, mark); - } - - public CharBuffer compact () { - System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - public CharBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return false; - } - - protected char[] protectedArray () { - return backingArray; - } - - protected int protectedArrayOffset () { - return offset; - } - - protected boolean protectedHasArray () { - return true; - } - - public CharBuffer put (char c) { - if (position == limit) { - throw new BufferOverflowException(); - } - backingArray[offset + position++] = c; - return this; - } - - public CharBuffer put (int index, char c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - backingArray[offset + index] = c; - return this; - } - - public CharBuffer put (char[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)len + (long)off > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferOverflowException(); - } - System.arraycopy(src, off, backingArray, offset + position, len); - position += len; - return this; - } - - public CharBuffer slice () { - return new ReadWriteCharArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteDoubleArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadWriteDoubleArrayBuffer.java deleted file mode 100644 index 336a0010..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteDoubleArrayBuffer.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** DoubleArrayBuffer, ReadWriteDoubleArrayBuffer and ReadOnlyDoubleArrayBuffer compose the implementation of array based double - * buffers. - *

- * ReadWriteDoubleArrayBuffer extends DoubleArrayBuffer with all the write methods. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadWriteDoubleArrayBuffer extends DoubleArrayBuffer { - - static ReadWriteDoubleArrayBuffer copy (DoubleArrayBuffer other, int markOfOther) { - ReadWriteDoubleArrayBuffer buf = new ReadWriteDoubleArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadWriteDoubleArrayBuffer (double[] array) { - super(array); - } - - ReadWriteDoubleArrayBuffer (int capacity) { - super(capacity); - } - - ReadWriteDoubleArrayBuffer (int capacity, double[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public DoubleBuffer asReadOnlyBuffer () { - return ReadOnlyDoubleArrayBuffer.copy(this, mark); - } - - public DoubleBuffer compact () { - System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - public DoubleBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return false; - } - - protected double[] protectedArray () { - return backingArray; - } - - protected int protectedArrayOffset () { - return offset; - } - - protected boolean protectedHasArray () { - return true; - } - - public DoubleBuffer put (double c) { - if (position == limit) { - throw new BufferOverflowException(); - } - backingArray[offset + position++] = c; - return this; - } - - public DoubleBuffer put (int index, double c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - backingArray[offset + index] = c; - return this; - } - - public DoubleBuffer put (double[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferOverflowException(); - } - System.arraycopy(src, off, backingArray, offset + position, len); - position += len; - return this; - } - - public DoubleBuffer slice () { - return new ReadWriteDoubleArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteFloatArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadWriteFloatArrayBuffer.java deleted file mode 100644 index 87935220..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteFloatArrayBuffer.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** FloatArrayBuffer, ReadWriteFloatArrayBuffer and ReadOnlyFloatArrayBuffer compose the implementation of array based float - * buffers. - *

- * ReadWriteFloatArrayBuffer extends FloatArrayBuffer with all the write methods. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadWriteFloatArrayBuffer extends FloatArrayBuffer { - - static ReadWriteFloatArrayBuffer copy (FloatArrayBuffer other, int markOfOther) { - ReadWriteFloatArrayBuffer buf = new ReadWriteFloatArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadWriteFloatArrayBuffer (float[] array) { - super(array); - } - - ReadWriteFloatArrayBuffer (int capacity) { - super(capacity); - } - - ReadWriteFloatArrayBuffer (int capacity, float[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public FloatBuffer asReadOnlyBuffer () { - return ReadOnlyFloatArrayBuffer.copy(this, mark); - } - - public FloatBuffer compact () { -// System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); - for (int i = position + offset, j = offset, k = 0; k < remaining(); i++, j++, k++) { - backingArray[j] = backingArray[i]; - } - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - public FloatBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return false; - } - - protected float[] protectedArray () { - return backingArray; - } - - protected int protectedArrayOffset () { - return offset; - } - - protected boolean protectedHasArray () { - return true; - } - - public FloatBuffer put (float c) { - if (position == limit) { - throw new BufferOverflowException(); - } - backingArray[offset + position++] = c; - return this; - } - - public FloatBuffer put (int index, float c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - backingArray[offset + index] = c; - return this; - } - - public FloatBuffer put (float[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferOverflowException(); - } - System.arraycopy(src, off, backingArray, offset + position, len); - position += len; - return this; - } - - public FloatBuffer slice () { - return new ReadWriteFloatArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteHeapByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadWriteHeapByteBuffer.java deleted file mode 100644 index 72becafd..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteHeapByteBuffer.java +++ /dev/null @@ -1,196 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -import java.io.Numbers; - -/** HeapByteBuffer, ReadWriteHeapByteBuffer and ReadOnlyHeapByteBuffer compose the implementation of array based byte buffers. - *

- * ReadWriteHeapByteBuffer extends HeapByteBuffer with all the write methods. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadWriteHeapByteBuffer extends HeapByteBuffer { - - static ReadWriteHeapByteBuffer copy (HeapByteBuffer other, int markOfOther) { - ReadWriteHeapByteBuffer buf = new ReadWriteHeapByteBuffer(other.backingArray, other.capacity(), other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - buf.order(other.order()); - return buf; - } - - ReadWriteHeapByteBuffer (byte[] backingArray) { - super(backingArray); - } - - ReadWriteHeapByteBuffer (int capacity) { - super(capacity); - } - - ReadWriteHeapByteBuffer (byte[] backingArray, int capacity, int arrayOffset) { - super(backingArray, capacity, arrayOffset); - } - - public ByteBuffer asReadOnlyBuffer () { - return ReadOnlyHeapByteBuffer.copy(this, mark); - } - - public ByteBuffer compact () { - System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - public ByteBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return false; - } - - protected byte[] protectedArray () { - return backingArray; - } - - protected int protectedArrayOffset () { - return offset; - } - - protected boolean protectedHasArray () { - return true; - } - - public ByteBuffer put (byte b) { - if (position == limit) { - throw new BufferOverflowException(); - } - backingArray[offset + position++] = b; - return this; - } - - public ByteBuffer put (int index, byte b) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - backingArray[offset + index] = b; - return this; - } - - /* - * Override ByteBuffer.put(byte[], int, int) to improve performance. - * - * (non-Javadoc) - * - * @see java.nio.ByteBuffer#put(byte[], int, int) - */ - public ByteBuffer put (byte[] src, int off, int len) { - if (off < 0 || len < 0 || (long)off + (long)len > src.length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferOverflowException(); - } - if (isReadOnly()) { - throw new ReadOnlyBufferException(); - } - System.arraycopy(src, off, backingArray, offset + position, len); - position += len; - return this; - } - - public ByteBuffer putDouble (double value) { - return putLong(Numbers.doubleToRawLongBits(value)); - } - - public ByteBuffer putDouble (int index, double value) { - return putLong(index, Numbers.doubleToRawLongBits(value)); - } - - public ByteBuffer putFloat (float value) { - return putInt(Numbers.floatToIntBits(value)); - } - - public ByteBuffer putFloat (int index, float value) { - return putInt(index, Numbers.floatToIntBits(value)); - } - - public ByteBuffer putInt (int value) { - int newPosition = position + 4; - if (newPosition > limit) { - throw new BufferOverflowException(); - } - store(position, value); - position = newPosition; - return this; - } - - public ByteBuffer putInt (int index, int value) { - if (index < 0 || (long)index + 4 > limit) { - throw new IndexOutOfBoundsException(); - } - store(index, value); - return this; - } - - public ByteBuffer putLong (int index, long value) { - if (index < 0 || (long)index + 8 > limit) { - throw new IndexOutOfBoundsException(); - } - store(index, value); - return this; - } - - public ByteBuffer putLong (long value) { - int newPosition = position + 8; - if (newPosition > limit) { - throw new BufferOverflowException(); - } - store(position, value); - position = newPosition; - return this; - } - - public ByteBuffer putShort (int index, short value) { - if (index < 0 || (long)index + 2 > limit) { - throw new IndexOutOfBoundsException(); - } - store(index, value); - return this; - } - - public ByteBuffer putShort (short value) { - int newPosition = position + 2; - if (newPosition > limit) { - throw new BufferOverflowException(); - } - store(position, value); - position = newPosition; - return this; - } - - public ByteBuffer slice () { - ReadWriteHeapByteBuffer slice = new ReadWriteHeapByteBuffer(backingArray, remaining(), offset + position); - slice.order = order; - return slice; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteIntArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadWriteIntArrayBuffer.java deleted file mode 100644 index 34592717..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteIntArrayBuffer.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** IntArrayBuffer, ReadWriteIntArrayBuffer and ReadOnlyIntArrayBuffer compose the implementation of array based int buffers. - *

- * ReadWriteIntArrayBuffer extends IntArrayBuffer with all the write methods. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadWriteIntArrayBuffer extends IntArrayBuffer { - - static ReadWriteIntArrayBuffer copy (IntArrayBuffer other, int markOfOther) { - ReadWriteIntArrayBuffer buf = new ReadWriteIntArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadWriteIntArrayBuffer (int[] array) { - super(array); - } - - ReadWriteIntArrayBuffer (int capacity) { - super(capacity); - } - - ReadWriteIntArrayBuffer (int capacity, int[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public IntBuffer asReadOnlyBuffer () { - return ReadOnlyIntArrayBuffer.copy(this, mark); - } - - public IntBuffer compact () { - System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - public IntBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return false; - } - - protected int[] protectedArray () { - return backingArray; - } - - protected int protectedArrayOffset () { - return offset; - } - - protected boolean protectedHasArray () { - return true; - } - - public IntBuffer put (int c) { - if (position == limit) { - throw new BufferOverflowException(); - } - backingArray[offset + position++] = c; - return this; - } - - public IntBuffer put (int index, int c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - backingArray[offset + index] = c; - return this; - } - - public IntBuffer put (int[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferOverflowException(); - } - System.arraycopy(src, off, backingArray, offset + position, len); - position += len; - return this; - } - - public IntBuffer slice () { - return new ReadWriteIntArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteLongArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadWriteLongArrayBuffer.java deleted file mode 100644 index bff78528..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteLongArrayBuffer.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** LongArrayBuffer, ReadWriteLongArrayBuffer and ReadOnlyLongArrayBuffer compose the implementation of array based long buffers. - *

- * ReadWriteLongArrayBuffer extends LongArrayBuffer with all the write methods. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadWriteLongArrayBuffer extends LongArrayBuffer { - - static ReadWriteLongArrayBuffer copy (LongArrayBuffer other, int markOfOther) { - ReadWriteLongArrayBuffer buf = new ReadWriteLongArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadWriteLongArrayBuffer (long[] array) { - super(array); - } - - ReadWriteLongArrayBuffer (int capacity) { - super(capacity); - } - - ReadWriteLongArrayBuffer (int capacity, long[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public LongBuffer asReadOnlyBuffer () { - return ReadOnlyLongArrayBuffer.copy(this, mark); - } - - public LongBuffer compact () { - System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - public LongBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return false; - } - - protected long[] protectedArray () { - return backingArray; - } - - protected int protectedArrayOffset () { - return offset; - } - - protected boolean protectedHasArray () { - return true; - } - - public LongBuffer put (long c) { - if (position == limit) { - throw new BufferOverflowException(); - } - backingArray[offset + position++] = c; - return this; - } - - public LongBuffer put (int index, long c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - backingArray[offset + index] = c; - return this; - } - - public LongBuffer put (long[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferOverflowException(); - } - System.arraycopy(src, off, backingArray, offset + position, len); - position += len; - return this; - } - - public LongBuffer slice () { - return new ReadWriteLongArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteShortArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ReadWriteShortArrayBuffer.java deleted file mode 100644 index 7c32bcce..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ReadWriteShortArrayBuffer.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** ShortArrayBuffer, ReadWriteShortArrayBuffer and ReadOnlyShortArrayBuffer compose the implementation of array based short - * buffers. - *

- * ReadWriteShortArrayBuffer extends ShortArrayBuffer with all the write methods. - *

- *

- * This class is marked final for runtime performance. - *

*/ -final class ReadWriteShortArrayBuffer extends ShortArrayBuffer { - - static ReadWriteShortArrayBuffer copy (ShortArrayBuffer other, int markOfOther) { - ReadWriteShortArrayBuffer buf = new ReadWriteShortArrayBuffer(other.capacity(), other.backingArray, other.offset); - buf.limit = other.limit(); - buf.position = other.position(); - buf.mark = markOfOther; - return buf; - } - - ReadWriteShortArrayBuffer (short[] array) { - super(array); - } - - ReadWriteShortArrayBuffer (int capacity) { - super(capacity); - } - - ReadWriteShortArrayBuffer (int capacity, short[] backingArray, int arrayOffset) { - super(capacity, backingArray, arrayOffset); - } - - public ShortBuffer asReadOnlyBuffer () { - return ReadOnlyShortArrayBuffer.copy(this, mark); - } - - public ShortBuffer compact () { - System.arraycopy(backingArray, position + offset, backingArray, offset, remaining()); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - public ShortBuffer duplicate () { - return copy(this, mark); - } - - public boolean isReadOnly () { - return false; - } - - protected short[] protectedArray () { - return backingArray; - } - - protected int protectedArrayOffset () { - return offset; - } - - protected boolean protectedHasArray () { - return true; - } - - public ShortBuffer put (short c) { - if (position == limit) { - throw new BufferOverflowException(); - } - backingArray[offset + position++] = c; - return this; - } - - public ShortBuffer put (int index, short c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - backingArray[offset + index] = c; - return this; - } - - public ShortBuffer put (short[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferOverflowException(); - } - System.arraycopy(src, off, backingArray, offset + position, len); - position += len; - return this; - } - - public ShortBuffer slice () { - return new ReadWriteShortArrayBuffer(remaining(), backingArray, offset + position); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ShortArrayBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ShortArrayBuffer.java deleted file mode 100644 index fce335df..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ShortArrayBuffer.java +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** ShortArrayBuffer, ReadWriteShortArrayBuffer and ReadOnlyShortArrayBuffer compose the implementation of array based short - * buffers. - *

- * ShortArrayBuffer implements all the shared readonly methods and is extended by the other two classes. - *

- *

- * All methods are marked final for runtime performance. - *

*/ -abstract class ShortArrayBuffer extends ShortBuffer { - - protected final short[] backingArray; - - protected final int offset; - - ShortArrayBuffer (short[] array) { - this(array.length, array, 0); - } - - ShortArrayBuffer (int capacity) { - this(capacity, new short[capacity], 0); - } - - ShortArrayBuffer (int capacity, short[] backingArray, int offset) { - super(capacity); - this.backingArray = backingArray; - this.offset = offset; - } - - public final short get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return backingArray[offset + position++]; - } - - public final short get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return backingArray[offset + index]; - } - - public final ShortBuffer get (short[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - System.arraycopy(backingArray, offset + position, dest, off, len); - position += len; - return this; - } - - public final boolean isDirect () { - return false; - } - - public final ByteOrder order () { - return ByteOrder.nativeOrder(); - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ShortBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/ShortBuffer.java deleted file mode 100644 index 817cc48e..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ShortBuffer.java +++ /dev/null @@ -1,427 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -/** A buffer of shorts. - *

- * A short buffer can be created in either of the following ways: - *

- *
    - *
  • {@link #allocate(int) Allocate} a new short array and create a buffer based on it;
  • - *
  • {@link #wrap(short[]) Wrap} an existing short array to create a new buffer;
  • - *
  • Use {@link java.nio.ByteBuffer#asShortBuffer() ByteBuffer.asShortBuffer} to create a short buffer based on a byte buffer.
  • - *
- * - * @since Android 1.0 */ -public abstract class ShortBuffer extends Buffer implements Comparable { - - /** Creates a short buffer based on a newly allocated short array. - * - * @param capacity the capacity of the new buffer. - * @return the created short buffer. - * @throws IllegalArgumentException if {@code capacity} is less than zero. - * @since Android 1.0 */ - public static ShortBuffer allocate (int capacity) { - if (capacity < 0) { - throw new IllegalArgumentException(); - } - return BufferFactory.newShortBuffer(capacity); - } - - /** Creates a new short buffer by wrapping the given short array. - *

- * Calling this method has the same effect as {@code wrap(array, 0, array.length)}. - *

- * - * @param array the short array which the new buffer will be based on. - * @return the created short buffer. - * @since Android 1.0 */ - public static ShortBuffer wrap (short[] array) { - return wrap(array, 0, array.length); - } - - /** Creates a new short buffer by wrapping the given short array. - *

- * The new buffer's position will be {@code start}, limit will be {@code start + len}, capacity will be the length of the array. - *

- * - * @param array the short array which the new buffer will be based on. - * @param start the start index, must not be negative and not greater than {@code array.length}. - * @param len the length, must not be negative and not greater than {@code array.length - start}. - * @return the created short buffer. - * @exception IndexOutOfBoundsException if either {@code start} or {@code len} is invalid. - * @since Android 1.0 */ - public static ShortBuffer wrap (short[] array, int start, int len) { - if (array == null) { - throw new NullPointerException(); - } - if (start < 0 || len < 0 || (long)start + (long)len > array.length) { - throw new IndexOutOfBoundsException(); - } - - ShortBuffer buf = BufferFactory.newShortBuffer(array); - buf.position = start; - buf.limit = start + len; - - return buf; - } - - /** Constructs a {@code ShortBuffer} with given capacity. - * - * @param capacity The capacity of the buffer */ - ShortBuffer (int capacity) { - super(capacity); - } - - /** Returns the short array which this buffer is based on, if there is one. - * - * @return the short array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final short[] array () { - return protectedArray(); - } - - /** Returns the offset of the short array which this buffer is based on, if there is one. - *

- * The offset is the index of the array corresponding to the zero position of the buffer. - *

- * - * @return the offset of the short array which this buffer is based on. - * @exception ReadOnlyBufferException if this buffer is based on an array, but it is read-only. - * @exception UnsupportedOperationException if this buffer is not based on an array. - * @since Android 1.0 */ - public final int arrayOffset () { - return protectedArrayOffset(); - } - - /** Returns a read-only buffer that shares its content with this buffer. - *

- * The returned buffer is guaranteed to be a new instance, even if this buffer is read-only itself. The new buffer's position, - * limit, capacity and mark are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means this buffer's change of content will be visible to the new - * buffer. The two buffer's position, limit and mark are independent. - *

- * - * @return a read-only version of this buffer. - * @since Android 1.0 */ - public abstract ShortBuffer asReadOnlyBuffer (); - - /** Compacts this short buffer. - *

- * The remaining shorts will be moved to the head of the buffer, starting from position zero. Then the position is set to - * {@code remaining()}; the limit is set to capacity; the mark is cleared. - *

- * - * @return this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ShortBuffer compact (); - - /** Compare the remaining shorts of this buffer to another short buffer's remaining shorts. - * - * @param otherBuffer another short buffer. - * @return a negative value if this is less than {@code otherBuffer}; 0 if this equals to {@code otherBuffer}; a positive value - * if this is greater than {@code otherBuffer}. - * @exception ClassCastException if {@code otherBuffer} is not a short buffer. - * @since Android 1.0 */ - public int compareTo (ShortBuffer otherBuffer) { - int compareRemaining = (remaining() < otherBuffer.remaining()) ? remaining() : otherBuffer.remaining(); - int thisPos = position; - int otherPos = otherBuffer.position; - short thisByte, otherByte; - while (compareRemaining > 0) { - thisByte = get(thisPos); - otherByte = otherBuffer.get(otherPos); - if (thisByte != otherByte) { - return thisByte < otherByte ? -1 : 1; - } - thisPos++; - otherPos++; - compareRemaining--; - } - return remaining() - otherBuffer.remaining(); - } - - /** Returns a duplicated buffer that shares its content with this buffer. - *

- * The duplicated buffer's position, limit, capacity and mark are the same as this buffer. The duplicated buffer's read-only - * property and byte order are the same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a duplicated buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract ShortBuffer duplicate (); - - /** Checks whether this short buffer is equal to another object. - *

- * If {@code other} is not a short buffer then {@code false} is returned. Two short buffers are equal if and only if their - * remaining shorts are exactly the same. Position, limit, capacity and mark are not considered. - *

- * - * @param other the object to compare with this short buffer. - * @return {@code true} if this short buffer is equal to {@code other}, {@code false} otherwise. - * @since Android 1.0 */ - public boolean equals (Object other) { - if (!(other instanceof ShortBuffer)) { - return false; - } - ShortBuffer otherBuffer = (ShortBuffer)other; - - if (remaining() != otherBuffer.remaining()) { - return false; - } - - int myPosition = position; - int otherPosition = otherBuffer.position; - boolean equalSoFar = true; - while (equalSoFar && (myPosition < limit)) { - equalSoFar = get(myPosition++) == otherBuffer.get(otherPosition++); - } - - return equalSoFar; - } - - /** Returns the short at the current position and increases the position by 1. - * - * @return the short at the current position. - * @exception BufferUnderflowException if the position is equal or greater than limit. - * @since Android 1.0 */ - public abstract short get (); - - /** Reads shorts from the current position into the specified short array and increases the position by the number of shorts - * read. - *

- * Calling this method has the same effect as {@code get(dest, 0, dest.length)}. - *

- * - * @param dest the destination short array. - * @return this buffer. - * @exception BufferUnderflowException if {@code dest.length} is greater than {@code remaining()}. - * @since Android 1.0 */ - public ShortBuffer get (short[] dest) { - return get(dest, 0, dest.length); - } - - /** Reads shorts from the current position into the specified short array, starting from the specified offset, and increases the - * position by the number of shorts read. - * - * @param dest the target short array. - * @param off the offset of the short array, must not be negative and not greater than {@code dest.length}. - * @param len the number of shorts to read, must be no less than zero and not greater than {@code dest.length - off}. - * @return this buffer. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception BufferUnderflowException if {@code len} is greater than {@code remaining()}. - * @since Android 1.0 */ - public ShortBuffer get (short[] dest, int off, int len) { - int length = dest.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - if (len > remaining()) { - throw new BufferUnderflowException(); - } - for (int i = off; i < off + len; i++) { - dest[i] = get(); - } - return this; - } - - /** Returns the short at the specified index; the position is not changed. - * - * @param index the index, must not be negative and less than limit. - * @return a short at the specified index. - * @exception IndexOutOfBoundsException if index is invalid. - * @since Android 1.0 */ - public abstract short get (int index); - - /** Indicates whether this buffer is based on a short array and is read/write. - * - * @return {@code true} if this buffer is based on a short array and provides read/write access, {@code false} otherwise. - * @since Android 1.0 */ - public final boolean hasArray () { - return protectedHasArray(); - } - - /** Calculates this buffer's hash code from the remaining chars. The position, limit, capacity and mark don't affect the hash - * code. - * - * @return the hash code calculated from the remaining shorts. - * @since Android 1.0 */ - public int hashCode () { - int myPosition = position; - int hash = 0; - while (myPosition < limit) { - hash = hash + get(myPosition++); - } - return hash; - } - - /** Indicates whether this buffer is direct. A direct buffer will try its best to take advantage of native memory APIs and it - * may not stay in the Java heap, so it is not affected by garbage collection. - *

- * A short buffer is direct if it is based on a byte buffer and the byte buffer is direct. - *

- * - * @return {@code true} if this buffer is direct, {@code false} otherwise. - * @since Android 1.0 */ - public abstract boolean isDirect (); - - /** Returns the byte order used by this buffer when converting shorts from/to bytes. - *

- * If this buffer is not based on a byte buffer, then always return the platform's native byte order. - *

- * - * @return the byte order used by this buffer when converting shorts from/to bytes. - * @since Android 1.0 */ - public abstract ByteOrder order (); - - /** Child class implements this method to realize {@code array()}. - * - * @return see {@code array()} */ - abstract short[] protectedArray (); - - /** Child class implements this method to realize {@code arrayOffset()}. - * - * @return see {@code arrayOffset()} */ - abstract int protectedArrayOffset (); - - /** Child class implements this method to realize {@code hasArray()}. - * - * @return see {@code hasArray()} */ - abstract boolean protectedHasArray (); - - /** Writes the given short to the current position and increases the position by 1. - * - * @param s the short to write. - * @return this buffer. - * @exception BufferOverflowException if position is equal or greater than limit. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ShortBuffer put (short s); - - /** Writes shorts from the given short array to the current position and increases the position by the number of shorts written. - *

- * Calling this method has the same effect as {@code put(src, 0, src.length)}. - *

- * - * @param src the source short array. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code src.length}. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public final ShortBuffer put (short[] src) { - return put(src, 0, src.length); - } - - /** Writes shorts from the given short array, starting from the specified offset, to the current position and increases the - * position by the number of shorts written. - * - * @param src the source short array. - * @param off the offset of short array, must not be negative and not greater than {@code src.length}. - * @param len the number of shorts to write, must be no less than zero and not greater than {@code src.length - off}. - * @return this buffer. - * @exception BufferOverflowException if {@code remaining()} is less than {@code len}. - * @exception IndexOutOfBoundsException if either {@code off} or {@code len} is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public ShortBuffer put (short[] src, int off, int len) { - int length = src.length; - if (off < 0 || len < 0 || (long)off + (long)len > length) { - throw new IndexOutOfBoundsException(); - } - - if (len > remaining()) { - throw new BufferOverflowException(); - } - for (int i = off; i < off + len; i++) { - put(src[i]); - } - return this; - } - - /** Writes all the remaining shorts of the {@code src} short buffer to this buffer's current position, and increases both - * buffers' position by the number of shorts copied. - * - * @param src the source short buffer. - * @return this buffer. - * @exception BufferOverflowException if {@code src.remaining()} is greater than this buffer's {@code remaining()}. - * @exception IllegalArgumentException if {@code src} is this buffer. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public ShortBuffer put (ShortBuffer src) { - if (src == this) { - throw new IllegalArgumentException(); - } - if (src.remaining() > remaining()) { - throw new BufferOverflowException(); - } - short[] contents = new short[src.remaining()]; - src.get(contents); - put(contents); - return this; - } - - /** Writes a short to the specified index of this buffer; the position is not changed. - * - * @param index the index, must not be negative and less than the limit. - * @param s the short to write. - * @return this buffer. - * @exception IndexOutOfBoundsException if index is invalid. - * @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer. - * @since Android 1.0 */ - public abstract ShortBuffer put (int index, short s); - - /** Returns a sliced buffer that shares its content with this buffer. - *

- * The sliced buffer's capacity will be this buffer's {@code remaining()}, and its zero position will correspond to this - * buffer's current position. The new buffer's position will be 0, limit will be its capacity, and its mark is cleared. The new - * buffer's read-only property and byte order are same as this buffer's. - *

- *

- * The new buffer shares its content with this buffer, which means either buffer's change of content will be visible to the - * other. The two buffer's position, limit and mark are independent. - *

- * - * @return a sliced buffer that shares its content with this buffer. - * @since Android 1.0 */ - public abstract ShortBuffer slice (); - - /** Returns a string representing the state of this short buffer. - * - * @return a string representing the state of this short buffer. - * @since Android 1.0 */ - public String toString () { - StringBuffer buf = new StringBuffer(); - buf.append(getClass().getName()); - buf.append(", status: capacity="); //$NON-NLS-1$ - buf.append(capacity()); - buf.append(" position="); //$NON-NLS-1$ - buf.append(position()); - buf.append(" limit="); //$NON-NLS-1$ - buf.append(limit()); - return buf.toString(); - } -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/ShortToByteBufferAdapter.java b/backends/gdx-backend-dragome/emu/java/nio/ShortToByteBufferAdapter.java deleted file mode 100644 index 868072cd..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/ShortToByteBufferAdapter.java +++ /dev/null @@ -1,205 +0,0 @@ -/* Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.nio; - -//import org.apache.harmony.nio.internal.DirectBuffer; -//import org.apache.harmony.luni.platform.PlatformAddress; - -/** This class wraps a byte buffer to be a short buffer. - *

- * Implementation notice: - *

    - *
  • After a byte buffer instance is wrapped, it becomes privately owned by the adapter. It must NOT be accessed outside the - * adapter any more.
  • - *
  • The byte buffer's position and limit are NOT linked with the adapter. The adapter extends Buffer, thus has its own position - * and limit.
  • - *
- *

*/ -final class ShortToByteBufferAdapter extends ShortBuffer implements ByteBufferWrapper { -// implements DirectBuffer { - - static ShortBuffer wrap (ByteBuffer byteBuffer) { - return new ShortToByteBufferAdapter(byteBuffer.slice()); - } - - private final ByteBuffer byteBuffer; - - ShortToByteBufferAdapter (ByteBuffer byteBuffer) { - super((byteBuffer.capacity() >> 1)); - this.byteBuffer = byteBuffer; - this.byteBuffer.clear(); - } - -// public int getByteCapacity() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getByteCapacity(); -// } -// assert false : byteBuffer; -// return -1; -// } -// -// public PlatformAddress getEffectiveAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getEffectiveAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public PlatformAddress getBaseAddress() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).getBaseAddress(); -// } -// assert false : byteBuffer; -// return null; -// } -// -// public boolean isAddressValid() { -// if (byteBuffer instanceof DirectBuffer) { -// return ((DirectBuffer) byteBuffer).isAddressValid(); -// } -// assert false : byteBuffer; -// return false; -// } -// -// public void addressValidityCheck() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).addressValidityCheck(); -// } else { -// assert false : byteBuffer; -// } -// } -// -// public void free() { -// if (byteBuffer instanceof DirectBuffer) { -// ((DirectBuffer) byteBuffer).free(); -// } else { -// assert false : byteBuffer; -// } -// } - - @Override - public ShortBuffer asReadOnlyBuffer () { - ShortToByteBufferAdapter buf = new ShortToByteBufferAdapter(byteBuffer.asReadOnlyBuffer()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public ShortBuffer compact () { - if (byteBuffer.isReadOnly()) { - throw new ReadOnlyBufferException(); - } - byteBuffer.limit(limit << 1); - byteBuffer.position(position << 1); - byteBuffer.compact(); - byteBuffer.clear(); - position = limit - position; - limit = capacity; - mark = UNSET_MARK; - return this; - } - - @Override - public ShortBuffer duplicate () { - ShortToByteBufferAdapter buf = new ShortToByteBufferAdapter(byteBuffer.duplicate()); - buf.limit = limit; - buf.position = position; - buf.mark = mark; - return buf; - } - - @Override - public short get () { - if (position == limit) { - throw new BufferUnderflowException(); - } - return byteBuffer.getShort(position++ << 1); - } - - @Override - public short get (int index) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - return byteBuffer.getShort(index << 1); - } - - @Override - public boolean isDirect () { - return byteBuffer.isDirect(); - } - - @Override - public boolean isReadOnly () { - return byteBuffer.isReadOnly(); - } - - @Override - public ByteOrder order () { - return byteBuffer.order(); - } - - @Override - protected short[] protectedArray () { - throw new UnsupportedOperationException(); - } - - @Override - protected int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - @Override - protected boolean protectedHasArray () { - return false; - } - - @Override - public ShortBuffer put (short c) { - if (position == limit) { - throw new BufferOverflowException(); - } - byteBuffer.putShort(position++ << 1, c); - return this; - } - - @Override - public ShortBuffer put (int index, short c) { - if (index < 0 || index >= limit) { - throw new IndexOutOfBoundsException(); - } - byteBuffer.putShort(index << 1, c); - return this; - } - - @Override - public ShortBuffer slice () { - byteBuffer.limit(limit << 1); - byteBuffer.position(position << 1); - ShortBuffer result = new ShortToByteBufferAdapter(byteBuffer.slice()); - byteBuffer.clear(); - return result; - } - - public ByteBuffer getByteBuffer () { - return byteBuffer; - } - -} diff --git a/backends/gdx-backend-dragome/emu/java/nio/StringByteBuffer.java b/backends/gdx-backend-dragome/emu/java/nio/StringByteBuffer.java deleted file mode 100644 index 15adb0bc..00000000 --- a/backends/gdx-backend-dragome/emu/java/nio/StringByteBuffer.java +++ /dev/null @@ -1,218 +0,0 @@ -/******************************************************************************* - * Copyright 2011 See AUTHORS file. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package java.nio; - -import java.io.Numbers; - -class StringByteBuffer extends BaseByteBuffer { - - private String s; - - StringByteBuffer (String s) { - super(s.length()); - this.s = s; - order(ByteOrder.LITTLE_ENDIAN); - } - - StringByteBuffer (String s, int position, int limit) { - this(s); - this.position = position; - this.limit = limit; - } - - public ByteBuffer asReadOnlyBuffer () { - return this; - } - - byte[] protectedArray () { - throw new UnsupportedOperationException(); - } - - int protectedArrayOffset () { - throw new UnsupportedOperationException(); - } - - boolean protectedHasArray () { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer compact () { - return this; - } - - @Override - public ByteBuffer duplicate () { - return this; - } - - @Override - public byte get () { - return get(position++); - } - - @Override - public byte get (int index) { - return get(s, index); - } - - public final double getDouble () { - return Numbers.longBitsToDouble(getLong()); - } - - public final double getDouble (int index) { - return Numbers.longBitsToDouble(getLong(index)); - } - - public final float getFloat () { - return Numbers.intBitsToFloat(getInt()); - } - - public final float getFloat (int index) { - return Numbers.intBitsToFloat(getInt(index)); - } - - public final int getInt () { - int newPosition = position + 4; - int result = loadInt(position); - position = newPosition; - return result; - } - - public final int getInt (int index) { - return loadInt(index); - } - - public final long getLong () { - throw new UnsupportedOperationException(); - } - - public final long getLong (int index) { - throw new UnsupportedOperationException(); - } - - public final short getShort () { - int newPosition = position + 2; - short result = loadShort(position); - position = newPosition; - return result; - } - - public final short getShort (int index) { - return loadShort(index); - } - - @Override - public boolean isDirect () { - return false; - } - - @Override - public ByteBuffer put (byte b) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer put (int index, byte b) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putDouble (double value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putDouble (int index, double value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putFloat (float value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putFloat (int index, float value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putInt (int value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putInt (int index, int value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putLong (long value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putLong (int index, long value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putShort (short value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer putShort (int index, short value) { - throw new UnsupportedOperationException(); - } - - @Override - public ByteBuffer slice () { - // TODO(jgw): I don't think this is right, but might work for our purposes. - StringByteBuffer slice = new StringByteBuffer(s, position, limit); - slice.order = order; - return slice; - } - - @Override - public boolean isReadOnly () { - return true; - } - - private native byte get (String s, int i) /*-{ - var x = s.charCodeAt(i) & 0xff; - if (x > 127) x -= 256; - return x; - }-*/; - - protected final int loadInt (int baseOffset) { - int bytes = 0; - for (int i = 3; i >= 0; i--) { - bytes = bytes << 8; - bytes = bytes | (get(baseOffset + i) & 0xFF); - } - return bytes; - } - - protected final short loadShort (int baseOffset) { - short bytes = 0; - bytes = (short)(get(baseOffset + 1) << 8); - bytes |= (get(baseOffset) & 0xFF); - return bytes; - } -} diff --git a/backends/gdx-backend-dragome/emu/java/util/Locale.java b/backends/gdx-backend-dragome/emu/java/util/Locale.java deleted file mode 100644 index 6b1e4714..00000000 --- a/backends/gdx-backend-dragome/emu/java/util/Locale.java +++ /dev/null @@ -1,639 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.util; - -import java.io.Serializable; -//import libcore.icu.ICU; - - -/** - * {@code Locale} represents a language/country/variant combination. Locales are used to - * alter the presentation of information such as numbers or dates to suit the conventions - * in the region they describe. - * - *

The language codes are two-letter lowercase ISO language codes (such as "en") as defined by - * ISO 639-1. - * The country codes are two-letter uppercase ISO country codes (such as "US") as defined by - * ISO 3166-1. - * The variant codes are unspecified. - * - *

Note that Java uses several deprecated two-letter codes. The Hebrew ("he") language - * code is rewritten as "iw", Indonesian ("id") as "in", and Yiddish ("yi") as "ji". This - * rewriting happens even if you construct your own {@code Locale} object, not just for - * instances returned by the various lookup methods. - * - *

Available locales

- *

This class' constructors do no error checking. You can create a {@code Locale} for languages - * and countries that don't exist, and you can create instances for combinations that don't - * exist (such as "de_US" for "German as spoken in the US"). - * - *

Note that locale data is not necessarily available for any of the locales pre-defined as - * constants in this class except for en_US, which is the only locale Java guarantees is always - * available. - * - *

It is also a mistake to assume that all devices have the same locales available. - * A device sold in the US will almost certainly support en_US and es_US, but not necessarily - * any locales with the same language but different countries (such as en_GB or es_ES), - * nor any locales for other languages (such as de_DE). The opposite may well be true for a device - * sold in Europe. - * - *

You can use {@link Locale#getDefault} to get an appropriate locale for the user of the - * device you're running on, or {@link Locale#getAvailableLocales} to get a list of all the locales - * available on the device you're running on. - * - *

Locale data

- *

Note that locale data comes solely from ICU. User-supplied locale service providers (using - * the {@code java.text.spi} or {@code java.util.spi} mechanisms) are not supported. - * - *

Here are the versions of ICU (and the corresponding CLDR and Unicode versions) used in - * various Android releases: - * - * - * - * - * - * - * - *
Cupcake/Donut/Eclair ICU 3.8 CLDR 1.5 Unicode 5.0
Froyo ICU 4.2 CLDR 1.7 Unicode 5.1
Gingerbread/HoneycombICU 4.4 CLDR 1.8 Unicode 5.2
Ice Cream Sandwich ICU 4.6 CLDR 1.9 Unicode 6.0
Jelly Bean ICU 4.8 CLDR 2.0 Unicode 6.0
Jelly Bean MR2 ICU 50 CLDR 22.1 Unicode 6.2
- * - *

Be wary of the default locale

- *

Note that there are many convenience methods that automatically use the default locale, but - * using them may lead to subtle bugs. - * - *

The default locale is appropriate for tasks that involve presenting data to the user. In - * this case, you want to use the user's date/time formats, number - * formats, rules for conversion to lowercase, and so on. In this case, it's safe to use the - * convenience methods. - * - *

The default locale is not appropriate for machine-readable output. The best choice - * there is usually {@code Locale.US} – this locale is guaranteed to be available on all - * devices, and the fact that it has no surprising special cases and is frequently used (especially - * for computer-computer communication) means that it tends to be the most efficient choice too. - * - *

A common mistake is to implicitly use the default locale when producing output meant to be - * machine-readable. This tends to work on the developer's test devices (especially because so many - * developers use en_US), but fails when run on a device whose user is in a more complex locale. - * - *

For example, if you're formatting integers some locales will use non-ASCII decimal - * digits. As another example, if you're formatting floating-point numbers some locales will use - * {@code ','} as the decimal point and {@code '.'} for digit grouping. That's correct for - * human-readable output, but likely to cause problems if presented to another - * computer ({@link Double#parseDouble} can't parse such a number, for example). - * You should also be wary of the {@link String#toLowerCase} and - * {@link String#toUpperCase} overloads that don't take a {@code Locale}: in Turkey, for example, - * the characters {@code 'i'} and {@code 'I'} won't be converted to {@code 'I'} and {@code 'i'}. - * This is the correct behavior for Turkish text (such as user input), but inappropriate for, say, - * HTTP headers. - */ -public final class Locale implements Cloneable, Serializable { - - private static final long serialVersionUID = 9149081749638150636L; - - /** - * Locale constant for en_CA. - */ - public static final Locale CANADA = new Locale(true, "en", "CA"); - - /** - * Locale constant for fr_CA. - */ - public static final Locale CANADA_FRENCH = new Locale(true, "fr", "CA"); - - /** - * Locale constant for zh_CN. - */ - public static final Locale CHINA = new Locale(true, "zh", "CN"); - - /** - * Locale constant for zh. - */ - public static final Locale CHINESE = new Locale(true, "zh", ""); - - /** - * Locale constant for en. - */ - public static final Locale ENGLISH = new Locale(true, "en", ""); - - /** - * Locale constant for fr_FR. - */ - public static final Locale FRANCE = new Locale(true, "fr", "FR"); - - /** - * Locale constant for fr. - */ - public static final Locale FRENCH = new Locale(true, "fr", ""); - - /** - * Locale constant for de. - */ - public static final Locale GERMAN = new Locale(true, "de", ""); - - /** - * Locale constant for de_DE. - */ - public static final Locale GERMANY = new Locale(true, "de", "DE"); - - /** - * Locale constant for it. - */ - public static final Locale ITALIAN = new Locale(true, "it", ""); - - /** - * Locale constant for it_IT. - */ - public static final Locale ITALY = new Locale(true, "it", "IT"); - - /** - * Locale constant for ja_JP. - */ - public static final Locale JAPAN = new Locale(true, "ja", "JP"); - - /** - * Locale constant for ja. - */ - public static final Locale JAPANESE = new Locale(true, "ja", ""); - - /** - * Locale constant for ko_KR. - */ - public static final Locale KOREA = new Locale(true, "ko", "KR"); - - /** - * Locale constant for ko. - */ - public static final Locale KOREAN = new Locale(true, "ko", ""); - - /** - * Locale constant for zh_CN. - */ - public static final Locale PRC = new Locale(true, "zh", "CN"); - - /** - * Locale constant for the root locale. The root locale has an empty language, - * country, and variant. - * - * @since 1.6 - */ - public static final Locale ROOT = new Locale(true, "", ""); - - /** - * Locale constant for zh_CN. - */ - public static final Locale SIMPLIFIED_CHINESE = new Locale(true, "zh", "CN"); - - /** - * Locale constant for zh_TW. - */ - public static final Locale TAIWAN = new Locale(true, "zh", "TW"); - - /** - * Locale constant for zh_TW. - */ - public static final Locale TRADITIONAL_CHINESE = new Locale(true, "zh", "TW"); - - /** - * Locale constant for en_GB. - */ - public static final Locale UK = new Locale(true, "en", "GB"); - - /** - * Locale constant for en_US. - */ - public static final Locale US = new Locale(true, "en", "US"); - -// /** -// * The current default locale. It is temporarily assigned to US because we -// * need a default locale to lookup the real default locale. -// */ - private static Locale defaultLocale = US; - -// static { -// String language = System.getProperty("user.language", "en"); -// String region = System.getProperty("user.region", "US"); -// String variant = System.getProperty("user.variant", ""); -// defaultLocale = new Locale(language, region, variant); -// } - - private transient String countryCode; - private transient String languageCode; - private transient String variantCode; - private transient String cachedToStringResult; - - /** - * There's a circular dependency between toLowerCase/toUpperCase and - * Locale.US. Work around this by avoiding these methods when constructing - * the built-in locales. - * - * @param unused required for this constructor to have a unique signature - */ - private Locale(boolean unused, String lowerCaseLanguageCode, String upperCaseCountryCode) { - this.languageCode = lowerCaseLanguageCode; - this.countryCode = upperCaseCountryCode; - this.variantCode = ""; - } - - /** - * Constructs a new {@code Locale} using the specified language. - */ - public Locale(String language) { - this(language, "", ""); - } - - /** - * Constructs a new {@code Locale} using the specified language and country codes. - */ - public Locale(String language, String country) { - this(language, country, ""); - } - - /** - * Constructs a new {@code Locale} using the specified language, country, - * and variant codes. - */ - public Locale(String language, String country, String variant) { - if (language == null || country == null || variant == null) { - throw new NullPointerException("language=" + language + - ",country=" + country + - ",variant=" + variant); - } - if (language.isEmpty() && country.isEmpty()) { - languageCode = ""; - countryCode = ""; - variantCode = variant; - return; - } - -// languageCode = language.toLowerCase(Locale.US); // not supported by GWT - languageCode = language.toLowerCase(); - // Map new language codes to the obsolete language - // codes so the correct resource bundles will be used. - if (languageCode.equals("he")) { - languageCode = "iw"; - } else if (languageCode.equals("id")) { - languageCode = "in"; - } else if (languageCode.equals("yi")) { - languageCode = "ji"; - } - -// countryCode = country.toUpperCase(Locale.US); // not supported by GWT - countryCode = country.toUpperCase(); - - // Work around for be compatible with RI - variantCode = variant; - } - -// @Override public Object clone() { -// try { -// return super.clone(); -// } catch (CloneNotSupportedException e) { -// throw new AssertionError(e); -// } -// } - - /** - * Returns true if {@code object} is a locale with the same language, - * country and variant. - */ - @Override public boolean equals(Object object) { - if (object == this) { - return true; - } - if (object instanceof Locale) { - Locale o = (Locale) object; - return languageCode.equals(o.languageCode) - && countryCode.equals(o.countryCode) - && variantCode.equals(o.variantCode); - } - return false; - } - -// /** -// * Returns the system's installed locales. This array always includes {@code -// * Locale.US}, and usually several others. Most locale-sensitive classes -// * offer their own {@code getAvailableLocales} method, which should be -// * preferred over this general purpose method. -// * -// * @see java.text.BreakIterator#getAvailableLocales() -// * @see java.text.Collator#getAvailableLocales() -// * @see java.text.DateFormat#getAvailableLocales() -// * @see java.text.DateFormatSymbols#getAvailableLocales() -// * @see java.text.DecimalFormatSymbols#getAvailableLocales() -// * @see java.text.NumberFormat#getAvailableLocales() -// * @see java.util.Calendar#getAvailableLocales() -// */ -// public static Locale[] getAvailableLocales() { -// return ICU.getAvailableLocales(); -// } - - /** - * Returns the country code for this locale, or {@code ""} if this locale - * doesn't correspond to a specific country. - */ - public String getCountry() { - return countryCode; - } - - /** - * Returns the user's preferred locale. This may have been overridden for - * this process with {@link #setDefault}. - * - *

Since the user's locale changes dynamically, avoid caching this value. - * Instead, use this method to look it up for each use. - */ - public static Locale getDefault() { - return defaultLocale; - } - -// /** -// * Equivalent to {@code getDisplayCountry(Locale.getDefault())}. -// */ -// public final String getDisplayCountry() { -// return getDisplayCountry(getDefault()); -// } -// -// /** -// * Returns the name of this locale's country, localized to {@code locale}. -// * Returns the empty string if this locale does not correspond to a specific -// * country. -// */ -// public String getDisplayCountry(Locale locale) { -// if (countryCode.isEmpty()) { -// return ""; -// } -// String result = ICU.getDisplayCountryNative(toString(), locale.toString()); -// if (result == null) { // TODO: do we need to do this, or does ICU do it for us? -// result = ICU.getDisplayCountryNative(toString(), Locale.getDefault().toString()); -// } -// return result; -// } -// -// /** -// * Equivalent to {@code getDisplayLanguage(Locale.getDefault())}. -// */ -// public final String getDisplayLanguage() { -// return getDisplayLanguage(getDefault()); -// } -// -// /** -// * Returns the name of this locale's language, localized to {@code locale}. -// * If the language name is unknown, the language code is returned. -// */ -// public String getDisplayLanguage(Locale locale) { -// if (languageCode.isEmpty()) { -// return ""; -// } -// -// // http://b/8049507 --- frameworks/base should use fil_PH instead of tl_PH. -// // Until then, we're stuck covering their tracks, making it look like they're -// // using "fil" when they're not. -// String localeString = toString(); -// if (languageCode.equals("tl")) { -// localeString = toNewString("fil", countryCode, variantCode); -// } -// -// String result = ICU.getDisplayLanguageNative(localeString, locale.toString()); -// if (result == null) { // TODO: do we need to do this, or does ICU do it for us? -// result = ICU.getDisplayLanguageNative(localeString, Locale.getDefault().toString()); -// } -// return result; -// } -// -// /** -// * Equivalent to {@code getDisplayName(Locale.getDefault())}. -// */ -// public final String getDisplayName() { -// return getDisplayName(getDefault()); -// } -// -// /** -// * Returns this locale's language name, country name, and variant, localized -// * to {@code locale}. The exact output form depends on whether this locale -// * corresponds to a specific language, country and variant. -// * -// *

For example: -// *

    -// *
  • {@code new Locale("en").getDisplayName(Locale.US)} -> {@code English} -// *
  • {@code new Locale("en", "US").getDisplayName(Locale.US)} -> {@code English (United States)} -// *
  • {@code new Locale("en", "US", "POSIX").getDisplayName(Locale.US)} -> {@code English (United States,Computer)} -// *
  • {@code new Locale("en").getDisplayName(Locale.FRANCE)} -> {@code anglais} -// *
  • {@code new Locale("en", "US").getDisplayName(Locale.FRANCE)} -> {@code anglais (tats-Unis)} -// *
  • {@code new Locale("en", "US", "POSIX").getDisplayName(Locale.FRANCE)} -> {@code anglais (tats-Unis,informatique)}. -// *
-// */ -// public String getDisplayName(Locale locale) { -// int count = 0; -// StringBuilder buffer = new StringBuilder(); -// if (!languageCode.isEmpty()) { -// String displayLanguage = getDisplayLanguage(locale); -// buffer.append(displayLanguage.isEmpty() ? languageCode : displayLanguage); -// ++count; -// } -// if (!countryCode.isEmpty()) { -// if (count == 1) { -// buffer.append(" ("); -// } -// String displayCountry = getDisplayCountry(locale); -// buffer.append(displayCountry.isEmpty() ? countryCode : displayCountry); -// ++count; -// } -// if (!variantCode.isEmpty()) { -// if (count == 1) { -// buffer.append(" ("); -// } else if (count == 2) { -// buffer.append(","); -// } -// String displayVariant = getDisplayVariant(locale); -// buffer.append(displayVariant.isEmpty() ? variantCode : displayVariant); -// ++count; -// } -// if (count > 1) { -// buffer.append(")"); -// } -// return buffer.toString(); -// } -// -// /** -// * Returns the full variant name in the default {@code Locale} for the variant code of -// * this {@code Locale}. If there is no matching variant name, the variant code is -// * returned. -// */ -// public final String getDisplayVariant() { -// return getDisplayVariant(getDefault()); -// } -// -// /** -// * Returns the full variant name in the specified {@code Locale} for the variant code -// * of this {@code Locale}. If there is no matching variant name, the variant code is -// * returned. -// */ -// public String getDisplayVariant(Locale locale) { -// if (variantCode.length() == 0) { -// return variantCode; -// } -// String result = ICU.getDisplayVariantNative(toString(), locale.toString()); -// if (result == null) { // TODO: do we need to do this, or does ICU do it for us? -// result = ICU.getDisplayVariantNative(toString(), Locale.getDefault().toString()); -// } -// return result; -// } -// -// /** -// * Returns the three-letter ISO 3166 country code which corresponds to the country -// * code for this {@code Locale}. -// * @throws MissingResourceException if there's no 3-letter country code for this locale. -// */ -// public String getISO3Country() { -// String code = ICU.getISO3CountryNative(toString()); -// if (!countryCode.isEmpty() && code.isEmpty()) { -// throw new MissingResourceException("No 3-letter country code for locale: " + this, "FormatData_" + this, "ShortCountry"); -// } -// return code; -// } -// -// /** -// * Returns the three-letter ISO 639-2/T language code which corresponds to the language -// * code for this {@code Locale}. -// * @throws MissingResourceException if there's no 3-letter language code for this locale. -// */ -// public String getISO3Language() { -// String code = ICU.getISO3LanguageNative(toString()); -// if (!languageCode.isEmpty() && code.isEmpty()) { -// throw new MissingResourceException("No 3-letter language code for locale: " + this, "FormatData_" + this, "ShortLanguage"); -// } -// return code; -// } -// -// /** -// * Returns an array of strings containing all the two-letter ISO 3166 country codes that can be -// * used as the country code when constructing a {@code Locale}. -// */ -// public static String[] getISOCountries() { -// return ICU.getISOCountries(); -// } -// -// /** -// * Returns an array of strings containing all the two-letter ISO 639-1 language codes that can be -// * used as the language code when constructing a {@code Locale}. -// */ -// public static String[] getISOLanguages() { -// return ICU.getISOLanguages(); -// } - - /** - * Returns the language code for this {@code Locale} or the empty string if no language - * was set. - */ - public String getLanguage() { - return languageCode; - } - - /** - * Returns the variant code for this {@code Locale} or an empty {@code String} if no variant - * was set. - */ - public String getVariant() { - return variantCode; - } - - @Override - public synchronized int hashCode() { - return countryCode.hashCode() + languageCode.hashCode() - + variantCode.hashCode(); - } - - /** - * Overrides the default locale. This does not affect system configuration, - * and attempts to override the system-provided default locale may - * themselves be overridden by actual changes to the system configuration. - * Code that calls this method is usually incorrect, and should be fixed by - * passing the appropriate locale to each locale-sensitive method that's - * called. - */ - public synchronized static void setDefault(Locale locale) { - if (locale == null) { - throw new NullPointerException("locale == null"); - } - defaultLocale = locale; - } - - /** - * Returns the string representation of this {@code Locale}. It consists of the - * language code, country code and variant separated by underscores. - * If the language is missing the string begins - * with an underscore. If the country is missing there are 2 underscores - * between the language and the variant. The variant cannot stand alone - * without a language and/or country code: in this case this method would - * return the empty string. - * - *

Examples: "en", "en_US", "_US", "en__POSIX", "en_US_POSIX" - */ - @Override - public final String toString() { - String result = cachedToStringResult; - if (result == null) { - result = cachedToStringResult = toNewString(languageCode, countryCode, variantCode); - } - return result; - } - - private static String toNewString(String languageCode, String countryCode, String variantCode) { - // The string form of a locale that only has a variant is the empty string. - if (languageCode.length() == 0 && countryCode.length() == 0) { - return ""; - } - // Otherwise, the output format is "ll_cc_variant", where language and country are always - // two letters, but the variant is an arbitrary length. A size of 11 characters has room - // for "en_US_POSIX", the largest "common" value. (In practice, the string form is almost - // always 5 characters: "ll_cc".) - StringBuilder result = new StringBuilder(11); - result.append(languageCode); - if (countryCode.length() > 0 || variantCode.length() > 0) { - result.append('_'); - } - result.append(countryCode); - if (variantCode.length() > 0) { - result.append('_'); - } - result.append(variantCode); - return result.toString(); - } - -// private static final ObjectStreamField[] serialPersistentFields = { -// new ObjectStreamField("country", String.class), -// new ObjectStreamField("hashcode", int.class), -// new ObjectStreamField("language", String.class), -// new ObjectStreamField("variant", String.class), -// }; -// -// private void writeObject(ObjectOutputStream stream) throws IOException { -// ObjectOutputStream.PutField fields = stream.putFields(); -// fields.put("country", countryCode); -// fields.put("hashcode", -1); -// fields.put("language", languageCode); -// fields.put("variant", variantCode); -// stream.writeFields(); -// } -// -// private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException { -// ObjectInputStream.GetField fields = stream.readFields(); -// countryCode = (String) fields.get("country", ""); -// languageCode = (String) fields.get("language", ""); -// variantCode = (String) fields.get("variant", ""); -// } -} diff --git a/backends/gdx-backend-dragome/emu/java/util/StringTokenizer.java b/backends/gdx-backend-dragome/emu/java/util/StringTokenizer.java deleted file mode 100644 index e6686e8b..00000000 --- a/backends/gdx-backend-dragome/emu/java/util/StringTokenizer.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package java.util; - -/** - * Breaks a string into tokens; new code should probably use {@link String#split}. - * - *

- *
- * // Legacy code:
- * StringTokenizer st = new StringTokenizer("a:b:c", ":");
- * while (st.hasMoreTokens()) {
- *     System.err.println(st.nextToken());
- * }
- *
- * // New code:
- * for (String token : "a:b:c".split(":")) {
- *     System.err.println(token);
- * }
- * 
- *
- * - * @since 1.0 - */ -public class StringTokenizer implements Enumeration { - - private String string; - - private String delimiters; - - private boolean returnDelimiters; - - private int position; - - /** - * Constructs a new {@code StringTokenizer} for the parameter string using - * whitespace as the delimiter. The {@code returnDelimiters} flag is set to - * {@code false}. - * - * @param string - * the string to be tokenized. - */ - public StringTokenizer(String string) { - this(string, " \t\n\r\f", false); - } - - /** - * Constructs a new {@code StringTokenizer} for the parameter string using - * the specified delimiters. The {@code returnDelimiters} flag is set to - * {@code false}. If {@code delimiters} is {@code null}, this constructor - * doesn't throw an {@code Exception}, but later calls to some methods might - * throw a {@code NullPointerException}. - * - * @param string - * the string to be tokenized. - * @param delimiters - * the delimiters to use. - */ - public StringTokenizer(String string, String delimiters) { - this(string, delimiters, false); - } - - /** - * Constructs a new {@code StringTokenizer} for the parameter string using - * the specified delimiters, returning the delimiters as tokens if the - * parameter {@code returnDelimiters} is {@code true}. If {@code delimiters} - * is null this constructor doesn't throw an {@code Exception}, but later - * calls to some methods might throw a {@code NullPointerException}. - * - * @param string - * the string to be tokenized. - * @param delimiters - * the delimiters to use. - * @param returnDelimiters - * {@code true} to return each delimiter as a token. - */ - public StringTokenizer(String string, String delimiters, - boolean returnDelimiters) { - if (string == null) { - throw new NullPointerException("string == null"); - } - this.string = string; - this.delimiters = delimiters; - this.returnDelimiters = returnDelimiters; - this.position = 0; - } - - /** - * Returns the number of unprocessed tokens remaining in the string. - * - * @return number of tokens that can be retreived before an {@code - * Exception} will result from a call to {@code nextToken()}. - */ - public int countTokens() { - int count = 0; - boolean inToken = false; - for (int i = position, length = string.length(); i < length; i++) { - if (delimiters.indexOf(string.charAt(i), 0) >= 0) { - if (returnDelimiters) - count++; - if (inToken) { - count++; - inToken = false; - } - } else { - inToken = true; - } - } - if (inToken) - count++; - return count; - } - - /** - * Returns {@code true} if unprocessed tokens remain. This method is - * implemented in order to satisfy the {@code Enumeration} interface. - * - * @return {@code true} if unprocessed tokens remain. - */ - public boolean hasMoreElements() { - return hasMoreTokens(); - } - - /** - * Returns {@code true} if unprocessed tokens remain. - * - * @return {@code true} if unprocessed tokens remain. - */ - public boolean hasMoreTokens() { - if (delimiters == null) { - throw new NullPointerException("delimiters == null"); - } - int length = string.length(); - if (position < length) { - if (returnDelimiters) - return true; // there is at least one character and even if - // it is a delimiter it is a token - - // otherwise find a character which is not a delimiter - for (int i = position; i < length; i++) - if (delimiters.indexOf(string.charAt(i), 0) == -1) - return true; - } - return false; - } - - /** - * Returns the next token in the string as an {@code Object}. This method is - * implemented in order to satisfy the {@code Enumeration} interface. - * - * @return next token in the string as an {@code Object} - * @throws NoSuchElementException - * if no tokens remain. - */ - public Object nextElement() { - return nextToken(); - } - - /** - * Returns the next token in the string as a {@code String}. - * - * @return next token in the string as a {@code String}. - * @throws NoSuchElementException - * if no tokens remain. - */ - public String nextToken() { - if (delimiters == null) { - throw new NullPointerException("delimiters == null"); - } - int i = position; - int length = string.length(); - - if (i < length) { - if (returnDelimiters) { - if (delimiters.indexOf(string.charAt(position), 0) >= 0) - return String.valueOf(string.charAt(position++)); - for (position++; position < length; position++) - if (delimiters.indexOf(string.charAt(position), 0) >= 0) - return string.substring(i, position); - return string.substring(i); - } - - while (i < length && delimiters.indexOf(string.charAt(i), 0) >= 0) - i++; - position = i; - if (i < length) { - for (position++; position < length; position++) - if (delimiters.indexOf(string.charAt(position), 0) >= 0) - return string.substring(i, position); - return string.substring(i); - } - } - throw new NoSuchElementException(); - } - - /** - * Returns the next token in the string as a {@code String}. The delimiters - * used are changed to the specified delimiters. - * - * @param delims - * the new delimiters to use. - * @return next token in the string as a {@code String}. - * @throws NoSuchElementException - * if no tokens remain. - */ - public String nextToken(String delims) { - this.delimiters = delims; - return nextToken(); - } -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java deleted file mode 100644 index daf4b42c..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/TypedArraysFactory.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.badlogic.gdx.backends.dragome; - -import org.w3c.dom.typedarray.ArrayBuffer; -import org.w3c.dom.typedarray.ArrayBufferView; - -import com.dragome.commons.javascript.ScriptHelper; - -public class TypedArraysFactory -{ - public native static T createInstanceOf(Class type, ArrayBuffer buffer); - public native static T createInstanceOf(Class type, ArrayBuffer buffer, int byteOffset); - public native static T createInstanceOf(Class type, ArrayBuffer buffer, int byteOffset, int length); - public native static T createInstanceOf(Class type, int length); - public native static T createInstanceOf(Class type, float[] array); - - public boolean checkDataViewSupport() - { - return ScriptHelper.evalBoolean("!!(window.DataView)", this); - } - - public boolean checkUint8ClampedArraySupport() - { - return ScriptHelper.evalBoolean("!!(window.Uint8ClampedArray)", this); - } - - public boolean runtimeSupportCheck() - { - return ScriptHelper.evalBoolean("!!(window.ArrayBuffer)", this); - } -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/utils/Endianness.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/utils/Endianness.java deleted file mode 100644 index fb7d595d..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/utils/Endianness.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.utils; - -public enum Endianness { - BIG_ENDIAN, LITTLE_ENDIAN -} diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/utils/StringToByteBuffer.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/utils/StringToByteBuffer.java deleted file mode 100644 index 15d59616..00000000 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/utils/StringToByteBuffer.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright 2016 Natan Guilherme. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - ******************************************************************************/ - -package com.badlogic.gdx.backends.dragome.utils; - -import java.nio.ByteBuffer; - -/** Ugly hack to get gwt internal stuff into nio, see StringByteBuffer in nio */ - -public interface StringToByteBuffer { - ByteBuffer stringToByteBuffer (String s); -} From d661c210da2e71573ef493810e8f5aadba304d29 Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Tue, 22 Mar 2016 03:04:27 -0300 Subject: [PATCH 09/10] refactor: using js-jre now --- .../backends/dragome/DragomeConfiguration.java | 1 + .../gdx/backends/dragome/DragomeGL20.java | 1 + .../backends/dragome/js/storage/Storage.java | 18 +++--------------- .../dragome/preloader/AssetDownloader.java | 2 +- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java index 3c365cb4..593f9034 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java @@ -65,6 +65,7 @@ import com.dragome.web.html.dom.w3c.ArrayBufferFactory; import com.dragome.web.html.dom.w3c.HTMLCanvasElementExtension; import com.dragome.web.html.dom.w3c.HTMLImageElementExtension; +import com.dragome.web.html.dom.w3c.TypedArraysFactory; import com.dragome.web.html.dom.w3c.WebGLRenderingContextExtension; /** @author xpenatan */ diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java index 555e8523..1b3ef1db 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeGL20.java @@ -44,6 +44,7 @@ import com.badlogic.gdx.graphics.Pixmap; import com.badlogic.gdx.utils.GdxRuntimeException; import com.dragome.commons.javascript.ScriptHelper; +import com.dragome.web.html.dom.w3c.TypedArraysFactory; import com.dragome.web.html.dom.w3c.WebGLRenderingContextExtension; /** Ported from GWT backend. diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java index a293b5cc..2caddd2b 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/js/storage/Storage.java @@ -1,12 +1,12 @@ /******************************************************************************* * Copyright 2016 Natan Guilherme. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. @@ -16,9 +16,6 @@ package com.badlogic.gdx.backends.dragome.js.storage; -import org.w3c.dom.typedarray.ArrayBuffer; - -import com.dragome.commons.DelegateCode; import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; import com.dragome.web.html.dom.w3c.ArrayBufferFactory; @@ -57,13 +54,4 @@ public static boolean checkStorageSupport (String type) { void removeItem (String key); void clear (); - - @DelegateCode(ignore= true) - static ArrayBuffer createArrayBuffer(int length) - { - ScriptHelper.put("lenght", length, null); - Object instance= ScriptHelper.eval("new ArrayBuffer(length);", null); - ArrayBuffer node= JsDelegateFactory.createFrom(instance, ArrayBuffer.class); - return node; - } } diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java index d64093fe..da19661f 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/preloader/AssetDownloader.java @@ -20,7 +20,6 @@ import org.w3c.dom.html.HTMLImageElement; import org.w3c.dom.typedarray.Int8Array; -import com.badlogic.gdx.backends.dragome.TypedArraysFactory; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ReadyStateChangeHandler; import com.badlogic.gdx.backends.dragome.js.XMLHttpRequest.ResponseType; @@ -30,6 +29,7 @@ import com.dragome.commons.javascript.ScriptHelper; import com.dragome.web.enhancers.jsdelegate.JsDelegateFactory; import com.dragome.web.html.dom.w3c.HTMLImageElementExtension; +import com.dragome.web.html.dom.w3c.TypedArraysFactory; /** Adapted from gwt backend * @author xpenatan */ From fa0e9b299405d4c17ab9d5efa7f208674872b80b Mon Sep 17 00:00:00 2001 From: Fernando Petrola Date: Tue, 22 Mar 2016 04:08:46 -0300 Subject: [PATCH 10/10] using additional delegate classes constructor --- .../dragome/DragomeConfiguration.java | 111 ++---------------- 1 file changed, 11 insertions(+), 100 deletions(-) diff --git a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java index 593f9034..ab6aa637 100644 --- a/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java +++ b/backends/gdx-backend-dragome/src/com/badlogic/gdx/backends/dragome/DragomeConfiguration.java @@ -17,21 +17,12 @@ package com.badlogic.gdx.backends.dragome; import java.io.File; -import java.lang.reflect.Method; import java.util.ArrayList; +import java.util.Arrays; import java.util.HashSet; import java.util.List; -import org.w3c.dom.Attr; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.NamedNodeMap; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.w3c.dom.Text; import org.w3c.dom.events.Event; -import org.w3c.dom.html.CanvasRenderingContext2D; -import org.w3c.dom.html.HTMLCanvasElement; import org.w3c.dom.typedarray.ArrayBuffer; import org.w3c.dom.typedarray.ArrayBufferView; import org.w3c.dom.typedarray.Float32Array; @@ -54,13 +45,10 @@ import org.w3c.dom.webgl.WebGLTexture; import org.w3c.dom.webgl.WebGLUniformLocation; -import com.dragome.commons.ChainedInstrumentationDragomeConfigurator; import com.dragome.commons.DragomeConfiguratorImplementor; import com.dragome.commons.compiler.ClasspathFile; -import com.dragome.commons.compiler.InMemoryClasspathFile; import com.dragome.commons.compiler.annotations.CompilerType; -import com.dragome.web.config.DomHandlerDelegateStrategy; -import com.dragome.web.enhancers.jsdelegate.JsDelegateGenerator; +import com.dragome.web.config.DomHandlerApplicationConfigurator; import com.dragome.web.helpers.serverside.DefaultClasspathFilter; import com.dragome.web.html.dom.w3c.ArrayBufferFactory; import com.dragome.web.html.dom.w3c.HTMLCanvasElementExtension; @@ -70,19 +58,25 @@ /** @author xpenatan */ @DragomeConfiguratorImplementor(priority= 10) -public class DragomeConfiguration extends ChainedInstrumentationDragomeConfigurator +public class DragomeConfiguration extends DomHandlerApplicationConfigurator { HashSet paths; String projName; String projPath; List extraClasspathFiles; - private JsDelegateGenerator jsDelegateGenerator; + static List> additonalClasses= Arrays.asList(HTMLImageElementExtension.class, HTMLCanvasElementExtension.class, Event.class, // + WebGLActiveInfo.class, WebGLBuffer.class, WebGLContextAttributes.class, WebGLFramebuffer.class, // + WebGLObject.class, WebGLProgram.class, WebGLRenderbuffer.class, WebGLRenderingContext.class, // + WebGLShader.class, WebGLTexture.class, WebGLUniformLocation.class, WebGLRenderingContextExtension.class, // + ArrayBuffer.class, ArrayBufferView.class, Float32Array.class, Float64Array.class, Int16Array.class, // + Int32Array.class, Int8Array.class, Uint16Array.class, Uint32Array.class, Uint8Array.class, // + ArrayBufferFactory.class, TypedArraysFactory.class); boolean cache= false; public DragomeConfiguration() { - + super(additonalClasses); // System.setProperty("dragome-compile-mode", CompilerMode.Production.toString()); // System.setProperty("dragome-compile-mode", CompilerMode.Debug.toString()); @@ -120,88 +114,6 @@ public boolean accept(File pathname, File folder) } - public void add(Class clazz) - { - byte[] bytecode= jsDelegateGenerator.generate(clazz); - String classname= JsDelegateGenerator.createDelegateClassName(clazz.getName()); - addClassBytecode(bytecode, classname); - extraClasspathFiles.add(new InMemoryClasspathFile(classname, bytecode)); - } - - private void createJsDelegateGenerator(String classpath) - { - jsDelegateGenerator= new JsDelegateGenerator(classpath.replace(";", ":"), new DomHandlerDelegateStrategy() - { - public String createMethodCall(Method method, String params) - { - if (params == null) - params= ""; - - String name= method.getName(); - Class[] superclass= method.getDeclaringClass().getInterfaces(); - if (superclass.length > 0 && superclass[0].equals(ArrayBufferView.class)) - { - if (name.equals("set") && method.getParameterTypes().length == 2 && method.getParameterTypes()[0].equals(int.class)) - return "this.node[$1] = $2"; - else if ((name.equals("get") || name.equals("getAsDouble")) && method.getParameterTypes().length == 1 && method.getParameterTypes()[0].equals(int.class)) - return "this.node[$1]"; - } - - return super.createMethodCall(method, params); - } - }); - } - - public List getExtraClasspath(String classpath) - { - if (jsDelegateGenerator == null) - createJsDelegateGenerator(classpath); - - add(Document.class); - add(Element.class); - add(Attr.class); - add(NodeList.class); - add(Node.class); - add(NamedNodeMap.class); - add(Text.class); - add(HTMLCanvasElement.class); - add(CanvasRenderingContext2D.class); - add(HTMLImageElementExtension.class); - add(HTMLCanvasElementExtension.class); - add(Event.class); - - add(WebGLActiveInfo.class); - add(WebGLBuffer.class); - add(WebGLContextAttributes.class); - add(WebGLFramebuffer.class); - add(WebGLObject.class); - add(WebGLProgram.class); - add(WebGLRenderbuffer.class); - add(WebGLRenderingContext.class); - add(WebGLShader.class); - add(WebGLTexture.class); - add(WebGLUniformLocation.class); - add(WebGLRenderingContextExtension.class); - add(ArrayBuffer.class); - add(ArrayBufferView.class); - - // add(DataView.class); - // add(DataViewStream.class); - add(Float32Array.class); - add(Float64Array.class); - add(Int16Array.class); - add(Int32Array.class); - add(Int8Array.class); - add(Uint16Array.class); - add(Uint32Array.class); - add(Uint8Array.class); - - add(ArrayBufferFactory.class); - add(TypedArraysFactory.class); - - return extraClasspathFiles; - } - @Override public boolean filterClassPath(String aClassPathEntry) { @@ -241,7 +153,6 @@ public CompilerType getDefaultCompilerType() return CompilerType.Standard; } - @Override public boolean isCheckingCast() { return false;