OSDN Git Service

[fixed] imports in GWT
authorMario Zechner <contact@badlogicgames.com>
Sat, 11 Aug 2012 13:09:10 +0000 (14:09 +0100)
committerMario Zechner <contact@badlogicgames.com>
Sat, 11 Aug 2012 13:09:10 +0000 (14:09 +0100)
35 files changed:
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplication.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtApplicationConfiguration.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGL20.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtGraphics.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/GwtInput.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/graphics/Pixmap.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/emu/com/badlogic/gdx/utils/BufferUtils.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/preloader/BinaryLoader.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/preloader/ImageLoader.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/preloader/Preloader.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/preloader/PreloaderBundleGenerator.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/preloader/TextLoader.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/soundmanager2/SMSound.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/widgets/PlaceholderTextBox.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/widgets/ProgressBar.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/widgets/ResizableWidget.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/widgets/ResizableWidgetCollection.java
backends/gdx-backends-gwt/src/com/badlogic/gdx/backends/gwt/widgets/TextInputDialogBox.java
backends/gdx-backends-gwt/src/com/badlogic/gwtref/client/ReflectionCache.java
backends/gdx-backends-gwt/src/com/badlogic/gwtref/client/Test.java
backends/gdx-backends-gwt/src/com/badlogic/gwtref/gen/ReflectionCacheGenerator.java
backends/gdx-backends-gwt/src/com/badlogic/gwtref/gen/ReflectionCacheSourceCreator.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/ArrayBuffer.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/ArrayBufferView.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/ArrayUtils.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/Float32Array.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/Int16Array.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/Int32Array.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/Int8Array.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/Uint16Array.java
backends/gdx-backends-gwt/src/com/google/gwt/typedarrays/client/Uint8Array.java
backends/gdx-backends-gwt/src/com/google/gwt/webgl/client/WebGLBuffer.java
backends/gdx-backends-gwt/src/com/google/gwt/webgl/client/WebGLContextAttributes.java
backends/gdx-backends-gwt/src/com/google/gwt/webgl/client/WebGLObject.java
backends/gdx-backends-gwt/src/com/google/gwt/webgl/client/WebGLRenderingContext.java

index 3eab1f9..d217075 100644 (file)
 \r
 package com.badlogic.gdx.backends.gwt;\r
 \r
-import java.awt.Canvas;\r
-import java.awt.Panel;\r
-import java.awt.TextArea;\r
-\r
 import com.badlogic.gdx.Application;\r
 import com.badlogic.gdx.ApplicationListener;\r
 import com.badlogic.gdx.Audio;\r
@@ -35,6 +31,23 @@ import com.badlogic.gdx.graphics.Pixmap;
 import com.badlogic.gdx.utils.Array;\r
 import com.badlogic.gdx.utils.ObjectMap;\r
 import com.badlogic.gdx.utils.TimeUtils;\r
+import com.google.gwt.canvas.client.Canvas;\r
+import com.google.gwt.canvas.dom.client.Context2d;\r
+import com.google.gwt.canvas.dom.client.Context2d.TextAlign;\r
+import com.google.gwt.canvas.dom.client.Context2d.TextBaseline;\r
+import com.google.gwt.core.client.EntryPoint;\r
+import com.google.gwt.core.client.GWT;\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+import com.google.gwt.dom.client.Document;\r
+import com.google.gwt.dom.client.Element;\r
+import com.google.gwt.user.client.Timer;\r
+import com.google.gwt.user.client.ui.HasHorizontalAlignment;\r
+import com.google.gwt.user.client.ui.HasVerticalAlignment;\r
+import com.google.gwt.user.client.ui.Label;\r
+import com.google.gwt.user.client.ui.Panel;\r
+import com.google.gwt.user.client.ui.RootPanel;\r
+import com.google.gwt.user.client.ui.TextArea;\r
+import com.google.gwt.user.client.ui.VerticalPanel;\r
 \r
 /** Implementation of an {@link Application} based on GWT. Clients have to override {@link #getConfig()},\r
  * {@link #getApplicationListener()} and {@link #getAssetsPath()}. Clients can override the default loading screen via\r
index 27e2e60..fe40511 100644 (file)
@@ -16,8 +16,8 @@
 \r
 package com.badlogic.gdx.backends.gwt;\r
 \r
-import java.awt.Panel;\r
-import java.awt.TextArea;\r
+import com.google.gwt.user.client.ui.Panel;\r
+import com.google.gwt.user.client.ui.TextArea;\r
 \r
 public class GwtApplicationConfiguration {\r
        /** the width of the drawing area in pixels **/\r
index 2216444..03d5475 100644 (file)
@@ -27,6 +27,7 @@ import java.util.Map;
 import com.badlogic.gdx.graphics.GL20;\r
 import com.badlogic.gdx.graphics.Pixmap;\r
 import com.badlogic.gdx.utils.GdxRuntimeException;\r
+import com.google.gwt.core.client.GWT;\r
 import com.google.gwt.typedarrays.client.Float32Array;\r
 import com.google.gwt.typedarrays.client.Int16Array;\r
 import com.google.gwt.typedarrays.client.Int32Array;\r
index 39990f3..b58dec4 100644 (file)
 \r
 package com.badlogic.gdx.backends.gwt;\r
 \r
-import java.awt.Canvas;\r
-import java.awt.Panel;\r
-\r
 import com.badlogic.gdx.Gdx;\r
 import com.badlogic.gdx.Graphics;\r
+import com.badlogic.gdx.Graphics.BufferFormat;\r
+import com.badlogic.gdx.Graphics.DisplayMode;\r
+import com.badlogic.gdx.Graphics.GraphicsType;\r
 import com.badlogic.gdx.graphics.GL10;\r
 import com.badlogic.gdx.graphics.GL11;\r
 import com.badlogic.gdx.graphics.GL20;\r
 import com.badlogic.gdx.graphics.GLCommon;\r
 import com.badlogic.gdx.graphics.GLU;\r
 import com.badlogic.gdx.utils.GdxRuntimeException;\r
+import com.google.gwt.canvas.client.Canvas;\r
+import com.google.gwt.dom.client.CanvasElement;\r
+import com.google.gwt.user.client.ui.Panel;\r
 import com.google.gwt.webgl.client.WebGLContextAttributes;\r
 import com.google.gwt.webgl.client.WebGLRenderingContext;\r
 \r
index 69180f5..afd83fe 100644 (file)
@@ -25,6 +25,12 @@ import com.badlogic.gdx.InputProcessor;
 import com.badlogic.gdx.backends.gwt.widgets.TextInputDialogBox;\r
 import com.badlogic.gdx.backends.gwt.widgets.TextInputDialogBox.TextInputDialogListener;\r
 import com.badlogic.gdx.utils.TimeUtils;\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+import com.google.gwt.dom.client.CanvasElement;\r
+import com.google.gwt.dom.client.Document;\r
+import com.google.gwt.dom.client.Element;\r
+import com.google.gwt.dom.client.NativeEvent;\r
+import com.google.gwt.event.dom.client.KeyCodes;\r
 \r
 public class GwtInput implements Input {\r
        boolean touched = false;\r
index cf7cf63..29b6363 100644 (file)
@@ -16,7 +16,6 @@
 \r
 package com.badlogic.gdx.graphics;\r
 \r
-import java.awt.Canvas;\r
 import java.nio.Buffer;\r
 import java.nio.IntBuffer;\r
 import java.util.HashMap;\r
@@ -27,6 +26,12 @@ import com.badlogic.gdx.files.FileHandle;
 import com.badlogic.gdx.utils.BufferUtils;\r
 import com.badlogic.gdx.utils.Disposable;\r
 import com.badlogic.gdx.utils.GdxRuntimeException;\r
+import com.google.gwt.canvas.client.Canvas;\r
+import com.google.gwt.canvas.dom.client.CanvasPixelArray;\r
+import com.google.gwt.canvas.dom.client.Context2d;\r
+import com.google.gwt.canvas.dom.client.Context2d.Composite;\r
+import com.google.gwt.dom.client.CanvasElement;\r
+import com.google.gwt.dom.client.ImageElement;\r
 \r
 public class Pixmap implements Disposable {\r
        public static Map<Integer, Pixmap> pixmaps = new HashMap<Integer, Pixmap>();\r
index 813c550..ac8a467 100644 (file)
@@ -26,6 +26,8 @@ import java.nio.IntBuffer;
 import java.nio.LongBuffer;\r
 import java.nio.ShortBuffer;\r
 \r
+import com.google.gwt.core.client.GWT;\r
+\r
 /** Class with static helper methods to increase the speed of array/direct buffer and direct buffer/direct buffer transfers\r
  * \r
  * @author mzechner */\r
index 89a1558..1284b71 100644 (file)
@@ -19,6 +19,9 @@ package com.badlogic.gdx.backends.gwt.preloader;
 import java.io.IOException;\r
 import java.io.InputStream;\r
 \r
+import com.google.gwt.xhr.client.ReadyStateChangeHandler;\r
+import com.google.gwt.xhr.client.XMLHttpRequest;\r
+\r
 public class BinaryLoader {\r
        private final LoaderCallback<Blob> callback;\r
 \r
index bc1e31c..8e43376 100644 (file)
@@ -16,6 +16,9 @@
 \r
 package com.badlogic.gdx.backends.gwt.preloader;\r
 \r
+import com.google.gwt.dom.client.ImageElement;\r
+import com.google.gwt.dom.client.NativeEvent;\r
+\r
 /** Fugly but does the job.\r
  * @author mzechner */\r
 public class ImageLoader {\r
index c879fbe..e2c9d7f 100644 (file)
@@ -26,6 +26,8 @@ import com.badlogic.gdx.files.FileHandle;
 import com.badlogic.gdx.utils.Array;\r
 import com.badlogic.gdx.utils.GdxRuntimeException;\r
 import com.badlogic.gdx.utils.ObjectMap;\r
+import com.google.gwt.core.client.GWT;\r
+import com.google.gwt.dom.client.ImageElement;\r
 \r
 public class Preloader {\r
        public interface PreloaderCallback {\r
index ad25081..87cf664 100644 (file)
@@ -18,11 +18,17 @@ package com.badlogic.gdx.backends.gwt.preloader;
 \r
 import java.io.PrintWriter;\r
 \r
-import sun.nio.cs.Surrogate.Generator;\r
-\r
 import com.badlogic.gdx.backends.gwt.preloader.AssetFilter.AssetType;\r
 import com.badlogic.gdx.utils.Array;\r
 import com.badlogic.gdx.utils.GdxRuntimeException;\r
+import com.google.gwt.core.ext.BadPropertyValueException;\r
+import com.google.gwt.core.ext.ConfigurationProperty;\r
+import com.google.gwt.core.ext.Generator;\r
+import com.google.gwt.core.ext.GeneratorContext;\r
+import com.google.gwt.core.ext.TreeLogger;\r
+import com.google.gwt.core.ext.UnableToCompleteException;\r
+import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;\r
+import com.google.gwt.user.rebind.SourceWriter;\r
 \r
 /** Copies assets from the path specified in the modules gdx.assetpath configuration property to the war/ folder and generates the\r
  * assets.txt file. The type of a file is determined by an {@link AssetFilter}, which is either created by instantiating the class\r
index d8b35c8..86a2f51 100644 (file)
 \r
 package com.badlogic.gdx.backends.gwt.preloader;\r
 \r
-import javax.xml.ws.Response;\r
+import com.google.gwt.http.client.Request;\r
+import com.google.gwt.http.client.RequestBuilder;\r
+import com.google.gwt.http.client.RequestCallback;\r
+import com.google.gwt.http.client.RequestException;\r
+import com.google.gwt.http.client.Response;\r
 \r
 public class TextLoader {\r
        private final LoaderCallback<String> callback;\r
index edcb5be..02fc479 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.badlogic.gdx.backends.gwt.soundmanager2;\r
 \r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
 public class SMSound extends JavaScriptObject {\r
        protected SMSound () {\r
        }\r
index 8ab5e01..9cae89c 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.badlogic.gdx.backends.gwt.widgets;\r
 \r
+import com.google.gwt.user.client.ui.TextBox;\r
+\r
 public class PlaceholderTextBox extends TextBox {\r
 \r
        String placeholder = "";\r
index 08d58f0..e2ac00c 100644 (file)
@@ -16,8 +16,9 @@
 
 package com.badlogic.gdx.backends.gwt.widgets;
 
-import com.badlogic.gdx.scenes.scene2d.ui.Widget;
-import com.sun.org.apache.xalan.internal.xsltc.DOM;
+import com.google.gwt.user.client.DOM;
+import com.google.gwt.user.client.Element;
+import com.google.gwt.user.client.ui.Widget;
 
 /** A widget that displays progress on an arbitrary scale.
  * 
index f5c63da..e222692 100644 (file)
@@ -16,6 +16,8 @@
 
 package com.badlogic.gdx.backends.gwt.widgets;
 
+import com.google.gwt.user.client.Element;
+
 /** An interface that defines the methods required to support automatic resizing of the Widget element. */
 public interface ResizableWidget {
        /** Get the widget's element. */
index 2febaa1..f9854fe 100644 (file)
@@ -20,6 +20,13 @@ import java.util.HashMap;
 import java.util.Iterator;
 import java.util.Map;
 
+import com.google.gwt.event.logical.shared.ResizeEvent;
+import com.google.gwt.event.logical.shared.ResizeHandler;
+import com.google.gwt.event.shared.HandlerRegistration;
+import com.google.gwt.user.client.Timer;
+import com.google.gwt.user.client.Window;
+import com.google.gwt.user.client.WindowResizeListener;
+
 /** A collection of {@link ResizableWidget} that periodically checks the outer dimensions of a widget and redraws it as necessary.
  * Every {@link ResizableWidgetCollection} uses a timer, so consider the cost when adding one.
  * 
index 873248b..b0614bb 100644 (file)
 \r
 package com.badlogic.gdx.backends.gwt.widgets;\r
 \r
+import com.google.gwt.event.dom.client.ClickEvent;\r
+import com.google.gwt.event.dom.client.ClickHandler;\r
+import com.google.gwt.user.client.ui.Button;\r
+import com.google.gwt.user.client.ui.DialogBox;\r
+import com.google.gwt.user.client.ui.HasHorizontalAlignment;\r
+import com.google.gwt.user.client.ui.HorizontalPanel;\r
+import com.google.gwt.user.client.ui.VerticalPanel;\r
+\r
 public class TextInputDialogBox extends DialogBox {\r
        private PlaceholderTextBox textBox;\r
 \r
index 8843ece..6ba4f78 100644 (file)
@@ -18,6 +18,8 @@ package com.badlogic.gwtref.client;
 \r
 import java.util.Collection;\r
 \r
+import com.google.gwt.core.client.GWT;\r
+\r
 public class ReflectionCache {\r
        public static IReflectionCache instance = GWT.create(IReflectionCache.class);\r
 \r
index 519f446..81d4eb6 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.badlogic.gwtref.client;\r
 \r
+import com.google.gwt.core.client.EntryPoint;\r
+\r
 public class Test implements EntryPoint {\r
        public static enum Enu {\r
                Winter, Summer, Bleh;\r
index ffafbb5..6ddfd54 100644 (file)
 \r
 package com.badlogic.gwtref.gen;\r
 \r
-import sun.nio.cs.Surrogate.Generator;\r
+import com.google.gwt.core.ext.Generator;\r
+import com.google.gwt.core.ext.GeneratorContext;\r
+import com.google.gwt.core.ext.TreeLogger;\r
+import com.google.gwt.core.ext.UnableToCompleteException;\r
+import com.google.gwt.core.ext.typeinfo.JClassType;\r
+import com.google.gwt.core.ext.typeinfo.TypeOracle;\r
+import static com.google.gwt.core.ext.TreeLogger.*;\r
 \r
 public class ReflectionCacheGenerator extends Generator {\r
        @Override\r
index 77a4979..9c5bd09 100644 (file)
@@ -22,6 +22,23 @@ import java.util.HashSet;
 import java.util.List;\r
 import java.util.Set;\r
 \r
+import com.google.gwt.core.ext.GeneratorContext;\r
+import com.google.gwt.core.ext.TreeLogger;\r
+import com.google.gwt.core.ext.TreeLogger.Type;\r
+import com.google.gwt.core.ext.typeinfo.JArrayType;\r
+import com.google.gwt.core.ext.typeinfo.JClassType;\r
+import com.google.gwt.core.ext.typeinfo.JEnumConstant;\r
+import com.google.gwt.core.ext.typeinfo.JEnumType;\r
+import com.google.gwt.core.ext.typeinfo.JField;\r
+import com.google.gwt.core.ext.typeinfo.JMethod;\r
+import com.google.gwt.core.ext.typeinfo.JPackage;\r
+import com.google.gwt.core.ext.typeinfo.JParameter;\r
+import com.google.gwt.core.ext.typeinfo.JPrimitiveType;\r
+import com.google.gwt.core.ext.typeinfo.JType;\r
+import com.google.gwt.core.ext.typeinfo.TypeOracle;\r
+import com.google.gwt.user.rebind.ClassSourceFileComposerFactory;\r
+import com.google.gwt.user.rebind.SourceWriter;\r
+\r
 public class ReflectionCacheSourceCreator {\r
        final TreeLogger logger;\r
        final GeneratorContext context;\r
index 164e163..41442e8 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
 /** The ArrayBuffer type describes a buffer used to store data for the TypedArray interface and its subclasses.\r
  * \r
  * Taken from the Khronos TypedArrays Draft Spec as of Aug 30, 2010. */\r
index f3a4d4c..20093ba 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
 /** The ArrayBufferView type holds information shared among all of the types of views of ArrayBuffers.\r
  * \r
  * Taken from the Khronos TypedArrays Draft Spec as of Aug 30, 2010. */\r
index 0ac1745..d9cbfbd 100644 (file)
@@ -16,6 +16,9 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JsArrayInteger;\r
+import com.google.gwt.core.client.JsArrayNumber;\r
+\r
 public class ArrayUtils {\r
 \r
        // TODO(jgw): Get rid of these conversions in web mode.\r
index 908f155..c4c6cae 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JsArrayNumber;\r
+\r
 /** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
  * these is fixed.\r
  * \r
index e6f43af..38e5da9 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
 /** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
  * these is fixed.\r
  * \r
index bac2244..4a3489a 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
 /** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
  * these is fixed.\r
  * \r
index f40f0ec..2443ae2 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
 /** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
  * these is fixed.\r
  * \r
index cf040c2..e139921 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
 /** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
  * these is fixed.\r
  * \r
index 7d5cb94..e2dcf7d 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.typedarrays.client;\r
 \r
+import com.google.gwt.core.client.JsArrayInteger;\r
+\r
 /** The typed array view types represent a view of an ArrayBuffer that allows for indexing and manipulation. The length of each of\r
  * these is fixed.\r
  * \r
index 384d5ad..a16d713 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.webgl.client;\r
 \r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
 public class WebGLBuffer extends JavaScriptObject {\r
 \r
        protected WebGLBuffer () {\r
index a67b7ab..17eba98 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.webgl.client;\r
 \r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
 /** The WebGLContextAttributes interface contains drawing surface attributes and is passed as the second parameter to getContext. A\r
  * native object may be supplied as this parameter; the specified attributes will be queried from this object. */\r
 public class WebGLContextAttributes extends JavaScriptObject {\r
index 975d115..e45bc39 100644 (file)
@@ -16,6 +16,8 @@
 \r
 package com.google.gwt.webgl.client;\r
 \r
+import com.google.gwt.core.client.JavaScriptObject;\r
+\r
 public class WebGLObject extends JavaScriptObject {\r
 \r
        protected WebGLObject () {\r
index cb7e62f..7fab77f 100644 (file)
 \r
 package com.google.gwt.webgl.client;\r
 \r
+import com.google.gwt.canvas.dom.client.ImageData;\r
+import com.google.gwt.core.client.JavaScriptObject;\r
+import com.google.gwt.core.client.JsArray;\r
+import com.google.gwt.core.client.JsArrayString;\r
+import com.google.gwt.dom.client.CanvasElement;\r
+import com.google.gwt.dom.client.ImageElement;\r
+import com.google.gwt.dom.client.VideoElement;\r
 import com.google.gwt.typedarrays.client.ArrayBuffer;\r
 import com.google.gwt.typedarrays.client.ArrayBufferView;\r
 import com.google.gwt.typedarrays.client.ArrayUtils;\r